summaryrefslogtreecommitdiffstats
path: root/system/ZoneMinder/patches/02_destdir-fix.patch
diff options
context:
space:
mode:
author V'yacheslav Stetskevych2010-07-09 08:38:22 +0200
committer Robby Workman2010-07-10 09:17:47 +0200
commit6149f3636948188bbad6377fa1f4425591f6fe22 (patch)
tree924b5c6e6dadcaf8f33aaab84abf4211f4bfa828 /system/ZoneMinder/patches/02_destdir-fix.patch
parent944d84608d9bf501dd16124307fcab77ee5d688d (diff)
downloadslackbuilds-6149f3636948188bbad6377fa1f4425591f6fe22.tar.gz
system/ZoneMinder: Added (security and surveillance solution)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/ZoneMinder/patches/02_destdir-fix.patch')
-rw-r--r--system/ZoneMinder/patches/02_destdir-fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/ZoneMinder/patches/02_destdir-fix.patch b/system/ZoneMinder/patches/02_destdir-fix.patch
new file mode 100644
index 0000000000..759e3e494f
--- /dev/null
+++ b/system/ZoneMinder/patches/02_destdir-fix.patch
@@ -0,0 +1,15 @@
+--- ZoneMinder-1.24.2/Makefile.am.orig 2006-12-25 01:21:07.000000000 +0000
++++ ZoneMinder-1.24.2/Makefile.am 2006-12-25 01:22:04.000000000 +0000
+@@ -23,9 +23,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) )
++ -( if ! test -e $(DESTDIR)$(RUNDIR); then @mkdir_p@ $(DESTDIR)$(RUNDIR); fi )
++ ( if ! test -e $(DESTDIR)$(ZM_RUNDIR); then @mkdir_p@ $(DESTDIR)$(ZM_RUNDIR); fi; chown $(webuser):$(webgroup) $(DESTDIR)$(ZM_RUNDIR); chmod u+w $(DESTDIR)$(ZM_RUNDIR) )
+
+ uninstall-hook:
+ @-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )
+- @-( rm -rf $(ZM_RUNDIR) )
++ @-( rm -rf $(DESTDIR)$(ZM_RUNDIR) )