libevent: update to 2.1.10.

This commit is contained in:
Helmut Pozimski 2019-05-27 13:59:16 +02:00
parent b46fb12b73
commit 421ee61642
2 changed files with 3 additions and 26 deletions

View file

@ -1,23 +0,0 @@
--- openssl-compat.h.orig 2018-04-23 16:26:06.271112397 +0200
+++ openssl-compat.h 2018-04-23 16:27:06.157202883 +0200
@@ -1,7 +1,11 @@
#ifndef OPENSSL_COMPAT_H
#define OPENSSL_COMPAT_H
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070000fL
+#define BIO_get_init(b) (b)->init
+#define BIO_get_data(b) (b)->ptr
+#define BIO_get_shutdown(b) (b)->shutdown
+#elif (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
{
@@ -30,6 +34,6 @@ static inline BIO_METHOD *BIO_meth_new(i
#define TLS_method SSLv23_method
-#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
+#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) */
#endif /* OPENSSL_COMPAT_H */

View file

@ -1,7 +1,7 @@
# Template file for 'libevent' # Template file for 'libevent'
pkgname=libevent pkgname=libevent
version=2.1.8 version=2.1.10
revision=6 revision=1
wrksrc="${pkgname}-${version}-stable" wrksrc="${pkgname}-${version}-stable"
build_style=gnu-configure build_style=gnu-configure
makedepends="libressl-devel" makedepends="libressl-devel"
@ -10,7 +10,7 @@ maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="http://libevent.org/" homepage="http://libevent.org/"
license="3-clause-BSD" license="3-clause-BSD"
distfiles="https://github.com/libevent/libevent/releases/download/release-${version}-stable/libevent-${version}-stable.tar.gz" distfiles="https://github.com/libevent/libevent/releases/download/release-${version}-stable/libevent-${version}-stable.tar.gz"
checksum=965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2 checksum=e864af41a336bb11dab1a23f32993afe963c1f69618bd9292b89ecf6904845b0
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE