This commit is contained in:
YellowJacketLinux 2024-10-16 16:57:11 -07:00
parent 30a3cefc7c
commit 47287365fb
2 changed files with 68 additions and 0 deletions

56
22-gnutls.sh Normal file
View File

@ -0,0 +1,56 @@
#!/bin/bash
if [ "`whoami`" == "root" ]; then
echo "Danger, Will Robinson!"
echo "Do not execute me as r00t"
exit 1
fi
TARBALL="gnutls-3.8.7.1.tar.xz"
DNL="https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-3.8.7.1.tar.xz"
SHA256="9ca0ddaccce28a74fa18d738744190afb3b0daebef74e6ad686bf7bef99abd60"
[ -d gnutls-3.8.7 ] && rm -rf gnutls-3.8.7
if [ ! -f ${TARBALL} ]; then
wget ${DNL}
if [ $? -ne 0 ]; then
echo "Could not retrieve ${DNL}"
echo "Sorry."
exit 1
fi
fi
CHECK="`sha256sum ${TARBALL} |awk ' { print $1 } ' `"
if [ "${CHECK}" != "${SHA256}" ]; then
echo "${TARBALL} does not match expected SHA256. Sorry."
exit 1
fi
tar -Jxf ${TARBALL} && cd gnutls-3.8.7
./configure --prefix=/usr \
--docdir=/usr/share/doc/gnutls-3.8.7.1 \
--with-default-trust-store-pkcs11="pkcs11:" \
--disable-dsa
if [ $? -ne 0 ]; then
echo "Configure script failed for gnutls. Sorry."
exit 1
fi
make
if [ $? -ne 0 ]; then
echo "Failed building gnutls. Sorry."
exit 1
fi
echo "running make check"
sed '/ocsp-must-staple-connection/d' -i tests/Makefile
make check > gnutls.check.log 2>&1
echo ""
echo "Inspect gnutls-3.8.7/gnutls.check.log and if all looks good, as root:"
echo
echo " cd gnutls-3.8.7"
echo " make install"
echo

View File

@ -203,4 +203,16 @@ Justification: Needed for GnuTLS. Depends upon which.
* Script: [`21-libseccomp.sh`](21-libseccomp.sh)
* Status: Script Untested
Dependency Twenty-Two: GnuTLS
-----------------------------
Justification: Needed for GnuPG. Also is the preferred TLS stack for YJL. Build
requires nettle, libunistring, libtasn1, p11-kit, brotli, libidn2, libseccomp.
Runtime requires make-ca.
* Script: [`22-gnutls.sh`](22-gnutls.sh)
* Status: Script Untested
* Note: Note yet built with DANE support, or Trousers support.