The IPRoute2 package contains programs for basic and advanced IPV4-based networking.
The arpd binary included in this package is dependent on Berkeley DB. Because arpd is not a very common requirement on a base Linux system, remove the dependency on Berkeley DB by applying the sed command below. If the arpd binary is needed, instructions for compiling Berkeley DB can be found in the BLFS Book at http://www.linuxfromscratch.org/blfs/view/svn/server/databases.html#db.
sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
This patch adds the ability to update the LIBDIR path:
patch -Np1 -i ../iproute2-2.6.16-060323-libdir-1.patch
Compile the package:
make CC="gcc ${BUILD64}" LIBDIR=/usr/lib64 SBINDIR=/sbin
The meaning of the make option:
This ensures that the IPRoute2 binaries will install into /sbin. This is the correct location according to the FHS, because some of the IPRoute2 binaries are used by the CLFS-Bootscripts package.
This package does not come with a test suite.
Install the package:
make LIBDIR=/usr/lib64 SBINDIR=/sbin install