diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-03-19 16:07:58 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-03-19 16:07:58 +0300 |
commit | e2539146d56f6cb812d0c70717b6721a33d15df8 (patch) | |
tree | d6d97cd8174ad093d4019eed43808476b097c424 /dev-libs/libevent | |
parent | fe4a2b5da8ff992d7470b19a31a2b2dd62c570cb (diff) |
libevent-scm with libressl patch
Diffstat (limited to 'dev-libs/libevent')
-rw-r--r-- | dev-libs/libevent/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/libevent/files/libressl.patch | 40 | ||||
-rw-r--r-- | dev-libs/libevent/libevent-scm.ebuild | 59 | ||||
-rw-r--r-- | dev-libs/libevent/metadata.xml | 16 |
4 files changed, 119 insertions, 0 deletions
diff --git a/dev-libs/libevent/Manifest b/dev-libs/libevent/Manifest new file mode 100644 index 0000000..bd35233 --- /dev/null +++ b/dev-libs/libevent/Manifest @@ -0,0 +1,4 @@ +DIST libevent-2.1.8.tar.gz 1026485 BLAKE2B f1ceb740aa776a7c26f52916d771af7f4bb351cadf858ef991ab015e5897e34579c6af1f4ed3b516d5be2ac7cb3a7c27ac9d3020dbb04ac7670118616a264561 SHA512 a2fd3dd111e73634e4aeb1b29d06e420b15c024d7b47778883b5f8a4ff320b5057a8164c6d50b53bd196c79d572ce2639fe6265e03a93304b09c22b41e4c2a17 +EBUILD libevent-2.1.8.ebuild 1702 BLAKE2B ae0008bebd1c156bf718eb1983a46a3ba0f9e3ec72d1d71da46454b89e7b8de02253ce11d5905986b9548250f8afb2ba0e9657dba18729a8a219e1646dd99c91 SHA512 3369117b19423a719fc063f58896cfaa1944796607c2abe12ac663b521d07f7cba6c3400dda0e881925e3ff57c84dcbde6d92a741970711a2c92a3e51b3a1473 +EBUILD libevent-9999.ebuild 1205 BLAKE2B caab3f55b9ad0f1d9dae12bed8799ce42aa13f26da2dfd2de128821a753645820eb0303ba4bc1a907e16489c93a8092ed6c74b70b7dea07876956ffb387a1fb5 SHA512 ecb96696ecccaf8fffbdf147d3d75c8521cf746498bae305280adc4849f9e0dc740b5e364057a1299a196410fe0204d98edfa6058bd9c0a1c821b8f590264931 +MISC metadata.xml 547 BLAKE2B feca63a3b25db4aa0a078b6135188aa7e4250fa9afb207e14c9b02cad83709abe5dace68f5a34cccc0a2a745424c4c044696d0e6021c4c83bcc2666700a8528d SHA512 556eebbb7d05a8234e9705126549520a8b8d553cf6331f353bf7a5bad343b0ad56292dbdda5bccec827772faf07bf17f0163e4b479530eea0832e31d9f17f73a diff --git a/dev-libs/libevent/files/libressl.patch b/dev-libs/libevent/files/libressl.patch new file mode 100644 index 0000000..9f39e5f --- /dev/null +++ b/dev-libs/libevent/files/libressl.patch @@ -0,0 +1,40 @@ +diff --git a/openssl-compat.h b/openssl-compat.h +index bffd2593..4e774216 100644 +--- a/openssl-compat.h ++++ b/openssl-compat.h +@@ -4,35 +4,4 @@ + #include <openssl/bio.h> + #include "util-internal.h" + +-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) +- +-static inline BIO_METHOD *BIO_meth_new(int type, const char *name) +-{ +- BIO_METHOD *biom = calloc(1, sizeof(BIO_METHOD)); +- +- if (biom != NULL) { +- biom->type = type; +- biom->name = name; +- } +- return biom; +-} +- +-#define BIO_meth_set_write(b, f) (b)->bwrite = (f) +-#define BIO_meth_set_read(b, f) (b)->bread = (f) +-#define BIO_meth_set_puts(b, f) (b)->bputs = (f) +-#define BIO_meth_set_ctrl(b, f) (b)->ctrl = (f) +-#define BIO_meth_set_create(b, f) (b)->create = (f) +-#define BIO_meth_set_destroy(b, f) (b)->destroy = (f) +- +-#define BIO_set_init(b, val) (b)->init = (val) +-#define BIO_set_data(b, val) (b)->ptr = (val) +-#define BIO_set_shutdown(b, val) (b)->shutdown = (val) +-#define BIO_get_init(b) (b)->init +-#define BIO_get_data(b) (b)->ptr +-#define BIO_get_shutdown(b) (b)->shutdown +- +-#define TLS_method SSLv23_method +- +-#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) */ +- + #endif /* OPENSSL_COMPAT_H */ diff --git a/dev-libs/libevent/libevent-scm.ebuild b/dev-libs/libevent/libevent-scm.ebuild new file mode 100644 index 0000000..bb6d7dc --- /dev/null +++ b/dev-libs/libevent/libevent-scm.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils git-r3 multilib-minimal + +DESCRIPTION="Library to execute a function when a specific event occurs on a file descriptor" +HOMEPAGE="http://libevent.org/" +EGIT_REPO_URI="https://github.com/libevent/libevent" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="debug libressl +ssl static-libs test +threads" +RESTRICT="test" + +DEPEND=" + ssl? ( + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] ) + libressl? ( =dev-libs/libressl-scm[${MULTILIB_USEDEP}] ) + ) +" +RDEPEND=" + ${DEPEND} + !<=dev-libs/9libs-1.0 +" + +MULTILIB_WRAPPED_HEADERS=( + /usr/include/event2/event-config.h +) +DOCS=( + ChangeLog{,-1.4,-2.0} +) + +src_prepare() { + default + use libressl && eapply "${FILESDIR}/libressl.patch" + eautoreconf +} + +multilib_src_configure() { + # fix out-of-source builds + mkdir -p test || die + + ECONF_SOURCE="${S}" \ + econf \ + --disable-samples \ + $(use_enable debug debug-mode) \ + $(use_enable debug malloc-replacement) \ + $(use_enable ssl openssl) \ + $(use_enable static-libs static) \ + $(use_enable test libevent-regress) \ + $(use_enable threads thread-support) +} + +multilib_src_install_all() { + einstalldocs + prune_libtool_files +} diff --git a/dev-libs/libevent/metadata.xml b/dev-libs/libevent/metadata.xml new file mode 100644 index 0000000..6036c10 --- /dev/null +++ b/dev-libs/libevent/metadata.xml @@ -0,0 +1,16 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>jer@gentoo.org</email> + <name>Jeroen Roovers</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:niels_provos:libevent</remote-id> + <remote-id type="sourceforge">levent</remote-id> + <remote-id type="github">libevent/libevent</remote-id> + </upstream> + <use> + <flag name="debug">Support runtime debug mode and malloc hooks (for programmers)</flag> + </use> +</pkgmetadata> |