Enable all features of wolfSSL
Would it be possible to enable all features of wolfSSL for future releases?
I tried to add an AUR package wolfclu 0.1.5-0
. It requires more features of wolfSSL to be enabled.
Currently it's built using CMake, but with that, after activating a few more CMake options, there was one define WOLFSSL_ALT_NAMES
that I couldn't manage to set.
Without that, one check of wolfCLU fails.
To do a full build I used a modified version of the wolfSSL PKGBUILD.
pkgname=wolfssl
pkgver=5.7.0
pkgrel=1
pkgdesc='Lightweight, portable, C-language-based SSL/TLS library'
arch=('x86_64')
url='https://www.wolfssl.com/'
license=('GPL-2.0-or-later')
makedepends=('autoconf')
depends=('glibc')
provides=("libwolfssl.so")
source=(
$pkgname-$pkgver-stable.tar.gz::https://github.com/$pkgname/$pkgname/archive/refs/tags/v$pkgver-stable.tar.gz
https://github.com/$pkgname/$pkgname/releases/download/v$pkgver-stable/$pkgname-$pkgver-stable.tar.gz.asc
)
sha512sums=('52cc7bdda7e3cfbea7c60fad1e2b1565d7057607bbb66014ef03643a75e78777d10d53799fba314bab37e245b7e8a60e29c6f4177070ed44536a898e04b27b44'
'SKIP')
b2sums=('a85342264022d9f1ab3cd49bd282cbd9f2ef4fa90eda69ebd145a412f1557ed6d0ca5620f5a916fe1bf8c546c1d3ef0d01c80ec90722d49059683620ccbcdf1b'
'SKIP')
validpgpkeys=(
A2A48E7BCB96C5BECB987314EBC80E415CA29677 # wolfSSL <secure@wolfssl.com>
)
_build_directory=wolfssl-${pkgver}-stable
prepare() {
cd "${srcdir}/${_build_directory}"
./autogen.sh
./configure --prefix=/usr --enable-all
}
build() {
cd "${srcdir}/${_build_directory}"
make -j8
}
check() {
cd "${srcdir}/wolfssl-${pkgver}-stable"
${srcdir}/${_build_directory}/wolfcrypt/test/testwolfcrypt
}
package() {
cd "${srcdir}/${_build_directory}"
DESTDIR="${pkgdir}" make install
install -vDm 644 ./{README,ChangeLog}.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
With that PKGBUILD the compilation of wolfCLU and running its tests worked.