# cgilib 0.7
# ==========
# Prerequisites:
# autoconf (if you run autoreconf below)
# automake 1.10
# libtool (if you run autoreconf below)
# Get it
cd
test -f installed/cgilib-0.7.tar.gz &&
mv installed/cgilib-0.7.tar.gz .
test ! -f cgilib-0.7.tar.gz &&
wget http://www.infodrom.org/projects/cgilib/download/cgilib-0.7.tar.gz
# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "cgilib-*" -exec rm -r {} \;
tar xzvf ~/cgilib-0.7.tar.gz
cd cgilib-0.7
test $UID = 0 && chown -R root:root .
# I was unable to build it this last time until I ran this:
# (autoreconf is part of autoconf, it will run automake, libtool, etc.)
touch ./NEWS
autoreconf -f -i
# Configure and build it
./configure --mandir=/usr/local/man
make
# Become root to install it
su
# Removed old shared library files, install the new version
rm -f /usr/local/lib/libcgi.*
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .