Linux HOWTOs

About | Home | Search


HOWTO: libassuan
Description: Library for IPC between recent GnuPG components
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# libassuan 1.0.1
# ===============
cd
test -f installed/libassuan-1.0.1.tar.bz2 &&
 mv installed/libassuan-1.0.1.tar.bz2 .
test ! -f libassuan-1.0.1.tar.bz2 &&
 wget ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-1.0.1.tar.bz2

# Verify tarball w/ md5sum:
# (this came from my gpg and sha1sum verified tarball)
echo "6109ea5c8c34ee5591afbd4618dd5ab4  libassuan-1.0.1.tar.bz2" | md5sum -c

# Verify tarball w/ sha1sum:
echo "4e12bd924e01c31c7d4c021b465c94ec55b1cb17  libassuan-1.0.1.tar.bz2" | \
 sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 1CE0C630 > /dev/null 2>&1 || gpg --recv-keys 1CE0C630 ) &&
 wget -nc ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-1.0.1.tar.bz2.sig &&
  gpg --verify libassuan-1.0.1.tar.bz2.sig && rm libassuan-1.0.1.tar.bz2.sig

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libassuan-*" -exec rm -r {} \;
tar xjvf ~/libassuan-1.0.1.tar.bz2
cd libassuan-1.0.1
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

( cd /usr/local/lib ; rm -f libassuan.* libassuan-pth.* )
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/libassuan-*.tar.*
mv libassuan-1.0.1.tar.bz2 installed/


# If you ever need to uninstall libassuan, this should do it:
test -d ~/src/libassuan-* && ( cd ~/src/libassuan-* ; make uninstall )
su
( cd /usr/local/lib ; rm -f libassuan.* libassuan-pth.* )
rm -f /usr/local/bin/libassuan-config /usr/local/include/assuan.h \
 /usr/local/share/aclocal/libassuan.m4 /usr/local/share/info/assuan.info
exit
find ~/src -maxdepth 1 -type d -name "libassuan-*" -exec rm -r {} \;
rm -f ~/installed/libassuan-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>