diff options
| author | Gianfranco Costamagna <costamagna.gianfranco@gmail.com> | 2023-09-13 09:57:54 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-09-13 07:31:33 -0700 |
| commit | 56027584e9465152a4cd2682099091ee4edd67b0 (patch) | |
| tree | 9c9da2b6e06c0cd7367653f6736044fa2b34eaa5 /meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb | |
| parent | 8a6fa736663284fcdc8057e5257bdced91e7f15c (diff) | |
| download | meta-openembedded-56027584e9465152a4cd2682099091ee4edd67b0.tar.gz | |
mosquitto: upgrade 2.0.15 -> 2.0.17
Fix for CVE-2023-28366, CVE-2023-0809, CVE-2023-3592
Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb')
| -rw-r--r-- | meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb new file mode 100644 index 0000000000..690b6bc126 --- /dev/null +++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | SUMMARY = "Open source MQTT implementation" | ||
| 2 | DESCRIPTION = "Mosquitto is an open source (Eclipse licensed) message broker \ | ||
| 3 | that implements the MQ Telemetry Transport protocol version 3.1, 3.1.1 and \ | ||
| 4 | 5, providing both an MQTT broker and several command-line clients. MQTT \ | ||
| 5 | provides a lightweight method of carrying out messaging using a \ | ||
| 6 | publish/subscribe model. " | ||
| 7 | HOMEPAGE = "http://mosquitto.org/" | ||
| 8 | SECTION = "console/network" | ||
| 9 | LICENSE = "EPL-2.0 | EDL-1.0" | ||
| 10 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ca9a8f366c6babf593e374d0d7d58749 \ | ||
| 11 | file://edl-v10;md5=9f6accb1afcb570f8be65039e2fcd49e \ | ||
| 12 | file://epl-v20;md5=2dd765ca47a05140be15ebafddbeadfe \ | ||
| 13 | file://NOTICE.md;md5=a7a91b4754c6f7995020d1b49bc829c6 \ | ||
| 14 | " | ||
| 15 | DEPENDS = "uthash cjson" | ||
| 16 | |||
| 17 | SRC_URI = "http://mosquitto.org/files/source/mosquitto-${PV}.tar.gz \ | ||
| 18 | file://mosquitto.init \ | ||
| 19 | file://1571.patch \ | ||
| 20 | " | ||
| 21 | |||
| 22 | SRC_URI[sha256sum] = "3be7a911236567c1a9fbe25baf3e3167004ba4a0c151a448ef1f7fc077dba52f" | ||
| 23 | |||
| 24 | inherit systemd update-rc.d useradd cmake pkgconfig | ||
| 25 | |||
| 26 | PACKAGECONFIG ??= "ssl websockets \ | ||
| 27 | ${@bb.utils.filter('DISTRO_FEATURES','systemd', d)} \ | ||
| 28 | " | ||
| 29 | |||
| 30 | PACKAGECONFIG[manpages] = "-DDOCUMENTATION=ON,-DDOCUMENTATION=OFF,libxslt-native docbook-xsl-stylesheets-native" | ||
| 31 | PACKAGECONFIG[dns-srv] = "-DWITH_SRV=ON,-DWITH_SRV=OFF,c-ares" | ||
| 32 | PACKAGECONFIG[ssl] = "-DWITH_TLS=ON -DWITH_TLS_PSK=ON -DWITH_EC=ON,-DWITH_TLS=OFF -DWITH_TLS_PSK=OFF -DWITH_EC=OFF,openssl" | ||
| 33 | PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd" | ||
| 34 | PACKAGECONFIG[websockets] = "-DWITH_WEBSOCKETS=ON,-DWITH_WEBSOCKETS=OFF,libwebsockets" | ||
| 35 | PACKAGECONFIG[dlt] = "-DWITH_DLT=ON,-DWITH_DLT=OFF,dlt-daemon" | ||
| 36 | |||
| 37 | EXTRA_OECMAKE = " \ | ||
| 38 | -DWITH_BUNDLED_DEPS=OFF \ | ||
| 39 | -DWITH_ADNS=ON \ | ||
| 40 | " | ||
| 41 | |||
| 42 | do_install:append() { | ||
| 43 | install -d ${D}${systemd_unitdir}/system/ | ||
| 44 | install -m 0644 ${S}/service/systemd/mosquitto.service.notify ${D}${systemd_unitdir}/system/mosquitto.service | ||
| 45 | |||
| 46 | install -d ${D}${sysconfdir}/init.d/ | ||
| 47 | install -m 0755 ${WORKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto | ||
| 48 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | ||
| 49 | -e 's,@BASE_SBINDIR@,${base_sbindir},g' \ | ||
| 50 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ | ||
| 51 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | ||
| 52 | ${D}${sysconfdir}/init.d/mosquitto | ||
| 53 | } | ||
| 54 | |||
| 55 | PACKAGES += "libmosquitto1 libmosquittopp1 ${PN}-clients" | ||
| 56 | |||
| 57 | PACKAGE_BEFORE_PN = "${PN}-examples" | ||
| 58 | |||
| 59 | FILES:${PN} = "${sbindir}/mosquitto \ | ||
| 60 | ${bindir}/mosquitto_passwd \ | ||
| 61 | ${bindir}/mosquitto_ctrl \ | ||
| 62 | ${libdir}/mosquitto_dynamic_security.so \ | ||
| 63 | ${sysconfdir}/mosquitto \ | ||
| 64 | ${sysconfdir}/init.d \ | ||
| 65 | ${systemd_unitdir}/system/mosquitto.service \ | ||
| 66 | " | ||
| 67 | |||
| 68 | CONFFILES:${PN} += "${sysconfdir}/mosquitto/mosquitto.conf" | ||
| 69 | |||
| 70 | FILES:libmosquitto1 = "${libdir}/libmosquitto.so.*" | ||
| 71 | |||
| 72 | FILES:libmosquittopp1 = "${libdir}/libmosquittopp.so.*" | ||
| 73 | |||
| 74 | FILES:${PN}-clients = "${bindir}/mosquitto_pub \ | ||
| 75 | ${bindir}/mosquitto_sub \ | ||
| 76 | ${bindir}/mosquitto_rr \ | ||
| 77 | " | ||
| 78 | |||
| 79 | FILES:${PN}-examples = "${sysconfdir}/mosquitto/*.example" | ||
| 80 | |||
| 81 | SYSTEMD_SERVICE:${PN} = "mosquitto.service" | ||
| 82 | |||
| 83 | INITSCRIPT_NAME = "mosquitto" | ||
| 84 | INITSCRIPT_PARAMS = "defaults 30" | ||
| 85 | |||
| 86 | USERADD_PACKAGES = "${PN}" | ||
| 87 | USERADD_PARAM:${PN} = "--system --no-create-home --shell /bin/false \ | ||
| 88 | --user-group mosquitto" | ||
| 89 | |||
| 90 | BBCLASSEXTEND += "native nativesdk" | ||
