mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
From 9a1ea149d3451d4edf32c5f0f0d1b4fecfbff4a2 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Tue, 6 Aug 2019 22:11:57 +0200
|
||||
Subject: [PATCH] config.mk: add WITH_TLS_STATIC_LIB_DEPS
|
||||
|
||||
Add WITH_TLS_STATIC_LIB_DEPS to allow the user to give openssl static
|
||||
libraries dependencies such as -lz or -latomic
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/eclipse/mosquitto/pull/1371]
|
||||
---
|
||||
config.mk | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config.mk b/config.mk
|
||||
index 6c23bef..c9e2daf 100644
|
||||
--- a/config.mk
|
||||
+++ b/config.mk
|
||||
@@ -23,6 +23,10 @@
|
||||
# password authentication at all.
|
||||
WITH_TLS:=yes
|
||||
|
||||
+# Use this variable to give openssl static libraries dependencies (such as -lz
|
||||
+# or -latomic) that can be retrieved for example by pkg-config
|
||||
+WITH_TLS_STATIC_LIB_DEPS:=
|
||||
+
|
||||
# Comment out to disable TLS/PSK support in the broker and client. Requires
|
||||
# WITH_TLS=yes.
|
||||
# This must be disabled if using openssl < 1.0.
|
||||
@@ -202,7 +206,7 @@ ifeq ($(WITH_TLS),yes)
|
||||
LIB_CPPFLAGS:=$(LIB_CPPFLAGS) -DWITH_TLS
|
||||
PASSWD_LDADD:=$(PASSWD_LDADD) -lcrypto
|
||||
CLIENT_CPPFLAGS:=$(CLIENT_CPPFLAGS) -DWITH_TLS
|
||||
- STATIC_LIB_DEPS:=$(STATIC_LIB_DEPS) -lssl -lcrypto
|
||||
+ STATIC_LIB_DEPS:=$(STATIC_LIB_DEPS) -lssl -lcrypto $(WITH_TLS_STATIC_LIB_DEPS)
|
||||
|
||||
ifeq ($(WITH_TLS_PSK),yes)
|
||||
BROKER_CPPFLAGS:=$(BROKER_CPPFLAGS) -DWITH_TLS_PSK
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# Locally calculated after checking gpg signature
|
||||
sha256 a3d5822c249f6a6e13311b1b09eff6807ea01608a5a77934e1769842e9d146ef mosquitto-1.6.4.tar.gz
|
||||
# from https://mosquitto.org/files/source/mosquitto-1.6.12.tar.gz.asc
|
||||
sha256 548d73d19fb787dd0530334e398fd256ef3a581181678488a741a995c4f007fb mosquitto-1.6.12.tar.gz
|
||||
|
||||
# License files
|
||||
sha256 cc77e25bafd40637b7084f04086d606f0a200051b61806f97c93405926670bc1 LICENSE.txt
|
||||
sha256 3b9be6b894d0769de796e653571ff6cef494913c0ce78c35a97db939e7d9087c epl-v10
|
||||
sha256 e8cf7d54ea46c19aba793983889b7f7425e1ebfcaaccec764a7db091646e203c edl-v10
|
||||
sha256 cc77e25bafd40637b7084f04086d606f0a200051b61806f97c93405926670bc1 LICENSE.txt
|
||||
sha256 3b9be6b894d0769de796e653571ff6cef494913c0ce78c35a97db939e7d9087c epl-v10
|
||||
sha256 e8cf7d54ea46c19aba793983889b7f7425e1ebfcaaccec764a7db091646e203c edl-v10
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MOSQUITTO_VERSION = 1.6.4
|
||||
MOSQUITTO_VERSION = 1.6.12
|
||||
MOSQUITTO_SITE = https://mosquitto.org/files/source
|
||||
MOSQUITTO_LICENSE = EPL-1.0 or EDLv1.0
|
||||
MOSQUITTO_LICENSE_FILES = LICENSE.txt epl-v10 edl-v10
|
||||
@@ -41,7 +41,8 @@ else
|
||||
MOSQUITTO_MAKE_OPTS += WITH_ADNS=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
# threaded API uses pthread_setname_np
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y)
|
||||
MOSQUITTO_MAKE_OPTS += WITH_THREADING=yes
|
||||
else
|
||||
MOSQUITTO_MAKE_OPTS += WITH_THREADING=no
|
||||
@@ -51,7 +52,7 @@ ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
|
||||
MOSQUITTO_DEPENDENCIES += host-pkgconf libopenssl
|
||||
MOSQUITTO_MAKE_OPTS += \
|
||||
WITH_TLS=yes \
|
||||
WITH_TLS_STATIC_LIB_DEPS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
|
||||
CLIENT_STATIC_LDADD="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
|
||||
else
|
||||
MOSQUITTO_MAKE_OPTS += WITH_TLS=no
|
||||
endif
|
||||
@@ -111,13 +112,10 @@ endef
|
||||
define MOSQUITTO_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 $(@D)/service/systemd/mosquitto.service.notify \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/mosquitto.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -fs ../../../../usr/lib/systemd/system/mosquitto.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mosquitto.service
|
||||
endef
|
||||
|
||||
define MOSQUITTO_USERS
|
||||
mosquitto -1 nogroup -1 * - - - Mosquitto user
|
||||
mosquitto -1 nobody -1 * - - - Mosquitto user
|
||||
endef
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user