# 2023-10-11:
# - Web site OK, but unable to connect to downloads.laffeycomputer.com:80
# (I still have it from many years ago)
# - Still compiles for me
# If you ever want to remove whatmask, skip down to the bottom
# Get the tarball
cd
test -f installed/whatmask-1.2.tar.gz && mv installed/whatmask-1.2.tar.gz .
test ! -f whatmask-1.2.tar.gz &&
wget http://downloads.laffeycomputer.com/current_builds/whatmask/\
whatmask-1.2.tar.gz
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "whatmask-*" -exec rm -r {} \;
tar xzvf ~/whatmask-1.2.tar.gz
cd whatmask-1.2
test $UID = 0 && chown -R root.root .
# Configure the build
./configure --mandir=/usr/local/man
# Build it
make
# Install it as root
su -c "make install"
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/whatmask-*.tar.*
mv whatmask-1.2.tar.gz installed/
# If you ever want to uninstall whatmask, this should do it:
cd
su
test -d src/whatmask-* && ( cd src/whatmask-* ; make uninstall )
rm -f /usr/local/bin/whatmask /usr/local/man/man1/whatmask.1
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "whatmask-*" -exec rm -r {} \;
rm -f ~/installed/whatmask-*.tar.*