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

diff -ruN nrpe-2.10-orig/Makefile.in nrpe-2.10/Makefile.in
--- nrpe-2.10-orig/Makefile.in	2007-03-14 15:30:05.000000000 +0000
+++ nrpe-2.10/Makefile.in	2007-12-06 23:25:57.000000000 +0000
@@ -54,12 +54,15 @@
 
 install:
 	cd $(SRC_BASE) && $(MAKE) $@
+	$(MAKE) install-xinetd
+	$(MAKE) install-daemon-config
 
 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)
 
 clean:
diff -ruN nrpe-2.10-orig/src/Makefile.in nrpe-2.10/src/Makefile.in
--- nrpe-2.10-orig/src/Makefile.in	2007-08-13 17:10:07.000000000 +0000
+++ nrpe-2.10/src/Makefile.in	2007-12-06 23:31:18.000000000 +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