cd
test -f installed/putty-0.58.tar.gz && mv installed/putty-0.58.tar.gz .
test ! -f putty-0.58.tar.gz &&
wget http://the.earth.li/~sgtatham/putty/latest/putty-0.58.tar.gz
# Verify tarball w/ sha1sum:
# (this one came from my gpg-verified tarball)
echo "25504ca4fe4e3b1a8d96d9c50be5eb6cd370f018 putty-0.58.tar.gz" | \
sha1sum -c
cd /usr/local/src
find -type d -maxdepth 1 -name "putty-*" -exec rm -r {} \;
tar xzvf ~/putty-0.58.tar.gz
cd putty-0.58
chown -R root:root .
cd unix
make -f Makefile.gtk
make -f Makefile.gtk install INSTALL_PROGRAM="install -s"
cd
mkdir -p -m 0700 installed
rm -f installed/putty-*.tar.*
mv putty-0.58.tar.gz installed/
# If you ever want to uninstall putty, run this:
( cd /usr/local/bin ; rm -f plink pscp psftp pterm putty puttygen puttytel )
( cd /usr/local/man/man1 ; rm -f plink.1 pterm.1 putty.1 puttygen.1 \
puttytel.1 )
find /usr/local/src -type d -maxdepth 1 -name "putty-*" -exec rm -r {} \;
rm -f ~/installed/putty-*.tar.*
# and there may be "dotfiles" in your home directory too