File nagiosgrapher-1.7.1-buildroot.patch of Package nagiosgrapher

Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -183,9 +183,7 @@ precheck-failed:
 
 dirs:
 	mkdir -p $(DESTDIR)/$(NG_SRVEXT_DIR)
-	chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_SRVEXT_DIR)
 	mkdir -p $(DESTDIR)/$(NG_RRD)
-	chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_RRD)
 	mkdir -p $(DESTDIR)/$(NG_INIT_SCRIPT_DIR)
 	mkdir -p `dirname $(DESTDIR)/$(NG_LOGFILE)` 
 	mkdir -p $(DESTDIR)/$(NG_DAEMON)
@@ -196,7 +194,6 @@ dirs:
 
 logfile:
 	touch $(DESTDIR)/$(NG_LOGFILE)
-	chown $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_LOGFILE)
 
 config-install:
 	mkdir -p $(DESTDIR)/$(NG_CONFIG)
@@ -209,15 +206,11 @@ config-install:
 	cp -r cfg/templates/extra/*.ncfg* $(DESTDIR)/$(NG_CONFIG_SUB)/templates/extra
 	cp -r cfg/templates/standard/*.ncfg* $(DESTDIR)/$(NG_CONFIG_SUB)/templates/standard
 
-	chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NG_CONFIG)/*.ncfg*
-	chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NG_CONFIG)/*.ncfg*
 
 
 cgi-install:
 	mkdir -p $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
 	cp sbin/*.cgi $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
-	chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
-	chgrp -R $(APACHE_GROUP) $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
 	chmod -R 0755 $(DESTDIR)/$(NAGIOS_FOLDER_CGI)
 
 bin-install:
@@ -228,8 +221,6 @@ bin-install:
  		contrib/udpecho/udpecho \
 		$(DESTDIR)/$(NAGIOS_CONTRIBUTION)
 
-	chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
-	chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
 	chmod -R 0755 $(DESTDIR)/$(NAGIOS_CONTRIBUTION)
 
 bin-compile:
@@ -246,13 +237,9 @@ perl-install:
 	cp lib/NagiosGrapher/*.pm $(DESTDIR)/$(PERL_INC)/NagiosGrapher
 	cp lib/NagiosGrapher/Hooks/*.pm $(DESTDIR)/$(PERL_INC)/NagiosGrapher/Hooks
 
-	chown -R $(NAGIOS_PROC_USER) $(DESTDIR)/$(PERL_INC)
-	chgrp -R $(NAGIOS_PROC_GROUP) $(DESTDIR)/$(PERL_INC)
 
 logrotate-config:
 	cp cfg/logrotate/nagios_grapher $(DESTDIR)/${NG_LOGROTATE_CONF_DIR}/
-	chown root $(DESTDIR)/$(NG_LOGROTATE_CONF_DIR)/nagios_grapher
-	chgrp root $(DESTDIR)/$(NG_LOGROTATE_CONF_DIR)/nagios_grapher
 	chmod 0644 $(DESTDIR)/$(NG_LOGROTATE_CONF_DIR)/nagios_grapher
 
 init-script: