Package-Name: iptables
Homepage: http://www.netfilter.org/
Source: ftp://ftp.netfilter.org/pub/iptables/iptables-(\d+.\d+(.\d+)?\w?).tar.bz2 $1
Zap-Before-Install: 1
Repack:
	tar xjvfp "$(SOURCE)"
Compile:
	cp -pf COPYING INCOMPATIBILITIES "$(PREFIX)/"
	$(MAKE) all install PREFIX="$(PREFIX)"
Install:
	$(MAKE) instsbin SBIN="ip6tables iptables iptables-restore iptables-save"
	$(MAKE) instman SECTION=8 MAN="ip6tables iptables iptables-restore iptables-save"
Patch: <<EOT
--- include/iptables.h.old	2004-03-04 16:36:18 +0900
+++ include/iptables.h	2004-08-08 22:43:08 +0900
@@ -1,6 +1,8 @@
 #ifndef _IPTABLES_USER_H
 #define _IPTABLES_USER_H
 
+#define __user /*nothing*/
+
 #include "iptables_common.h"
 #include "libiptc/libiptc.h"
 
--- include/ip6tables.h.old	2004-02-20 03:04:20 +0900
+++ include/ip6tables.h	2004-08-08 22:43:02 +0900
@@ -1,6 +1,8 @@
 #ifndef _IP6TABLES_USER_H
 #define _IP6TABLES_USER_H
 
+#define __user /*nothing*/
+
 #include "iptables_common.h"
 #include "libiptc/libip6tc.h"
 
--- include/libiptc/libiptc.h.old	2003-05-03 00:30:11 +0900
+++ include/libiptc/libiptc.h	2004-08-09 16:37:40 +0900
@@ -2,6 +2,8 @@
 #define _LIBIPTC_H
 /* Library which manipulates filtering rules. */
 
+#define __user /*nothing*/
+
 #include <libiptc/ipt_kernel_headers.h>
 #include <linux/netfilter_ipv4/ip_tables.h>
 
--- include/libiptc/libip6tc.h.old	2003-05-06 04:33:40 +0900
+++ include/libiptc/libip6tc.h	2004-08-09 16:37:48 +0900
@@ -2,6 +2,8 @@
 #define _LIBIP6TC_H
 /* Library which manipulates firewall rules. Version 0.2. */
 
+#define __user /*nothing*/
+
 #include <libiptc/ipt_kernel_headers.h>
 #include <linux/netfilter_ipv6/ip6_tables.h>
 
EOT

/pkg/iptables/
/usr/man/man8/ip6tables.8.gz
/usr/man/man8/iptables.8.gz
/usr/man/man8/iptables-restore.8.gz
/usr/man/man8/iptables-save.8.gz
/usr/sbin/ip6tables
/usr/sbin/iptables
/usr/sbin/iptables-restore
/usr/sbin/iptables-save
