cd
test -f installed/tftp-hpa-5.0.tar.bz2 &&
mv installed/tftp-hpa-5.0.tar.bz2 .
test ! -f tftp-hpa-5.0.tar.bz2 &&
wget http://www.kernel.org/pub/software/network/tftp/tftp-hpa-5.0.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "28beef704a4ef62bc2dead005198ef4c tftp-hpa-5.0.tar.bz2" | md5sum -c
# Verify tarball w/ md5sum:
# (this also came from my gpg-verified tarball)
echo "7f541f085a4af5a87bf86a249421b13a30150597 tftp-hpa-5.0.tar.bz2" \
| sha1sum -c
## TFTP server
#
## If you want to start it out of inetd, add something like the following,
## all on one line, to /etc/inetd.conf, then restart inetd
## ('/etc/rc.d/rc.inetd restart'):
# tftp dgram udp wait root /usr/sbin/in.tftpd in.tftpd
# -s /tftpboot -U 077 -r blksize
#
## If you don't want to start it out of inetd, add something to
## /etc/rc.d/rc.local to start it on boot-up in standalone mode:
# if [ -x /usr/sbin/in.tftpd ]; then
# echo "Starting in.tftpd..."
# /usr/sbin/in.tftpd -l -s /tftpboot -U 077 -r blksize
# fi
#
# If you have a firewall between whoever will be tftp-ing and the machine
# running the tftpd server, make sure you open up 69/udp
# Become yourself again
exit
cd
rm -f installed/tftp-hpa-*.tar.*
mv tftp-hpa-5.0.tar.bz2 installed/
# If you ever want to uninstall tftp, this should do it:
su
rm -f /usr/bin/tftp /usr/sbin/in.tftpd \
/man/man1/tftp.1 /man/man8/in.tftpd.8 /man/man8/tftpd.8
exit
find ~/src -maxdepth 1 -type d -name "atk-*" -exec rm -r {} \;
rm -f ~/installed/atk-*.tar.*