The libgcrypt package contains a general purpose crypto library based on the code used in GnuPG. The library provides a high level interface to cryptographic building blocks using an extendable and flexible API.
This package is known to build and work properly using an LFS-7.6 systemd platform.
Download (FTP): ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.2.tar.bz2
Download MD5 sum: b54395a93cb1e57619943c082da09d5f
Download size: 2.4 MB
Estimated disk space required: 38 MB (additional 7 MB SBU for docs)
Estimated build time: 0.3 SBU (additional 0.1 SBU for docs and 0.8 SBU for tests)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libgcrypt
Install libgcrypt by running the following commands:
./configure --prefix=/usr && make
Only info documentation is shipped in the package tarball. If you wish to build alternate formats of the documentation, (you must have texlive-20140525 installed to build the PDF and PostScript documentation), then issue the following commands:
make -C doc pdf ps html && makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi && makeinfo --plaintext -o doc/gcrypt.txt doc/gcrypt.texi
To test the results, issue: make check.
Now, as the root
user:
make install && install -v -dm755 /usr/share/doc/libgcrypt-1.6.2 && install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \ /usr/share/doc/libgcrypt-1.6.2
The shared library needs to be moved to /lib
, and as a result the .so
file in /usr/lib
will need to be recreated. Run the
following command as the root
user:
mv -v /usr/lib/libgcrypt.so.* /lib ln -sfv ../../lib/$(readlink /usr/lib/libgcrypt.so) /usr/lib/libgcrypt.so
If you built the additional documentation, install it by issuing
the following commands as the root
user:
install -v -dm755 /usr/share/doc/libgcrypt-1.6.2/html && install -v -m644 doc/gcrypt.html/* \ /usr/share/doc/libgcrypt-1.6.2/html && install -v -m644 doc/gcrypt_nochunks.html \ /usr/share/doc/libgcrypt-1.6.2 && install -v -m644 doc/gcrypt.{pdf,ps,dvi,txt,texi} \ /usr/share/doc/libgcrypt-1.6.2
--with-capabilities
: This option
enables libcap2 support.
Last updated on 2014-08-23 04:34:36 -0700