File chown.patch of Package ZoneMinder

diff -U 3 -H -d -r -N -- ZoneMinder-1.22.2/Makefile.in ZoneMinder-1.22.2-patch/Makefile.in
--- ZoneMinder-1.22.2/Makefile.in	2006-05-08 13:21:12.000000000 +0200
+++ ZoneMinder-1.22.2-patch/Makefile.in	2006-11-12 17:46:34.000000000 +0100
@@ -672,9 +672,9 @@
 
 # Yes, you are correct. This is a HACK!
 install-data-hook:
-	( cd $(DESTDIR)$(sysconfdir); chown $(webuser):$(webgroup) $(sysconf_DATA); chmod 600 $(sysconf_DATA) )
-	-( if ! test -e $(RUNDIR); then mkdir $(RUNDIR); fi )
-	( if ! test -e $(ZM_RUNDIR); then mkdir $(ZM_RUNDIR); fi; chown $(webuser):$(webgroup) $(ZM_RUNDIR); chmod u+w $(ZM_RUNDIR) )
+	( cd $(DESTDIR)$(sysconfdir); chmod 600 $(sysconf_DATA) )
+	-( if ! test -e $(DESTDIR)$(RUNDIR); then mkdir -p $(DESTDIR)$(RUNDIR); fi )
+	( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then mkdir $(DESTDIR)$(ZM_RUNDIR); fi; chmod u+w $(DESTDIR)$(ZM_RUNDIR) )
 
 uninstall-hook:
 	@-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
diff -U 3 -H -d -r -N -- ZoneMinder-1.22.2/web/Makefile.in ZoneMinder-1.22.2-patch/web/Makefile.in
--- ZoneMinder-1.22.2/web/Makefile.in	2006-05-15 23:03:53.000000000 +0200
+++ ZoneMinder-1.22.2-patch/web/Makefile.in	2006-11-12 17:39:04.000000000 +0100
@@ -716,12 +716,11 @@
 
 # Yes, you are correct. This is a HACK!
 install-data-hook:
-	( cd $(DESTDIR)$(webdir); chown $(webuser):$(webgroup) $(web_DATA) )
-	@-( cd $(DESTDIR)$(webdir); if ! test -e events; then mkdir events; fi; chown $(webuser):$(webgroup) events; chmod u+w events )
-	@-( cd $(DESTDIR)$(webdir); if ! test -e graphics; then mkdir graphics; fi; chown $(webuser):$(webgroup) graphics; chmod u+w graphics )
-	@-( cd $(DESTDIR)$(webdir); if ! test -e images; then mkdir images; fi; chown $(webuser):$(webgroup) images; chmod u+w images )
-	@-( cd $(DESTDIR)$(webdir); if ! test -e sounds; then mkdir sounds; fi; chown $(webuser):$(webgroup) sounds; chmod u+w sounds )
-	@-( cd $(DESTDIR)$(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp )
+	( cd $(DESTDIR)$(webdir); if ! test -e events; then mkdir events; fi; chmod u+w events )
+	@-( cd $(DESTDIR)$(webdir); if ! test -e graphics; then mkdir graphics; fi; chmod u+w graphics )
+	@-( cd $(DESTDIR)$(webdir); if ! test -e images; then mkdir images; fi; chmod u+w images )
+	@-( cd $(DESTDIR)$(webdir); if ! test -e sounds; then mkdir sounds; fi; chmod u+w sounds )
+	@-( cd $(DESTDIR)$(webdir); if ! test -e temp; then mkdir temp; fi; chmod u+w temp )
 	-( cd $(DESTDIR)$(webdir); ln -s zm.php index.php )
 
 uninstall-hook:
diff -U 3 -H -d -r -N -- ZoneMinder-1.22.2/web/graphics/Makefile.in ZoneMinder-1.22.2-patch/web/graphics/Makefile.in
--- ZoneMinder-1.22.2/web/graphics/Makefile.in	2006-05-08 13:21:11.000000000 +0200
+++ ZoneMinder-1.22.2-patch/web/graphics/Makefile.in	2006-11-12 17:43:14.000000000 +0100
@@ -361,9 +361,6 @@
 	uninstall-webDATA
 
 
-# Yes, you are correct. This is a HACK!
-install-data-hook:
-	( cd $(DESTDIR)$(webdir); chown $(webuser):$(webgroup) $(web_DATA) )
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
openSUSE Build Service is sponsored by