git: 6eec36c45b04 - main - net-mgmt/nrpe: Fix permission on /var

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 28 Jul 2024 17:11:14 UTC
The branch main has been updated by bofh:

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

commit 6eec36c45b04c6d437453378dac08171775b2825
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-07-28 17:08:53 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-07-28 17:08:53 +0000

    net-mgmt/nrpe: Fix permission on /var
    
    - Fix build for ports users [1]
    
    PR:             277704, 280180 [1]
    Reported by:    sr@genyosha.net, eugen [1]
---
 net-mgmt/nrpe/Makefile  | 8 +++++---
 net-mgmt/nrpe/pkg-plist | 1 -
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/net-mgmt/nrpe/Makefile b/net-mgmt/nrpe/Makefile
index 796f569d74e4..b3db15ff61b4 100644
--- a/net-mgmt/nrpe/Makefile
+++ b/net-mgmt/nrpe/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	nrpe
-PORTVERSION=	4.1.0
+DISTVERSION=	4.1.0
+PORTREVISION=	1
 DISTVERSIONPREFIX=	nrpe-
 CATEGORIES=	net-mgmt
 
@@ -20,8 +21,10 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=--bindir=${PREFIX}/sbin \
 		--libexecdir=${PREFIX}/libexec/nagios \
 		--sysconfdir=${PREFIX}/etc \
+		--with-inetd-type=inetd \
 		--with-nrpe-user=${NAGIOSUSER} \
-		--with-nrpe-group=${NAGIOSGROUP}
+		--with-nrpe-group=${NAGIOSGROUP} \
+		--with-piddir=${NRPE_PIDDIR}
 
 SUB_FILES=	pkg-message
 SUB_LIST+=	PIDDIR=${NRPE_PIDDIR}
@@ -62,7 +65,6 @@ post-patch:
 		${WRKSRC}/sample-config/nrpe.cfg.in
 
 do-install:
-	${INSTALL} -d ${STAGEDIR}${NRPE_PIDDIR}
 	${INSTALL_PROGRAM} ${WRKSRC}/src/nrpe ${STAGEDIR}${PREFIX}/sbin/nrpe
 	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
 	${INSTALL_PROGRAM} ${WRKSRC}/src/check_nrpe ${STAGEDIR}${PREFIX}/libexec/nagios/check_nrpe
diff --git a/net-mgmt/nrpe/pkg-plist b/net-mgmt/nrpe/pkg-plist
index d5be1c32b002..c07091b9fb3d 100644
--- a/net-mgmt/nrpe/pkg-plist
+++ b/net-mgmt/nrpe/pkg-plist
@@ -1,4 +1,3 @@
 @sample etc/nrpe.cfg.sample
 libexec/nagios/check_nrpe
 sbin/nrpe
-@dir(%%NAGIOSUSER%%,%%NAGIOSGROUP%%,755) %%NRPE_PIDDIR%%