summaryrefslogtreecommitdiff
path: root/core/iptables
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-29 00:03:59 +0000
committerroot <root@rshg054.dnsready.net>2012-07-29 00:03:59 +0000
commitddab05fd84b7fa1d67fcd18b532f0427189d8df1 (patch)
tree3a7175c54dfa9c4ae09f2b009b209134af81ba63 /core/iptables
parent4704d1255f08718ed432ba919b4087d0a52ce5a7 (diff)
Sun Jul 29 00:03:59 UTC 2012
Diffstat (limited to 'core/iptables')
-rw-r--r--core/iptables/PKGBUILD19
-rw-r--r--core/iptables/iptables-1.4.12-fixresore.patch28
2 files changed, 41 insertions, 6 deletions
diff --git a/core/iptables/PKGBUILD b/core/iptables/PKGBUILD
index d2c859de4..cc6e506e1 100644
--- a/core/iptables/PKGBUILD
+++ b/core/iptables/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 162152 2012-06-22 12:55:41Z dreisner $
+# $Id: PKGBUILD 164210 2012-07-27 14:54:09Z ibiru $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
pkgname=iptables
pkgver=1.4.14
-pkgrel=2
+pkgrel=3
pkgdesc='Linux kernel packet control tool'
arch=('i686' 'x86_64')
license=('GPL2')
@@ -23,10 +23,11 @@ source=("http://www.iptables.org/projects/iptables/files/${pkgname}-${pkgver}.ta
empty-nat.rules
empty-raw.rules
empty-security.rules
- 0503-extension_cppflags.patch
- iptables.service
- ip6tables.service
- iptables-flush)
+ 0503-extension_cppflags.patch
+ iptables-1.4.12-fixresore.patch
+ iptables.service
+ ip6tables.service
+ iptables-flush)
backup=(etc/conf.d/iptables)
sha1sums=('daf2972b81e52f562a644798013e946c88319ea3'
'5bb6fa526665cdd728c26f0f282f5a51f220cf88'
@@ -40,6 +41,7 @@ sha1sums=('daf2972b81e52f562a644798013e946c88319ea3'
'7db53bb882f62f6c677cc8559cff83d8bae2ef73'
'ebbd1424a1564fd45f455a81c61ce348f0a14c2e'
'44626980a52e49f345a0b1e1ca03060f3a35763c'
+ '7c018d48445ae41c0b9f345747e54b94cb0997b3'
'5c4eb4ea88c302e8ff98f435a11dd59b00f4d8b9'
'f1f16f44c6a5547b6f251d13007fe6585761e8b0'
'e7abda09c61142121b6695928d3b71ccd8fdf73a')
@@ -52,6 +54,11 @@ build() {
patch -Np1 -i ${srcdir}/0503-extension_cppflags.patch
+ # Fix scope issue exposed by gcc 4.7 (patch by fryasu)
+ # http://bugzilla.netfilter.org/show_bug.cgi?id=774
+ # (This will most likely be fixed in iptables 1.4.15)
+ patch -Np1 -i ${srcdir}/iptables-1.4.12-fixresore.patch
+
./configure --prefix=/usr \
--libexecdir=/usr/lib/iptables --sysconfdir=/etc \
--with-xtlibdir=/usr/lib/iptables \
diff --git a/core/iptables/iptables-1.4.12-fixresore.patch b/core/iptables/iptables-1.4.12-fixresore.patch
new file mode 100644
index 000000000..94358f779
--- /dev/null
+++ b/core/iptables/iptables-1.4.12-fixresore.patch
@@ -0,0 +1,28 @@
+diff -Nur iptables-1.4.12.2/iptables/ip6tables-restore.c iptables-1.4.12.2-fixrestore/iptables/ip6tables-restore.c
+--- iptables-1.4.12.2/iptables/ip6tables-restore.c 2012-01-03 02:19:09.000000000 +0900
++++ iptables-1.4.12.2-fixrestore/iptables/ip6tables-restore.c 2012-03-01 10:56:10.000000000 +0900
+@@ -380,9 +380,9 @@
+ quote_open = 0;
+ escaped = 0;
+ param_len = 0;
++ char param_buffer[1024];
+
+ for (curchar = parsestart; *curchar; curchar++) {
+- char param_buffer[1024];
+
+ if (quote_open) {
+ if (escaped) {
+diff -Nur iptables-1.4.12.2/iptables/iptables-restore.c iptables-1.4.12.2-fixrestore/iptables/iptables-restore.c
+--- iptables-1.4.12.2/iptables/iptables-restore.c 2012-01-03 02:19:09.000000000 +0900
++++ iptables-1.4.12.2-fixrestore/iptables/iptables-restore.c 2012-03-01 10:56:00.000000000 +0900
+@@ -377,9 +377,9 @@
+ quote_open = 0;
+ escaped = 0;
+ param_len = 0;
++ char param_buffer[1024];
+
+ for (curchar = parsestart; *curchar; curchar++) {
+- char param_buffer[1024];
+
+ if (quote_open) {
+ if (escaped) {