summaryrefslogtreecommitdiffstats
path: root/network/argus-clients/argus-clients.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/argus-clients/argus-clients.SlackBuild')
-rw-r--r--network/argus-clients/argus-clients.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/network/argus-clients/argus-clients.SlackBuild b/network/argus-clients/argus-clients.SlackBuild
index c9c7a09f28..dc8c09f2be 100644
--- a/network/argus-clients/argus-clients.SlackBuild
+++ b/network/argus-clients/argus-clients.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/bash
# Slackware build script for argus-clients
# Written by R. Bailey <GooseYArd@gmail.com>
-# Emmanuel N. Millan <emmanueln@gmail.com> - 2018
+# Emmanuel N. Millan <emmanueln@gmail.com> - 2018-2024
# 20220410 bkw: Modified by SlackBuilds.org, BUILD=2:
# - do not install headers in /usr/include with execute permission!
@@ -10,8 +10,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=argus-clients
-VERSION=${VERSION:-3.0.8.3}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.0.8.4}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -32,6 +32,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -53,6 +54,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+mv clients-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -82,6 +84,9 @@ gzip -9 $PKG/usr/man/man*/*
# 20220410 bkw: wtf, upstream?
find $PKG/usr/include/argus/ -type f -exec chmod 0644 {} \+
+find $PKG/usr/lib${LIBDIRSUFFIX} -type f -exec chmod 0644 {} \+
+
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -90,7 +95,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ChangeLog COPYING CREDITS MANIFEST README VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/argus/* $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -rf $PKG/usr/argus
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc