diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-11 19:45:07 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 19:45:07 +0200 |
commit | fc4ecdcdd3913ffddb258021d426221eb66cc4fe (patch) | |
tree | f2834f1e02ff083c9edc4b6b02d869949e375e39 /libraries/libcap/libcap.SlackBuild | |
parent | abb74ac47c4a972b7585427263aa2c5c4c296b0b (diff) |
libraries/libcap: Updated for version 1.97
Diffstat (limited to 'libraries/libcap/libcap.SlackBuild')
-rw-r--r-- | libraries/libcap/libcap.SlackBuild | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/libraries/libcap/libcap.SlackBuild b/libraries/libcap/libcap.SlackBuild index 40ece77170bcd..dcf928bda6cca 100644 --- a/libraries/libcap/libcap.SlackBuild +++ b/libraries/libcap/libcap.SlackBuild @@ -5,21 +5,15 @@ # Modified by the SlackBuilds.org project PRGNAM=libcap -VERSION=1.10 +VERSION=1.97 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" -fi - # Bail out if we have a problem set -e @@ -27,15 +21,22 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . -type d | xargs chmod 0755 find . -type f | xargs chmod go-w -CFLAGS="$SLKCFLAGS" make || exit 1 -make install FAKEROOT=$PKG || exit 1 +# Apply a patch to set the CFLAGS +if [ "$ARCH" = "i686" ]; then + patch -p1 < $CWD/$PRGNAM-$VERSION-$ARCH.diff +elif [ "$ARCH" = "i486" ]; then + patch -p1 < $CWD/$PRGNAM-$VERSION-$ARCH.diff +fi + +make +make install FAKEROOT=$PKG man_prefix=/usr ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null @@ -46,8 +47,12 @@ if [ -d $PKG/usr/man ]; then gzip -9 $PKG/usr/man/man?/* fi +# Glibc already has the capget/capset manpage +rm -rf $PKG/usr/man/man2 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README CHANGELOG License pgp.keys.asc doc/capability.notes \ +cp -a README CHANGELOG License pgp.keys.asc \ + doc/capability.notes $CWD/capfaq-0.2.txt \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -60,11 +65,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz - -# Clean up the extra stuff: -if [ "$1" = "--cleanup" ]; then - rm -rf $TMP/$PRGNAM-$VERSION - rm -rf $PKG -fi - +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |