summaryrefslogtreecommitdiffstats
path: root/libraries/libcap-ng
diff options
context:
space:
mode:
author Ozan Türkyılmaz2011-03-27 17:36:44 +0200
committer Robby Workman2011-03-27 17:36:44 +0200
commit74a4fc4cf515024dea0c9b1c9a08cd0a2c05df69 (patch)
treeffb20a63c9167edb41de1a0138b8bbf3b0846ccd /libraries/libcap-ng
parent74263ed95d3d3f7f680548bc2f11be0a1c206092 (diff)
downloadslackbuilds-74a4fc4cf515024dea0c9b1c9a08cd0a2c05df69.tar.gz
libraries/libcap-ng: Updated for version 0.6.5.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libcap-ng')
-rw-r--r--libraries/libcap-ng/README3
-rw-r--r--libraries/libcap-ng/libcap-ng.SlackBuild24
-rw-r--r--libraries/libcap-ng/libcap-ng.info6
3 files changed, 20 insertions, 13 deletions
diff --git a/libraries/libcap-ng/README b/libraries/libcap-ng/README
index 6894b21e5d..9eb5a8d175 100644
--- a/libraries/libcap-ng/README
+++ b/libraries/libcap-ng/README
@@ -6,4 +6,5 @@ out any capabilities and whether or not it has an open ended bounding set.
The included utilities are designed to let admins and developers spot apps
in various ways that may be running with too much privilege.
-As of the 0.6 release, you can use libcap-ng in python.
+As of the 0.6 release, libcap-ng includes python bindings. If you do not
+want to build them, pass WITH_PYTHON=no when running the build script.
diff --git a/libraries/libcap-ng/libcap-ng.SlackBuild b/libraries/libcap-ng/libcap-ng.SlackBuild
index e0d196b8fa..9c462c6132 100644
--- a/libraries/libcap-ng/libcap-ng.SlackBuild
+++ b/libraries/libcap-ng/libcap-ng.SlackBuild
@@ -9,10 +9,12 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=libcap-ng
-VERSION=${VERSION:-0.6.4}
+VERSION=${VERSION:-0.6.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+WITH_PYTHON=${WITH_PYTHON:-yes}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -55,6 +57,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+if [ ! "$WITH_PYTHON" = "yes" ]; then
+ do_python_bindings="without-python"
+else
+ do_python_bindings="with-python"
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -64,20 +72,18 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --${do_python_bindings} \
--build=$ARCH-slackware-linux
-make
-
-# This target only works if our kernel-headers match the kernel.
-#make check
+# This only works if our kernel-headers match the kernel, which is a horrible assumption
+# make check
+make
make install-strip DESTDIR=$PKG
# Remove a couple things so they don't get picked up
-rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/libcap-ng.la
-rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/libcap-ng.a
-rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/python?.?/site-packages/_capng.a
-rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/python?.?/site-packages/_capng.la
+rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/libcap-ng.{a,la}
+rm -vf $PKG//usr/lib${LIBDIRSUFFIX}/python?.?/site-packages/_capng.{a,la}
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
diff --git a/libraries/libcap-ng/libcap-ng.info b/libraries/libcap-ng/libcap-ng.info
index 4f24857a98..2e27e37627 100644
--- a/libraries/libcap-ng/libcap-ng.info
+++ b/libraries/libcap-ng/libcap-ng.info
@@ -1,8 +1,8 @@
PRGNAM="libcap-ng"
-VERSION="0.6.4"
+VERSION="0.6.5"
HOMEPAGE="http://people.redhat.com/sgrubb/libcap-ng/"
-DOWNLOAD="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.6.4.tar.gz"
-MD5SUM="ae817cd585ca11db257330b392003ed6"
+DOWNLOAD="http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.6.5.tar.gz"
+MD5SUM="759ae1accd9954f3e08c2f94b4ecfcf9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Ozan Türkyılmaz"