summaryrefslogtreecommitdiffstats
path: root/main/shorewall-shell
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-03 14:35:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-03 14:35:10 +0000
commit3e9fded968c102a9150b8a3da32a8d13daa7f59f (patch)
tree574b18a757de79357eee3ce810f7b74cfd063deb /main/shorewall-shell
parent61c24da0eb5c72a390c1bb54c2f48d0c748e1fcc (diff)
downloadaports-3e9fded968c102a9150b8a3da32a8d13daa7f59f.tar.bz2
aports-3e9fded968c102a9150b8a3da32a8d13daa7f59f.tar.xz
main/shorewall-shell: do not remove ip rule from addr when no gateway
We should not remove any ip rule that we have not created our selves
Diffstat (limited to 'main/shorewall-shell')
-rw-r--r--main/shorewall-shell/APKBUILD4
-rw-r--r--main/shorewall-shell/shorewall-shell-providers-gateway-none.patch11
2 files changed, 13 insertions, 2 deletions
diff --git a/main/shorewall-shell/APKBUILD b/main/shorewall-shell/APKBUILD
index c2e1eefa1..c23e11d14 100644
--- a/main/shorewall-shell/APKBUILD
+++ b/main/shorewall-shell/APKBUILD
@@ -2,7 +2,7 @@
pkgname=shorewall-shell
_v=4.2.11
pkgver=4.2.11
-pkgrel=3
+pkgrel=4
pkgdesc="Shoreline Firewall shell-based compiler."
url="http://www.shorewall.net/"
arch="noarch"
@@ -34,5 +34,5 @@ build() {
md5sums="518a7f389a6f606c109acb7dfbe18372 shorewall-shell-4.2.11.tar.bz2
64c01bc4f57203fb877bb334994eac38 shorewall-policyrouting.patch
79745ea284a08cb167b9a356ee0bff3b shorewall-shell-ipset.patch
-66b7249c5c56d104f62676c175e222d3 shorewall-shell-providers-gateway-none.patch
+0c6106a8cbb95d21c0c878a6235a65ac shorewall-shell-providers-gateway-none.patch
d5eadb6be45aa41f80669452baa853a6 shorewall-shell-rp_filter.patch"
diff --git a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
index 531c37ed7..53459ab5f 100644
--- a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
+++ b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
@@ -36,3 +36,14 @@
fi
save_command "if [ -w /etc/iproute2/rt_tables ]; then"
+--- ./lib.providers.orig
++++ ./lib.providers
+@@ -267,7 +267,7 @@
+ rulenum=\$((\$rulenum + 1))
+ done
+ __EOF__
+- elif [ -n "$DELETE_THEN_ADD" ]; then
++ elif [ -n "$DELETE_THEN_ADD" ] && [ -n "$gateway" ]; then
+ indent >&3 << __EOF__
+
+ find_interface_addresses $interface | while read address; do