gnutls 3.8.7-1

This commit is contained in:
xhaa123 2024-11-04 19:47:34 +08:00
parent 1e5895e49c
commit 56f6ea8a93
2 changed files with 60 additions and 19 deletions

View File

@ -1,25 +1,44 @@
# Maintainer: Future Linux Team <futurelinux@163.com> # This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <futurelinux@163.com>
pkgname=gnutls pkgname=gnutls
pkgver=3.8.5 pkgver=3.8.7
pkgrel=1 pkgrel=1
pkgdesc="A library which provides a secure layer over a reliable transport layer" pkgdesc="A library which provides a secure layer over a reliable transport layer"
arch=('x86_64') arch=('x86_64')
url="https://www.gnutls.org/" url="https://www.gnutls.org/"
license=('GPL') license=('GPL-3.0-or-later AND LGPL-2.1-or-later')
depends=('glibc' 'gcc-libs' 'gmp' 'libtasn1' 'readline' 'zlib' 'nettle' 'libp11-kit' depends=(
'libidn2' 'zstd' 'libunistring' 'brotli') 'glibc'
'gcc-libs'
'gmp'
'libtasn1'
'readline'
'zlib'
'nettle'
'libp11-kit'
'libidn2'
'zstd'
'libunistring'
'brotli')
options=('!zipman') options=('!zipman')
source=(https://www.gnupg.org/ftp/gcrypt/${pkgname}/v${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) source=(https://www.gnupg.org/ftp/gcrypt/${pkgname}/v${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
sha256sums=(66269a2cfe0e1c2dabec87bdbbd8ab656f396edd9a40dd006978e003cfa52bfc) config)
sha256sums=(fe302f2b6ad5a564bcb3678eb61616413ed5277aaf8e7bf7cdb9a95a18d9f477
22e614510fe52defe8c233ce3e5ead2205739fd967657ce3176ca121f3c562b5)
build() { build() {
cd ${pkgname}-${pkgver} cd ${pkgname}-${pkgver}
${CONFIGURE} \ ${CONFIGURE} \
--disable-static \
--with-idn \ --with-idn \
--with-brotli \ --with-brotli \
--with-zstd \ --with-zstd \
--enable-ktls \
--enable-openssl-compatibility \ --enable-openssl-compatibility \
--with-default-trust-store-pkcs11="pkcs11:" \ --with-default-trust-store-pkcs11="pkcs11:" \
--docdir=/usr/share/doc/${pkgname}-${pkgver} --docdir=/usr/share/doc/${pkgname}-${pkgver}
@ -32,4 +51,17 @@ package() {
cd ${pkgname}-${pkgver} cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install 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 {} \;
find ${pkgdir}/usr/share/man -exec gzip -n -9 {} \;
} }

9
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