-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
161 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
layers/meta-opentrons/recipes-connectivity/mosquitto/files/1571.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Upstream-Status: Submitted [https://github.com/eclipse/mosquitto/pull/1571] | ||
From 3fe5468f1bdca1bff1d18cf43c9e338f41aa9e32 Mon Sep 17 00:00:00 2001 | ||
From: Gianfranco Costamagna <[email protected]> | ||
Date: Wed, 22 Jan 2020 12:39:49 +0100 | ||
Subject: [PATCH] Add dynamic symbols linking with cmake too | ||
|
||
Signed-off-by: Gianfranco Costamagna <[email protected]> | ||
--- | ||
lib/CMakeLists.txt | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
--- a/lib/CMakeLists.txt | ||
+++ b/lib/CMakeLists.txt | ||
@@ -94,6 +94,8 @@ | ||
OUTPUT_NAME mosquitto | ||
VERSION ${VERSION} | ||
SOVERSION 1 | ||
+ LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.version | ||
+ LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/linker.version" | ||
) | ||
|
||
install(TARGETS libmosquitto |
24 changes: 24 additions & 0 deletions
24
layers/meta-opentrons/recipes-connectivity/mosquitto/files/2894.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From: Joachim Zobel <[email protected]> | ||
Date: Wed, 13 Sep 2023 09:55:34 +0200 | ||
Subject: [PATCH] Link correctly with shared websockets library if needed see: | ||
https://github.com/eclipse/mosquitto/pull/2751 | ||
|
||
Patch contributed by Joachim Zobel <[email protected]> and Daniel Engberg <[email protected]> | ||
--- | ||
Upstream-Status: Pending | ||
|
||
src/CMakeLists.txt | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 9380a04..dce8313 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -200,7 +200,7 @@ if (WITH_WEBSOCKETS) | ||
link_directories(${mosquitto_SOURCE_DIR}) | ||
endif (WIN32) | ||
else (STATIC_WEBSOCKETS) | ||
- set (MOSQ_LIBS ${MOSQ_LIBS} websockets) | ||
+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared) | ||
endif (STATIC_WEBSOCKETS) | ||
endif (WITH_WEBSOCKETS) |
27 changes: 27 additions & 0 deletions
27
layers/meta-opentrons/recipes-connectivity/mosquitto/files/2895.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From: Joachim Zobel <[email protected]> | ||
Date: Wed, 13 Sep 2023 10:05:43 +0200 | ||
Subject: [PATCH] Mosquitto now waits for network-online when starting | ||
(Closes: #1036450) | ||
|
||
See: https://github.com/eclipse/mosquitto/issues/2878 | ||
--- | ||
Upstream-Status: Pending | ||
|
||
service/systemd/mosquitto.service.simple | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/service/systemd/mosquitto.service.simple b/service/systemd/mosquitto.service.simple | ||
index 15ee0d6..c2a330b 100644 | ||
--- a/service/systemd/mosquitto.service.simple | ||
+++ b/service/systemd/mosquitto.service.simple | ||
@@ -1,8 +1,8 @@ | ||
[Unit] | ||
Description=Mosquitto MQTT Broker | ||
Documentation=man:mosquitto.conf(5) man:mosquitto(8) | ||
-After=network.target | ||
-Wants=network.target | ||
+After=network-online.target | ||
+Wants=network-online.target | ||
|
||
[Service] | ||
ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf |
3 changes: 3 additions & 0 deletions
3
layers/meta-opentrons/recipes-connectivity/mosquitto/files/mosquitto.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
allow_anonymous true | ||
listener 1883 | ||
protocol mqtt |
82 changes: 82 additions & 0 deletions
82
layers/meta-opentrons/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
inherit systemd useradd cmake pkgconfig | ||
|
||
SUMMARY = "Open source MQTT implementation" | ||
DESCRIPTION = "Mosquitto is an open source (Eclipse licensed) message broker \ | ||
that implements the MQ Telemetry Transport protocol version 3.1, 3.1.1 and \ | ||
5, providing both an MQTT broker and several command-line clients. MQTT \ | ||
provides a lightweight method of carrying out messaging using a \ | ||
publish/subscribe model. " | ||
HOMEPAGE = "http://mosquitto.org/" | ||
SECTION = "console/network" | ||
LICENSE = "EPL-2.0 | EDL-1.0" | ||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ca9a8f366c6babf593e374d0d7d58749 \ | ||
file://edl-v10;md5=9f6accb1afcb570f8be65039e2fcd49e \ | ||
file://epl-v20;md5=2dd765ca47a05140be15ebafddbeadfe \ | ||
file://NOTICE.md;md5=a7a91b4754c6f7995020d1b49bc829c6 \ | ||
" | ||
DEPENDS = "uthash cjson" | ||
|
||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
|
||
SRC_URI = "http://mosquitto.org/files/source/mosquitto-${PV}.tar.gz \ | ||
file://mosquitto.conf \ | ||
file://1571.patch \ | ||
file://2894.patch \ | ||
file://2895.patch \ | ||
" | ||
|
||
SRC_URI[sha256sum] = "d665fe7d0032881b1371a47f34169ee4edab67903b2cd2b4c083822823f4448a" | ||
|
||
PACKAGECONFIG ??= "systemd" | ||
|
||
PACKAGECONFIG[manpages] = "-DDOCUMENTATION=ON,-DDOCUMENTATION=OFF,libxslt-native docbook-xsl-stylesheets-native" | ||
PACKAGECONFIG[dns-srv] = "-DWITH_SRV=ON,-DWITH_SRV=OFF,c-ares" | ||
PACKAGECONFIG[ssl] = "-DWITH_TLS=ON -DWITH_TLS_PSK=ON -DWITH_EC=ON,-DWITH_TLS=OFF -DWITH_TLS_PSK=OFF -DWITH_EC=OFF,openssl" | ||
PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd" | ||
PACKAGECONFIG[websockets] = "-DWITH_WEBSOCKETS=ON,-DWITH_WEBSOCKETS=OFF,libwebsockets" | ||
PACKAGECONFIG[dlt] = "-DWITH_DLT=ON,-DWITH_DLT=OFF,dlt-daemon" | ||
|
||
EXTRA_OECMAKE = " \ | ||
-DWITH_BUNDLED_DEPS=OFF \ | ||
-DWITH_ADNS=ON \ | ||
" | ||
|
||
do_install:append() { | ||
install -d ${D}${systemd_unitdir}/system/ | ||
install -m 0644 ${S}/service/systemd/mosquitto.service.notify ${D}${systemd_unitdir}/system/mosquitto.service | ||
install -m 0644 ${WORKDIR}/mosquitto.conf ${D}${sysconfdir}/mosquitto/mosquitto.conf | ||
} | ||
|
||
PACKAGES += "libmosquitto1 libmosquittopp1 ${PN}-clients" | ||
|
||
PACKAGE_BEFORE_PN = "${PN}-examples" | ||
|
||
FILES:${PN} = "${sbindir}/mosquitto \ | ||
${libdir}/mosquitto_dynamic_security.so \ | ||
${sysconfdir}/mosquitto \ | ||
${systemd_unitdir}/system/mosquitto.service \ | ||
${sysconfdir}/mosquitto/mosquitto.conf \ | ||
" | ||
|
||
CONFFILES:${PN} += "${sysconfdir}/mosquitto/mosquitto.conf" | ||
|
||
FILES:libmosquitto1 = "${libdir}/libmosquitto.so.*" | ||
|
||
FILES:libmosquittopp1 = "${libdir}/libmosquittopp.so.*" | ||
|
||
FILES:${PN}-clients = "${bindir}/mosquitto_pub \ | ||
${bindir}/mosquitto_sub \ | ||
${bindir}/mosquitto_rr \ | ||
" | ||
|
||
SYSTEMD_AUTO_ENABLE = "enable" | ||
SYSTEMD_SERVICE:${PN} = "mosquitto.service" | ||
|
||
INITSCRIPT_NAME = "mosquitto" | ||
INITSCRIPT_PARAMS = "defaults 30" | ||
|
||
USERADD_PACKAGES = "${PN}" | ||
USERADD_PARAM:${PN} = "--system --no-create-home --shell /bin/false \ | ||
--user-group mosquitto" | ||
|
||
BBCLASSEXTEND = "native" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters