git: f50d7d574155 - main - net-mgmt/icingaweb2-module-director: Fix icinga-director daemon

From: Florian Smeets <flo_at_FreeBSD.org>
Date: Wed, 28 Feb 2024 20:47:45 UTC
The branch main has been updated by flo:

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

commit f50d7d57415540722c87b8164e5b0b20b0fab1c0
Author:     Florian Smeets <flo@FreeBSD.org>
AuthorDate: 2024-02-28 20:39:34 +0000
Commit:     Florian Smeets <flo@FreeBSD.org>
CommitDate: 2024-02-28 20:46:44 +0000

    net-mgmt/icingaweb2-module-director: Fix icinga-director daemon
    
    The last update lost important information from the pkg-plist. Restore
    it to make it possible to start icinga-daemon again. Without this
    change the daemon could not start because of wrong permissions in
    /var/run.
    
    Starting icinga_director.
    daemon: ppidfile ``/var/run/icinga-director/icinga_director.pid'': Permission denied
    /usr/local/etc/rc.d/icinga-director: WARNING: failed to start icinga_director
    
    PR:             277212
    Approved by:    portmgr (blanket, just fix it)
    Fixes:          02bf6f32a982
---
 net-mgmt/icingaweb2-module-director/Makefile  | 1 +
 net-mgmt/icingaweb2-module-director/pkg-plist | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/net-mgmt/icingaweb2-module-director/Makefile b/net-mgmt/icingaweb2-module-director/Makefile
index d59ed201e02b..2da66542f9b9 100644
--- a/net-mgmt/icingaweb2-module-director/Makefile
+++ b/net-mgmt/icingaweb2-module-director/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	icingaweb2-module-director
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.11.1
+PORTREVISION=	1
 CATEGORIES=	net-mgmt www
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
 
diff --git a/net-mgmt/icingaweb2-module-director/pkg-plist b/net-mgmt/icingaweb2-module-director/pkg-plist
index c870274103a7..fe5563c286cf 100644
--- a/net-mgmt/icingaweb2-module-director/pkg-plist
+++ b/net-mgmt/icingaweb2-module-director/pkg-plist
@@ -181,7 +181,7 @@
 %%WWWDIR%%/configuration.php
 %%WWWDIR%%/contrib/docker-test.sh
 %%WWWDIR%%/contrib/linux-agent-installer/Icinga2Agent.bash
-%%WWWDIR%%/contrib/systemd/%%DIRECTOR_GROUP%%-director.service
+%%WWWDIR%%/contrib/systemd/icinga-director.service
 %%WWWDIR%%/contrib/windows-agent-installer/Icinga2Agent.psm1
 %%WWWDIR%%/doc/01-Introduction.md
 %%WWWDIR%%/doc/02-Installation.md
@@ -1156,4 +1156,4 @@
 %%WWWDIR%%/test/php/library/Director/Resolver/TemplateTreeTest.php
 %%WWWDIR%%/test/php/library/Director/Restriction/MatchingFilterTest.php
 %%WWWDIR%%/test/phpunit-compat.php
-@dir /var/run/%%DIRECTOR_GROUP%%-director
+@dir(%%DIRECTOR_USER%%,DIRECTOR_GROUP%%,0775) /var/run/icinga-director