head 1.10; access; symbols pkgsrc-2026Q3:1.9.0.6 pkgsrc-2026Q3-base:1.9 pkgsrc-2026Q2:1.9.0.4 pkgsrc-2026Q2-base:1.9 pkgsrc-2026Q1:1.9.0.2 pkgsrc-2026Q1-base:1.9 pkgsrc-2025Q4:1.8.0.10 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.8 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.8.0.6 pkgsrc-2025Q2-base:1.8 pkgsrc-2025Q1:1.8.0.4 pkgsrc-2025Q1-base:1.8 pkgsrc-2024Q4:1.8.0.2 pkgsrc-2024Q4-base:1.8 pkgsrc-2024Q3:1.6.0.22 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.6.0.20 pkgsrc-2024Q2-base:1.6 pkgsrc-2024Q1:1.6.0.18 pkgsrc-2024Q1-base:1.6 pkgsrc-2023Q4:1.6.0.16 pkgsrc-2023Q4-base:1.6 pkgsrc-2023Q3:1.6.0.14 pkgsrc-2023Q3-base:1.6 pkgsrc-2023Q2:1.6.0.12 pkgsrc-2023Q2-base:1.6 pkgsrc-2023Q1:1.6.0.10 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.6.0.8 pkgsrc-2022Q4-base:1.6 pkgsrc-2022Q3:1.6.0.6 pkgsrc-2022Q3-base:1.6 pkgsrc-2022Q2:1.6.0.4 pkgsrc-2022Q2-base:1.6 pkgsrc-2022Q1:1.6.0.2 pkgsrc-2022Q1-base:1.6 pkgsrc-2021Q4:1.5.0.12 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.10 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.8 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.6 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.4 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.2 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.2.0.2 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.1.0.4 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.6 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.2 pkgsrc-2019Q3-base:1.1; locks; strict; comment @# @; 1.10 date 2026.11.18.01.11.04; author gdt; state Exp; branches; next 1.9; commitid v9N1m6Xo20bTBS3H; 1.9 date 2026.01.30.01.07.56; author gdt; state Exp; branches; next 1.8; commitid gY6tvV8d4U5KYlsG; 1.8 date 2024.10.14.21.51.21; author gdt; state Exp; branches; next 1.7; commitid TnwmYSNJpOhE3GtF; 1.7 date 2024.10.13.14.13.23; author gdt; state Exp; branches; next 1.6; commitid S0y8XPlu8pxPyvtF; 1.6 date 2021.12.31.09.57.36; author triaxx; state Exp; branches; next 1.5; commitid jtXcu2DBopqqPMmD; 1.5 date 2020.08.19.23.33.39; author gdt; state Exp; branches; next 1.4; commitid jxrQMFjuYJRpnJkC; 1.4 date 2020.08.11.18.06.10; author gdt; state Exp; branches; next 1.3; commitid j5o9LI1AWVixPFjC; 1.3 date 2020.08.11.12.26.41; author gdt; state Exp; branches; next 1.2; commitid FEurFgLGgOahXDjC; 1.2 date 2020.04.16.15.19.11; author jperkin; state Exp; branches; next 1.1; commitid djLqmWZgTqY8FC4C; 1.1 date 2019.07.20.23.09.27; author gdt; state Exp; branches; next ; commitid gYVLFxF52VoOYPvB; desc @@ 1.10 log @net/mosquitto: Update to 2.1.4 pkgsrc changes: The SunOS linker flags patch failed to apply. It lacks an explanation, and has not been submitted upstream, where the fix likely belongs. It is thus in danger of being dropped on a future conflict. Upstream NEWS, less bugfixes and minor improvements: 2.1.4 - 2026-11-17 ================== Broker: - Fix legacy sha512 password hashes being rejected due to regression in 2.1.3. 2.1.3 - 2026-11-17 ================== # Security - Fix incorrect handling of websocket frames for the builtin implementation, which could lead to out of bounds memory access and potential remote code execution. - Fix case where use of a specific will delay interval could cause all delayed wills to be suppressed. - Fix potential authentication bypass due to not checking failing password hash functions for OpenSSL 4.0 when using the FIPS module. - Fix potential crash in the dynamic security plugin caused if createClient/modifyClient/createGroup/modifyGroup was called with a role array, then a role in that array was later deleted and then a further change was made to the dynsec config without having restarted the broker. - Fix crashes in mosquitto_ctrl if connecting to a malicious broker. @ text @$NetBSD: patch-src_CMakeLists.txt,v 1.9 2026/01/30 01:07:56 gdt Exp $ This patch removes linker args on SunOS, for no apparent reason. \todo Explain and file a bug upstream; this should not be a pkgsrc change. --- src/CMakeLists.txt.orig 2026-11-17 13:53:43.000000000 +0000 +++ src/CMakeLists.txt @@@@ -306,6 +306,7 @@@@ if(UNIX) LINK_FLAGS "-Wl,-exported_symbols_list -Wl,${mosquitto_SOURCE_DIR}/src/linker-macosx.syms" ) elseif (AIX) + elseif (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") else() set_target_properties(mosquitto PROPERTIES LINK_FLAGS "-Wl,-dynamic-list=${mosquitto_SOURCE_DIR}/src/linker.syms" @ 1.9 log @net/mosquitto: Update to 2.1.0 Tested to run on NetBSD 9 amd64, and to build on various NetBSD 9/10 i386, amd64 earvm7, aarch64. 2.1.0 - 2026-01-29 ================== # Broker ## Deprecations - The acl_file option is deprecated in favour of the acl-file plugin, which is the same code but moved into a plugin. The acl_file option will be removed in 3.0. - The password_file option is deprecated in favour of the password-file plugin, which is the same code but moved into a plugin. The password_file option will be removed in 3.0. - The per_listener_settings option is deprecated in favour of the new listener specific options. The per_listener_settings option will be removed in 3.0. ## Behaviour changes - max_packet_size now defaults to 2,000,000 bytes instead of the 256MB MQTT limit. If you are using payloads that will result in a packet larger than this, you need to manually set the option to a value that suits your application. - acl_file and password_file will produce an error on invalid input when reloading the config, causing the broker to quit. ## Protocol related - Add support for broker created topic aliases. Topics are allocated on a first come first serve basis. - Add support for bridges to allow remote brokers to create topic aliases when running in MQTT v5 mode. - Enforce receive maximum on MQTT v5. - Return protocol error if a client attemps to subscribe to a shared subscription and also sets no-local. - Protocol version numbers reported in the log when a client connects now match the MQTT protocol version numbers, not internal Mosquitto values. - Send DISCONNECT With session-takeover return code to MQTT v5 clients when a client connects with the same client id. Closes #2340. - The `allow_duplicate_messages` now defaults to `true`. - Add `accept_protocol_versions` option to allow limiting which MQTT protocol versions are allowed for a particular listener. ## TLS related - Add `--tls-keylog` option which can be used to generate a file that can be used by wireshark to decrypt TLS traffic for debugging purposes. Closes #1818. - Add `disable_client_cert_date_checks` option to allow expired client certificate to be considered valid. - Add `bridge_tls_use_os_certs` option to allow bridges to be easily configured to trust default CA certificates. Closes #2473. - Remove support for TLS v1.1 (clients only - it remains available in the broker but is now undocumented) - Use openssl provided function for x509 certificate hostname verification, rather than own function. ## Bridge related - Add `bridge_receive_maximum` option for MQTT v5.0 bridges. - Add `bridge_session_expiry_interval` option for MQTT v5.0 bridges. - Bridge reconnection backoff improvements. ## Transport related - Add the `websockets_origin` option to allow optional enforcement of origin when a connection attempts an upgrade to WebSockets. - Add built-in websockets support that doesn't use libwebsockets. This is the preferred websockets implementation. - Add support for X-Forwarded-For header for built in websockets. - Add suport for PROXY protocol v1 and v2. ## Platform specific - Increase maximum connection count on Windows from 2048 to 8192 where supported. Closes #2122. - Allow multiple instances of mosquitto to run as services on Windows. See README-windows.txt. - Add kqueue support. - Add support for systemd watchdog. ## General - Report on what compile time options are enabled. Closes #2193. - Performance: reduce memory allocations when sending packets. - Log protocol version and ciphers that a client negotiates when connecting. - Password salts are now 64 bytes long. - Add the `global_plugin` option, which gives global plugin loaded regardless of `per_listener_settings`. - Add `global_max_clients` option to allow limiting client sessions globally on the broker. - Add `global_max_connections` option to allow limiting client connections globally on the broker. - Improve idle performance. The broker now calculates when the next event of interest is, and uses that as the timeout for e.g. `epoll_wait()`. This can reduce the number of process wakeups by 100x on an idle broker. - Add more efficient keepalive check. - Add support for sending the SIGRTMIN signal to trigger log rotation. Closes #2337. - Add `--test-config` option which can be used to test a configuration file before trying to use it in a live broker. Closes #2521. - Add support for PUID/PGID environment variables for setting the user/group to drop privileges to. Closes #2441. - Report persistence stats when starting. - $SYS updates are now aligned to `sys_interval` seconds, meaning that if set to 10, for example, updates will be sent at times matching x0 seconds. Previously update intervals were aligned to the time the broker was started. - Add `log_dest android` for logging to the Android logd daemon. - Fix some retained topic memory not being cleared immediately after used. - Add -q option to allow logging to be disabled at the command line. - Log message if a client attempts to connect with TLS to a non-TLS listener. - Add `listener_allow_anonymous` option. - Add `listener_auto_id_prefix` option. - Allow seconds when defining `persistent_client_expiration`. ## Plugin interface - Add `mosquitto_topic_matches_sub_with_pattern()`, which can match against subscriptions with `%c` and `%u` patterns for client id / username substitution. - Add support for modifying outgoing messages using `MOSQ_EVT_MESSAGE_OUT`. - Add `mosquitto_client()` function for retrieving a client struct if that client is connected. - Add `MOSQ_ERR_PLUGIN_IGNORE` to allow plugins to register basic auth or acl check callbacks, but still act as though they are not registered. A plugin that wanted to act as a blocklist for certain usernames, but wasn't carrying out authentication could return `MOSQ_ERR_PLUGIN_IGNORE` for usernames not on its blocklist. If no other plugins were configured, the client would be authenticated. Using `MOSQ_ERR_PLUGIN_DEFER` instead would mean the clients would be denied if no other plugins were configured. - Add `mosquitto_client_port()` function for plugins. - Add `MOSQ_EVT_CONNECT`, to allow plugins to know when a client has successfully authenticated to the broker. - Add connection-state example plugin to demonstrate `MOSQ_EVT_CONNECT`. - Add `MOSQ_EVT_CLIENT_OFFLINE`, to allow plugins to know when a client with a non-zero session expiry interval has gone offline. - Plugins on non-Windows platforms now no longer make their symbols globally available, which means they are self contained. - Add support for delayed basic authentication in plugins. - Plugins using the `MOSQ_EVT_MESSAGE_WRITE` callback can now return `MOSQ_ERR_QUOTA_EXCEEDED` to have the message be rejected. MQTT v5 clients using QoS 1 or 2 will receive the quota-exceeded reason code in the corresponding PUBACK/PUBREC. - `MOSQ_EVT_TICK` is now passed to plugins when `per_listener_settings` is true. - Add `mosquitto_sub_matches_acl()`, which can match one topic filter (a subscription) against another topic filter (an ACL). - Registration of the `MOSQ_EVT_CONTROL` plugin event is now handled globally across the broker, so only a single plugin can register for a given $CONTROL topic. - Add `mosquitto_plugin_set_info()` to allow plugins to tell the broker their name and version. - Add builtin $CONTROL/broker/v1 control topic with the `listPlugins` command. This is disabled by default, but can be enabled with the `enable_control_api` option. - Plugins no longer need to define `mosquitto_plugin_cleanup()` if they do not need to do any of their own cleanup. Callbacks will be unregistered automatically. - Add `mosquitto_set_clientid()` to allow plugins to force a client id for a client. - Add `MOSQ_EVT_SUBSCRIBE` and `MOSQ_EVT_UNSUBSCRIBE` events that are called when subscribe/unsubscribes actually succeed. Allow modifying topic and qos. - Add `mosquitto_persistence_location()` for plugins to use to find a valid location for storing persistent data. - Plugins can now use the `next_s` and `next_ms` members of the tick event data struct to set a minimum interval that the broker will wait before calling the tick callback again. - MOSQ_EVT_ACL_CHECK event is now passed message properties where possible. # Plugins - Add acl-file plugin. - Add password-file plugin. - Add persist-sqlite plugin. - Add sparkplug-aware plugin. # Dynamic security plugin - Add ability to deny wildcard subscriptions for a role to the dynsec plugin. - The dynamic security plugin now only kicks clients at the start of the next network loop, to give chance for PUBACK/PUBREC to be sent. Closes #2474. - The dynamic security plugin now reports client connections in getClient and listClients. - The dynamic security plugin now generates an initial configuration if none is present, including a set of default roles. - The dynamic security plugin now supports `%c` and `%u` patterns for substituting client id and username respectively, in all ACLs except for subscribeLiteral and unsubscribeLiteral. - The dynamic security plugin now supports multiple ways to initialise the first configuration file. # Client library - Add `MOSQ_OPT_DISABLE_SOCKETPAIR` to allow the disabling of the socketpair feature that allows the network thread to be woken from select() by another thread when e.g. `mosquitto_publish()` is called. This reduces the number of sockets used by each client by two. - Add `on_pre_connect()` callback to allow clients to update username/password/TLS parameters before an automatic reconnection. - Callbacks no longer block other callbacks, and can be set from within a callback. Closes #2127. - Add support for MQTT v5 broker to client topic aliases. - Add `mosquitto_topic_matches_sub_with_pattern()`, which can match against subscriptions with `%c` and `%u` patterns for client id / username substitution. - Add `mosquitto_sub_matches_acl()`, which can match one topic filter (a subscription) against another topic filter (an ACL). - Add `mosquitto_sub_matches_acl_with_pattern()`, which can match one topic filter (a subscription) against another topic filter (an ACL), with `%c` and `%u` patterns for client id / username substitution. - Performance: reduce memory allocations when sending packets. - Reintroduce threading support for Windows. Closes #1509. - `mosquitto_subscribe*()` now returns `MOSQ_ERR_INVAL` if an empty string is passed as a topic filter. - `mosquitto_unsubscribe*()` now returns `MOSQ_ERR_INVAL` if an empty string is passed as a topic filter. - Add websockets support. - `mosquitto_property_read_binary/string/string_pair` will now set the name/value parameter to NULL if the binary/string is empty. This aligns the behaviour with other property functions. Closes #2648. - Add `mosquitto_unsubscribe2_v5_callback_set`, which provides a callback that gives access to reason codes for each of the unsubscription requests. - Add `mosquitto_property_remove`, for removing properties from property lists. - Add `on_ext_auth()` callback to allow handling MQTT v5 extended authentication. - Add `mosquitto_ext_auth_continue()` function to continue an MQTT v5 extended authentication. - Remove support for TLS v1.1. - Use openssl provided function for x509 certificate hostname verification, rather than own function. # Clients ## General - Add `-W` timeout support to Windows. - The `--insecure` option now disables all server certificate verification. - Add websockets support. - Using `-x` now sets the clients to use MQTT v5.0. - Fix parsing of IPv6 addresses in socks proxy urls. - Add `--tls-keylog` option which can be used to generate a file that can be used by wireshark to decrypt TLS traffic for debugging purposes. - Remove support for TLS v1.1. ## mosquitto_rr - Fix `-f` and `-s` options in mosquitto_rr. - Add `--latency` option to mosquitto_rr, for printing the request/response latency. - Add `--retain-handling` option. ## mosquitto_sub - Fix incorrect output formatting in mosquitto_sub when using field widths with `%x` and `%X` for printing the payload in hex. - Add float printing option to mosquitto_sub. - mosquitto_sub payload hex output can now be split by fixed field length. - Add `--message-rate` option to mosquitto_sub, for printing the count of messages received each second. - Add `--retain-handling` option. # Apps ## mosquitto_signal - Add `mosquitto_signal` for helping send signals to mosquitto on Windows. ## mosquitto_ctrl - Add interactive shell mode to mosquitto_ctrl. - Add support for `listPlugins` to mosquitto_ctrl. - Allow mosquitto_ctrl dynsec module to update passwords in files rather than having to connect to a broker. ## mosquitto_passwd - Print messages in mosquitto_passwd when adding/updating passwords. Closes #2544. - When creating a new file with `-c`, setting the output filename to a dash `-` will output the result to stdout. ## mosquitto_db_dump - Add `--json` output mode do mosquitto_db_dump. # Build - Increased CMake minimal required version to 3.14, which is required for the preinstalled SQLite3 find module. - Add an CMake option `WITH_LTO` to enable/disable link time optimization. - Set C99 as the explicit, rather than implicit, build standard. - cJSON is now a required dependency. - Refactored headers for easier discovery. - Support for openssl < 3.0 removed. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.8 2024/10/14 21:51:21 gdt Exp $ d3 1 a3 1 The first hunk removes linker args on SunOS, for no apparent reason. d7 1 a7 1 --- src/CMakeLists.txt.orig 2026-01-19 00:00:46.000000000 +0000 d9 1 a9 1 @@@@ -310,6 +310,7 @@@@ if(UNIX) d12 1 a12 1 elseif (${CMAKE_SYSTEM_NAME} MATCHES "AIX") @ 1.8 log @net/mosquitto: GC workaround for libwebsockets cmake bug libwebsockets now installs a more reasonable cmake file for use by depending packages. Don't worry about requiring the new version, because the problem was most likely just a warning anyway. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.7 2024/10/13 14:13:23 gdt Exp $ d4 1 d7 1 a7 1 --- src/CMakeLists.txt.orig 2020-08-19 13:55:03.000000000 +0000 d9 8 a16 12 @@@@ -213,9 +213,9 @@@@ target_link_libraries(mosquitto ${MOSQ_L if (UNIX) if (APPLE) set_target_properties(mosquitto PROPERTIES LINK_FLAGS "-Wl,-exported_symbols_list -Wl,${mosquitto_SOURCE_DIR}/src/linker-macosx.syms") - else (APPLE) + elseif (NOT CMAKE_SYSTEM_NAME STREQUAL SunOS) set_target_properties(mosquitto PROPERTIES LINK_FLAGS "-Wl,-dynamic-list=${mosquitto_SOURCE_DIR}/src/linker.syms") - endif (APPLE) + endif () endif (UNIX) install(TARGETS mosquitto RUNTIME DESTINATION "${CMAKE_INSTALL_SBINDIR}") @ 1.7 log @net/mosquitto: Update to 2.0.19 packaging changes: Cherry-pick pending upstream fix for pthread confusion. While labeled as fixing NetBSD, it is really a consistency rototill for using pthreads. Use "websockets" lib instead of the cmake-too-complicated "websockets_shared" which references an installed file which seems to have a bug of including -ldl on systems where it doesn't exist. \todo Resolve within pkgsrc. upstream changes: 2.0.19 - 2024-10-02 =================== Security: - Fix mismatched subscribe/unsubscribe with normal/shared topics. - Fix crash on bridge using remapped topic being sent a crafted packet. Broker: - Fix assert failure when loading a persistence file that contains subscriptions with no client id. - Fix local bridges being incorrectly expired when persistent_client_expiration is in use. - Fix use of CLOCK_BOOTTIME for getting time. Closes #3089. - Fix mismatched subscribe/unsubscribe with normal/shared topics. - Fix crash on bridge using remapped topic being sent a crafted packet. Client library: - Fix some error codes being converted to string as "unknown". Closes #2579. - Clear SSL error state to avoid spurious error reporting. Closes #3054. - Fix "payload format invalid" not being allowed as a PUBREC reason code. - Don't allow SUBACK with missing reason codes. Build: - Thread support is re-enabled on Windows. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.6 2021/12/31 09:57:36 triaxx Exp $ d3 1 a3 4 The first hunk avoids some cmake magic, which buggily adds -ldl on NetBSD. \todo File a bug against pkgsrc websockets, perhaps cascading to upstream. The second hunk removes linker args on SunOS, for no apparent reason. a7 9 @@@@ -200,7 +200,7 @@@@ link_directories(${mosquitto_SOURCE_DIR}) endif (WIN32) else (STATIC_WEBSOCKETS) - set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared) + set (MOSQ_LIBS ${MOSQ_LIBS} websockets) endif (STATIC_WEBSOCKETS) endif (WITH_WEBSOCKETS) @ 1.6 log @mosquitto: Update to 2.0.14 pkgsrc changes: --------------- * Update patches to remove offsets. upstream changes: ----------------- 2.0.14 - 2021-11-17 =================== Broker: - Fix bridge not respecting receive-maximum when reconnecting with MQTT v5. Client library: - Fix mosquitto_topic_matches_sub2() not using the length parameters. Closes #2364. - Fix incorrect subscribe_callback in mosquittopp.h. Closes #2367. 2.0.13 - 2021-10-27 =================== Broker: - Fix `max_keepalive` option not being able to be set to 0. - Fix LWT messages not being delivered if `per_listener_settings` was set to true. Closes #2314. - Various fixes around inflight quota management. Closes #2306. - Fix problem parsing config files with Windows line endings. Closes #2297. - Don't send retained messages when a shared subscription is made. - Fix log being truncated in Windows. - Fix client id not showing in log on failed connections, where possible. - Fix broker sending duplicate CONNACK on failed MQTT v5 reauthentication. Closes #2339. - Fix mosquitto_plugin.h not including mosquitto_broker.h. Closes #2350. Client library: - Initialise sockpairR/W to invalid in `mosquitto_reinitialise()` to avoid closing invalid sockets in `mosquitto_destroy()` on error. Closes #2326. Clients: - Fix date format in mosquitto_sub output. Closes #2353. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.5 2020/08/19 23:33:39 gdt Exp $ d3 2 a4 1 \todo Explain this change d6 2 a7 1 \todo File upstream. d11 9 @ 1.5 log @net/mosquitto: Update to 1.6.12 pkgsrc changes: drop hunk appplied upstream. Ask more clearly for sunos hunk to be 1) explained and 2) filed upstream. upstream changes: bugfixes @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.4 2020/08/11 18:06:10 gdt Exp $ d9 1 a9 1 @@@@ -187,9 +187,9 @@@@ target_link_libraries(mosquitto ${MOSQ_L @ 1.4 log @net/mosquitto: Adjust patch comments (NFC) Hunk to drop -ldl on NetBSD has been applied upstream. Add \todo items on hunk about SunOS ldflags to 1) explain the change and 2) file it upstream. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.3 2020/08/11 12:26:41 gdt Exp $ d3 1 a3 1 * hunk 1 d5 1 a5 1 On NetBSD, don't use -ldl d7 1 a7 11 Sent upstream via email 20190427, again on 20200811, and applied upstream on 20200811. * hunk 2 \todo Explain why this hunk is here. \todo File hunk upstream. --- src/CMakeLists.txt.orig 2020-08-11 11:18:06.000000000 +0000 d9 1 a9 10 @@@@ -152,6 +152,8 @@@@ if (UNIX) set (MOSQ_LIBS ${MOSQ_LIBS} dl m) elseif (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") set (MOSQ_LIBS ${MOSQ_LIBS} m) + elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") + set (MOSQ_LIBS ${MOSQ_LIBS} m) elseif(QNX) set(MOSQ_LIBS ${MOSQ_LIBS} m socket) else(APPLE) @@@@ -185,9 +187,9 @@@@ target_link_libraries(mosquitto ${MOSQ_L @ 1.3 log @net/mosquitto: Update to 1.6.11 pkgsrc changes: none upstream changes: bugfixes @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.2 2020/04/16 15:19:11 jperkin Exp $ d3 1 a3 1 On NetBSD, don't use -ldl (why?). d5 11 a15 1 Sent upstream via email 20190427. @ 1.2 log @mosquitto: Various SunOS fixes and improvements. Includes SMF support. Submitted by Jorge Schrauwen in NetBSD/pkgsrc#59. While here fix a hardcoded /var. @ text @d1 1 a1 1 $NetBSD: patch-src_CMakeLists.txt,v 1.1 2019/07/20 23:09:27 gdt Exp $ d7 1 a7 1 --- src/CMakeLists.txt.orig 2020-02-27 23:49:51.000000000 +0000 d9 1 a9 3 @@@@ -151,6 +151,8 @@@@ endif (HAVE_GETADDRINFO_A AND WITH_ADNS) if (UNIX) if (APPLE) d11 4 a14 2 + elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD") + set (MOSQ_LIBS ${MOSQ_LIBS} m) d18 1 a18 1 @@@@ -184,9 +186,9 @@@@ target_link_libraries(mosquitto ${MOSQ_L @ 1.1 log @net: Add mosquitto 1.6.3nb4 (nb4 because wip is nb4) Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "Internet of Things" messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino. @ text @d1 1 a1 1 $NetBSD$ d7 1 a7 1 --- src/CMakeLists.txt.orig 2019-04-17 19:54:00.000000000 +0000 d9 1 a9 1 @@@@ -146,6 +146,8 @@@@ endif (HAVE_GETADDRINFO_A) d18 12 @