Install Netkit-base by running the following commands:
root:netkit-base-0.16# ./configure --prefix=/usr
root:netkit-base-0.16# make -e
root:netkit-base-0.16# make install
root:netkit-base-0.16# cd etc.sample
root:netkit-base-0.16/etc.sample# cp services protocols /etc
Install Net-tools by running the following commands:
root:net-tools-1.56# cd /bin
root:bin# rm sh; ln -s bash203 sh
root:bin# cd /usr/src/net-tools-1.56
root:net-tools-1.56# make
root:net-tools-1.56# make install
root:net-tools-1.56# cd /bin
root:bin# rm sh; ln -s bash sh
If you're getting errors related to illegal character 45 in some variable name during the compilation download a patch from http://www.linuxfromscratch.org/download/net-tools-1.56.patch.gz
Install this patch by running the following command:
root:glibc-build# patch -Np1 -i ../net-tools-1.56.patch
You might have noticed that we don't use the compiler optimizations for this package. The reason is that overriding the CFLAGS variable causes compilation problems. You would have to edit the Makefile file and add the proper values to the CFLAGS variable and then compile the package. If you want to do that it's up to you. I don't think it's worth the trouble though. The programs in this package aren't that big that optimization would have any noticable effect on the performance.