open-isns: update to 0.97.

This commit is contained in:
Christian Neukirchen 2016-10-29 17:37:52 +02:00
parent e04dadbc3a
commit 71cc96a565
2 changed files with 15 additions and 3 deletions

View file

@ -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)

View file

@ -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 <chneukirchen@gmail.com>"
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 <sys/time.h>' include/libisns/isns.h
sed -i 's,<sys/endian.h>,<endian.h>,g' include/libisns/util.h
}
libisns_package() {