74eea935df
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.
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2021/12/31 09:57:35 triaxx Exp $
|
|
|
|
DISTNAME= mosquitto-2.0.14
|
|
CATEGORIES= net
|
|
MASTER_SITES= https://mosquitto.org/files/source/
|
|
|
|
MAINTAINER= gdt@NetBSD.org
|
|
HOMEPAGE= https://mosquitto.org/
|
|
COMMENT= Open Source MQTT broker
|
|
LICENSE= epl-v1.0
|
|
|
|
BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
|
|
|
|
USE_LANGUAGES+= c c++
|
|
# Upstream documents that "unix" should use make, but Mac cmake.
|
|
# After asking and receiving no guidance, choose to always use cmake.
|
|
# https://github.com/eclipse/mosquitto/issues/1041
|
|
USE_CMAKE= yes
|
|
USE_TOOLS+= gmake
|
|
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
CMAKE_ARGS+= -DCMAKE_INSTALL_SYSCONFDIR=${PREFIX}/share/examples
|
|
CMAKE_ARGS+= -DWITH_PLUGINS=NO
|
|
|
|
MOSQUITTO_USER= mosquitto
|
|
MOSQUITTO_GROUP= mosquitto
|
|
|
|
PKG_USERS= ${MOSQUITTO_USER}:${MOSQUITTO_GROUP}
|
|
PKG_GROUPS= ${MOSQUITTO_GROUP}
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/mosquitto/mosquitto.conf \
|
|
${PKG_SYSCONFDIR}/mosquitto.conf
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_STAGE.paths= post-configure
|
|
SUBST_MESSAGE.paths= Substituting paths
|
|
SUBST_FILES.paths= mosquitto.conf
|
|
SUBST_VARS.paths= SSLCERTS VARBASE
|
|
|
|
RCD_SCRIPTS= mosquitto
|
|
SMF_METHODS= mosquitto
|
|
FILES_SUBST+= MOSQUITTO_USER=${MOSQUITTO_USER}
|
|
FILES_SUBST+= MOSQUITTO_GROUP=${MOSQUITTO_GROUP}
|
|
FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
|
FILES_SUBST+= VARBASE=${VARBASE}
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
# mosquitto's build system is very troubled, and the tests do not
|
|
# currently work.
|
|
# https://github.com/eclipse/mosquitto/issues/1242
|
|
# https://github.com/eclipse/mosquitto/issues/1330
|
|
#
|
|
# \todo invoke "gmake test" in tests/ subdir instead of at top level
|
|
# \todo pass in CPPFLAGS/LDFLAGS to test invocation
|
|
TEST_TARGET= test
|
|
.include "../../devel/cunit/buildlink3.mk"
|
|
|
|
.include "options.mk"
|
|
.include "../../devel/libuuid/buildlink3.mk"
|
|
.include "../../devel/uthash/buildlink3.mk"
|
|
.include "../../net/libcares/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|