ports/net-mgmt/cnagios4/files/patch-Makefile.in
Dan Langille c21e572904 Add cnagios4, based on net-mgmt/cnagios but uses Nagios 4
Why not create options on net-mgmt/cnagios for Nagios 3 or 4?

Because one can use both Nagios 3 and Nagios 4 and therefore
you need different packages in your repo.

PR:		236245
2019-03-22 13:22:40 +00:00

47 lines
1.9 KiB
Text

--- Makefile.in.orig 2015-05-15 16:31:56 UTC
+++ Makefile.in
@@ -27,39 +27,11 @@ cnagios: $(OBJS) $(HDRS)
install:
- @if [ -f @prefix@/bin/cnagios ]; then \
- echo mv @prefix@/bin/cnagios @prefix@/bin/cnagios.OLD ; \
- mv @prefix@/bin/cnagios @prefix@/bin/cnagios.OLD ; \
- fi
- @echo installing cnagios in @prefix@/bin
- @$(INSTALL) -c -m 755 cnagios @prefix@/bin/cnagios
-
- @echo installing cnagios.1 in @prefix@/man/man1
- @$(INSTALL) -c -m 755 cnagios.1 @prefix@/man/man1/cnagios.1
-
- @if [ ! -f @NAGIOS_ETC_DIR@/cnagiosrc ]; then \
- echo installing cnagiosrc in @NAGIOS_ETC_DIR@ ; \
- $(INSTALL) -c -m 644 cnagiosrc @NAGIOS_ETC_DIR@/cnagiosrc ; \
- else \
- echo installing cnagiosrc as @NAGIOS_ETC_DIR@/cnagiosrc.NEW ; \
- $(INSTALL) -c -m 644 cnagiosrc @NAGIOS_ETC_DIR@/cnagiosrc.NEW ; \
- fi
-
- @if [ ! -f @NAGIOS_ETC_DIR@/cnagios.help ]; then \
- echo installing cnagios.help in @NAGIOS_ETC_DIR@ ; \
- $(INSTALL) -c -m 644 cnagios.help @NAGIOS_ETC_DIR@/cnagios.help ; \
- else \
- echo installing cnagios.help as @NAGIOS_ETC_DIR@/cnagios.help.NEW ; \
- $(INSTALL) -c -m 644 cnagios.help @NAGIOS_ETC_DIR@/cnagios.help.NEW ; \
- fi
-
- @if [ ! -f @NAGIOS_ETC_DIR@/cnagios.pl ]; then \
- echo installing cnagios.pl in @NAGIOS_ETC_DIR@ ; \
- $(INSTALL) -c -m 644 cnagios.pl @NAGIOS_ETC_DIR@/cnagios.pl ; \
- else \
- echo installing cnagios.pl as @NAGIOS_ETC_DIR@/cnagios.pl.NEW ; \
- $(INSTALL) -c -m 644 cnagios.pl @NAGIOS_ETC_DIR@/cnagios.pl.NEW ; \
- fi
+ $(INSTALL) -c -m 755 cnagios $(DESTDIR)@prefix@/bin/cnagios
+ $(INSTALL) -c -m 444 cnagios.1 $(DESTDIR)@prefix@/man/man1/cnagios.1
+ $(INSTALL) -c -m 644 cnagiosrc $(DESTDIR)@NAGIOS_ETC_DIR@/cnagiosrc.sample
+ $(INSTALL) -c -m 644 cnagios.help $(DESTDIR)@NAGIOS_ETC_DIR@/cnagios.help.sample
+ $(INSTALL) -c -m 644 cnagios.pl $(DESTDIR)@NAGIOS_ETC_DIR@/cnagios.pl.sample
install2:
@if [ -f /usr/local/bin/cnagios ]; then \