diff options
author | Bogdan Radulescu <bogdan@nimblex.net> | 2014-04-27 16:49:25 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2014-04-27 12:18:18 -0500 |
commit | 5cbf285271eeb54dfb07b210a96c6353e16925b0 (patch) | |
tree | a9883bd292815d1af88125cbe837b2a9a6447ca2 /system/audit/audit.SlackBuild | |
parent | e3b830fade22b65a5aa0d56615e783961267529c (diff) |
system/audit: Updated for version 2.3.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 8c7518969ea48..393cbcdcbe746 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 |