mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 11:52:52 +00:00
Add 8.38 - Build expat
This commit is contained in:
parent
4361a1c931
commit
e8eee69cb0
2 changed files with 54 additions and 0 deletions
37
scripts/chapter8/8.39-inetutils.sh
Normal file
37
scripts/chapter8/8.39-inetutils.sh
Normal file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /sources
|
||||
tar xf inetutils-2.3.tar.xz
|
||||
cd inetutils-2.3
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--localstatedir=/var \
|
||||
--disable-logger \
|
||||
--disable-whois \
|
||||
--disable-rcp \
|
||||
--disable-rexec \
|
||||
--disable-rlogin \
|
||||
--disable-rsh \
|
||||
--disable-servers
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make check
|
||||
|
||||
make install
|
||||
|
||||
mv -v /usr/{,s}bin/ifconfig
|
||||
|
||||
cd /sources
|
||||
rm -rf inetutils-2.3
|
|
@ -1002,3 +1002,20 @@ then
|
|||
stop_script "chapter8/8.38-expat.sh"
|
||||
fi
|
||||
|
||||
# A thousand lines already
|
||||
# But I know it won't work
|
||||
# for I know the flaws in my ways
|
||||
# Why am I still doing it?
|
||||
|
||||
# Chapter 8.39
|
||||
# ============
|
||||
echo "Building inetutils"
|
||||
su -c "bash $SCRIPT/chapter8/8.39-inetutils.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter8/8.39-inetutils.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue