Bash script to build LFS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
999 B

#!/usr/bin/env bash
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
[ -e /tmp/inetutils_make_check.log ] && rm /tmp/inetutils_make_check.log
if ! make check | tee /tmp/inetutils_make_check.log
then
grep ^FAIL /tmp/inetutils_make_check.log | cut --delimiter=' ' --fields=2 | while IFS= read -r failure
do
case ${failure} in
libls.sh)
echo "One test named libls.sh is known to fail sometimes."
continue
;;
*)
echo "Failed on FAIL"
exit 1
;;
esac
done
fi
make install
mv -v /usr/{,s}bin/ifconfig