2007-11-26 23:14:13 +01:00
|
|
|
$NetBSD: patch-aa,v 1.4 2007/11/26 22:14:14 seb Exp $
|
2006-02-18 18:12:20 +01:00
|
|
|
|
2007-11-26 23:14:13 +01:00
|
|
|
--- Makefile.in.orig 2006-05-30 16:31:44.000000000 +0000
|
2006-08-17 16:19:00 +02:00
|
|
|
+++ Makefile.in
|
2007-11-26 23:14:13 +01:00
|
|
|
@@ -22,15 +22,16 @@ LDFLAGS=@LDFLAGS@ @LIBS@
|
2006-02-18 18:12:20 +01:00
|
|
|
prefix=@prefix@
|
|
|
|
exec_prefix=@exec_prefix@
|
2007-11-26 23:14:13 +01:00
|
|
|
LOGDIR=@localstatedir@
|
2006-08-17 16:19:00 +02:00
|
|
|
-CFGDIR=@sysconfdir@
|
2006-02-18 18:12:20 +01:00
|
|
|
+CGIDIR=@libexecdir@
|
2006-08-17 16:19:00 +02:00
|
|
|
BINDIR=@bindir@
|
|
|
|
CGIDIR=@sbindir@
|
2006-02-18 18:12:20 +01:00
|
|
|
HTMLDIR=@datadir@
|
|
|
|
+SAMPDIR=@prefix@/share/examples/nagios
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_OPTS=@INSTALL_OPTS@
|
|
|
|
COMMAND_OPTS=@COMMAND_OPTS@
|
|
|
|
INIT_DIR=@init_dir@
|
|
|
|
-INIT_OPTS=-o root -g root
|
|
|
|
+INIT_OPTS=-o root -g wheel
|
|
|
|
CGICFGDIR=$(CGIDIR)
|
|
|
|
PERLDIR=@PERLDIR@
|
|
|
|
|
2007-05-04 06:53:03 +02:00
|
|
|
@@ -57,61 +58,7 @@ all:
|
|
|
|
cd $(SRC_BASE) && $(MAKE)
|
|
|
|
cd $(SRC_CGI) && $(MAKE)
|
2006-02-18 18:12:20 +01:00
|
|
|
cd $(SRC_HTM) && $(MAKE)
|
2007-05-04 06:53:03 +02:00
|
|
|
- cd $(SRC_MODULE) && $(MAKE)
|
|
|
|
-
|
2006-02-18 18:12:20 +01:00
|
|
|
- @echo ""
|
|
|
|
- @echo "*** Compile finished ***"
|
|
|
|
- @echo ""
|
|
|
|
- @echo "If the main program and CGIs compiled without any errors, you"
|
|
|
|
- @echo "can continue with installing Nagios as follows (type 'make'"
|
|
|
|
- @echo "without any arguments for a list of all possible options):"
|
|
|
|
- @echo ""
|
|
|
|
- @echo " make install"
|
|
|
|
- @echo " - This installs the main program, CGIs, and HTML files"
|
|
|
|
- @echo ""
|
|
|
|
- @echo " make install-init"
|
|
|
|
- @echo " - This installs the init script in $(DESTDIR)$(INIT_DIR)"
|
|
|
|
- @echo ""
|
|
|
|
- @echo " make install-commandmode"
|
|
|
|
- @echo " - This installs and configures permissions on the"
|
|
|
|
- @echo " directory for holding the external command file"
|
|
|
|
- @echo ""
|
|
|
|
- @echo " make install-config"
|
|
|
|
- @echo " - This installs *SAMPLE* config files in $(DESTDIR)$(CFGDIR)"
|
|
|
|
- @echo " You'll have to modify these sample files before you can"
|
|
|
|
- @echo " use Nagios. Read the HTML documentation for more info"
|
|
|
|
- @echo " on doing this. Pay particular attention to the docs on"
|
|
|
|
- @echo " object configuration files, as they determine what/how"
|
|
|
|
- @echo " things get monitored!"
|
|
|
|
- @echo ""
|
|
|
|
- @echo ""
|
|
|
|
- @echo "*** Support Notes *******************************************"
|
|
|
|
- @echo ""
|
|
|
|
- @echo "If you have questions about configuring or running Nagios,"
|
|
|
|
- @echo "please make sure that you:"
|
|
|
|
- @echo ""
|
|
|
|
- @echo " - Look at the sample config files"
|
|
|
|
- @echo " - Read the HTML documentation"
|
|
|
|
- @echo " - Read the FAQs online at http://www.nagios.org/faqs"
|
|
|
|
- @echo ""
|
|
|
|
- @echo "before you post a question to one of the mailing lists."
|
|
|
|
- @echo "Also make sure to include pertinent information that could"
|
|
|
|
- @echo "help others help you. This might include:"
|
|
|
|
- @echo ""
|
|
|
|
- @echo " - What version of Nagios you are using"
|
|
|
|
- @echo " - What version of the plugins you are using"
|
|
|
|
- @echo " - Relevant snippets from your config files"
|
|
|
|
- @echo " - Relevant error messages from the Nagios log file"
|
|
|
|
- @echo ""
|
|
|
|
- @echo "For those of you who are interested in contract support or"
|
|
|
|
- @echo "consulting services for Nagios, please visit:"
|
|
|
|
- @echo ""
|
|
|
|
- @echo " http://www.nagios.org/contractsupport"
|
|
|
|
- @echo ""
|
|
|
|
- @echo "*************************************************************"
|
|
|
|
- @echo ""
|
|
|
|
- @echo "Enjoy."
|
|
|
|
- @echo ""
|
2007-05-04 06:53:03 +02:00
|
|
|
+# cd $(SRC_MODULE) && $(MAKE)
|
|
|
|
|
2006-02-18 18:12:20 +01:00
|
|
|
nagios:
|
|
|
|
cd $(SRC_BASE) && $(MAKE)
|
2006-08-17 16:19:00 +02:00
|
|
|
@@ -183,12 +130,11 @@ install-unstripped:
|
|
|
|
$(MAKE) install-basic
|
|
|
|
|
|
|
|
install-basic:
|
2006-02-18 18:12:20 +01:00
|
|
|
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)
|
|
|
|
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(LOGDIR)/archives
|
|
|
|
if [ $(INSTALLPERLSTUFF) = yes ]; then \
|
|
|
|
- $(INSTALL) -m 664 $(INSTALL_OPTS) p1.pl $(DESTDIR)$(BINDIR); \
|
|
|
|
+ ${BSD_INSTALL_SCRIPT} p1.pl $(DESTDIR)$(BINDIR); \
|
|
|
|
fi;
|
|
|
|
|
2006-08-17 16:19:00 +02:00
|
|
|
+
|
|
|
|
@echo ""
|
|
|
|
@echo "*** Main program, CGIs and HTML files installed ***"
|
2006-02-18 18:12:20 +01:00
|
|
|
@echo ""
|
2006-08-17 16:19:00 +02:00
|
|
|
@@ -213,14 +159,14 @@ install-basic:
|
2006-02-18 18:12:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
install-config:
|
|
|
|
- $(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
|
|
|
|
- $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(CFGDIR)/nagios.cfg-sample
|
|
|
|
- $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(CFGDIR)/cgi.cfg-sample
|
|
|
|
- $(INSTALL) -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(CFGDIR)/resource.cfg-sample
|
|
|
|
- $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/bigger.cfg $(DESTDIR)$(CFGDIR)/bigger.cfg-sample
|
|
|
|
- $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/minimal.cfg $(DESTDIR)$(CFGDIR)/minimal.cfg-sample
|
|
|
|
- $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/checkcommands.cfg $(DESTDIR)$(CFGDIR)/checkcommands.cfg-sample
|
|
|
|
- $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/misccommands.cfg $(DESTDIR)$(CFGDIR)/misccommands.cfg-sample
|
|
|
|
+ [ -d $(DESTDIR)$(SAMPDIR) ] || ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(SAMPDIR)
|
|
|
|
+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/nagios.cfg $(DESTDIR)$(SAMPDIR)/nagios.cfg-sample
|
|
|
|
+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/cgi.cfg $(DESTDIR)$(SAMPDIR)/cgi.cfg-sample
|
|
|
|
+ $(INSTALL) -m 660 $(INSTALL_OPTS) sample-config/resource.cfg $(DESTDIR)$(SAMPDIR)/resource.cfg-sample
|
|
|
|
+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/bigger.cfg $(DESTDIR)$(SAMPDIR)/bigger.cfg-sample
|
|
|
|
+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/minimal.cfg $(DESTDIR)$(SAMPDIR)/minimal.cfg-sample
|
|
|
|
+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/checkcommands.cfg $(DESTDIR)$(SAMPDIR)/checkcommands.cfg-sample
|
|
|
|
+ $(INSTALL) -m 664 $(INSTALL_OPTS) sample-config/template-object/misccommands.cfg $(DESTDIR)$(SAMPDIR)/misccommands.cfg-sample
|
|
|
|
|
|
|
|
@echo ""
|
|
|
|
@echo "*** Sample config file installed ***"
|