# If you want to remove libksba or want to clean up old versions before
# proceeding here, skip down to the bottom
# Get the source
cd
test -f installed/libksba-1.6.4.tar.bz2 &&
mv installed/libksba-1.6.4.tar.bz2 .
test ! -f libksba-1.6.4.tar.bz2 &&
wget https://gnupg.org/ftp/gcrypt/libksba/libksba-1.6.4.tar.bz2
# Verify tarball w/ sha256sum:
# (this came from the integrity check page and my gpg-verified tarball)
echo "bbb43f032b9164d86c781ffe42213a83bf4f2fee91455edfa4654521b8b03b\
6b libksba-1.6.4.tar.bz2" | sha256sum -c
# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libksba-*" -exec rm -r {} \;
tar xjvf ~/libksba-1.6.4.tar.bz2
cd libksba-1.6.4
test $UID = 0 && chown -R root:root .
# Read README and if upgrading, NEWS for a summary or ChangeLog for full
# list of changes
# Configure the build for 64-bit
./configure --prefix=/usr --infodir=/usr/info --libdir=/usr/lib64
# Configure the build for anything else
./configure --prefix=/usr --infodir=/usr/info
# Build it
make
# Become root to install it
su
# Install it
make install
ldconfig
# Become yourself again
exit
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/libksba-*.tar.*
mv libksba-1.6.4.tar.bz2 installed/
# If you ever need to uninstall libksba, this should do it:
test -d ~/src/libksba-* && ( cd ~/src/libksba-* ; make uninstall )
su
rm -f /usr/include/ksba.h /usr/info/ksba.info \
/usr/lib/libksba.* /usr/lib/pkgconfig/ksba.pc /usr/share/aclocal/ksba.m4
test -d /usr/lib64/pkgconfig &&
( cd /usr/lib64
rm libksba.* pkgconfig/ksba.pc )
exit
find ~/src -maxdepth 1 -type d -name "libksba-*" -exec rm -r {} \;
rm -f ~/installed/libksba-*.tar.*