summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2005-03-19 21:52:34 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2005-03-19 21:52:34 +0000
commite5087985aad018a85767bf5dfde87b5a9148ff81 (patch)
tree8c6ae5c924f2b581eaea52ae6894e6109f63c258 /sys-cluster
parentdeleted old version and bumped to latest with skypein (diff)
downloadhistorical-e5087985aad018a85767bf5dfde87b5a9148ff81.tar.gz
historical-e5087985aad018a85767bf5dfde87b5a9148ff81.tar.bz2
historical-e5087985aad018a85767bf5dfde87b5a9148ff81.zip
added gentoo compliant init
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/fence/ChangeLog6
-rw-r--r--sys-cluster/fence/Manifest13
-rw-r--r--sys-cluster/fence/fence-1.25.ebuild4
-rwxr-xr-xsys-cluster/fence/files/fenced.rc23
4 files changed, 33 insertions, 13 deletions
diff --git a/sys-cluster/fence/ChangeLog b/sys-cluster/fence/ChangeLog
index b29b285901f1..11963148bbef 100644
--- a/sys-cluster/fence/ChangeLog
+++ b/sys-cluster/fence/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/fence
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fence/ChangeLog,v 1.6 2005/03/19 15:35:54 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fence/ChangeLog,v 1.7 2005/03/19 21:52:34 xmerlin Exp $
+
+ 19 Mar 2005; Christian Zoffoli <xmerlin@gentoo.org> +files/fenced.rc,
+ fence-1.25.ebuild:
+ added gentoo compliant init
*fence-1.25 (19 Mar 2005)
diff --git a/sys-cluster/fence/Manifest b/sys-cluster/fence/Manifest
index bddbfb1e3a65..24aa0b83b3ef 100644
--- a/sys-cluster/fence/Manifest
+++ b/sys-cluster/fence/Manifest
@@ -1,18 +1,9 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 458a3f7bbb15b94860e31c6fa7bffb86 fence-1.1.ebuild 669
MD5 a64b9a1937a5cfc2fbaf373521f65d47 metadata.xml 223
MD5 546bad39c738614f08f3f152767733ec ChangeLog 591
MD5 bda1aff0f0350c4b3022d7efa86c6978 fence-1.5.ebuild 751
-MD5 5aeff6c71d6840757b11d711075e91b6 fence-1.25.ebuild 752
+MD5 fa3a925b89f7ca96656950b44e033bb4 fence-1.25.ebuild 819
MD5 0525a754475de417bde039d1d5ea1b02 files/digest-fence-1.1 60
MD5 ee20a5bcde14f8c6c135faed5114967c files/digest-fence-1.5 60
MD5 f01eba53626c01082acd57e7a8caa414 files/digest-fence-1.25 61
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFCPEd0gMUyd/cdjWsRApTRAJ48O2dduhbL+ag0oCIMXn9xK4hLcACeKmhL
-DD6RMb1KrAMGPFJipE04Rgc=
-=inXt
------END PGP SIGNATURE-----
+MD5 d8caaa36b85a1622a264ff3acaa2af80 files/fenced.rc 386
diff --git a/sys-cluster/fence/fence-1.25.ebuild b/sys-cluster/fence/fence-1.25.ebuild
index 2b90e95420d7..e36db193b03e 100644
--- a/sys-cluster/fence/fence-1.25.ebuild
+++ b/sys-cluster/fence/fence-1.25.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fence/fence-1.25.ebuild,v 1.1 2005/03/19 15:35:54 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fence/fence-1.25.ebuild,v 1.2 2005/03/19 21:52:34 xmerlin Exp $
inherit linux-mod
@@ -30,4 +30,6 @@ src_compile() {
src_install() {
make DESTDIR=${D} install || die
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/fenced.rc fenced || die
}
diff --git a/sys-cluster/fence/files/fenced.rc b/sys-cluster/fence/files/fenced.rc
new file mode 100755
index 000000000000..5215e870c746
--- /dev/null
+++ b/sys-cluster/fence/files/fenced.rc
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fence/files/fenced.rc,v 1.1 2005/03/19 21:52:34 xmerlin Exp $
+
+depend() {
+ use net
+ need ccs
+ before gfs
+ provide fence
+}
+
+start() {
+ ebegin "Starting fence domain"
+ /sbin/fence_tool join > /dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping fence domain"
+ /sbin/fence_tool leave > /dev/null 2>&1
+ eend $?
+}