diff options
Diffstat (limited to 'sys-cluster/heartbeat')
-rw-r--r-- | sys-cluster/heartbeat/ChangeLog | 9 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-1.2.3 | 2 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1 | 2 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r2 | 2 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-2.0.4 | 2 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-2.0.5 | 3 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/heartbeat-init | 68 | ||||
-rw-r--r-- | sys-cluster/heartbeat/heartbeat-2.0.5.ebuild | 111 |
8 files changed, 186 insertions, 13 deletions
diff --git a/sys-cluster/heartbeat/ChangeLog b/sys-cluster/heartbeat/ChangeLog index 2171c5c8e56f..ae44ad56073b 100644 --- a/sys-cluster/heartbeat/ChangeLog +++ b/sys-cluster/heartbeat/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-cluster/heartbeat # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.44 2006/04/15 16:03:45 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.45 2006/07/13 12:52:23 xmerlin Exp $ + +*heartbeat-2.0.5 (13 Jul 2006) + + 13 Jul 2006; Christian Zoffoli <xmerlin@gentoo.org> files/heartbeat-init, + +heartbeat-2.0.5.ebuild: + Added GUI support, fixed bug #131514. Thanks to Neil Katin <gentoo@askneil.com>. + Improved init script, fixed bug #133170. Thanks to Petre Rodan <kaiowas@gentoo.org>. 15 Apr 2006; Christian Zoffoli <xmerlin@gentoo.org> heartbeat-2.0.4.ebuild: diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3 b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3 index 1db4b5d1aa0a..85ac88aebbda 100644 --- a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3 +++ b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3 @@ -1 +1,3 @@ MD5 9fd126e5dff51cc8c1eee223c252a4af heartbeat-1.2.3.tar.gz 1772513 +RMD160 f2d7b58e862c7bef3ee7d8a0421744fcd35544c2 heartbeat-1.2.3.tar.gz 1772513 +SHA256 44a2e7b3cea825f873d47366f02ff51a8aaab320d51618e959fa2c6a5cbf3ed2 heartbeat-1.2.3.tar.gz 1772513 diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1 b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1 index 1db4b5d1aa0a..85ac88aebbda 100644 --- a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1 +++ b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r1 @@ -1 +1,3 @@ MD5 9fd126e5dff51cc8c1eee223c252a4af heartbeat-1.2.3.tar.gz 1772513 +RMD160 f2d7b58e862c7bef3ee7d8a0421744fcd35544c2 heartbeat-1.2.3.tar.gz 1772513 +SHA256 44a2e7b3cea825f873d47366f02ff51a8aaab320d51618e959fa2c6a5cbf3ed2 heartbeat-1.2.3.tar.gz 1772513 diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r2 b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r2 index 1db4b5d1aa0a..85ac88aebbda 100644 --- a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r2 +++ b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.3-r2 @@ -1 +1,3 @@ MD5 9fd126e5dff51cc8c1eee223c252a4af heartbeat-1.2.3.tar.gz 1772513 +RMD160 f2d7b58e862c7bef3ee7d8a0421744fcd35544c2 heartbeat-1.2.3.tar.gz 1772513 +SHA256 44a2e7b3cea825f873d47366f02ff51a8aaab320d51618e959fa2c6a5cbf3ed2 heartbeat-1.2.3.tar.gz 1772513 diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-2.0.4 b/sys-cluster/heartbeat/files/digest-heartbeat-2.0.4 index cc4914c94d4c..e8c91007a8bb 100644 --- a/sys-cluster/heartbeat/files/digest-heartbeat-2.0.4 +++ b/sys-cluster/heartbeat/files/digest-heartbeat-2.0.4 @@ -1 +1,3 @@ MD5 659aae2365daea3a17e5a4a4ae0b0a3e heartbeat-2.0.4.tar.gz 2807110 +RMD160 94ff6d018253c29bee876bc5063ab1072b51091d heartbeat-2.0.4.tar.gz 2807110 +SHA256 334a3df02cdba3f1ef5f0ff60be54702928c54b40a5623cd55150b2a2d5d079f heartbeat-2.0.4.tar.gz 2807110 diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-2.0.5 b/sys-cluster/heartbeat/files/digest-heartbeat-2.0.5 new file mode 100644 index 000000000000..b2eda3c2f3d9 --- /dev/null +++ b/sys-cluster/heartbeat/files/digest-heartbeat-2.0.5 @@ -0,0 +1,3 @@ +MD5 209228b2948cfa4762a3a66454c6cc35 heartbeat-2.0.5.tar.gz 2837784 +RMD160 38591600953fe225ba9c548fd63b328f7e344da3 heartbeat-2.0.5.tar.gz 2837784 +SHA256 55565e61d991dd6b902b6b842321b6f33dd24ab4025cbd8bc72ae8b18e68e2b9 heartbeat-2.0.5.tar.gz 2837784 diff --git a/sys-cluster/heartbeat/files/heartbeat-init b/sys-cluster/heartbeat/files/heartbeat-init index f3befad12794..a3ae6192bb29 100644 --- a/sys-cluster/heartbeat/files/heartbeat-init +++ b/sys-cluster/heartbeat/files/heartbeat-init @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/files/heartbeat-init,v 1.5 2004/07/15 00:54:33 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/files/heartbeat-init,v 1.6 2006/07/13 12:52:23 xmerlin Exp $ HA_DIR=/etc/ha.d @@ -10,35 +10,79 @@ depend() { need net } +opts="start stop status reload restart" + +CheckBool() { + case `echo "$1" | tr A-Z a-z` in + y|yes|enable|on|true|1) true;; + *) false;; + esac +} + # Run pre-startup script if it exists RunStartStop() { [ -f $HA_DIR/resource.d/startstop ] && $HA_DIR/resource.d/startstop "$@" } start() { - ebegin "Starting Heartbeat" + ebegin "Starting heartbeat" + + . $HA_DIR/shellfuncs + + # start the log subsystem + /usr/lib/heartbeat/ha_logd -s &>/dev/null && \ + /usr/lib/heartbeat/ha_logd -d RunStartStop pre-start - /usr/lib/heartbeat/heartbeat 2>&1 + CheckBool "`ha_parameter crm`" && \ + /usr/lib/heartbeat/ResourceManager verifyallidle + + /usr/lib/heartbeat/heartbeat &>/dev/null ret=$? - /usr/lib/heartbeat/ResourceManager verifyallidle RunStartStop post-start - eend $ret + eend ${ret} } stop() { - ebegin "Stopping Heartbeat" - /usr/lib/heartbeat/heartbeat -k &> /dev/null - eend $? -} + ebegin "Stopping heartbeat" -restart() { - /usr/lib/heartbeat/heartbeat -r + RunStartStop pre-stop + + /usr/lib/heartbeat/heartbeat -k &>/dev/null + ret=$? + + RunStartStop post-stop ${ret} + + # stop log subsystem + /usr/lib/heartbeat/ha_logd -s &>/dev/null || \ + /usr/lib/heartbeat/ha_logd -k &>/dev/null + + eend ${ret} } status() { /usr/lib/heartbeat/heartbeat -s } + +reload() { + ebegin "Reloading heartbeat" + /usr/lib/heartbeat/heartbeat -r &>/dev/null + eend $? +} + +restart() { + . $HA_DIR/shellfuncs + + sleeptime=$(( `ha_parameter deadtime` + 10 )) + + svc_stop + + ebegin " waiting ${sleeptime}s to allow resource takeover to complete" + sleep ${sleeptime} + eend 0 + + svc_start +} diff --git a/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild b/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild new file mode 100644 index 000000000000..977c4258b6d4 --- /dev/null +++ b/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-2.0.5.ebuild,v 1.1 2006/07/13 12:52:23 xmerlin Exp $ + +inherit flag-o-matic + +DESCRIPTION="Heartbeat high availability cluster manager" +HOMEPAGE="http://www.linux-ha.org" +SRC_URI="http://www.linux-ha.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-amd64 -mips -ppc -s390 ~x86" +IUSE="ldirectord doc snmp management" + +DEPEND=" + =dev-libs/glib-2* + net-libs/libnet + dev-util/pkgconfig + dev-lang/perl + net-misc/iputils + virtual/ssh + net-libs/gnutls + ldirectord? ( sys-cluster/ipvsadm + dev-perl/Net-DNS + dev-perl/libwww-perl + dev-perl/perl-ldap + perl-core/libnet + dev-perl/Crypt-SSLeay + dev-perl/HTML-Parser + dev-perl/perl-ldap + dev-perl/Mail-IMAPClient + ) + snmp? ( net-analyzer/net-snmp ) + net-misc/telnet-bsd + dev-lang/swig + management? ( + >=dev-lang/python-2.4 + >=dev-python/pygtk-2.4 + >=sys-libs/pam-0.78-r3 + ) + " + + +src_compile() { + append-ldflags $(bindnow-flags) + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-group-name=cluster \ + --with-group-id=65 \ + --with-ccmuser-name=cluster \ + --with-ccmuser-id=65 \ + --enable-checkpointd \ + --enable-crm \ + --enable-lrm \ + $(use_enable management mgmt) \ + || die + emake -j 1 || die "compile problem" +} + +pkg_preinst() { + # check for cluster group, if it doesn't exist make it + if ! grep -q cluster.*65 /etc/group ; then + groupadd -g 65 cluster + fi + # check for cluster user, if it doesn't exist make it + if ! grep -q cluster.*65 /etc/passwd ; then + useradd -u 65 -g cluster -s /dev/null -d /var/lib/heartbeat cluster + fi +} + +src_install() { + make DESTDIR=${D} install || die + + # heartbeat modules need these dirs + #keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat + + keepdir /var/lib/heartbeat/crm /var/lib/heartbeat/lrm /var/lib/heartbeat/fencing + keepdir /var/lib/heartbeat/cores/cluster /var/lib/heartbeat/cores/root /var/lib/heartbeat/cores/nobody + + keepdir /var/run/heartbeat/ccm /var/run/heartbeat/crm + + keepdir /etc/ha.d/conf + + dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord || die + + if use management ; then + keepdir /var/lib/heartbeat/mgmt + fi + + # if ! USE="ldirectord" then don't install it + if ! use ldirectord ; then + rm ${D}/etc/init.d/ldirectord + rm ${D}/etc/logrotate.d/ldirectord + rm ${D}/usr/share/man/man8/supervise-ldirectord-config.8 + rm ${D}/usr/share/man/man8/ldirectord.8 + rm ${D}/usr/sbin/ldirectord + rm ${D}/usr/sbin/supervise-ldirectord-config + fi + + exeinto /etc/init.d + newexe ${FILESDIR}/heartbeat-init heartbeat + + dodoc ldirectord/ldirectord.cf doc/*.cf doc/haresources doc/authkeys || die + if use doc ; then + dodoc README doc/*.txt doc/AUTHORS doc/COPYING || die + fi +} |