summaryrefslogtreecommitdiff
path: root/net/nagios-base/Makefile.common
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2007-11-26 22:14:13 +0000
committerseb <seb@pkgsrc.org>2007-11-26 22:14:13 +0000
commit4346efd0486bbbb1e9d0704427eeac03d40f8a52 (patch)
tree71298f4214449b931fb058feefeb073a34d6d671 /net/nagios-base/Makefile.common
parentf555207a942640c881c406adb634d369f6c8ff48 (diff)
downloadpkgsrc-4346efd0486bbbb1e9d0704427eeac03d40f8a52.tar.gz
Bump PKGREVISION to 4.
As proposed on pkgsrc-users@... - Introduce NAGIOSDIR, defaults to VARBASE/spool/nagios, for log and status files. - Drop unused(?) 'nagadmin' user and group. - Sync user and group handling with Nagios install documentation/recommendations. Introduce the Nagios "external command" group, NAGIOSCMD_GROUP, defaults to APACHE_GROUP. The Nagios user should be manually added after package installation to the NAGIOSCMD_GROUP group. Add this recommandation to the MESSAGE file. Make the "external command directory", NAGIOSDIR/rw, owned by NAGIOS_USER:NAGIOSCMD_GROUP. - Use /var/run/nagios.lock as pidfile. - Only install existing example configuration files. - Put default values of NAGIOSDIR, NAGIOS_USER, NAGIOS_GROUP and NAGIOSCMD_GROUP in mk/defaults/mk.conf and allow MAKECONF to override them. - Miscellaneous clean up and sync with the changes mentionned above. - When deleting the package allow removal of directories shared with other Nagios packages to fail.
Diffstat (limited to 'net/nagios-base/Makefile.common')
-rw-r--r--net/nagios-base/Makefile.common14
1 files changed, 4 insertions, 10 deletions
diff --git a/net/nagios-base/Makefile.common b/net/nagios-base/Makefile.common
index 833dcf4e721..fbc0dca196e 100644
--- a/net/nagios-base/Makefile.common
+++ b/net/nagios-base/Makefile.common
@@ -1,14 +1,8 @@
-# $NetBSD: Makefile.common,v 1.6 2007/10/12 16:13:52 ghen Exp $
+# $NetBSD: Makefile.common,v 1.7 2007/11/26 22:14:13 seb Exp $
#
-NAGIOS_USER?= nagios
-NAGIOS_GROUP?= ${NAGIOS_USER}
-
-NAGIOSADM_USER?= nagadmin
-NAGIOSADM_GROUP?= ${NAGIOSADM_USER}
-
-PKG_GROUPS_VARS+= NAGIOS_GROUP NAGIOSADM_GROUP
-PKG_USERS_VARS+= NAGIOS_USER NAGIOSADM_USER
+PKG_GROUPS_VARS+= NAGIOS_GROUP NAGIOSCMD_GROUP
+PKG_USERS_VARS+= NAGIOS_USER
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
@@ -20,7 +14,7 @@ PERL5_REQD= 5.6
CONFIGURE_ARGS+= --libexecdir=${PREFIX}/libexec/nagios
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/nagios
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
-CONFIGURE_ARGS+= --localstatedir=/var
+CONFIGURE_ARGS+= --localstatedir=${NAGIOSDIR:Q}
CONFIGURE_ARGS+= --with-cgiurl=/nagios/cgi-bin
CONFIGURE_ARGS+= --with-htmurl=/nagios