aboutsummaryrefslogtreecommitdiff
path: root/system/audit/audit.SlackBuild
diff options
context:
space:
mode:
authorBogdan Radulescu <bogdan@nimblex.net>2013-03-11 19:30:08 -0400
committerdsomero <xgizzmo@slackbuilds.org>2013-03-22 07:16:39 -0400
commit679b859ac1a30bcf61e7034ab259a0ecdd8f8129 (patch)
treed0eccc19c7d7bf4637535ee1d48d409223ae5f25 /system/audit/audit.SlackBuild
parent5e4af11428ac86c9c02f9c2fc8cbeff1a1ba271d (diff)
system/audit: Updated for version 2.2.2.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/audit/audit.SlackBuild')
-rw-r--r--system/audit/audit.SlackBuild16
1 files changed, 5 insertions, 11 deletions
diff --git a/system/audit/audit.SlackBuild b/system/audit/audit.SlackBuild
index 36f1c6f204d79..62a943b2aa52a 100644
--- a/system/audit/audit.SlackBuild
+++ b/system/audit/audit.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
# Copyright 2010, R. Andrew Bailey, Chantilly, VA USA
+# 2013, Bogdan Radulescu, Bucharest, Romania <bogdan@nimblex.net>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -22,17 +23,14 @@
# SUCH DAMAGE.
PRGNAM=audit
-PKGVER=`basename $PRGNAM*tar.gz .tar.gz | cut -d- -f2`
-VERSION=${VERSION:-$PKGVER}
+VERSION=${VERSION:-2.2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -61,7 +59,6 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -70,7 +67,7 @@ find . \
-exec chmod 644 {} \;
# Init should check /etc/rc.d/rc.auditd.conf instead of /etc/sysconfig/auditd
-patch -p1 < $CWD/audit-2.0.4-sysconfig.diff
+patch -p1 < $CWD/audit-2.2.2-sysconfig.diff
CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
@@ -97,10 +94,10 @@ chmod 0750 $PKG/sbin/audispd
mkdir -p $PKG/etc/rc.d
mv $PKG/etc/sysconfig/auditd $PKG/etc/rc.d/rc.auditd.conf.new
mv $PKG/etc/rc.d/init.d/auditd $PKG/etc/rc.d/rc.auditd.new
-rm -rf $PKG/etc/rc.d/init.d $PKG/etc/sysconfig
+rm -rf $PKG/etc/rc.d/init.d $PKG/etc/sysconfig
# Change config files to .new:
-for i in $(find $PKG/etc -type f -name "*.rules" -o -name "*.conf") ; do mv $i $i.new; done
+for i in $(find $PKG/etc -type f -name "*.rules" -o -name "*.conf") ; do mv $i $i.new; done
mkdir -p $PKG/var/log/audit $PKG/var/lock/subsys
@@ -118,9 +115,6 @@ for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG