gnutls: disable hardware acceleration

* set system CARootCertificates file
* enable pk11 support
This commit is contained in:
Gerasim Troeglazov
2019-11-23 23:32:16 +10:00
parent fb9e9fcf5f
commit 67e31955fc

View File

@@ -10,7 +10,7 @@ COPYRIGHT="2000-2018 Free Software Fundation Inc.
2004-2008 Simon Josefsson
2000-2004 Nikos Mavrogiannopoulos"
LICENSE="GNU LGPL v2.1"
REVISION="1"
REVISION="2"
SOURCE_URI="https://www.gnupg.org/ftp/gcrypt/gnutls/v${portVersion%\.*}/gnutls-$portVersion.tar.xz"
CHECKSUM_SHA256="b1f3ca67673b05b746a961acf2243eaae0ffe658b6a6494265c648e7c7812293"
SOURCE_DIR="gnutls-$portVersion"
@@ -49,6 +49,7 @@ REQUIRES="
lib:libidn2$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libnettle$secondaryArchSuffix
lib:libp11_kit$secondaryArchSuffix
lib:libtasn1$secondaryArchSuffix
lib:libunistring$secondaryArchSuffix
lib:libz$secondaryArchSuffix
@@ -83,6 +84,7 @@ REQUIRES_bin="
lib:libidn2$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libnettle$secondaryArchSuffix
lib:libp11_kit$secondaryArchSuffix
lib:libtasn1$secondaryArchSuffix
lib:libunistring$secondaryArchSuffix
lib:libz$secondaryArchSuffix
@@ -108,6 +110,7 @@ REQUIRES_devel="
devel:libgcrypt$secondaryArchSuffix
devel:libgpg_error$secondaryArchSuffix
devel:libnettle$secondaryArchSuffix >= 7
devel:libp11_kit$secondaryArchSuffix
devel:libtasn1$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
@@ -128,6 +131,7 @@ BUILD_REQUIRES="
devel:libiconv$secondaryArchSuffix
devel:libidn2$secondaryArchSuffix
devel:libnettle$secondaryArchSuffix >= 7
devel:libp11_kit$secondaryArchSuffix
devel:libtasn1$secondaryArchSuffix
devel:libunistring$secondaryArchSuffix
devel:libz$secondaryArchSuffix
@@ -174,8 +178,10 @@ defineDebugInfoPackage gnutls$secondaryArchSuffix "${debugList[@]}"
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir" \
--without-p11-kit --disable-nls \
--enable-openssl-compatibility
--enable-openssl-compatibility \
--disable-hardware-acceleration \
--disable-nls \
--with-default-trust-store-file=/system/data/ssl/CARootCertificates.pem
make $jobArgs
}