6.32. Inetutils-1.5

The Inetutils package contains programs for basic networking.

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/inetutils

6.32.1. Installation of Inetutils

This patch is from Inetutils-cvs, fixing various issues:

patch -Np1 -i ../inetutils-1.5-fixes-2.patch
touch *

Not all programs that come with Inetutils will be installed. However, the Inetutils build system will insist on installing all the man pages anyway. The following commands will correct this situation:

find . -name Makefile.in -exec sed -e '/ftpd.8/d' \
    -e '/inetd.8/d' -e '/logger.1/d' -e '/rexecd.8/d' -e '/rlogind.8/d' \
    -e '/rshd.8/d' -e '/syslog.conf.5 syslogd.8/d' -e '/talkd.8/d' \
    -e '/telnetd.8/d' -e '/tftpd.8/d' -e '/rcp.1/d' -e '/rlogin.1/d' \
    -e '/rsh.1/d' -i.orig {} \;

The ping command is an suid program. For security reasons you might want to compile it with GCC's mudflap full bounds checking:

sed -e 's/^CFLAGS =/& -fmudflap/' \
    -e 's/^LIBS =/& -lmudflap/' -i.orig ping/Makefile.in

By default ping is installed group writtable. This is undesirable to most administrators. To install ping so it is only writtable by the owner (root) issue the following command:

sed 's/4775/4755/' -i.orig2 ping/Makefile.in

Prepare Inetutils for compilation:

./configure --prefix=/usr --libexecdir=/usr/sbin \
    --sysconfdir=/etc --localstatedir=/var \
    --disable-logger --disable-syslogd \
    --disable-whois --disable-servers \
    --disable-rcp --disable-rlogin --disable-rsh

The meaning of the configure options:

--disable-logger

This option prevents Inetutils from installing the logger program, which is used by scripts to pass messages to the System Log Daemon. Do not install it because Util-linux installs a better version later.

--disable-syslogd

This option prevents Inetutils from installing the System Log Daemon, which is installed with the Sysklogd package.

--disable-whois

This option disables the building of the Inetutils whois client, which is out of date. Instructions for a better whois client are in the BLFS book.

--disable-servers

This disables the installation of the various network servers included as part of the Inetutils package. These servers are deemed not appropriate in a basic LFS system. Some are insecure by nature and are only considered safe on trusted networks. More information can be found at http://www.linuxfromscratch.org/blfs/view/svn/basicnet/inetutils.html. Note that better replacements are available for many of these servers.

--disable-rcp --disable-rlogin --disable-rsh

These options disable the building and installing of rcp, rlogin, and rsh. These programs are depreciated and can even be considered dangerous because they require root (suid) privileges to function. Much better replacements for these programs are provided by the OpenSSH package.

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install

Move the ping programs to their FHS-compliant place:

mv -v /usr/bin/ping{,6} /bin

6.32.2. Contents of Inetutils

Installed programs: ftp, ping, ping6, talk, telnet, and tftp

Short Descriptions

ftp

Is the file transfer protocol program

ping, ping6

Sends echo-request packets and reports how long the replies take

talk

Is used to chat with another user

telnet

An interface to the TELNET protocol

tftp

A trivial file transfer program