cd
test -f installed/net-tools-1.60.tar.bz2 &&
mv installed/net-tools-1.60.tar.bz2 .
test ! -f net-tools-1.60.tar.bz2 &&
wget http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-1.60.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "net-tools-*" -exec rm -r {} \;
tar xjvf ~/net-tools-1.60.tar.bz2
cd net-tools-1.60
test $UID = 0 && chown -R root:root .
# If you use gcc >= 3.4.x, apply this patch:
wget -nc http://englanders.cc/pub/linux/patches/net-tools-1.60-gcc34.patch &&
patch -p1 < net-tools-1.60-gcc34.patch
# Configure it so you don't have to answer all of the questions. If you want
# to configure in support for things that I leave out, run 'make config'.
wget -nc http://englanders.cc/pub/linux/patches/net-tools-1.60-config.patch &&
patch -p1 < net-tools-1.60-config.patch
make
# Become root to install it
su
# Zap the compressed man pages that come with Slackware's tcpip package
# (the source will install new uncompressed man pages):
rm -f /usr/man/man8/arp.8.gz /usr/man/man1/dnsdomainname.1.gz \
/usr/man/man1/domainname.1.gz /usr/man/man5/ethers.5.gz \
/usr/man/man1/hostname.1.gz /usr/man/man8/ifconfig.8.gz \
/usr/man/man8/mii-tool.8.gz /usr/man/man8/netstat.8.gz \
/usr/man/man1/nisdomainname.1.gz /usr/man/man8/plipconfig.8.gz \
/usr/man/man8/rarp.8.gz /usr/man/man8/route.8.gz \
/usr/man/man8/slattach.8.gz /usr/man/man1/ypdomainname.1.gz
# If you want to back up each of the existing net-tools utilities with a
# *.old file, run 'make install', otherwise run 'make update'.
make update
# Slackware's slattach is in /usr/sbin
rm -f /usr/sbin/slattach
ln -s /sbin/slattach /usr/sbin/slattach
# If you don't need the internationalization files that were just installed,
# remove them:
find /usr/share/locale -type f -name net-tools.mo -exec rm {} \;