libressl: add host variant
PATCH v2 1/14 libressl: add host variant
If a package can be compiled against libressl, the package can build against a host variant as well.
---
Changes v1 -> v2:
- Added this patch to the beginning of this series.
package/libressl/libressl.mk | 1 + 1 file changed, 1 insertion(+)
package/libressl/libressl.mk +1 -0
@@ -18,3 +18,4 @@ LIBRESSL_POST_INSTALL_TARGET_HOOKS += LIBRESSL_REMOVE_BIN endif $(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
2.13.3
PATCH v2 2/14 libwebsockets: support libressl
---
Changes v1 -> v2:
- Changed host-openssl to host-libressl.
package/libwebsockets/libwebsockets.mk | 3 +++ 1 file changed, 3 insertions(+)
package/libwebsockets/libwebsockets.mk +3 -0
@@ -24,6 +24,9 @@ endif ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +LIBWEBSOCKETS_DEPENDENCIES += libressl host-libressl +LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=ON else LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF endif
Signature · 1 line
2.13.3
PATCH v2 3/14 libevent: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/libevent/libevent.mk | 3 +++ 1 file changed, 3 insertions(+)
package/libevent/libevent.mk +3 -0
@@ -26,6 +26,9 @@ endif ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBEVENT_DEPENDENCIES += host-pkgconf openssl LIBEVENT_CONF_OPTS += --enable-openssl +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +LIBEVENT_DEPENDENCIES += host-pkgconf libressl +LIBEVENT_CONF_OPTS += --enable-openssl else LIBEVENT_CONF_OPTS += --disable-openssl endif
Signature · 1 line
2.13.3
PATCH v2 4/14 libcurl: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- Removed trailing period from patch name.
package/libcurl/libcurl.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
package/libcurl/libcurl.mk +10 -0
@@ -40,6 +40,16 @@ LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes LIBCURL_CONF_ENV += LD_LIBRARY_PATH=$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)/lib:/usr/lib LIBCURL_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr \ --with-ca-path=/etc/ssl/certs +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +LIBCURL_DEPENDENCIES += libressl +LIBCURL_CONF_ENV += ac_cv_lib_crypto_CRYPTO_lock=yes +# configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up +# native stuff during the rest of configure when target == host. +# Fix it by setting LD_LIBRARY_PATH to something sensible so those libs +# are found first. +LIBCURL_CONF_ENV += LD_LIBRARY_PATH=$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)/lib:/usr/lib +LIBCURL_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr \ + --with-ca-path=/etc/ssl/certs else ifeq ($(BR2_PACKAGE_GNUTLS),y) LIBCURL_CONF_OPTS += --with-gnutls=$(STAGING_DIR)/usr LIBCURL_DEPENDENCIES += gnutls
Signature · 1 line
2.13.3
PATCH v2 5/14 libsrtp: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/libsrtp/libsrtp.mk | 3 +++ 1 file changed, 3 insertions(+)
package/libsrtp/libsrtp.mk +3 -0
@@ -28,6 +28,9 @@ LIBSRTP_DEPENDENCIES = host-pkgconf ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx) LIBSRTP_DEPENDENCIES += openssl LIBSRTP_CONF_OPTS += --enable-openssl +else ifeq ($(BR2_PACKAGE_LIBRESSL)x$(BR2_STATIC_LIBS),yx) +LIBSRTP_DEPENDENCIES += libressl +LIBSRTP_CONF_OPTS += --enable-openssl else LIBSRTP_CONF_OPTS += --disable-openssl endif
Signature · 1 line
2.13.3
PATCH v2 6/14 apr-uti: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/apr-util/apr-util.mk | 3 +++ 1 file changed, 3 insertions(+)
package/apr-util/apr-util.mk +3 -0
@@ -49,6 +49,9 @@ endif ifeq ($(BR2_PACKAGE_OPENSSL),y) APR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr" APR_UTIL_DEPENDENCIES += openssl +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +APR_UTIL_DEPENDENCIES += libressl +APR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr" else APR_UTIL_CONF_OPTS += --without-crypto endif
Signature · 1 line
2.13.3
PATCH v2 7/14 openssh: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- Removed trailing period from patch name.
package/openssh/Config.in | 7 ++++--- package/openssh/openssh.mk | 9 ++++++++- 2 files changed, 12 insertions(+), 4 deletions(-)
package/openssh/Config.in +4 -3
@@ -1,10 +1,11 @@ config BR2_PACKAGE_OPENSSH bool "openssh" depends on BR2_USE_MMU # fork() - select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBRESSL select BR2_PACKAGE_ZLIB help - A free version of the SSH protocol suite of network connectivity - tools. The standard 'ssh', 'sshd', 'scp', and friends. + A free version of the SSH protocol suite of network + connectivity tools. The standard 'ssh', 'sshd', 'scp', and + friends. http://www.openssh.com/
package/openssh/openssh.mk +8 -1
@@ -30,7 +30,14 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) OPENSSH_CONF_OPTS += --without-pie endif -OPENSSH_DEPENDENCIES = zlib openssl +OPENSSH_DEPENDENCIES = zlib + +ifeq ($(BR2_PACKAGE_OPENSSL),y) +OPENSSH_DEPENDENCIES += openssl +endif +ifeq ($(BR2_PACKAGE_LIBRESSL),y) +OPENSSH_DEPENDENCIES += libressl +endif ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y) OPENSSH_DEPENDENCIES += cryptodev-linux
Signature · 1 line
2.13.3
PATCH v2 8/14 snmppp: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/snmppp/Config.in | 2 +- package/snmppp/snmppp.mk | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)
package/snmppp/Config.in +1 -1
@@ -21,7 +21,7 @@ config BR2_PACKAGE_SNMPPP_LOGGING config BR2_PACKAGE_SNMPPP_SNMPV3 bool "enable SNMPv3" default y - select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBRESSL help Enable optional support for SNMP++. This selects OpenSSL.
package/snmppp/snmppp.mk +5 -0
@@ -15,7 +15,12 @@ SNMPPP_LICENSE_FILES = src/v3.cpp ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y) SNMPPP_CONF_OPTS += --enable-snmpv3 +ifeq ($(BR2_PACKAGE_OPENSSL),y) SNMPPP_DEPENDENCIES += openssl +endif +ifeq ($(BR2_PACKAGE_LIBRESSL),y) +SNMPPP_DEPENDENCIES += libressl +endif else SNMPPP_CONF_OPTS += --disable-snmpv3 endif
Signature · 1 line
2.13.3
PATCH v2 9/14 syslog-ng: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/syslog-ng/Config.in | 2 +- package/syslog-ng/syslog-ng.mk | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-)
package/syslog-ng/Config.in +1 -1
@@ -7,7 +7,7 @@ config BR2_PACKAGE_SYSLOG_NG select BR2_PACKAGE_EVENTLOG select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_PCRE - select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBRESSL help syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text,
package/syslog-ng/syslog-ng.mk +7 -1
@@ -9,12 +9,18 @@ SYSLOG_NG_SITE = https://github.com/balabit/syslog-ng/releases/download/syslog-n SYSLOG_NG_LICENSE = LGPL-2.1+ (syslog-ng core), GPL-2.0+ (modules) SYSLOG_NG_LICENSE_FILES = COPYING SYSLOG_NG_DEPENDENCIES = host-bison host-flex host-pkgconf \ - eventlog libglib2 openssl pcre + eventlog libglib2 pcre # rabbit-mq needs -lrt SYSLOG_NG_CONF_ENV = LIBS=-lrt SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \ --disable-java --disable-java-modules --disable-mongodb +ifeq ($(BR2_PACKAGE_OPENSSL),y) +SYSLOG_NG_DEPENDENCIES += openssl +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +SYSLOG_NG_DEPENDENCIES += libressl +endif + # We override busybox's S01logging init script ifeq ($(BR2_PACKAGE_BUSYBOX),y) SYSLOG_NG_DEPENDENCIES += busybox
Signature · 1 line
2.13.3
PATCH v2 10/14 netsnmp: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/netsnmp/netsnmp.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/netsnmp/netsnmp.mk +7 -0
@@ -60,6 +60,13 @@ NETSNMP_CONF_OPTS += \ --with-openssl=$(STAGING_DIR)/usr/include/openssl \ --with-security-modules="tsm,usm" \ --with-transports="DTLSUDP,TLSTCP" +# LibreSSL +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +NETSNMP_DEPENDENCIES += libressl +NETSNMP_CONF_OPTS += \ + --with-openssl=$(STAGING_DIR)/usr/include/openssl \ + --with-security-modules="tsm,usm" \ + --with-transports="DTLSUDP,TLSTCP" ifeq ($(BR2_STATIC_LIBS),y) # openssl uses zlib, so we need to explicitly link with it when static NETSNMP_CONF_ENV += LIBS=-lz
Signature · 1 line
2.13.3
PATCH v2 11/14 ntp: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/ntp/0004-libressl-support.patch | 106 ++++++++++++++++++++++++++++++++ package/ntp/Config.in | 2 +- package/ntp/ntp.mk | 9 ++- 3 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 package/ntp/0004-libressl-support.patch
package/ntp/0004-libressl-support.patch new file +106 -0
@@ -0,0 +1,106 @@ +From a3bd714d3028241c7546ded6ae6b93887a17a7fa Mon Sep 17 00:00:00 2001 +From: Adam Duskett <[email protected]> +Date: Wed, 12 Jul 2017 09:14:38 -0400 +Subject: [PATCH] add libressl support + +Fix some preprocessor macros to add libressl support. +Upstream-Status: Pending +http://bugs.ntp.org/show_bug.cgi?id=3401#c3 + +Signed-off-by: Adam Duskett <[email protected]> +--- + include/libssl_compat.h | 4 +++- + libntp/libssl_compat.c | 2 +- + libntp/ssl_init.c | 2 +- + ports/winnt/include/msvc_ssl_autolib.h | 2 +- + sntp/libevent/test/regress_ssl.c | 4 ++-- + 5 files changed, 8 insertions(+), 6 deletions(-) + +diff --git a/include/libssl_compat.h b/include/libssl_compat.h +index 2a3697c..eede47b 100644 +--- a/include/libssl_compat.h ++++ b/include/libssl_compat.h +@@ -25,8 +25,10 @@ + #include "openssl/rsa.h" + + #ifndef OPENSSL_VERSION_NUMBER ++#ifndef LIBRESSL_VERSION_NUMBER + #define OPENSSL_VERSION_NUMBER SSLEAY_VERSION_NUMBER + #endif ++#endif + + #ifndef OPENSSL_VERSION_TEXT + #define OPENSSL_VERSION_TEXT SSLEAY_VERSION_TEXT +@@ -37,7 +39,7 @@ + #endif + + /* ----------------------------------------------------------------- */ +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + /* ----------------------------------------------------------------- */ + + # include <openssl/objects.h> +diff --git a/libntp/libssl_compat.c b/libntp/libssl_compat.c +index afe4d07..dae7017 100644 +--- a/libntp/libssl_compat.c ++++ b/libntp/libssl_compat.c +@@ -26,7 +26,7 @@ + /* ----------------------------------------------------------------- */ + + /* ----------------------------------------------------------------- */ +-#if defined(OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L ++#if defined(OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + /* ----------------------------------------------------------------- */ + + #include "libssl_compat.h" +diff --git a/libntp/ssl_init.c b/libntp/ssl_init.c +index bebf6e1..0a27050 100644 +--- a/libntp/ssl_init.c ++++ b/libntp/ssl_init.c +@@ -21,7 +21,7 @@ + + int ssl_init_done; + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + + static void + atexit_ssl_cleanup(void) +diff --git a/ports/winnt/include/msvc_ssl_autolib.h b/ports/winnt/include/msvc_ssl_autolib.h +index 688b5e2..393e1c9 100644 +--- a/ports/winnt/include/msvc_ssl_autolib.h ++++ b/ports/winnt/include/msvc_ssl_autolib.h +@@ -85,7 +85,7 @@ + * request in the object file, depending on the SSL version and the + * build variant. + */ +-# if OPENSSL_VERSION_NUMBER >= 0x10100000L ++# if OPENSSL_VERSION_NUMBER >= 0x10100000L && ! defined(LIBRESSL_VERSION_NUMBER) + # pragma comment(lib, "libcrypto" LTAG_SIZE LTAG_RTLIB LTAG_DEBUG ".lib") + # else + # pragma comment(lib, "libeay32" LTAG_RTLIB LTAG_DEBUG ".lib") +diff --git a/sntp/libevent/test/regress_ssl.c b/sntp/libevent/test/regress_ssl.c +index 226a2a3..dc761dc 100644 +--- a/sntp/libevent/test/regress_ssl.c ++++ b/sntp/libevent/test/regress_ssl.c +@@ -61,7 +61,7 @@ + + #include <string.h> + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) || defined(LIBRESSL_VERSION_NUMBER) + #define OpenSSL_version_num SSLeay + #endif /* OPENSSL_VERSION_NUMBER */ + +@@ -130,7 +130,7 @@ getcert(void) + X509_set_subject_name(x509, name); + X509_set_issuer_name(x509, name); + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + X509_time_adj(X509_get_notBefore(x509), 0, &now); + now += 3600; + X509_time_adj(X509_get_notAfter(x509), 0, &now); +-- +2.13.0 +
package/ntp/Config.in +1 -1
@@ -1,7 +1,7 @@ config BR2_PACKAGE_NTP bool "ntp" select BR2_PACKAGE_LIBEVENT - select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBRESSL help Network Time Protocol suite/programs. Provides things like ntpd, ntpdate, ntpq, etc...
package/ntp/ntp.mk +8 -1
@@ -7,7 +7,7 @@ NTP_VERSION_MAJOR = 4.2 NTP_VERSION = $(NTP_VERSION_MAJOR).8p10 NTP_SITE = https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR) -NTP_DEPENDENCIES = host-pkgconf libevent openssl $(if $(BR2_PACKAGE_BUSYBOX),busybox) +NTP_DEPENDENCIES = host-pkgconf libevent $(if $(BR2_PACKAGE_BUSYBOX),busybox) NTP_LICENSE = NTP NTP_LICENSE_FILES = COPYRIGHT NTP_CONF_ENV = ac_cv_lib_md5_MD5Init=no
@@ -24,6 +24,13 @@ NTP_CONF_OPTS = \ # 0003-ntpq-fpic.patch NTP_AUTORECONF = YES +ifeq ($(BR2_PACKAGE_OPENSSL),y) +NTP_DEPENDENCIES += openssl +endif +ifeq ($(BR2_PACKAGE_LIBRESSL),y) +NTP_DEPENDENCIES += libressl +endif + ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y) NTP_CONF_OPTS += --with-locfile=linux else
Signature · 1 line
2.13.3
PATCH v2 12/14 postgresql: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/postgresql/postgresql.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
package/postgresql/postgresql.mk +5 -1
@@ -54,7 +54,11 @@ POSTGRESQL_CONF_ENV += ZIC="$(ZIC)" endif ifeq ($(BR2_PACKAGE_OPENSSL),y) -POSTGRESQL_DEPENDENCIES += openssl +BR2_PACKAGE_OPENSSL += openssl +POSTGRESQL_CONF_OPTS += --with-openssl +endif +ifeq ($(BR2_PACKAGE_LIBRESSL),y) +BR2_PACKAGE_OPENSSL += libressl POSTGRESQL_CONF_OPTS += --with-openssl endif
Signature · 1 line
2.13.3
PATCH v2 13/14 swupdate: support libressl
In reply to Adam DuskettAlso clean up formatting issues in Config.in while at it.
---
Changes v1 -> v2:
- Removed 0002-support-libressl.patch as the patch was approved upstream.
package/swupdate/Config.in | 38 ++++++++++++++++++++------------------ package/swupdate/swupdate.mk | 4 ++++ 2 files changed, 24 insertions(+), 18 deletions(-)
package/swupdate/Config.in +20 -18
@@ -9,15 +9,16 @@ config BR2_PACKAGE_SWUPDATE swupdate provides a reliable way to update the software on an embedded system. - swupdate is highly configurable to fit the targets requirements and - to minimize the footprint. The provided default configuration file - BR2_PACKAGE_SWUPDATE_CONFIG will enable swupdate with an embedded - webserver, a parser and a handler for raw NAND or NOR flash. + swupdate is highly configurable to fit the targets + requirements and to minimize the footprint. The provided + default configuration file BR2_PACKAGE_SWUPDATE_CONFIG will + enable swupdate with an embedded webserver, a parser and a + handler for raw NAND or NOR flash. - The default configuration file builds a reasonable firmware update - system with minimal external dependencies in my mind. If you like to - use your own modified configuration, you have to select the - necessary packages manually: + The default configuration file builds a reasonable firmware + update system with minimal external dependencies in my mind. + If you like to use your own modified configuration, you have + to select the necessary packages manually: * Select BR2_PACKAGE_LUA or BR2_PACKAGE_LUAJIT if you want to have Lua support.
@@ -25,13 +26,14 @@ config BR2_PACKAGE_SWUPDATE Note that for LuaJIT support, you need to set CONFIG_LUAVERSION="jit-5.1". * Select BR2_LIBCURL if you want to use the download feature. - * Select BR2_PACKAGE_OPENSSL is you want to add encryption support. + * Select BR2_PACKAGE_OPENSSL is you want to add encryption + support. * Select BR2_PACKAGE_MTD if you want to use swupdate with UBI partitions. - * Select BR2_PACKAGE_ZLIB if you want to deal with gzip compressed - archives. - * Select BR2_PACKAGE_UBOOT_TOOLS and BR2_PACKAGE_ZLIB to add support - for setting the U-Boot environment. + * Select BR2_PACKAGE_ZLIB if you want to deal with gzip + compressed archives. + * Select BR2_PACKAGE_UBOOT_TOOLS and BR2_PACKAGE_ZLIB to add + support for setting the U-Boot environment. * Select BR2_PACKAGE_ZEROMQ to add support for using a remote handler.
@@ -45,8 +47,8 @@ config BR2_PACKAGE_SWUPDATE_CONFIG help Path to the swupdate configuration file. - I you wish to use your own modified swupdate configuration file - specify the config file location with this option. + I you wish to use your own modified swupdate configuration + file specify the config file location with this option. config BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE bool "install default website"
@@ -54,9 +56,9 @@ config BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE help Install the provided website to /var/www/swupdate. - This is necessary if you want to run swupdate with the embedded - webserver and do not provide an own website to be installed to - /var/www/swupdate. + This is necessary if you want to run swupdate with the + embedded webserver and do not provide an own website to be + installed to /var/www/swupdate. endif comment "swupdate needs a toolchain w/ threads"
package/swupdate/swupdate.mk +4 -0
@@ -59,6 +59,10 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y) SWUPDATE_DEPENDENCIES += openssl SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +SWUPDATE_DEPENDENCIES += libressl +SWUPDATE_MAKE_ENV += HAVE_LIBSSL=y +SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=y else SWUPDATE_MAKE_ENV += HAVE_LIBSSL=n SWUPDATE_MAKE_ENV += HAVE_LIBCRYPTO=n
Signature · 1 line
2.13.3
PATCH v2 14/14 sngrep: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- None.
package/sngrep/sngrep.mk | 3 +++ 1 file changed, 3 insertions(+)
package/sngrep/sngrep.mk +3 -0
@@ -20,6 +20,9 @@ SNGREP_CONF_OPTS += --disable-unicode ifeq ($(BR2_PACKAGE_OPENSSL),y) SNGREP_DEPENDENCIES += openssl SNGREP_CONF_OPTS += --with-openssl --without-gnutls +else ifeq ($(BR2_PACKAGE_LIBRESSL),y) +SNGREP_DEPENDENCIES += libressl +SNGREP_CONF_OPTS += --with-openssl --without-gnutls # gnutls support also requires libgcrypt else ifeq ($(BR2_PACKAGE_GNUTLS)$(BR2_PACKAGE_LIBGCRYPT),yy) SNGREP_DEPENDENCIES += gnutls
Signature · 1 line
2.13.3
PATCH v3 15/15 janus-gateway: support libressl
In reply to Adam Duskett---
Changes v1 -> v2:
- Fixed malformed 0003-support-libressl.patch.
Changes v2 -> v3:
- Removed 0003-support-libressl.patch as the patch was approved upstream.
package/janus-gateway/Config.in | 2 +- package/janus-gateway/janus-gateway.mk | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-)
package/janus-gateway/Config.in +1 -1
@@ -8,7 +8,7 @@ menuconfig BR2_PACKAGE_JANUS_GATEWAY select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBNICE select BR2_PACKAGE_LIBSRTP - select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_LIBRESSL help Janus is an open source, general purpose, WebRTC gateway designed and developed by Meetecho.
package/janus-gateway/janus-gateway.mk +8 -1
@@ -11,7 +11,14 @@ JANUS_GATEWAY_LICENSE_FILES = COPYING # ding-libs provides the ini_config library JANUS_GATEWAY_DEPENDENCIES = host-pkgconf jansson libnice \ - libsrtp host-gengetopt libglib2 openssl + libsrtp host-gengetopt libglib2 + +ifeq ($(BR2_PACKAGE_OPENSSL),y) +JANUS_GATEWAY_DEPENDENCIES += openssl +endif +ifeq ($(BR2_PACKAGE_LIBRESSL),y) +JANUS_GATEWAY_DEPENDENCIES += libressl +endif # Straight out of the repository, no ./configure, and we also patch # configure.ac.
Signature · 1 line
2.13.3