summaryrefslogtreecommitdiff
path: root/packages-i486-stage1/iptables
diff options
context:
space:
mode:
Diffstat (limited to 'packages-i486-stage1/iptables')
-rw-r--r--packages-i486-stage1/iptables19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages-i486-stage1/iptables b/packages-i486-stage1/iptables
new file mode 100644
index 0000000..8e9c1c9
--- /dev/null
+++ b/packages-i486-stage1/iptables
@@ -0,0 +1,19 @@
+# iptables is needed by iproute2
+SYSROOT_INSTALL=1
+
+# prepare configure for cross-compilation
+sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD
+
+# disable Berkley Packet Filtering
+sed -i 's@--enable-bpf-compiler@--disable-bpf-compiler@g' PKGBUILD
+
+# disable nftable support, draws in more libraries, we need the xtables
+# depevelopment mainly now for iproute2
+sed -i "/depends=/s/libnftnl//" PKGBUILD
+sed -i 's@./configure@./configure --disable-nftables@' PKGBUILD
+
+# disable libpcap (tcpdump, draws in too many dependencies)
+sed -i "/depends=/s/libpcap//" PKGBUILD
+
+# disable connection tracking
+sed -i 's@./configure@./configure --disable-connlabel@' PKGBUILD