# The SourceForge project page says "As of 2007-08-18 18:03, this
# project is no longer under active development.", though version
# 0.9.9.9 was released 2008-12-08.
cd
test -f installed/mhash-0.9.9.9.tar.bz2 &&
mv installed/mhash-0.9.9.9.tar.bz2 .
test ! -f mhash-0.9.9.9.tar.bz2 &&
wget http://downloads.sf.net/mhash/mhash-0.9.9.9.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "mhash-*" -exec rm -r {} \;
tar xjvf ~/mhash-0.9.9.9.tar.bz2
cd mhash-0.9.9.9
test $UID = 0 && chown -R root:root .
# Configure and build it
./configure --prefix=/usr --mandir=/usr/man
make
# Become root to remove old version and install it
su
# Remove Slackware package
test -x /sbin/removepkg && /sbin/removepkg mhash
# Remove old library files, install it
rm -f /usr/lib/libmhash.*
make install
ldconfig
# If you ever want to uninstall mhash, this should do it:
cd
su
test -d src/mhash-* && ( cd src/mhash-* ; make uninstall )
rm -f /usr/lib/libmhash.* /usr/man/man3/mhash.3
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "mhash-*" -exec rm -r {} \;
rm -f ~/installed/mhash-*.tar.*