mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.62 - Build iproute2
This commit is contained in:
parent
afe1081189
commit
b3d850e365
2 changed files with 35 additions and 0 deletions
23
scripts/chapter8/8.62-iproute2.sh
Normal file
23
scripts/chapter8/8.62-iproute2.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue