Add 8.38 - Build expat

This commit is contained in:
Aditya 2023-01-12 11:25:28 +05:30
parent 4361a1c931
commit e8eee69cb0
2 changed files with 54 additions and 0 deletions

View 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

View file

@ -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