Mosquitto is an open source (BSD licensed) message broker that implements
the MQ Telemetry Transport 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 "machine to machine" messaging such as
with low power sensors or mobile devices such as phones, embedded
computers or microcontrollers like the Arduino.
===> The following configuration options are available for mosquitto-2.1.2_4:
CARES=on: Asynchronous DNS resolution via c-ares
===> Use 'make config' to modify these settings
Affects: users of devel/py-gql, games/DDNet, net/mosquitto
Author: michaelo@FreeBSD.org
Reason:
The WEBSOCKETS option has been renamed to WEBSOCKET to match the name from
RFC 6455, other ports and the description from Mk/bsd.options.desc.mk.
net/mosquitto: Rework port
* Unbundle uthash as recommended by Porters Handbook
* Unbundle (lib)websockets as recommended by Porters Handbook
* Make (lib)websockets mandatory, default in all major distros
* Use sqlite helper
* Prefer libedit as upstream provides no way of selecting either libedit
or readline and it'll try to find libedit first
* Remove hack for adding path(s) to localbase, use helper instead
* Disable WITH_HTTP_API as port will otherwise pick up libmicrohttpd
in unclean environments
* Remove REINPLACE_CMD for CMakeLists.txt files as it does nothing
* Remove hardcoded cjson path
PR: 297568
Tested by: leres (maintainer)
net/mosquitto: Update to 2.1.2
Building with the ports version of libwebsockets is no longer broken.
Changes since 2.1.1:
- Forbid running with `persistence true` and with a persistence
plugin at the same time.
- Build fixes for OpenBSD.
- Fix static/shared linking of libwebsockets under cmake.
net/mosquitto: Fix websockets options
Rename WEBSOCKET to WEBSOCKETS to match the cmake options. Add
WEBSOCKETS_BUILTIN option. I'd like to have WEBSOCKETS control if
websockets is supported at all and WEBSOCKETS_BUILTIN switch between
the bundled and ports versions but the latter doesn't build so mark
BROKEN and open an upstream issue:
https://github.com/eclipse-mosquitto/mosquitto/issues/3478
One effect of these changes is that libwebsockets is no longer a
LIB_DEPENDS for the port; this will become a possibility once
WEBSOCKETS_BUILTIN OFF works again.
PR: 293005
Reported by: alexander@wittig.name
net/mosquitto: Update pkg-plist
The PR reports that consumers of the client library were missing
include files.
PR: 293004
Reported by: alexander@wittig.name
net/mosquitto: Fix sample mosquitto.conf for 2.0.22
mosquitto now complains if cafile is set but certfile and keyfile
are not:
1755534419: Error: cafile specified without certfile and keyfile.
/usr/local/etc/rc.d/mosquitto: WARNING: failed to start mosquitto
Avoid installing a invalid sample config; leave cafile unset.
Also avoid hardcoded /usr/local
Reported by: Steffen Dirkwinkel
Pull Request: https://github.com/freebsd/freebsd-ports/pull/417
net/mosquitto: Update to 2.0.22
Re-roll patches to make portlint happy.
Chance since 2.0.21:
- Windows: Fix broker crash on startup if using `log_dest stdout`
- Bridge: Fix idle_timeout never occurring for lazy bridges.
- Fix case where max_queued_messages = 0 was not treated as
unlimited.
- Fix `--version` exit code and output.
(Only the first 15 lines of the commit message are shown above )
*/*: Bump PORTREVISION after libuuid/libblkid switch
from e2fsprogs to util-linux, to complete the bump of all users
of either library that started with Alexander's commit titled
'*/*: Switch to misc/libuuid and misc/libblkid'
PR: 251489
*/*: Rename WEBSOCKET option
The WEBSOCKETS option has been renamed to WEBSOCKET to match the name from
RFC 6455, other ports and the description from Mk/bsd.options.desc.mk.
Approved by: otis (mentor)
net/mosquitto: Update to 2.0.20
Changes since 2.0.18:
- Fix mismatched subscribe/unsubscribe with normal/shared topics.
- Fix crash on bridge using remapped topic being sent a crafted
packet.
- 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.
(Only the first 15 lines of the commit message are shown above )
net/mosquitto: Make websockets option default and minor tweaking of Makefile
Make websockets default, this is more inline with other distros
Do some slight changes to better follow Porters Handbook and tree overall
PR: 269614
Reviewed by: Joseph Benden <joe@thrallingpenguin.com> (maintainer)
net/mosquitto: Link with correct library type when using websockets option
Libwebsockets refers to static library as websockets and shared as
websockets_shared. Currently it causes shared option in mosuitto to link
with static library and static option doesn't work at all.
PR: 269536
Reviewed by: Joseph Benden <joe@thrallingpenguin.com> (maintainer)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
net/mosquitto: Update to 2.0.13
* Fixes build with LibreSSL 3.4
PR: 259734
Reported by: Ivan Rozhuk <rozhuk im gmail com>
Approved by: joe thrallingpenguin com (maintainer)
net/mosquitto: update rc.d script to fix mosquitto_pidfile override
The default variables were being set before load_rc_config was invoked.
jrm@FreeBSD.org did most of this work and all credit goes to him.
I only found the problem. He helped tremendously.
PR: 258089
Reported by: dvl
Approved by: joe@thrallingpenguin.com (maintainer)
Obtained from: jrm
net/mosquitto: Update to 2.0.10 and solve NULL pointer dereference
https://github.com/eclipse/mosquitto/blob/d5ecd9f5aa98d42e7549eea09a71a23eef241f31/ChangeLog.txt
This release fixes a DoS vulnerability:
- If an authenticated client connected with MQTT v5 sent a malformed
CONNACK message to the broker a NULL pointer dereference occurred,
most likely resulting in a segfault.
Other changes since 2.0.8:
- Set `receive-maximum` to not exceed the `-C` message count in
mosquitto_sub and mosquitto_rr, to avoid potentially lost messages.
(Only the first 15 lines of the commit message are shown above )
- Update to version 1.5.8 and fix "null" username and password bug
- Drop `textproc/libxslt' dependency -- only needed when building
from git sources, distfiles come with pre-generated manpages
- Make `dns/c-ares' dependency optional, but keep it on by default
- Add missing run-time dependency on `security/ca_root_nss'
- Fix excessive use of capital letters in COMMENT, wrap some overly
long lines so they fit standard terminal width (80 characters)
Reported by: Jeremiah Gillis
PR: 236459
Submitted by: Joseph Benden (maintainer)
- Unbreak the build on 11.2-RELEASE when Websockets support is
enabled by including required <sys/socket.h> header
- Remove banal comments and bogus NOCONFIGURE knob while here
RR: 235323
net/mosquitto: Unbreak the rc script; Fix the license
The rc script had the 'pidfile' token, when the code references 'pid_file'.
While here, fixed the license. It is actually EPL, not BSD.
Reported by: David BOYER <david.boyer59@gmail.com> (the pidfile issue in a
private communication)
Approved by: portmgr blanket
Do not use post-stage. Use post-install instead.
The only reason to use post-stage is because the port needs to do
"things" at a later time, like some plist manipulation.
While there, fold post-install in do-install targets when they are
defined.
PR: 214780
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
net/mosquitto: restore libressl support
The mosquitto commit that added OpenSSL 1.1.0 support simultaneously
broke LibreSSL support. This patch comes from a fork and hasn't been
incorporated upstream yet (pull request #280 still outstanding but
should eventually be merged in).
LibreSSL support broke during the version upgrade last month.
Approved by: SSL blanket
- update to 1.4.10
Broker
Fix TLS operation with websockets listeners and libwebsockets 2.x. Closes
#186.
Don.t disconnect client on HUP before reading the pending data. Closes #7.
Fix some $SYS messages being incorrectly persisted. Closes #191.
Support OpenSSL 1.1.0.
Call fsync after persisting data to ensure it is correctly written. Closes
#189.
Fix persistence saving of subscription QoS on big-endian machines.
Fix will retained flag handling on Windows. Closes #222.
Broker now displays an error if it is unable to open the log file. Closes
#234.
(Only the first 15 lines of the commit message are shown above )
- update to 1.4.2
The Python driver is now provided by net/py-paho-mqtt!
More drivers can be found at http://eclipse.org/paho
PR: 200540
Submitted by: ohauer
Approved by: Joseph Benden <joe@thrallingpenguin.com> (maintainer, via PM)
- fix build with LibreSSL [1]
- install manpages into correct MANDIR
- do not run ldconfig in stagedir!
- adjust files/patch names so makepatch can be used in future
- bump PORTREVISION
PR: 198988 [1]
Submitted by: Bernard Spil
Approved by: joe _at_ thrallingpenguin.com (maintainer)
Upgrade mosquitto to version 1.3.4
Fix use and options
Remove unnecessary dirs from plist
PR: ports/194246
Submitted by: joe@thrallingpenguin.com (maintainer)
Approved by: mentors (implicit)
Retire MANCOMPRESSED.
Also the compat NO_INSTALL_MANPAGES shim.
Differential Revision: https://reviews.freebsd.org/D730
Reviewed by: antoine
With hat: portmgr
Sponsored by: Absolight
dns/c-ares:
- Add USES=libtool and bump dependent ports
- Move variable definitions in front of include bsd.port.options.mk
- Replace patch with USES=pathfix
Approved by: portmgr (implicit, bump unstaged port)