net-tools - Linux NET-3 utilities (arp, hostname, ifconfig, ...) ChangeLog

HOWTO


# net-tools 1.60
# ==============
# Prerequisites:
# gettext

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 {} \;

# This is totally unnecessary, but if you want to clean up the tcpip/tcpip1
# package file of net-tools files that you've just replaced, run this:
test -f /var/adm/packages/tcpip && FNAME=/var/adm/packages/tcpip
test -z "$FNAME" &&
test -f /var/adm/packages/tcpip1 && FNAME=/var/adm/packages/tcpip1
test -z "$FNAME" &&
FNAME=`find /var/adm/packages -type f -name "tcpip*" 2> /dev/null | head -1`
test -s $FNAME &&
cat $FNAME | \
  egrep -v "^sbin/arp$" | \
  egrep -v "^bin/hostname$" | \
  egrep -v "^sbin/ifconfig$" | \
  egrep -v "^bin/netstat$" | \
  egrep -v "^sbin/plipconfig$" | \
  egrep -v "^sbin/rarp$" | \
  egrep -v "^sbin/route$" | \
  egrep -v "^usr/sbin/slattach$" | \
  egrep -v "^sbin/ipmaddr$" | \
  egrep -v "^sbin/iptunnel$" | \
  egrep -v "^sbin/mii-tool$" | \
  egrep -v "^usr/man/man8/arp.8.gz$" | \
  egrep -v "^usr/man/man1/dnsdomainname.1.gz$" | \
  egrep -v "^usr/man/man1/domainname.1.gz$" | \
  egrep -v "^usr/man/man5/ethers.5.gz$" | \
  egrep -v "^usr/man/man1/hostname.1.gz$" | \
  egrep -v "^usr/man/man8/ifconfig.8.gz$" | \
  egrep -v "^usr/man/man8/mii-tool.8.gz$" | \
  egrep -v "^usr/man/man8/netstat.8.gz$" | \
  egrep -v "^usr/man/man1/nisdomainname.1.gz$" | \
  egrep -v "^usr/man/man8/plipconfig.8.gz$" | \
  egrep -v "^usr/man/man8/rarp.8.gz$" | \
  egrep -v "^usr/man/man8/route.8.gz$" | \
  egrep -v "^usr/man/man8/slattach.8.gz$" | \
  egrep -v "^usr/man/man1/ypdomainname.1.gz$" > $FNAME.new
test -s $FNAME.new &&
( mkdir -p -m 0700 ~/backup/packages
   mv -f $FNAME $FNAME.`date +%Y%m%d`
   mv $FNAME.`date +%Y%m%d` ~/backup/packages/
   mv -f $FNAME.new $FNAME )
unset FNAME

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/net-tools-*.tar.*
mv net-tools-1.60.tar.bz2 installed/

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2005-11-02 9:22am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]