Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages-i486-stage1
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-02-02 16:05:49 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-02-02 16:05:49 +0100
commit2f578141b1a7ba3de5a5a2a8400e07c226202009 (patch)
treee54064e25676231bf80caec7200ce6a6c7ec6f47 /packages-i486-stage1
parent4300e81ff831f88e78e1a9b4a9f0b9c7c3cd461d (diff)
building now propertly up to iproute2 (was without iptables before)
Diffstat (limited to 'packages-i486-stage1')
-rw-r--r--packages-i486-stage1/iproute25
-rw-r--r--packages-i486-stage1/iptables19
2 files changed, 24 insertions, 0 deletions
diff --git a/packages-i486-stage1/iproute2 b/packages-i486-stage1/iproute2
new file mode 100644
index 0000000..a380e81
--- /dev/null
+++ b/packages-i486-stage1/iproute2
@@ -0,0 +1,5 @@
+# cross-compilation and verbosity flags
+sed -i "s@make\$@make V=1 HOSTCC=gcc CC=$TARGET_ARCH-cc AR=$TARGET_ARCH-ar@g" PKGBUILD
+
+# disable linux-atm (unlikely we still have some ATM based networks)
+sed -i "/makedepends=/s/'linux-atm'//" PKGBUILD
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