core/gnutls to 3.8.1-2

This commit is contained in:
Kevin Mihelich 2023-09-30 16:28:56 +00:00
parent 3054aa8122
commit bc80b9998b
2 changed files with 26 additions and 5 deletions

View file

@ -6,7 +6,7 @@
pkgname=gnutls
pkgver=3.8.1
pkgrel=1
pkgrel=2
pkgdesc="A library which provides a secure layer over a reliable transport layer"
arch=('x86_64')
license=('GPL3' 'LGPL2.1')
@ -17,9 +17,13 @@ depends=('glibc' 'gcc-libs' 'gmp' 'libtasn1' 'readline' 'zlib' 'nettle'
makedepends=('tpm2-tss')
checkdepends=('net-tools' 'tpm2-tools')
optdepends=('tpm2-tss: support for TPM2 wrapped keys')
source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.tar.xz{,.sig})
backup=(etc/gnutls/config
etc/modules-load.d/gnutls.conf)
source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/${pkgname}-${pkgver}.tar.xz{,.sig}
config)
sha256sums=('ba8b9e15ae20aba88f44661978f5b5863494316fe7e722ede9d069fe6294829c'
'SKIP')
'SKIP'
'22e614510fe52defe8c233ce3e5ead2205739fd967657ce3176ca121f3c562b5')
validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno <ueno@unixuser.org>"
#validpgpkeys=('5D46CB0F763405A7053556F47A75A648B3F9220C') # "Zoltan Fridrich <zfridric@redhat.com>"
@ -33,8 +37,8 @@ build() {
--with-zstd \
--with-tpm2 \
--enable-openssl-compatibility \
--with-default-trust-store-pkcs11="pkcs11:"
# --enable-ktls \ # breaks testsuite
--with-default-trust-store-pkcs11="pkcs11:" \
--enable-ktls
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
@ -51,6 +55,14 @@ package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
# prepare to load tls module required for ktls
install -dm755 "$pkgdir"/etc/modules-load.d
echo "#tls" > "$pkgdir"/etc/modules-load.d/gnutls.conf
# disable ktls by default for now
install -dm755 "$pkgdir"/etc/gnutls
install -Dm644 "${srcdir}"/config "$pkgdir"/etc/gnutls/config
# 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 {} \;

9
core/gnutls/config Normal file
View file

@ -0,0 +1,9 @@
# https://gnutls.org/manual/html_node/Enabling_002fDisabling-system_002facceleration-protocols.html#Enabling-KTLS
#
# GnuTLS is built with -enable-ktls configuration, KTLS is disabled by default.
# This can be enabled by setting ktls = true in [global] section.
#
[global]
ktls = false
#ktls = true