Linux HOWTOs

About | Home | Search


HOWTO: whatmask
Description: Given a netmask and/or IP, outputs information about the network
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# whatmask 1.2
# ============
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

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
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/whatmask-*.tar.*
mv whatmask-1.2.tar.gz installed/

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>