From ebac915ae1811c8c98ecd0594772315f6d30069f Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 22 Dec 2005 14:40:18 +0000 Subject: [PATCH] Bug 237 - Added /var/run/zm creation/destruction git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1717 e3e1d417-86f3-4887-817a-d78f3d33393f --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.am b/Makefile.am index 59deaecd7..85bee2c9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,4 +22,9 @@ EXTRA_DIST = \ # 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) ) +uninstall-hook: + @-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp ) + @-( rm -rf $(ZM_RUNDIR) )