diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile index 5cd7c0966f6f..32ae533c1527 100644 --- a/net/mosquitto/Makefile +++ b/net/mosquitto/Makefile @@ -1,51 +1,50 @@ PORTNAME= mosquitto DISTVERSION= 2.1.1 CATEGORIES= net MASTER_SITES= https://mosquitto.org/files/source/ MAINTAINER= leres@FreeBSD.org COMMENT= Open source MQTT broker WWW= https://mosquitto.org/ LICENSE= EPL BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl \ xsltproc:textproc/libxslt LIB_DEPENDS= libcjson.so:devel/libcjson \ libsqlite3.so:databases/sqlite3 \ libuuid.so:misc/libuuid RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss USES= cmake cpe ssl USE_RC_SUBR= mosquitto USE_LDCONFIG= yes CMAKE_ARGS= -DCMAKE_LIBDATADIR:PATH="${PREFIX}/libdata" \ -DWITH_TESTS:BOOL=OFF CPE_VENDOR= eclipse - USERS= nobody PLIST_SUB= DISTVERSION=${DISTVERSION} OPTIONS_DEFINE= CARES WEBSOCKET OPTIONS_DEFAULT= CARES WEBSOCKET CARES_LIB_DEPENDS= libcares.so:dns/c-ares CARES_CMAKE_ON= -DWITH_SRV:BOOL=ON WEBSOCKET_LIB_DEPENDS= libwebsockets.so:net/libwebsockets WEBSOCKET_CMAKE_ON= -DWITH_WEBSOCKETS:BOOL=ON post-patch: @${REINPLACE_CMD} -e '/ldconfig/d' ${WRKSRC}/src/CMakeLists.txt \ ${WRKSRC}/lib/CMakeLists.txt ${WRKSRC}/lib/cpp/CMakeLists.txt @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/CMakeLists.txt post-install: .for F in mosquitto.conf pwfile pskfile aclfile ${MV} ${STAGEDIR}${ETCDIR}/${F}.example \ ${STAGEDIR}${ETCDIR}/${F}.sample .endfor .include diff --git a/net/mosquitto/files/patch-apps_mosquitto__ctrl_ctrl__shell.c b/net/mosquitto/files/patch-apps_mosquitto__ctrl_ctrl__shell.c new file mode 100644 index 000000000000..f041f1d4db3e --- /dev/null +++ b/net/mosquitto/files/patch-apps_mosquitto__ctrl_ctrl__shell.c @@ -0,0 +1,10 @@ +--- apps/mosquitto_ctrl/ctrl_shell.c.orig 2026-02-05 18:26:53 UTC ++++ apps/mosquitto_ctrl/ctrl_shell.c +@@ -19,6 +19,7 @@ Contributors: + #include + + #include ++#include + #include + #include + #include diff --git a/net/mosquitto/files/patch-lib_mosquitto__internal.h b/net/mosquitto/files/patch-lib_mosquitto__internal.h new file mode 100644 index 000000000000..88ec7d34dd68 --- /dev/null +++ b/net/mosquitto/files/patch-lib_mosquitto__internal.h @@ -0,0 +1,10 @@ +--- lib/mosquitto_internal.h.orig 2026-02-05 18:32:43 UTC ++++ lib/mosquitto_internal.h +@@ -22,6 +22,7 @@ Contributors: + + #include "config.h" + ++#include + #ifdef WIN32 + # include + #endif diff --git a/net/mosquitto/files/patch-src_proxy__v1.c b/net/mosquitto/files/patch-src_proxy__v1.c new file mode 100644 index 000000000000..27e9bde5e105 --- /dev/null +++ b/net/mosquitto/files/patch-src_proxy__v1.c @@ -0,0 +1,10 @@ +--- src/proxy_v1.c.orig 2026-02-04 22:33:13 UTC ++++ src/proxy_v1.c +@@ -4,6 +4,7 @@ + #else + # include + #endif ++#include + #include + #include "mosquitto_broker_internal.h" + #include "mosquitto_internal.h"