system/sysdig: Updated for version 0.2.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Larry Hajali 2015-10-03 07:10:10 +07:00 committed by Willy Sudiarto Raharjo
parent 57b15df932
commit a60d4f3cf7
3 changed files with 21 additions and 10 deletions

View File

@ -9,4 +9,9 @@ To build the package for a kernel different from the running one, start the
script setting the KERNEL variable as in
KERNEL=2.6.38.8 ./sysdig.SlackBuild
Optional: luajit
To build sysdig with dkms support supply the variable DKMS="yes" to
sysdig.SlackBuild. This also needs dkms installed as a runtime dependency.
# DKMS="yes" ./sysdig.SlackBuild
Optional: luajit and dkms

View File

@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sysdig
VERSION=${VERSION:-0.1.104}
BUILD=${BUILD:-2}
VERSION=${VERSION:-0.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -74,6 +74,14 @@ find -L . \
# Fix manpage location
sed -i 's|share/||' userspace/sysdig/man/CMakeLists.txt
# Determine if dkms is to be used. Default is no.
if [ "${DKMS:-no}" == "yes" ]; then
USEDKMS="ON"
else
USEDKMS="OFF"
sed -i '/sysdig-probe-loader/,$d' scripts/CMakeLists.txt
fi
mkdir build
cd build
cmake -G "Unix Makefiles" \
@ -84,6 +92,7 @@ cd build
-DUSE_BUNDLED_NCURSES:BOOL=OFF \
-DUSE_BUNDLED_JSONCPP:BOOL=OFF \
-DUSE_BUNDLED_LUAJIT:BOOL=OFF \
-DENABLE_DKMS:BOOL="$USEDKMS" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release ..
@ -103,12 +112,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Remove dkms related files.
rm -rf $PKG/usr/src $PKG/usr/bin/sysdig-probe-loader
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
sed "s|@KERNEL@|$KERNEL|" $CWD/doinst.sh > $PKG/install/doinst.sh
sed -e "s|@KERNEL@|$KERNEL|" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -1,8 +1,8 @@
PRGNAM="sysdig"
VERSION="0.1.104"
VERSION="0.2.0"
HOMEPAGE="http://www.sysdig.org"
DOWNLOAD="https://github.com/draios/sysdig/archive/0.1.104.tar.gz"
MD5SUM="86bc42dd850c347b75e50c7b37ed9b21"
DOWNLOAD="https://github.com/draios/sysdig/archive/0.2.0.tar.gz"
MD5SUM="d7116f0e547ddda298a082a710182482"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jsoncpp lua"