Initial commit of LFS notes and scripts.
This commit is contained in:
35
lfs-scripts/inetutils.sh
Normal file
35
lfs-scripts/inetutils.sh
Normal file
@@ -0,0 +1,35 @@
|
||||
# Set the package we're building.
|
||||
package="inetutils-2.5"
|
||||
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 '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 && make check && make install
|
||||
mv -v /usr/{,s}bin/ifconfig
|
||||
|
||||
|
||||
# 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