summaryrefslogtreecommitdiffstats
path: root/main/shorewall-common/shorewall-iptables-deprecated.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-11-14 14:53:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-11-14 14:53:53 +0000
commit4d9a1fe10fa4d2f00152b08e06378c0081c38e40 (patch)
treeb2eb7a15b6b20a0ade5b455ca8dd5fb278a203be /main/shorewall-common/shorewall-iptables-deprecated.patch
parent5486d4bb1cd6d9b9abb79989dafdc9abb29664e9 (diff)
downloadaports-4d9a1fe10fa4d2f00152b08e06378c0081c38e40.tar.bz2
aports-4d9a1fe10fa4d2f00152b08e06378c0081c38e40.tar.xz
main/shorewall-common: fix some deprecated iptables usage
Fix a a few occurences of: Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`) Earlier it warned the above. Now it no longer works
Diffstat (limited to 'main/shorewall-common/shorewall-iptables-deprecated.patch')
-rw-r--r--main/shorewall-common/shorewall-iptables-deprecated.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/shorewall-common/shorewall-iptables-deprecated.patch b/main/shorewall-common/shorewall-iptables-deprecated.patch
new file mode 100644
index 000000000..eff0511a0
--- /dev/null
+++ b/main/shorewall-common/shorewall-iptables-deprecated.patch
@@ -0,0 +1,22 @@
+--- ./lib.config.orig
++++ ./lib.config
+@@ -924,6 +924,9 @@
+ +*)
+ echo "-m set $(get_set_flags $1 src)"
+ ;;
++ !*)
++ echo "! -s ${1#!}"
++ ;;
+ *)
+ echo "-s $1"
+ ;;
+@@ -951,6 +954,9 @@
+ ;;
+ +*)
+ echo "-m set $(get_set_flags $1 dst)"
++ ;;
++ !*)
++ echo "! -d ${1#!}"
+ ;;
+ *)
+ echo "-d $1"