pkgsrc/net/nagios-base/patches/patch-ac
seb 40ba22b280 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.
2007-11-26 22:14:13 +00:00

23 lines
718 B
Text

$NetBSD: patch-ac,v 1.3 2007/11/26 22:14:14 seb Exp $
--- base/Makefile.in.orig 2006-05-30 16:31:44.000000000 +0000
+++ base/Makefile.in
@@ -29,7 +29,7 @@ exec_prefix=@exec_prefix@
LOGDIR=@localstatedir@
CFGDIR=@sysconfdir@
BINDIR=@bindir@
-CGIDIR=@sbindir@
+CGIDIR=@libexecdir@
HTMLDIR=@datadir@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
@@ -188,8 +188,7 @@ install-unstripped:
$(MAKE) install-basic
install-basic:
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
- $(INSTALL) -m 774 $(INSTALL_OPTS) @nagios_name@ $(DESTDIR)$(BINDIR)
+ ${BSD_INSTALL_PROGRAM} @nagios_name@ $(DESTDIR)$(BINDIR)
$(INSTALL) -m 774 $(INSTALL_OPTS) @nagiostats_name@ $(DESTDIR)$(BINDIR)
strip-post-install: