From c903082ec46c7dacc5e417bcde9f4cdd378df5be Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Thu, 27 Mar 2025 00:32:11 -0400 Subject: [PATCH] update to 12.3: iproute2 --- README.md | 1 + lfs/iproute2-6.13.0.PKGBUILD | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 lfs/iproute2-6.13.0.PKGBUILD diff --git a/README.md b/README.md index bb830c7..056d4ee 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ Warning: `leaf` won't deal with the dependence relation, and currently won't che ## Different with LFS book - Use `ensurepip` in *Chapter 7.10. Python-3.13.2* +- Use `SBINDIR=/usr/bin/` to install `iproute2`. `ip` command should be avaliable for non-root. diff --git a/lfs/iproute2-6.13.0.PKGBUILD b/lfs/iproute2-6.13.0.PKGBUILD new file mode 100644 index 0000000..af410be --- /dev/null +++ b/lfs/iproute2-6.13.0.PKGBUILD @@ -0,0 +1,24 @@ +pkgname=iproute2 +pkgver=6.13.0 +pkgdesc='IP Routing Utilities' +arch=('x86_64') +license=('GPL-2.0-or-later') +homepage='https://www.kernel.org/pub/linux/utils/net/iproute2/' +sources=("${pkgname}-${pkgver}.tar.xz") +urls=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${sources[0]}") +md5sums=("1603d25120d03feeaba9b360d03ffaec") + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 +} + +src_build() { + sed -i /ARPD/d Makefile + rm -fv man/man8/arpd.8 + make NETNS_RUN_DIR=/run/netns +} + +src_install() { + make DESTDIR="${pkgdir}" SBINDIR=/usr/bin/ install + install -vDm644 COPYING README* -t "${pkgdir}"/usr/share/doc/iproute2-6.13.0 +}