git: 78c2c9b14a34 - main - net-mgmt/semaphore: fix rc script config path

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Sun, 13 Sep 2026 09:20:04 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=78c2c9b14a3421c0a8857f818ada82ce607fef3d

commit 78c2c9b14a3421c0a8857f818ada82ce607fef3d
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-13 09:19:29 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-13 09:19:55 +0000

    net-mgmt/semaphore: fix rc script config path
    
    The rc script defaulted to semaphore_config.json, but the port installs
    config.json, so the service did not start on a fresh installation.
    
    Installations that created semaphore_config.json by hand can keep it via
    semaphore_config in rc.conf.
    
    Reported by:    Niclas Wagner (via private mail)
    Approved by:    portmgr (runtime fix blanket)
    Sponsored by:   Netzkommune GmbH
---
 net-mgmt/semaphore/Makefile           | 2 +-
 net-mgmt/semaphore/files/semaphore.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-mgmt/semaphore/Makefile b/net-mgmt/semaphore/Makefile
index 3c819320dc1d..632e94a1c905 100644
--- a/net-mgmt/semaphore/Makefile
+++ b/net-mgmt/semaphore/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	semaphore
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.19.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-mgmt
 MASTER_SITES+=	https://github.com/joneum/FreeBSD-Semaphore/releases/download/${PORTNAME}-${DISTVERSION}/:webui
 DISTFILES+=	${PORTNAME}-webui-${DISTVERSION}${EXTRACT_SUFX}:webui \
diff --git a/net-mgmt/semaphore/files/semaphore.in b/net-mgmt/semaphore/files/semaphore.in
index 32288bd1dfde..70b0e159baba 100644
--- a/net-mgmt/semaphore/files/semaphore.in
+++ b/net-mgmt/semaphore/files/semaphore.in
@@ -12,7 +12,7 @@ rcvar=semaphore_enable
 load_rc_config ${name}
 
 : ${semaphore_enable:="NO"}
-: ${semaphore_config="%%PREFIX%%/etc/semaphore/semaphore_config.json"}
+: ${semaphore_config="%%PREFIX%%/etc/semaphore/config.json"}
 
 export PATH=${PATH}:%%PREFIX%%/bin