diff options
Diffstat (limited to 'system/audit/audit.SlackBuild')
-rw-r--r-- | system/audit/audit.SlackBuild | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/system/audit/audit.SlackBuild b/system/audit/audit.SlackBuild index 8c7518969e..393cbcdcbe 100644 --- a/system/audit/audit.SlackBuild +++ b/system/audit/audit.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Copyright 2010, R. Andrew Bailey, Chantilly, VA USA -# 2013, Bogdan Radulescu, Bucharest, Romania <bogdan@nimblex.net> +# 2013 - 2014, Bogdan Radulescu, Bucharest, Romania <bogdan@nimblex.net> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -23,7 +23,7 @@ # SUCH DAMAGE. PRGNAM=audit -VERSION=${VERSION:-2.2.2} +VERSION=${VERSION:-2.3.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -61,13 +61,13 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Init should check /etc/rc.d/rc.auditd.conf instead of /etc/sysconfig/auditd -patch -p1 < $CWD/audit-2.2.2-sysconfig.diff +patch -p1 < $CWD/audit-2.3.6-sysconfig.diff CXXFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \ @@ -80,13 +80,14 @@ CFLAGS="$SLKCFLAGS" \ --program-prefix= \ --program-suffix= \ --sbindir=/sbin \ + --enable-static=no \ --build=$ARCH-slackware-linux make make DESTDIR=$PKG install -find $PKG | xargs file | grep -e "executable" -e "shared object" \ - | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # audispd must be 0750 to run chmod 0750 $PKG/sbin/audispd @@ -102,8 +103,7 @@ for i in $(find $PKG/etc -type f -name "*.rules" -o -name "*.conf") ; do mv $i $ mkdir -p $PKG/var/log/audit $PKG/var/lock/subsys mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS COPYING ChangeLog INSTALL NEWS README TODO contrib \ +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO contrib \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE |