gnutls: adopted port

This commit is contained in:
Tim Biermann 2023-08-27 17:47:38 +02:00
parent bfb199e3e9
commit f3aa3b468a
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 30 additions and 17 deletions

View File

@ -17,6 +17,7 @@ drwxr-xr-x root/root usr/include/gnutls/
-rw-r--r-- root/root usr/include/gnutls/gnutlsxx.h
-rw-r--r-- root/root usr/include/gnutls/ocsp.h
-rw-r--r-- root/root usr/include/gnutls/openpgp.h
-rw-r--r-- root/root usr/include/gnutls/openssl.h
-rw-r--r-- root/root usr/include/gnutls/pkcs11.h
-rw-r--r-- root/root usr/include/gnutls/pkcs12.h
-rw-r--r-- root/root usr/include/gnutls/pkcs7.h
@ -28,6 +29,10 @@ drwxr-xr-x root/root usr/include/gnutls/
-rw-r--r-- root/root usr/include/gnutls/x509-ext.h
-rw-r--r-- root/root usr/include/gnutls/x509.h
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libgnutls-openssl.la
lrwxrwxrwx root/root usr/lib/libgnutls-openssl.so -> libgnutls-openssl.so.27.0.2
lrwxrwxrwx root/root usr/lib/libgnutls-openssl.so.27 -> libgnutls-openssl.so.27.0.2
-rwxr-xr-x root/root usr/lib/libgnutls-openssl.so.27.0.2
-rwxr-xr-x root/root usr/lib/libgnutls.la
lrwxrwxrwx root/root usr/lib/libgnutls.so -> libgnutls.so.30.36.0
lrwxrwxrwx root/root usr/lib/libgnutls.so.30 -> libgnutls.so.30.36.0

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/VVs/7Shn8o+oNcCJ+cC44a/Iq9eLWW0XgssQdu9GXBTG8xkfmi6wdEglZUbq1Cpfx6LutuMZx2ZONmbnGL6Pwc=
SHA256 (Pkgfile) = dd0e03b9b13d90448fdb9d13c5d50ea627ea57a1969a559d34bfabf9789fd18f
SHA256 (.footprint) = d9139e67dd0ca5adc1ed8f6809b03f91fd30421e70295c5adcea819f93b07bea
RWSE3ohX2g5d/ernTc/K1nhDFmZxZM2EDyuYLHYDiBJ4lyHFAP1KdgbKff5CDDMYewNGLoHiMnVISoKmij03TpnML4JE6Wtn1gI=
SHA256 (Pkgfile) = 795028323110daf771ee57eaad59d21bfc2f0a0de4c0907a25f56a3b8a70a091
SHA256 (.footprint) = 346111de8a1f896d3a62c2c5eae5bc6b6a37c8d0dcdf25fb395915b41dfe237c
SHA256 (gnutls-3.8.1.tar.xz) = ba8b9e15ae20aba88f44661978f5b5863494316fe7e722ede9d069fe6294829c

View File

@ -1,26 +1,34 @@
# Description: A library that provides a secure layer over a reliable transport layer
# URL: https://gnutls.org
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: libidn2 nettle p11-kit
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libunistring nettle p11-kit
# Optional: brotli libidn2
name=gnutls
version=3.8.1
release=1
release=2
source=(https://www.gnupg.org/ftp/gcrypt/$name/v${version:0:3}/$name-$version.tar.xz)
build() {
cd $name-$version
cd $name-$version
./configure \
--prefix=/usr \
--with-default-trust-store-pkcs11="pkcs11:" \
--with-included-unistring \
--disable-guile \
--without-tpm
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
prt-get isinst brotli && PKGMK_GNUTLS+=' --with-brotli'
prt-get isinst libidn2 && PKGMK_GNUTLS+=' --with-idn'
rm -r $PKG/usr/share/{doc,info,locale}
./configure $PKGMK_GNUTLS \
--prefix=/usr \
--with-default-trust-store-pkcs11="pkcs11:" \
--enable-openssl-compatibility \
--with-zstd \
--disable-guile \
--disable-static \
--without-tpm \
--without-tpm2
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share/{doc,info,locale}
}