diff --git a/srcpkgs/open-isns/patches/libressl.patch b/srcpkgs/open-isns/patches/libressl.patch new file mode 100644 index 00000000000..7732295f239 --- /dev/null +++ b/srcpkgs/open-isns/patches/libressl.patch @@ -0,0 +1,11 @@ +--- pki.c.orig ++++ pki.c +@@ -30,7 +30,7 @@ + #endif + /* OpenSSL 1.1 made a lot of structures opaque, so we need to + * define the 1.1 wrappers in previous versions. */ +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + #define EVP_PKEY_base_id(o) ((o)->type) + #define EVP_PKEY_get0_DSA(o) ((o)->pkey.dsa) + static EVP_MD_CTX *EVP_MD_CTX_new(void) diff --git a/srcpkgs/open-isns/template b/srcpkgs/open-isns/template index 28367e68f4d..7f79cacfd94 100644 --- a/srcpkgs/open-isns/template +++ b/srcpkgs/open-isns/template @@ -1,7 +1,7 @@ # Template file for 'open-isns' pkgname=open-isns -version=0.96 -revision=3 +version=0.97 +revision=1 build_style=gnu-configure configure_args="--enable-shared" makedepends="libressl-devel" @@ -12,10 +12,11 @@ maintainer="Christian Neukirchen " license="LGPL-2.1" homepage="https://github.com/open-iscsi/open-isns" distfiles="https://github.com/open-iscsi/open-isns/archive/v${version}.tar.gz" -checksum=487fd0d87826423ea99dc159826d0b654a5da016ed670d4395a77bfa4f62e2ec +checksum=c1c9ae740172e55a1ff33bc22151ec3d916562bf5d60c8420cd64496343683a9 post_extract() { sed -i '1i#include ' include/libisns/isns.h + sed -i 's,,,g' include/libisns/util.h } libisns_package() {