mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/libcap-ng: Updated for version 0.6.5.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
74263ed95d
commit
74a4fc4cf5
3 changed files with 20 additions and 13 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
# This only works if our kernel-headers match the kernel, which is a horrible assumption
|
||||
# make check
|
||||
|
||||
make
|
||||
|
||||
# This target only works if our kernel-headers match the kernel.
|
||||
#make check
|
||||
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue