# GNU adns 1.6.1
# ==============
# As this is written, there is no Slackware package for adns
# I use the default prefix /usr/local below, but if a Slackware package is
# added in the future, I would change it to /usr to match the paths in that.
#
# Here are 3rd party options for packages if you do not want to install it
# from source yourself or just want to see how they did it. I have not
# tried them.
# Slackers package via slackware.pkgs.org
# ftp.belnet.be hosted package for the salixos.org Slackware-based distribution
# Get the tarball
cd
test -f installed/adns-1.6.1.tar.gz &&
mv -f installed/adns-1.6.1.tar.gz .
test ! -f adns-1.6.1.tar.gz &&
wget https://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-1.6.1.tar.gz
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "adns-*" -exec rm -r {} \;
tar xzvf ~/adns-1.6.1.tar.gz
cd adns-1.6.1
test $UID = 0 && chown -R root:root .
# Configure the build - 64 bit
test $(uname -m) = 'x86_64' && ./configure --libdir=/usr/local/lib64
# Configure the build - anything else
test $(uname -m) != 'x86_64' && ./configure
# Build it
make
# Check the build
make check
# Become root to install it
su
# Install it
make install
ldconfig
# Become your non-root user again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/adns-*.tar.*
mv -f adns-1.6.1.tar.gz installed/
# If you ever want to uninstall adns, this should do it:
# ('make uninstall' as root should be enough)
cd
su
test -d src/adns-* && ( cd src/adns-* ; make uninstall )
( cd /usr/local/bin
rm -f adnsheloex adnshost adnslogres adnsresfilter )
rm -f /usr/local/include/adns.h /usr/local/lib/libadns.*
test -d /usr/local/lib64 && rm -f /usr/local/lib64/libadns.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "adns-*" -exec rm -r {} \;
rm -f ~/installed/adns-*.tar.*