summaryrefslogtreecommitdiff
path: root/system/sysdig/sysdig.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2015-10-03 07:10:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-03 07:10:10 +0700
commita60d4f3cf74da36fde1301a11bf5d6f836ce662b (patch)
treef7f71fb2d4538b6a4895f859bfcabd2b621ddf11 /system/sysdig/sysdig.SlackBuild
parent57b15df9325e59e3c734f97380407048fa055cd3 (diff)
downloadslackbuilds-a60d4f3cf74da36fde1301a11bf5d6f836ce662b.tar.gz
system/sysdig: Updated for version 0.2.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/sysdig/sysdig.SlackBuild')
-rw-r--r--system/sysdig/sysdig.SlackBuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/system/sysdig/sysdig.SlackBuild b/system/sysdig/sysdig.SlackBuild
index f25f7c8bd2..19dc328c99 100644
--- a/system/sysdig/sysdig.SlackBuild
+++ b/system/sysdig/sysdig.SlackBuild
@@ -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}