libgcrypt - Cryptographic library based on the code from GnuPG ChangeLog

HOWTO


# libgcrypt 1.10.2
# ================
# Slackware 14.0: libgcrypt 1.5.0
# Slackware 14.1: libgcrypt 1.5.3
# Slackware 14.2: libgcrypt 1.7.1
# Slackware 15.0: libgcrypt 1.9.4

# If you want to uninstall libgcrypt or clean up files from an old
# version before you install the new one, skip down to the bottom

# Prerequisites:
# libgpg-error

# Get the source
cd
test -f installed/libgcrypt-1.10.2.tar.bz2 &&
mv installed/libgcrypt-1.10.2.tar.bz2 .
test ! -f libgcrypt-1.10.2.tar.bz2 &&
wget https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.2.tar.bz2

# Verify tarball w/ sha256sum:
# (this came from the integrity check page and my gpg-verified tarball)
echo "3b9c02a004b68c256add99701de00b383accccf37177e0d6c58289664cce0c\
03  libgcrypt-1.10.2.tar.bz2" | sha256sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 4F25E3B6 > /dev/null 2>&1 || gpg --recv-keys 4F25E3B6 ) &&
wget -nc https://gnupg.org/ftp/gcrypt/libgcrypt/\
libgcrypt-1.10.2.tar.bz2.sig &&
  gpg --verify libgcrypt-1.10.2.tar.bz2.sig &&
   rm libgcrypt-1.10.2.tar.bz2.sig

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libgcrypt-*" -exec rm -r {} \;
tar xjvf ~/libgcrypt-1.10.2.tar.bz2
cd libgcrypt-1.10.2
test $UID = 0 && chown -R root:root .

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info --libdir=/usr/lib64

# Configure the build for anything else
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --infodir=/usr/info

# Build it
make

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libgcrypt

# Install it
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Saved the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/libgcrypt-*.tar.*
mv libgcrypt-1.10.2.tar.bz2 installed/


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

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2023-09-12 1:39pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]