diff --git a/srcpkgs/stunnel/patches/stunnel-libressl.patch b/srcpkgs/stunnel/patches/stunnel-libressl.patch index c2e89b3907..6ed92b067c 100644 --- a/srcpkgs/stunnel/patches/stunnel-libressl.patch +++ b/srcpkgs/stunnel/patches/stunnel-libressl.patch @@ -45,3 +45,23 @@ NOEXPORT int cert_check_subject(CLI *c, X509_STORE_CTX *callback_ctx) { X509 *cert=X509_STORE_CTX_get_current_cert(callback_ctx); NAME_LIST *ptr; +--- src/options.c.orig ++++ src/options.c +@@ -2450,7 +2450,7 @@ + /* sslVersion */ + switch(cmd) { + case CMD_BEGIN: +-#if OPENSSL_VERSION_NUMBER>=0x10100000L ++#if OPENSSL_VERSION_NUMBER>=0x10100000L && OPENSSL_VERSION_NUMBER<0x20000000L + section->client_method=(SSL_METHOD *)TLS_client_method(); + section->server_method=(SSL_METHOD *)TLS_server_method(); + #else +@@ -2462,7 +2462,7 @@ + if(strcasecmp(opt, "sslVersion")) + break; + if(!strcasecmp(arg, "all")) { +-#if OPENSSL_VERSION_NUMBER>=0x10100000L ++#if OPENSSL_VERSION_NUMBER>=0x10100000L && OPENSSL_VERSION_NUMBER<0x20000000L + section->client_method=(SSL_METHOD *)TLS_client_method(); + section->server_method=(SSL_METHOD *)TLS_server_method(); + #else diff --git a/srcpkgs/stunnel/template b/srcpkgs/stunnel/template index ef9fa618b2..226e229854 100644 --- a/srcpkgs/stunnel/template +++ b/srcpkgs/stunnel/template @@ -1,17 +1,18 @@ # Template file for 'stunnel' pkgname=stunnel -version=5.17 -revision=2 +version=5.18 +revision=1 build_style=gnu-configure build_pie=yes configure_args="--enable-ipv6 --with-ssl=${XBPS_CROSS_BASE}/usr" +hostmakedepends="perl" makedepends="libressl-devel" short_desc="SSL encryption wrapper" maintainer="Christian Neukirchen " license="GPL-2" homepage="https://www.stunnel.org/" distfiles="https://www.stunnel.org/downloads/$pkgname-$version.tar.gz" -checksum=c3e79e582621a0827125e35e1c00450190104fc02dc3c5274cb02b05859fd472 +checksum=0532c0a2f8de3da1ab625e384146501ce5936fac63d01561c3a9bf652b692317 post_install() { rm ${DESTDIR}/usr/share/man/man8/stunnel.??.8