aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagios-plugins
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-10 07:48:22 +0800
committerbapt <bapt@FreeBSD.org>2014-01-10 07:48:22 +0800
commitb84bf786a158b700c2aca97a7523a694dc2bffaf (patch)
tree711f20093b30a15d7509e3e9282132692c2afed8 /net-mgmt/nagios-plugins
parent7af31c88470f65ec2073fdd6018b7ee34323a128 (diff)
downloadfreebsd-ports-gnome-b84bf786a158b700c2aca97a7523a694dc2bffaf.tar.gz
freebsd-ports-gnome-b84bf786a158b700c2aca97a7523a694dc2bffaf.tar.zst
freebsd-ports-gnome-b84bf786a158b700c2aca97a7523a694dc2bffaf.zip
Fix packaging as a user
Diffstat (limited to 'net-mgmt/nagios-plugins')
-rw-r--r--net-mgmt/nagios-plugins/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/net-mgmt/nagios-plugins/Makefile b/net-mgmt/nagios-plugins/Makefile
index cea2534a7ae7..0aa8c5bc0ab2 100644
--- a/net-mgmt/nagios-plugins/Makefile
+++ b/net-mgmt/nagios-plugins/Makefile
@@ -47,8 +47,6 @@ NAGIOSCGIURL?= ${NAGIOSHTMURL}/cgi-bin
NAGIOSPOLLIP?= 127.0.0.1
NAGIOSPOLLIP6?= ::1
-NEED_ROOT= yes # check_icmp, check_dhcp
-
.include <bsd.port.options.mk>
CONFIGURE_ARGS+=--with-nagios-user=${NAGIOSUSER} \
@@ -172,6 +170,7 @@ post-patch:
check_users.c
@${REINPLACE_CMD} -e 's|setlocale (LC_ALL, "");|setlocale (LC_ALL, ""); setlocale(LC_NUMERIC, "C");|g' ${WRKSRC}/plugins/${file}
.endfor
+ @${REINPLACE_CMD} -e 's|chown root|${TRUE}|g' ${WRKSRC}/plugins-root/Makefile.am
.if ${PORT_OPTIONS:MJAIL}
@${REINPLACE_CMD} -e 's# 127.0.0.1 # ${NAGIOSPOLLIP} #g' ${WRKSRC}/configure.in
@${REINPLACE_CMD} -e 's# ::1 # ${NAGIOSPOLLIP6} #g' ${WRKSRC}/configure.in