summaryrefslogtreecommitdiff
path: root/network/nft/nft.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nft/nft.SlackBuild')
-rw-r--r--network/nft/nft.SlackBuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/network/nft/nft.SlackBuild b/network/nft/nft.SlackBuild
index 106310f7a4..3a012f0469 100644
--- a/network/nft/nft.SlackBuild
+++ b/network/nft/nft.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=nft
PKGNAM=nftables
-VERSION=${VERSION:-0.2}
+VERSION=${VERSION:-0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -92,6 +92,15 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
+mv $PKG/etc/nftables/bridge-filter $PKG/etc/nftables/bridge-filter.new
+mv $PKG/etc/nftables/ipv4-filter $PKG/etc/nftables/ipv4-filter.new
+mv $PKG/etc/nftables/ipv4-mangle $PKG/etc/nftables/ipv4-mangle.new
+mv $PKG/etc/nftables/ipv6-nat $PKG/etc/nftables/ipv6-nat.new
+mv $PKG/etc/nftables/ipv6-mangle $PKG/etc/nftables/ipv6-mangle.new
+mv $PKG/etc/nftables/ipv4-nat $PKG/etc/nftables/ipv4-nat.new
+mv $PKG/etc/nftables/ipv6-filter $PKG/etc/nftables/ipv6-filter.new
+mv $PKG/etc/nftables/inet-filter $PKG/etc/nftables/inet-filter.new
+
DOCSDIR=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $DOCSDIR
cp -a $DOCUMENTATION $DOCSDIR
@@ -99,6 +108,7 @@ cat $CWD/$PRGNAM.SlackBuild > $DOCSDIR/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}