From b3d850e365b5dc9263ab21b224c6f21a00555dd8 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 19:12:28 +0530 Subject: [PATCH] Add 8.62 - Build iproute2 --- scripts/chapter8/8.62-iproute2.sh | 23 +++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 scripts/chapter8/8.62-iproute2.sh diff --git a/scripts/chapter8/8.62-iproute2.sh b/scripts/chapter8/8.62-iproute2.sh new file mode 100644 index 0000000..638af4e --- /dev/null +++ b/scripts/chapter8/8.62-iproute2.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +cd /sources +tar xf iproute2-5.19.0.tar.xz +cd iproute2-5.19.0 + +sed -i /ARPD/d Makefile +rm -fv man/man8/arpd.8 + +make NETNS_RUN_DIR=/run/netns + +if [ $? -ne 0 ] +then + exit 1 +fi + +make SBINDIR=/usr/sbin install + +mkdir -pv /usr/share/doc/iproute2-5.19.0 +cp -v COPYING README* /usr/share/doc/iproute2-5.19.0 + +cd /sources +rm -rf iproute2-5.19.0 diff --git a/scripts/main.sh b/scripts/main.sh index bac7eac..29e1e32 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1282,3 +1282,15 @@ then stop_script "chapte8/8.61-gzip.sh" fi +# Chapter 8.62 +# ============ +echo "Building iproute2" +su -c "bash $SCRIPT/chapte8/8.62-iproute2.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapte8/8.62-iproute2.sh" +fi +