diff options
Diffstat (limited to 'sys-cluster/heartbeat')
-rw-r--r-- | sys-cluster/heartbeat/ChangeLog | 8 | ||||
-rw-r--r-- | sys-cluster/heartbeat/files/digest-heartbeat-1.2.5 | 3 | ||||
-rw-r--r-- | sys-cluster/heartbeat/heartbeat-1.2.5.ebuild | 73 |
3 files changed, 83 insertions, 1 deletions
diff --git a/sys-cluster/heartbeat/ChangeLog b/sys-cluster/heartbeat/ChangeLog index 77f22dcacb8a..15fbae1de752 100644 --- a/sys-cluster/heartbeat/ChangeLog +++ b/sys-cluster/heartbeat/ChangeLog @@ -1,6 +1,12 @@ # 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.52 2006/08/14 14:20:45 xmerlin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.53 2006/08/16 16:02:13 xmerlin Exp $ + +*heartbeat-1.2.5 (16 Aug 2006) + + 16 Aug 2006; Christian Zoffoli <xmerlin@gentoo.org> + +heartbeat-1.2.5.ebuild: + Version bump. 14 Aug 2006; Christian Zoffoli <xmerlin@gentoo.org> -files/heartbeat-2.0.4-fix-local-DOS-attack.patch, diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-1.2.5 b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.5 new file mode 100644 index 000000000000..0246e3f14807 --- /dev/null +++ b/sys-cluster/heartbeat/files/digest-heartbeat-1.2.5 @@ -0,0 +1,3 @@ +MD5 d59b021af0e1cbaba56345cc67f6ef12 heartbeat-1.2.5.tar.gz 2107371 +RMD160 0e94fa64339b9b77e11ffe92cffa66fef4f4f2b0 heartbeat-1.2.5.tar.gz 2107371 +SHA256 46f88a69324012317a4426dc93654ab28947b77675826686624d15cd5a4e357f heartbeat-1.2.5.tar.gz 2107371 diff --git a/sys-cluster/heartbeat/heartbeat-1.2.5.ebuild b/sys-cluster/heartbeat/heartbeat-1.2.5.ebuild new file mode 100644 index 000000000000..912700f45568 --- /dev/null +++ b/sys-cluster/heartbeat/heartbeat-1.2.5.ebuild @@ -0,0 +1,73 @@ +# 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-1.2.5.ebuild,v 1.1 2006/08/16 16:02:13 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="~x86 -mips ~ppc ~amd64" +IUSE="ldirectord" + +DEPEND="dev-libs/popt + =dev-libs/glib-1.2* + net-libs/libnet + ldirectord? ( sys-cluster/ipvsadm + dev-perl/libwww-perl + dev-perl/perl-ldap + virtual/perl-libnet )" + +# need to add dev-perl/Mail-IMAPClient inside ldirectord above + +src_compile() { + append-ldflags -Wl,-z,now + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-group-name=cluster \ + --with-group-id=65 \ + --with-ccmuser-name=cluster \ + --with-ccmuser-id=65 || 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 /etc/ha.d/conf + + dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord || die + + # 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/man/man8/supervise-ldirectord-config.8 + rm ${D}/usr/man/man8/ldirectord.8 + rm ${D}/usr/sbin/ldirectord + rm ${D}/usr/sbin/supervise-ldirectord-config + rm ${D}/etc/ha.d/resource.d/ldirectord + fi + + exeinto /etc/init.d + newexe ${FILESDIR}/heartbeat-init heartbeat +} |