Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
From 883630f76cbf512003b81de25cd96cb75c6cf0f9 Mon Sep 17 00:00:00 2001
|
||||
From: Theo Buehler <tb@openbsd.org>
|
||||
Date: Sun, 21 Nov 2021 21:38:20 +0100
|
||||
Subject: [PATCH] Don't define BIO_get_init() for LibreSSL 3.5+
|
||||
|
||||
BIO_get_init() is available in LibreSSL 3.5 and later. The BIO type
|
||||
will become opaque, so the existing macro will break the build.
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/libevent/libevent/commit/883630f76cbf512003b81de25cd96cb75c6cf0f9]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
openssl-compat.h | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/openssl-compat.h b/openssl-compat.h
|
||||
index a23e34251b..f5de25539f 100644
|
||||
--- a/openssl-compat.h
|
||||
+++ b/openssl-compat.h
|
||||
@@ -40,7 +40,8 @@ static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
|
||||
#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
|
||||
(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) */
|
||||
|
||||
-#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L
|
||||
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L && \
|
||||
+ LIBRESSL_VERSION_NUMBER < 0x30500000L
|
||||
#define BIO_get_init(b) (b)->init
|
||||
#endif
|
||||
|
||||
6
package/libevent/Config.in
Normal file
6
package/libevent/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_LIBEVENT
|
||||
bool "libevent"
|
||||
help
|
||||
Userspace library for handling asynchronous notifications
|
||||
|
||||
http://libevent.org
|
||||
4
package/libevent/libevent.hash
Normal file
4
package/libevent/libevent.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/libevent/libevent/releases/tag/release-2.1.13-stable
|
||||
sha256 f7e9383b8c0baa81b687e5b5eecc01beefaf1b19b64151d95ed61647fe7a315c libevent-2.1.13-stable.tar.gz
|
||||
# locally computed
|
||||
sha256 ff02effc9b331edcdac387d198691bfa3e575e7d244ad10cb826aa51ef085670 LICENSE
|
||||
40
package/libevent/libevent.mk
Normal file
40
package/libevent/libevent.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# libevent
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBEVENT_VERSION = 2.1.13
|
||||
LIBEVENT_SITE = https://github.com/libevent/libevent/releases/download/release-$(LIBEVENT_VERSION)-stable
|
||||
LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
|
||||
LIBEVENT_INSTALL_STAGING = YES
|
||||
LIBEVENT_LICENSE = BSD-3-Clause, OpenBSD
|
||||
LIBEVENT_LICENSE_FILES = LICENSE
|
||||
LIBEVENT_CPE_ID_VALID = YES
|
||||
LIBEVENT_CONF_OPTS = \
|
||||
--disable-libevent-regress \
|
||||
--disable-samples
|
||||
HOST_LIBEVENT_CONF_OPTS = \
|
||||
--disable-libevent-regress \
|
||||
--disable-samples \
|
||||
--disable-openssl
|
||||
|
||||
define LIBEVENT_REMOVE_PYSCRIPT
|
||||
rm $(TARGET_DIR)/usr/bin/event_rpcgen.py
|
||||
endef
|
||||
|
||||
# libevent installs a python script to target - get rid of it if we
|
||||
# don't have python support enabled
|
||||
ifneq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
LIBEVENT_POST_INSTALL_TARGET_HOOKS += LIBEVENT_REMOVE_PYSCRIPT
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
LIBEVENT_DEPENDENCIES += host-pkgconf openssl
|
||||
LIBEVENT_CONF_OPTS += --enable-openssl
|
||||
else
|
||||
LIBEVENT_CONF_OPTS += --disable-openssl
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user