mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "dnstop-*" -exec rm -r {} \;
tar xzvf ~/dnstop-20070510.tar.gz
cd dnstop-20070510
test $UID = 0 && chown -R root:root .
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/dnstop-*.tar.*
mv dnstop-20070510.tar.gz installed/
# Run 'man dnstop' and 'dnstop' with no options for usage information
# If you ever want to uninstall dnstop, this should do it:
cd
su
test -d src/dnstop-* && ( cd src/dnstop-* ; make uninstall )
rm -f /usr/local/bin/dnstop /usr/local/man/man8/dnstop.8
exit
find ~/src -maxdepth 1 -type d -name "dnstop-*" -exec rm -r {} \;
rm -f ~/installed/dnstop-*.tar.*