File nrpe-2.12-Makefile.patch of Package nagios-nrpe

diff -ruN nrpe-2.12-orig/Makefile.in nrpe-2.12/Makefile.in
--- nrpe-2.12-orig/Makefile.in	2007-03-14 15:30:05.000000000 +0000
+++ nrpe-2.12/Makefile.in	2009-06-05 08:32:59.536100004 +0000
@@ -46,22 +46,30 @@
 	cd $(SRC_BASE); $(MAKE) ; cd ..
 
 
-install-plugin:
+install:
 	cd $(SRC_BASE) && $(MAKE) $@
 
-install-daemon:
+install-plugin:
 	cd $(SRC_BASE) && $(MAKE) $@
 
-install:
+install-daemon:
 	cd $(SRC_BASE) && $(MAKE) $@
 
 install-xinetd:
-	$(INSTALL) -m 644 sample-config/nrpe.xinetd /etc/xinetd.d/nrpe 
+	$(INSTALL) -d $(DESTDIR)/etc/xinetd.d
+	$(INSTALL) -m 644 sample-config/nrpe.xinetd $(DESTDIR)/etc/xinetd.d/nrpe
 
 install-daemon-config:
-	$(INSTALL) -m 775 $(NAGIOS_INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
+	$(INSTALL) $(NAGIOS_INSTALL_OPTS) -d $(DESTDIR)$(CFGDIR)
 	$(INSTALL) -m 644 $(NRPE_INSTALL_OPTS) sample-config/nrpe.cfg $(DESTDIR)$(CFGDIR)
 
+install-all:
+	$(MAKE) install
+	$(MAKE) install-daemon
+	$(MAKE) install-daemon-config
+	$(MAKE) install-plugin
+	$(MAKE) install-xinetd
+
 clean:
 	cd $(SRC_BASE); $(MAKE) $@ ; cd ..
 	rm -f core
diff -ruN nrpe-2.12-orig/src/Makefile.in nrpe-2.12/src/Makefile.in
--- nrpe-2.12-orig/src/Makefile.in	2007-08-13 17:10:07.000000000 +0000
+++ nrpe-2.12/src/Makefile.in	2009-06-05 08:25:35.876231297 +0000
@@ -44,12 +44,12 @@
 	$(MAKE) install-daemon
 
 install-plugin:
-	$(INSTALL) -m 775 $(NAGIOS_INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
-	$(INSTALL) -m 775 $(NAGIOS_INSTALL_OPTS) check_nrpe $(DESTDIR)$(LIBEXECDIR)
+	$(INSTALL) $(NAGIOS_INSTALL_OPTS) -d $(DESTDIR)$(LIBEXECDIR)
+	$(INSTALL) $(NAGIOS_INSTALL_OPTS) check_nrpe $(DESTDIR)$(LIBEXECDIR)
 
 install-daemon:
-	$(INSTALL) -m 775 $(NAGIOS_INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
-	$(INSTALL) -m 775 $(NRPE_INSTALL_OPTS) nrpe $(DESTDIR)$(BINDIR)
+	$(INSTALL) $(NAGIOS_INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
+	$(INSTALL) $(NRPE_INSTALL_OPTS) nrpe $(DESTDIR)$(BINDIR)
 
 clean:
 	rm -f core nrpe check_nrpe $(SNPRINTF_O)
openSUSE Build Service is sponsored by