Initial commit of LFS notes and scripts.
This commit is contained in:
27
lfs-scripts/iproute2.sh
Normal file
27
lfs-scripts/iproute2.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
# Set the package we're building.
|
||||
package="iproute2-6.10.0"
|
||||
extension=".tar.xz"
|
||||
|
||||
# Decompress the source.
|
||||
echo "Unpacking ${package}${extension} ..."
|
||||
tar xvf ${package}${extension}
|
||||
|
||||
# Enter the unpacked sources.
|
||||
echo "Entering ${package} directory ..."
|
||||
cd ${package}
|
||||
|
||||
# LFS commands.
|
||||
sed -i /ARPD/d Makefile
|
||||
rm -fv man/man8/arpd.8
|
||||
make NETNS_RUN_DIR=/run/netns
|
||||
make SBINDIR=/usr/sbin install
|
||||
mkdir -pv /usr/share/doc/iproute2-6.10.0
|
||||
cp -v COPYING README* /usr/share/doc/iproute2-6.10.0
|
||||
|
||||
# Exit sources directory.
|
||||
echo "Exiting ${package} directory ..."
|
||||
cd ..
|
||||
|
||||
# Remove the directory of source files.
|
||||
echo "Removing ${package} directory ..."
|
||||
rm -rf ${package}
|
||||
Reference in New Issue
Block a user