From 05386f2b539f64766fea8498c9fd24495e96f146 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Thu, 16 Feb 2023 02:19:44 +0000 Subject: [PATCH] added core/gnutls closes #1976 --- core/gnutls/PKGBUILD | 60 +++++++++++++++++ ...2225C3B46F34879FC8496CD605848ED7E69871.asc | 64 +++++++++++++++++++ ...46CB0F763405A7053556F47A75A648B3F9220C.asc | 14 ++++ 3 files changed, 138 insertions(+) create mode 100644 core/gnutls/PKGBUILD create mode 100644 core/gnutls/keys/pgp/462225C3B46F34879FC8496CD605848ED7E69871.asc create mode 100644 core/gnutls/keys/pgp/5D46CB0F763405A7053556F47A75A648B3F9220C.asc diff --git a/core/gnutls/PKGBUILD b/core/gnutls/PKGBUILD new file mode 100644 index 000000000..6d46293b1 --- /dev/null +++ b/core/gnutls/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Andreas Radke +# Contributor: Jan de Groot + +# ALARM: Kevin Mihelich +# - compile v7 with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 + +pkgname=gnutls +pkgver=3.7.9 +pkgrel=1.1 +pkgdesc="A library which provides a secure layer over a reliable transport layer" +arch=('x86_64') +license=('GPL3' 'LGPL2.1') +url="https://www.gnutls.org/" +options=('!zipman') +depends=('gcc-libs' 'libtasn1' 'readline' 'zlib' 'nettle' 'p11-kit' 'libidn2' + 'zstd' 'libidn2.so' 'libunistring' 'brotli') +makedepends=('tpm2-tss') +checkdepends=('net-tools' 'tpm2-tools') +optdepends=('guile: for use with Guile bindings' + 'tpm2-tss: support for TPM2 wrapped keys') +source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/${pkgname}-${pkgver}.tar.xz{,.sig}) +sha256sums=('aaa03416cdbd54eb155187b359e3ec3ed52ec73df4df35a0edd49429ff64d844' + 'SKIP') +validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno " +#validpgpkeys=('5D46CB0F763405A7053556F47A75A648B3F9220C') # "Zoltan Fridrich " + +build() { + cd ${pkgname}-${pkgver} + [[ $CARCH == "armv7h" ]] && CPPFLAGS+=" -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" + ./configure --prefix=/usr \ + --disable-static \ + --with-idn \ + --with-brotli \ + --with-zstd \ + --with-tpm2 \ + --enable-openssl-compatibility \ + --enable-guile --with-guile-site-dir=no \ + --with-default-trust-store-pkcs11="pkcs11:" +# --enable-ktls \ # breaks testsuite + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +check() { + cd ${pkgname}-${pkgver} + # disable parallel tests: + # FAIL: serv-udp.sh +# make -j1 check + make check +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + + # lots of .png files are put into infodir and are gzipped by makepkg! this needs to be fixed by using !zipman + # gzip -9 all files in infodir and manpages manually + find "$pkgdir/usr/share/info" -name '*.info*' -exec gzip -n -9 {} \; + find "$pkgdir/usr/share/man" -exec gzip -n -9 {} \; +} diff --git a/core/gnutls/keys/pgp/462225C3B46F34879FC8496CD605848ED7E69871.asc b/core/gnutls/keys/pgp/462225C3B46F34879FC8496CD605848ED7E69871.asc new file mode 100644 index 000000000..aebf1c1bf --- /dev/null +++ b/core/gnutls/keys/pgp/462225C3B46F34879FC8496CD605848ED7E69871.asc @@ -0,0 +1,64 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBEpn7i4BEACh0wFe2B53UlIxWOQ3wrK3TIyHpmz9zyMCkdIP7x1b74Z/SxZA +7N8uOk5BQh3GLBnYThJl3MSWOAgpbouyI5Eh9f+yZ27AoBkQcd8JeHckbLvXCxG8 +GPOn1cqSBUsus+6tuG86LI3rudJSKsFZ2uH0amRfJSBBnybrosy5dTn55GIJ3Bbq +WdaTP7uNFWRMzi6DA49m880hJ2qunkuAOX/q8kvKpfRuJCdme9kXZc1l88FqGUEl +dCVYpG+SjdCFP9CmZJRYhF6UuRHSZXyJTw1WMmop7gYj2F3QTsodnf1e9eDju/yW +pzmP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bWpky3xVAtLDqRvvC3rQ9YSNwVkqX4E+Z3J1EXJ +5mp7IlU9Bsu97z13/kx8J2OLwGOaNF/d7NrMnw1+2Ua4S4NDASrs/3iAUSwxWsJI +6Xvt5g2DFaNUtQ6YO2LfCL5QxUJVkZSErqIIDOPOiUDX43UtGYhJNZiI2uMPEWAy +dhZOoXKEe+eH4WbVC4F8xNBERmk36RZRruI2lpslopHWs/qH+QEdPZi5eioQg7qi +dS36aJIHXlCDsMXv+u8U+cMhlive34yRo+WaOlcRRX+mx2fK1VYVwbEd1jQ0D5H9 +7h57JOGBF63kz7T70O7KeP8AKl9ar93FdtZF9g== +=v5n3 +-----END PGP PUBLIC KEY BLOCK----- diff --git a/core/gnutls/keys/pgp/5D46CB0F763405A7053556F47A75A648B3F9220C.asc b/core/gnutls/keys/pgp/5D46CB0F763405A7053556F47A75A648B3F9220C.asc new file mode 100644 index 000000000..bad54efe7 --- /dev/null +++ b/core/gnutls/keys/pgp/5D46CB0F763405A7053556F47A75A648B3F9220C.asc @@ -0,0 +1,14 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEYcRaoxYJKwYBBAHaRw8BAQdA5U8Cb4ZMYCjuAa6tqNKbRxXzycS2iLvNzWki +bGD2fe60JVpvbHRhbiBGcmlkcmljaCA8emZyaWRyaWNAcmVkaGF0LmNvbT6ImgQT +FgoAQhYhBF1Gyw92NAWnBTVW9Hp1pkiz+SIMBQJhxFqjAhsDBQkDwmcABQsJCAcC +AyICAQYVCgkICwIEFgIDAQIeBwIXgAAKCRB6daZIs/kiDGnYAQCiU94/eIspZzzx +V17pylayAEv23s5uKvlGo1Ml1ySrZAEA8Q2rACBmdTpUfoW3LG3MJI0l1XP3kMEu +WDBiM84D2gK4OARhxFqjEgorBgEEAZdVAQUBAQdAxKg6y4A69qT7doTni8/zKuKy +QKXEORZTCNxkcnz3dXoDAQgHiH4EGBYKACYWIQRdRssPdjQFpwU1VvR6daZIs/ki +DAUCYcRaowIbDAUJA8JnAAAKCRB6daZIs/kiDM/EAP0VN87WwaMcNwZcyocG/B9f +419IojEx70PzMIBBlPctAgD/R/qamAlnggADzmS1PCF8+2W6Erc+HV2W/u2+wVJu +7w0= +=6FAm +-----END PGP PUBLIC KEY BLOCK-----