summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README18
-rwxr-xr-xbuild_stage1.sh2
-rw-r--r--packages-i486-stage1/iproute25
-rw-r--r--packages-i486-stage1/iptables19
4 files changed, 26 insertions, 18 deletions
diff --git a/README b/README
index 2d3f6f1..671ffa4 100644
--- a/README
+++ b/README
@@ -169,18 +169,16 @@ archlinux-keyring archlinux32-keyring pacman-mirrorlist pacman \
make mpfr gawk libmpc binutils gcc \
linux uinit \
glibc \
- iptables iproute2 \
libedit openssh \
sysfsutils libidn nettle iputils"
# libunwind
# mpfr for gawk, gcc
-# iptables for iproute2
# libedit for openssh
# sysfsutils and libidn, nettle for iputils
SYSROOT_PACKAGES=" \
\
-file libmpc mpfr iptables \
+file libmpc mpfr \
libedit sysfsutils libidn"
@@ -346,21 +344,7 @@ sed -i "/pkgname/s/lib32-glibc//g" PKGBUILD
-# iptables
-sed -i 's@./configure@./configure --host=i486-unknown-linux-gnu --build=x86_64-pc-linux-gnu@g' iptables/PKGBUILD
-sed -i 's@--enable-bpf-compiler@--disable-bpf-compiler@g' iptables/PKGBUILD
-# disable nftable support, draws in more libraries, we need the xtables depevelopment mainly now for iproute2
-sed -i 's@./configure@./configure --disable-nftables@' iptables/PKGBUILD
-# disable connection tracking
-sed -i 's@./configure@./configure --disable-connlabel@' iptables/PKGBUILD
-# iproute2
-# cross-compilation and verbosity flags
-sed -i "s@make\$@make V=1 CC=i486-unknown-linux-gnu-cc AR=i486-unknown-linux-gnu-ar@g" iproute2/PKGBUILD
-# disabled iptables (too many dependencies)
-# disable linux-atm (unlikely we have such a hardware for i486)
-sed -i 's@^makedepends\(.*\)@#makedepends\1@g' iproute2/PKGBUILD
-sed -i 's@^depends\(.*\)@#depends\1@g' iproute2/PKGBUILD
# libedit
sed -i 's@./configure@./configure --host=i486-unknown-linux-gnu --build=x86_64-pc-linux-gnu@g' libedit/PKGBUILD
diff --git a/build_stage1.sh b/build_stage1.sh
index 37045d6..73ef55f 100755
--- a/build_stage1.sh
+++ b/build_stage1.sh
@@ -17,7 +17,7 @@ elfutils
sed texinfo grep findutils file diffutils ed patch
kbd procps-ng shadow
-net-tools libmnl libnfnetlink"
+net-tools libmnl libnfnetlink iptables iproute2"
for p in $PACKAGES; do
"$SCRIPT_DIR/build_stage1_package.sh" "$p" || exit 1
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