From 848630b2a7a70c02d2e8c3a0a3e8fa025d7e1b30 Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 16 Nov 2005 10:24:03 +0000 Subject: [PATCH] Added uninstall hook to complete uninstall. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1590 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/Makefile.am | 4 ++++ web/Makefile.am | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index be103b568..3c2dfbf17 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -81,3 +81,7 @@ install-exec-hook: ( cd $(DESTDIR)@bindir@; mkdir -p $(DESTDIR)$(cgidir); mv zms $(DESTDIR)$(cgidir) ) ( cd $(DESTDIR)$(cgidir); chown $(webuser):$(webgroup) zms; ln -f zms nph-zms ) ( cd $(DESTDIR)@bindir@; chmod u+s zmfix ) + +uninstall-hook: + ( cd $(DESTDIR)$(cgidir); rm -f zms nph-zms ) + diff --git a/web/Makefile.am b/web/Makefile.am index 474be3f7f..715617537 100644 --- a/web/Makefile.am +++ b/web/Makefile.am @@ -212,3 +212,5 @@ install-data-hook: @-( cd $(DESTDIR)$(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp ) -( cd $(DESTDIR)$(webdir); ln -s zm.php index.php ) +uninstall-hook: + @-( cd $(DESTDIR)$(webdir); rm -rf events graphics images sounds temp )