# Get it
cd
test -f installed/arping-2.19.tar.gz && mv installed/arping-2.19.tar.gz .
test ! -f arping-2.19.tar.gz &&
wget http://www.habets.pp.se/synscan/files/arping-2.19.tar.gz
# Extract it
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "arping-*" -exec rm -r {} \;
tar xzvf ~/arping-2.19.tar.gz
cd arping-2.19
test $UID = 0 && chown -R root:root .
# Configure the build
./configure --mandir=/usr/local/man
# Build it
make
# Install it
su -c "make install"
# Run it as root, with the full path /usr/local/sbin/arping so
# you know you're not running the other one from iputils
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/arping-*.tar.*
mv arping-2.19.tar.gz installed/
# If you ever want to uninstall arping, this should do it:
cd
su
test -d src/arping-* && ( cd src/arping-* ; make uninstall )
rm -f /usr/local/sbin/arping /usr/local/man/man8/arping.8
exit
find ~/src -maxdepth 1 -type d -name "arping-*" -exec rm -r {} \;
rm -f ~/installed/arping-*.tar.*