mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
network/shorewall6: Updated for version 4.4.7
This commit is contained in:
parent
970351448c
commit
d3ba289031
4 changed files with 32 additions and 41 deletions
|
@ -11,5 +11,4 @@ The IPv6 part is started by /etc/rc.d/rc.shorewall6 from rc.firewall
|
||||||
rc.shorewall provided by shorewall-common will only start the IPv4
|
rc.shorewall provided by shorewall-common will only start the IPv4
|
||||||
part of the firewall. Both can run simultaneously.
|
part of the firewall. Both can run simultaneously.
|
||||||
|
|
||||||
You will also need the shorewall-common and shorewall-perl packages.
|
You will also need the shorewall package.
|
||||||
Note that you cannot use the shell compiler to have IPv6 support.
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# vim: et ts=2 sw=2
|
||||||
|
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
|
@ -11,32 +14,15 @@ config() {
|
||||||
# Otherwise, we leave the .new copy for the admin to consider...
|
# Otherwise, we leave the .new copy for the admin to consider...
|
||||||
}
|
}
|
||||||
|
|
||||||
config etc/rc.d/rc.shorewall6.new
|
preserve_perms() {
|
||||||
|
NEW="$1"
|
||||||
config etc/shorewall6/accounting.new
|
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||||
config etc/shorewall6/actions.new
|
if [ -e $OLD ]; then
|
||||||
config etc/shorewall6/blacklist.new
|
cp -a $OLD ${NEW}.incoming
|
||||||
config etc/shorewall6/hosts.new
|
cat $NEW > ${NEW}.incoming
|
||||||
config etc/shorewall6/init.new
|
mv ${NEW}.incoming $NEW
|
||||||
config etc/shorewall6/interfaces.new
|
fi
|
||||||
config etc/shorewall6/maclist.new
|
config $NEW
|
||||||
config etc/shorewall6/notrack.new
|
}
|
||||||
config etc/shorewall6/params.new
|
|
||||||
config etc/shorewall6/policy.new
|
|
||||||
config etc/shorewall6/providers.new
|
|
||||||
config etc/shorewall6/restored.new
|
|
||||||
config etc/shorewall6/route_rules.new
|
|
||||||
config etc/shorewall6/routestopped.new
|
|
||||||
config etc/shorewall6/rules.new
|
|
||||||
config etc/shorewall6/shorewall6.conf.new
|
|
||||||
config etc/shorewall6/start.new
|
|
||||||
config etc/shorewall6/started.new
|
|
||||||
config etc/shorewall6/stop.new
|
|
||||||
config etc/shorewall6/stopped.new
|
|
||||||
config etc/shorewall6/tcclasses.new
|
|
||||||
config etc/shorewall6/tcdevices.new
|
|
||||||
config etc/shorewall6/tcrules.new
|
|
||||||
config etc/shorewall6/tos.new
|
|
||||||
config etc/shorewall6/tunnels.new
|
|
||||||
config etc/shorewall6/zones.new
|
|
||||||
|
|
||||||
|
preserve_perms etc/rc.d/rc.shorewall6.new
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
# vim: et ts=2 sw=2
|
||||||
|
|
||||||
# Slackware build script for shorewall-common
|
# Slackware build script for shorewall-common
|
||||||
|
|
||||||
|
@ -23,12 +24,12 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=shorewall6
|
PRGNAM=shorewall6
|
||||||
VERSION=${VERSION:-4.2.10}
|
VERSION=${VERSION:-4.4.7}
|
||||||
ARCH=noarch
|
ARCH=noarch
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
BASEVERS=4.2.10
|
BASEVERS=4.4.7
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
@ -46,8 +47,8 @@ cd $TMP/$PRGNAM-$BASEVERS
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
|
|
||||||
# Patch the base against all the patchlevel patches in order if present
|
# Patch the base against all the patchlevel patches in order if present
|
||||||
if [ $(ls $CWD/patches 2>/dev/null | wc -l) -gt 0 ]; then
|
if [ $(ls $CWD/patch-6-$BASEVERS.* 2>/dev/null | wc -l) -gt 0 ]; then
|
||||||
for PATCH in $CWD/patches/* ; do
|
for PATCH in $CWD/patch-6-$BASEVERS.* ; do
|
||||||
patch -p1 < $PATCH
|
patch -p1 < $PATCH
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -85,13 +86,16 @@ mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
|
for NEW in $PKG/etc/shorewall6/*.new;
|
||||||
|
do
|
||||||
|
echo $NEW | sed 's/.*etc/config etc/' >> $PKG/install/doinst.sh
|
||||||
|
done
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
||||||
# Clean up the extra stuff:
|
# Clean up the extra stuff:
|
||||||
if [ "$1" = "--cleanup" ]; then
|
if [ "$1" = "--cleanup" ]; then
|
||||||
rm -rf $TMP/$PRGNAM-$BASEVERS
|
rm -rf $TMP/$PRGNAM-$BASEVERS
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# vim: et ts=2
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="shorewall6"
|
PRGNAM="shorewall6"
|
||||||
VERSION="4.2.10"
|
VERSION="4.4.7"
|
||||||
HOMEPAGE="http://www.shorewall.net"
|
HOMEPAGE="http://www.shorewall.net"
|
||||||
DOWNLOAD="http://www.shorewall.net/pub/shorewall/4.2/shorewall-4.2.10/base/shorewall6-4.2.10.tar.bz2"
|
DOWNLOAD="http://www.shorewall.net/pub/shorewall/4.4/shorewall-4.4.7/base/shorewall6-4.4.7.tar.bz2"
|
||||||
MD5SUM="9451ee3fffece868cba041e7c74fc8ef"
|
MD5SUM="c29c224059f8d4d8560e077b2418c414"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="ArTourter"
|
MAINTAINER="ArTourter"
|
||||||
EMAIL="artourter@gmail.com"
|
EMAIL="artourter@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in a new issue