mosquitto: Update to 2.1.2

Closes: https://trac.macports.org/ticket/73507
This commit is contained in:
commitmaniac
2026-03-27 17:09:00 -04:00
committed by Renee Otten
parent 3b3ab5c20e
commit 4e4b6b39d1
+24 -65
View File
@@ -2,94 +2,53 @@
PortSystem 1.0
PortGroup cmake 1.1
PortGroup openssl 1.0
PortGroup legacysupport 1.1
name mosquitto
version 2.0.9
revision 2
version 2.1.2
revision 0
categories net devel
platforms darwin
license {EPL-1 EDL-1}
maintainers {gmail.com:slewsys @slewsys} openmaintainer
description Mosquitto is an open-source MQTT 3.1/3.1.1 broker
description Mosquitto is an open-source MQTT 5.0/3.1.1/3.1 broker
long_description \
MQTT is a machine-to-machine / "Internet of Things" connectivity protocol. \
Mosquito provides an open-source MQTT v3.1.1 broker (i.e., server) and \
both C and C++ client libraries.
Mosquito provides an open-source MQTT v5.0 and v3.1.1 broker (i.e., server) \
and both C and C++ client libraries and command line tools.
homepage https://mosquitto.org
master_sites http://mosquitto.org/files/source/
master_sites ${homepage}/files/source/
checksums rmd160 6925455f51b6c79ebd160aba2f3709864aa5c05d \
sha256 1b8553ef64a1cf5e4f4cfbe098330ae612adccd3d37f35b2db6f6fab501b01d4 \
size 757878
checksums rmd160 6d750882c31c65c7f29b693e8ab5414f22c45b2a \
sha256 fd905380691ac65ea5a93779e8214941829e3d6e038d5edff9eac5fd74cbed02 \
size 2882727
depends_build-append \
path:bin/xsltproc:libxslt
depends_lib port:c-ares \
port:libwebsockets \
port:tcp_wrappers \
path:lib/libssl.dylib:openssl
depends_lib-append port:libcjson \
port:sqlite3
depends_test-append \
port:python27
compiler.cxx_standard \
2017
configure.args-append \
-DUSE_LIBWRAP:BOOL=ON \
-DWITH_SRV:BOOL=ON \
-DWITH_WEBSOCKETS:BOOL=ON
-DWITH_TESTS:BOOL=OFF
test.run yes
test.target -C ${build.dir}/test test
# clock_gettime
legacysupport.newest_darwin_requires_legacy \
15
pre-build {
reinplace -E "s|\\.so\\.\[^\[:space:\]\]+|.dylib |g" ${worksrcpath}/config.mk
}
pre-test {
if {![file exist ${build.dir}/test]} {
foreach path [list config.mk test lib/mosquitto.h lib/cpp/mosquittopp.h src/mosquitto_broker.h src/mosquitto_plugin.h] {
copy -force ${worksrcpath}/${path} ${build.dir}/${path}
}
}
fs-traverse path ${build.dir}/test {
if {[file tail ${path}] eq "Makefile"} {
reinplace -E "s|\\.so\\.\[^\[:space:\]\]+|.dylib|g" $path
reinplace -E "s|\\.so\[\[:space:\]\]+|.dylib |g" $path
} elseif {[string match "*.py" ${path}]} {
reinplace "s|^#!/usr/bin/env python$|#!${prefix}/bin/python2.7|" $path
reinplace {s|[[:<:]]LD_LIBRARY_PATH|DY&|} $path
}
}
# `auth_plugin.c' and `auth_plugin_acl.c' have missing dependencies
reinplace "s|^all :.*|all : auth_plugin_pwd.dylib auth_plugin_v2.dylib auth_plugin_msg_params.dylib 08|" \
${build.dir}/test/broker/c/Makefile
# Test target 08 fails due to expired certificate.
# Test target 09 fails due to I/O error when launching broker.
reinplace "s|^test :.*|test : test-compile 01 02 03 04 05 06 07 10 11|" \
${build.dir}/test/broker/Makefile
# Test target 02-subpub-qos.*-bad.* fails due to socket error
reinplace "s|\\./02-subpub-qos.*-bad.*|#&|" \
${build.dir}/test/broker/Makefile
# `09-util-utf8-validate.c' fails to compile due to invalid encoding.
reinplace "s|^09 :.*|09 : 09-util-topic-matching.test 09-util-topic-tokenise.test|" \
${build.dir}/test/lib/c/Makefile \
${build.dir}/test/lib/cpp/Makefile
# Test target 08 fails due to expired certificate.
reinplace "s|^all :.*|all : 01 02 03 04 09|" \
${build.dir}/test/lib/cpp/Makefile
# Test targets ./08.* fail due to expired certificate.
reinplace "s|\\./08|#./08|" \
${build.dir}/test/lib/Makefile
# Test target 09-util-utf8-validate fails due to invalid encoding.
reinplace "s|\\./09-util-utf8|#./09-util-utf8|" \
${build.dir}/test/lib/Makefile
variant srv description {Add SRV record support to command line tools} {
depends_lib-append \
port:c-ares
configure.args-append \
-DWITH_SRV:BOOL=ON
}
set mosquitto_user mosquitto