whatmask - Given a netmask and/or IP, outputs information about the network ChangeLog

HOWTO


# whatmask 1.2 (2003-11-14)
# ============
# Similar:
# ipcalc
# subnetcalc

# 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

# Verify tarball w/ md5sum:
echo "26aeff74dbba70262ccd426e681dcf4a  whatmask-1.2.tar.gz" | md5sum -c

# Verify tarball w/ gpg:
( gpg --list-keys E8882FE3 > /dev/null 2>&1 || gpg --recv-keys E8882FE3 ) &&
wget -nc http://downloads.laffeycomputer.com/current_builds/whatmask/\
whatmask-1.2.tar.gz.asc &&
  gpg --verify whatmask-1.2.tar.gz.asc && rm whatmask-1.2.tar.gz.asc

# 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.*

List of HOWTOs

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