summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-31 15:08:38 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-31 15:08:38 +0000
commitbb62b139ba7a1dd1e160b2151dc1f9f3eb6cd60f (patch)
treede6c2a22df70e544165937219cdc64f151d33d98 /package
parent0c522bdc1ef234407a41854177a4904a8606cbef (diff)
iptables: unbreak build with ipv6 after r25897.
Diffstat (limited to 'package')
-rw-r--r--package/iptables/iptables-optional-ipv6.patch42
1 files changed, 30 insertions, 12 deletions
diff --git a/package/iptables/iptables-optional-ipv6.patch b/package/iptables/iptables-optional-ipv6.patch
index d0c2aba15..dbff0036d 100644
--- a/package/iptables/iptables-optional-ipv6.patch
+++ b/package/iptables/iptables-optional-ipv6.patch
@@ -1,9 +1,16 @@
Make ipv6 support optional. Patch by Steffen Schulz <sf@cbg.dyndns.org>
Submitted upstream as http://bugzilla.netfilter.org/show_bug.cgi?id=588
-diff -ru iptables-1.4.2/configure.ac iptables-1.4.2_patched/configure.ac
---- iptables-1.4.2/configure.ac 2009-03-29 15:49:24.764299587 +0000
-+++ iptables-1.4.2_patched/configure.ac 2009-03-29 15:38:29.082512186 +0000
+---
+ Makefile.am | 16 +++++++++++++---
+ configure.ac | 4 ++++
+ xtables.c | 3 +++
+ 3 files changed, 20 insertions(+), 3 deletions(-)
+
+Index: iptables-1.4.2/configure.ac
+===================================================================
+--- iptables-1.4.2.orig/configure.ac
++++ iptables-1.4.2/configure.ac
@@ -37,6 +37,9 @@
[enable_devel="$enableval"], [enable_devel="yes"])
AC_ARG_ENABLE([libipq],
@@ -22,12 +29,22 @@ diff -ru iptables-1.4.2/configure.ac iptables-1.4.2_patched/configure.ac
regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
-Only in iptables-1.4.2: configure.ac.orig
-Only in iptables-1.4.2: configure.ac.rej
-diff -ru iptables-1.4.2/Makefile.am iptables-1.4.2_patched/Makefile.am
---- iptables-1.4.2/Makefile.am 2008-10-08 16:31:58.000000000 +0000
-+++ iptables-1.4.2_patched/Makefile.am 2009-03-29 15:38:29.082512186 +0000
-@@ -80,11 +80,17 @@
+Index: iptables-1.4.2/Makefile.am
+===================================================================
+--- iptables-1.4.2.orig/Makefile.am
++++ iptables-1.4.2/Makefile.am
+@@ -3,6 +3,10 @@
+ AUTOMAKE_OPTIONS = foreign subdir-objects
+
+ AM_CFLAGS = ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CFLAGS}
++if ENABLE_IPV6
++AM_CFLAGS += -DENABLE_IPV6=1
++endif
++
+ SUBDIRS := extensions
+ if ENABLE_LIBIPQ
+ SUBDIRS += libipq
+@@ -80,11 +84,17 @@
endif
if ENABLE_STATIC
@@ -48,9 +65,10 @@ diff -ru iptables-1.4.2/Makefile.am iptables-1.4.2_patched/Makefile.am
endif
iptables.8: ${srcdir}/iptables.8.in extensions/matches4.man extensions/targets4.man
-diff -ru iptables-1.4.2/xtables.c iptables-1.4.2_patched/xtables.c
---- iptables-1.4.2/xtables.c 2008-10-08 16:31:58.000000000 +0000
-+++ iptables-1.4.2_patched/xtables.c 2009-03-29 15:38:29.082512186 +0000
+Index: iptables-1.4.2/xtables.c
+===================================================================
+--- iptables-1.4.2.orig/xtables.c
++++ iptables-1.4.2/xtables.c
@@ -964,6 +964,8 @@
}
}