git: 7bade2fe4158 - main - net/mosquitto: Fix sample mosquitto.conf for 2.0.22

From: Craig Leres <leres_at_FreeBSD.org>
Date: Mon, 18 Aug 2025 16:49:20 UTC
The branch main has been updated by leres:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7bade2fe41588986dd6da882ec4124816e9a68a2

commit 7bade2fe41588986dd6da882ec4124816e9a68a2
Author:     Craig Leres <leres@FreeBSD.org>
AuthorDate: 2025-08-18 16:48:54 +0000
Commit:     Craig Leres <leres@FreeBSD.org>
CommitDate: 2025-08-18 16:48:54 +0000

    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/Makefile                   | 1 +
 net/mosquitto/files/patch-mosquitto.conf | 9 ---------
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/net/mosquitto/Makefile b/net/mosquitto/Makefile
index 948a1b6cc1a5..37be21cf92a7 100644
--- a/net/mosquitto/Makefile
+++ b/net/mosquitto/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mosquitto
 DISTVERSION=	2.0.22
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	https://mosquitto.org/files/source/
 
diff --git a/net/mosquitto/files/patch-mosquitto.conf b/net/mosquitto/files/patch-mosquitto.conf
index b20b04014aa1..2bf7472095b9 100644
--- a/net/mosquitto/files/patch-mosquitto.conf
+++ b/net/mosquitto/files/patch-mosquitto.conf
@@ -18,12 +18,3 @@
  
  # =================================================================
  # Listeners
-@@ -360,7 +360,7 @@
- # certificate files must have ".crt" as the file ending and you must run
- # "openssl rehash <path to capath>" each time you add/remove a certificate.
- # capath is not supported for websockets.
--#cafile
-+cafile /usr/local/share/certs/ca-root-nss.crt
- #capath
- 
-