fence: master - build/init: install/create common dirs

Fabio M. Di Nitto fabbione@fedoraproject.org
Tue Mar 24 20:36:00 GMT 2009


Gitweb:        http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=dea805993acb4c6368a4a96f8bba80658c8b45f1
Commit:        dea805993acb4c6368a4a96f8bba80658c8b45f1
Parent:        fe1dacafe59f2512ca5eac9069951c285013dbfa
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue Mar 24 21:23:48 2009 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Mar 24 21:35:58 2009 +0100

build/init: install/create common dirs

a bunch of directories need to be created either at install time
or by init scripts for the stack to operate properly.

Make sure that the basic is all there from upstream.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 Makefile |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index d7ecf6e..3c324d5 100644
--- a/Makefile
+++ b/Makefile
@@ -28,9 +28,17 @@ oldconfig:
 
 install:
 	set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
+	install -d ${notifyddir}
+	install -d ${logdir}
+	install -d ${DESTDIR}/var/lib/cluster
+	install -d ${DESTDIR}/var/run/cluster
 
 uninstall:
 	set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
+	rmdir ${notifyddir} || :;
+	rmdir ${logdir} || :;
+	rmdir ${DESTDIR}/var/lib/cluster || :;
+	rmdir ${DESTDIR}/var/run/cluster || :;
 
 clean:
 	set -e && for i in ${REALSUBDIRS}; do \



More information about the Cluster-cvs mailing list