cluster: STABLE3 - fence_na: add example config file

Fabio M. Di Nitto fabbione at fedoraproject.org
Thu Sep 2 04:45:11 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b02e70a19b318379101c0f20ac25cc300880b404
Commit:        b02e70a19b318379101c0f20ac25cc300880b404
Parent:        15c40f76ea642aa51b856894113c6c83ab8fc384
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Tue Aug 24 14:42:47 2010 +0200
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Thu Sep 2 06:42:27 2010 +0200

fence_na: add example config file

Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 fence/agents/node_assassin/Makefile |    2 ++
 make/install.mk                     |    4 ++++
 make/uninstall.mk                   |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/fence/agents/node_assassin/Makefile b/fence/agents/node_assassin/Makefile
index 92e4294..ee58038 100644
--- a/fence/agents/node_assassin/Makefile
+++ b/fence/agents/node_assassin/Makefile
@@ -4,6 +4,8 @@ MANTARGET	= fence_na.8
 
 FENCEAGENTSLIB	= $(S)/fence_na.lib
 
+CONFFILEEXAMPLE = $(S)/fence_na.conf
+
 all: $(TARGET) $(MANTARGET)
 
 include $(OBJDIR)/make/clean.mk
diff --git a/make/install.mk b/make/install.mk
index e40c61e..4b25826 100644
--- a/make/install.mk
+++ b/make/install.mk
@@ -90,3 +90,7 @@ ifdef MANTARGET
 		install -m644 $$i ${mandir}/man$$p; \
 	done
 endif
+ifdef CONFFILEEXAMPLE
+	install -d ${DESTDIR}/${CONFDIR}
+	install -m644 ${CONFFILEEXAMPLE} ${DESTDIR}/${CONFDIR}
+endif
diff --git a/make/uninstall.mk b/make/uninstall.mk
index 786faca..e1ad574 100644
--- a/make/uninstall.mk
+++ b/make/uninstall.mk
@@ -57,3 +57,6 @@ ifdef MANTARGET
 		${UNINSTALL} $$i ${mandir}/man$$p; \
 	done
 endif
+ifdef CONFFILEEXAMPLE
+	${UNINSTALL} ${CONFFILEEXAMPLE} ${DESTDIR}/${CONFDIR}
+endif


More information about the cluster-commits mailing list