# GNU libsigsegv 2.6
# ==================
cd
test -f installed/libsigsegv-2.6.tar.gz &&
mv installed/libsigsegv-2.6.tar.gz .
test ! -f libsigsegv-2.6.tar.gz &&
wget http://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-2.6.tar.gz
# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "7e24993730649d13c6eabc28bd24de35 libsigsegv-2.6.tar.gz" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verified tarball)
echo "15ca1dd9574012b8c4c4d2bf6ba945546114b0b5 libsigsegv-2.6.tar.gz" \
| sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type f -name "libsigsegv-*" -exec rm -r {} \;
tar xzvf ~/libsigsegv-2.6.tar.gz
cd libsigsegv-2.6
test $UID = 0 && chown -R root:root .
## Configure, build, and test it
# If you want to build it as a shared library add --enable-shared to
# the configure line
./configure
make
make check
# Become root to install it
su
## Install it
# If you added --enable-shared above, run 'ldconfig' after 'make install'
# and check /usr/local/lib for old versions of libsigsegv.so.* if this
# is an upgrade.
make install
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .
# If you ever want to uninstall libsigsegv, this should do it:
cd
su
test -d src/libsigsegv-* && ( cd src/libsigsegv-* ; make uninstall )
rm -f /usr/local/include/sigsegv.h
( cd /usr/local/lib ; rm -f libsigsegv.a libsigsegv.so* )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libsigsegv-*" -exec rm -r {} \;
rm -f ~/installed/libsigsegv-*.tar.*