aboutsummaryrefslogtreecommitdiff
path: root/system/audit
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-11 23:23:18 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-13 09:17:46 +0700
commit3a2d2fd09be0568e9ac7e58d2c8bb6879b76f6c4 (patch)
treee7b9710252d3ab98b9853d653cc8f491d0c4c9e9 /system/audit
parent509630ceceff73d1f7d5ca42c37917b05faba3e2 (diff)
system/audit: Updated for version 3.0.7.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/audit')
-rw-r--r--system/audit/audit.SlackBuild28
-rw-r--r--system/audit/audit.info6
2 files changed, 18 insertions, 16 deletions
diff --git a/system/audit/audit.SlackBuild b/system/audit/audit.SlackBuild
index c314d6c5c5f8..6390e40d94e7 100644
--- a/system/audit/audit.SlackBuild
+++ b/system/audit/audit.SlackBuild
@@ -22,10 +22,13 @@
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
+# 20220211 bkw: Modified by SlackBuilds.org: update for v3.0.7 as
+# the previous version won't build on 15.0.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=audit
-VERSION=${VERSION:-3.0.1}
+VERSION=${VERSION:-3.0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -72,9 +72,9 @@ 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 \
+ -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 {} \;
+ -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.3.6-sysconfig.diff
@@ -97,10 +97,15 @@ CFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make DESTDIR=$PKG install
-
-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
+make DESTDIR=$PKG install-strip
+gzip -9 $PKG/usr/man/man*/*
+
+# 20220211 bkw: --libdir got ignored, not sure this go source is
+# actually useful anyway.
+if [ -n "$LIBDIRSUFFIX" ]; then
+ mv $PKG/usr/lib/golang $PKG/usr/lib$LIBDIRSUFFIX
+ rmdir $PKG/usr/lib
+fi
mkdir -p $PKG/etc/rc.d
mv $PKG/etc/sysconfig/auditd $PKG/etc/rc.d/rc.auditd.conf.new
@@ -117,9 +122,6 @@ cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
find $PKG/usr/doc -type f -exec chmod 0644 {} \;
find $PKG/usr/doc -size 0 -exec rm {} \;
-find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
-for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/system/audit/audit.info b/system/audit/audit.info
index 0181297e261c..665a78bfa8f2 100644
--- a/system/audit/audit.info
+++ b/system/audit/audit.info
@@ -1,8 +1,8 @@
PRGNAM="audit"
-VERSION="3.0.1"
+VERSION="3.0.7"
HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
-DOWNLOAD="https://people.redhat.com/sgrubb/audit/audit-3.0.1.tar.gz"
-MD5SUM="6a3cfa0dcccb98a85685029236528177"
+DOWNLOAD="https://people.redhat.com/sgrubb/audit/audit-3.0.7.tar.gz"
+MD5SUM="34fab69e80ea6668e9c72e73ec24fd88"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""