Big script
This commit is contained in:
41
toolchain/scripts/162-iproute2.sh
Executable file
41
toolchain/scripts/162-iproute2.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8: iproute2
|
||||
# ============================================================================
|
||||
# Purpose: Build iproute2 (ip, tc, ss utilities for network configuration).
|
||||
# Modern replacement for net-tools (ifconfig, route, etc).
|
||||
# Inputs: /sources/iproute2-6.13.0.tar.xz
|
||||
# Outputs: ip, tc, ss, tc binaries in /usr/sbin/, libraries in /usr/lib/
|
||||
# Assumes: Running inside chroot
|
||||
# Ref: LFS 13.0 §8.68
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="iproute2"
|
||||
VERSION="6.13.0"
|
||||
|
||||
echo "=== Building ${PACKAGE}-${VERSION} ==="
|
||||
|
||||
cd /sources
|
||||
tar -xf "${PACKAGE}-${VERSION}.tar.xz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
sed -i /ARPD/d Makefile
|
||||
rm -fv man/man8/arpd.8
|
||||
|
||||
./configure
|
||||
|
||||
make
|
||||
make SBINDIR=/usr/sbin install
|
||||
|
||||
# Create some important symlinks
|
||||
cd /usr/sbin
|
||||
ln -sfv ../lib/iptables/xtables-legacy-multi xtables-legacy-multi 2>/dev/null || true
|
||||
ln -sfv ../lib/iptables/xtables-nft-multi xtables-nft-multi 2>/dev/null || true
|
||||
|
||||
cd /sources
|
||||
rm -rf "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user