cd
test -f installed/conntrack-1.00beta1.tar.bz2 &&
mv installed/conntrack-1.00beta1.tar.bz2 .
test ! -f conntrack-1.00beta1.tar.bz2 &&
wget ftp://ftp.netfilter.org/pub/conntrack/conntrack-1.00beta1.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "conntrack-*" -exec rm -r {} \;
tar xjvf ~/conntrack-1.00beta1.tar.bz2
cd conntrack-1.00beta1
test $UID = 0 && chown -R root:root .
./configure
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/conntrack-*.tar.*
mv conntrack-1.00beta1.tar.bz2 installed/
# If you ever want to uninstall conntrack, this should do it:
cd
su
test -d src/conntrack-* && ( cd src/conntrack-* ; make uninstall )
rm -f /usr/local/man/man8/conntrack.8 /usr/local/sbin/conntrack
test -d /usr/local/lib/conntrack && rm -r /usr/local/lib/conntrack
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "conntrack-*" -exec rm -r {} \;
rm -f ~/installed/conntrack-*.tar.*