summaryrefslogtreecommitdiff
path: root/network/arno-iptables-firewall/arno-iptables-firewall.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/arno-iptables-firewall/arno-iptables-firewall.SlackBuild')
-rw-r--r--network/arno-iptables-firewall/arno-iptables-firewall.SlackBuild29
1 files changed, 15 insertions, 14 deletions
diff --git a/network/arno-iptables-firewall/arno-iptables-firewall.SlackBuild b/network/arno-iptables-firewall/arno-iptables-firewall.SlackBuild
index a3fbecded7..dd26d5775d 100644
--- a/network/arno-iptables-firewall/arno-iptables-firewall.SlackBuild
+++ b/network/arno-iptables-firewall/arno-iptables-firewall.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for arno-iptables-firewall
-# Copyright 2013-2014 Philip Lacroix <philnx at posteo at de>
+# Copyright 2013-2014 Philip Lacroix <philnx at posteo dot de>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Thanks to Matteo Bernardini and Robby Workman for their valuable remarks.
+# Thanks to Matteo Bernardini and Robby Workman for their valuable remarks
+# after the first submission of this SlackBuild.
PRGNAM=arno-iptables-firewall
+SRCNAM=aif
VERSION=${VERSION:-2.0.1e}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -39,10 +41,10 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf aif-$VERSION
+rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$VERSION.tar.gz
-cd aif-$VERSION
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -56,11 +58,11 @@ PRGSHR=$PKG/usr/share/$PRGNAM
PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
PRGMAN=$PKG/usr/man
-# Copy firewall, log filter and configuration executables
-mkdir -p $PRGBIN
-cp -a ./bin/$PRGNAM $PRGBIN/
-cp -a ./configure.sh $PRGBIN/$PRGNAM-configure
-cp -a ./bin/arno-fwfilter $PRGBIN/
+# Install configuration, log filter and firewall executables; set
+# permissions.
+install -m 0755 -D ./configure.sh $PRGBIN/$PRGNAM-configure
+install -m 0755 ./bin/arno-fwfilter $PRGBIN/
+install -m 0755 ./bin/$PRGNAM $PRGBIN/
# Patch the configuration script. We need this in order to be able to
# run the script from outside the source directory as well. We're going
@@ -81,7 +83,7 @@ cp -a ./bin/arno-fwfilter $PRGBIN/
# in order to start up the firewall at boot-time in a proper way.
patch $PRGBIN/$PRGNAM-configure < $CWD/files/patch-configuration-script.diff
-# Copy and compress man pages
+# Copy and compress man pages.
mkdir -p $PRGMAN
cp -a ./share/man/* $PRGMAN/
find $PRGMAN -type f -exec gzip -9 {} \;
@@ -108,11 +110,10 @@ ln -sv /usr/share/$PRGNAM/plugins/traffic-accounting-show $PRGBIN/
# Install startup script and set permissions; apply patch to fix path
# to the executable file and make comments more consistent with the
# Slackware system.
-mkdir -p $PKG/etc/rc.d/
-install -m 0644 ./etc/init.d/$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM
+install -m 0644 -D ./etc/init.d/$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM
patch $PKG/etc/rc.d/rc.$PRGNAM < $CWD/files/patch-startup-script.diff
-# Copy documentation, include third-party sample files.
+# Copy documentation, including third-party sample files.
mkdir -p $PRGDOC/contrib
for doc in README CHANGELOG gpl_license.txt ; do
cp -a ./${doc} $PRGDOC/