mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
44 lines
900 B
Bash
44 lines
900 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
[ -d inetutils-${inetutils_version} ] && rm -rf inetutils-${inetutils_version}
|
|
|
|
tar -Jxf ${inetutils_tarball}
|
|
|
|
cd inetutils-${inetutils_version}
|
|
|
|
sed -i 's/def HAVE_TERMCAP_TGETENT/ 1/' telnet/telnet.c
|
|
|
|
./configure --prefix=/usr \
|
|
--bindir=/usr/bin \
|
|
--localstatedir=/var \
|
|
--disable-logger \
|
|
--disable-whois \
|
|
--disable-rcp \
|
|
--disable-rexec \
|
|
--disable-rlogin \
|
|
--disable-rsh \
|
|
--disable-servers
|
|
|
|
make
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed building inetutils"
|
|
fi
|
|
|
|
echo "running inetutils make check"
|
|
make check > ${GLSOURCES}/inetutils.check 2>&1
|
|
|
|
make install
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed installing inetutils"
|
|
fi
|
|
|
|
mv -v /usr/{,s}bin/ifconfig
|
|
|
|
|