# netcat 1.10
# ===========
# Slackware 8.1, 9.0, and 9.1's 'netcat' packages include version 1.10
# Netcat is so old (last updated in 1996) I'm not going to bother with
# anything in here for cleaning up old versions and such. If you don't
# specifically need this util for something, don't install it.
cd
test -f installed/nc110.tgz && mv installed/nc110.tgz .
test ! -f nc110.tgz &&
wget http://www.atstake.com/research/tools/network_utilities/nc110.tgz
test -d /usr/local/src/nc110 && rm -r /usr/local/src/nc110
mkdir -p /usr/local/src/nc110
cd /usr/local/src/nc110
tar xzvf ~/nc110.tgz
chown -R root.root .
# Apply this little patch that will make it buildable:
wget -nc http://englanders.cc/pub/linux/patches/nc110.patch &&
patch -p1 < nc110.patch
make linux
removepkg netcat
install -m 500 nc /usr/local/bin/
cd
mkdir -p -m 0700 installed
rm -f installed/nc???.tgz installed/nc110.patch
mv nc110.tgz installed/