summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2006-08-24 16:24:28 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2006-08-24 16:24:28 +0000
commitf00a469c1a339281e0609270881288b801c04106 (patch)
treeb0ac1927e30c814490bf26be7219d1d624d66db1 /sys-cluster/heartbeat
parentAdding linux-2.6.17.10 and linux-2.6.17.11. Closing bug #144957 (thanks to Ma... (diff)
downloadgentoo-2-f00a469c1a339281e0609270881288b801c04106.tar.gz
gentoo-2-f00a469c1a339281e0609270881288b801c04106.tar.bz2
gentoo-2-f00a469c1a339281e0609270881288b801c04106.zip
Added some missing deps. Fixed bug #144931.
(Portage version: 2.1-r1)
Diffstat (limited to 'sys-cluster/heartbeat')
-rw-r--r--sys-cluster/heartbeat/ChangeLog8
-rw-r--r--sys-cluster/heartbeat/files/digest-heartbeat-2.0.7-r13
-rw-r--r--sys-cluster/heartbeat/heartbeat-2.0.7-r1.ebuild119
3 files changed, 129 insertions, 1 deletions
diff --git a/sys-cluster/heartbeat/ChangeLog b/sys-cluster/heartbeat/ChangeLog
index 9f58fb9ce687..4e09f10db758 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.54 2006/08/18 10:37:58 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/ChangeLog,v 1.55 2006/08/24 16:24:28 xmerlin Exp $
+
+*heartbeat-2.0.7-r1 (24 Aug 2006)
+
+ 24 Aug 2006; Christian Zoffoli <xmerlin@gentoo.org>
+ -heartbeat-2.0.7.ebuild, +heartbeat-2.0.7-r1.ebuild:
+ Added some missing deps. Fixed bug #144931.
18 Aug 2006; Christian Zoffoli <xmerlin@gentoo.org>
heartbeat-1.2.5.ebuild, heartbeat-2.0.7.ebuild:
diff --git a/sys-cluster/heartbeat/files/digest-heartbeat-2.0.7-r1 b/sys-cluster/heartbeat/files/digest-heartbeat-2.0.7-r1
new file mode 100644
index 000000000000..8ff7ae56cec2
--- /dev/null
+++ b/sys-cluster/heartbeat/files/digest-heartbeat-2.0.7-r1
@@ -0,0 +1,3 @@
+MD5 41233e5097c42341bf2162806d4cb99c heartbeat-2.0.7.tar.gz 3327126
+RMD160 8fe70e64fc6714fef4e501ae0b240d870a51cf75 heartbeat-2.0.7.tar.gz 3327126
+SHA256 008214f51fd0c49e168d1bb262cb5c967bc166f99d0c8ff3a2623c8ba51a0ab3 heartbeat-2.0.7.tar.gz 3327126
diff --git a/sys-cluster/heartbeat/heartbeat-2.0.7-r1.ebuild b/sys-cluster/heartbeat/heartbeat-2.0.7-r1.ebuild
new file mode 100644
index 000000000000..d5c371523e74
--- /dev/null
+++ b/sys-cluster/heartbeat/heartbeat-2.0.7-r1.ebuild
@@ -0,0 +1,119 @@
+# 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.7-r1.ebuild,v 1.1 2006/08/24 16:24:28 xmerlin Exp $
+
+inherit flag-o-matic eutils
+
+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-5.8.8
+ 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
+ dev-perl/Mail-POP3Client
+ dev-perl/MailTools
+ )
+ 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_unpack() {
+ unpack ${A}
+ cd ${S}
+ #epatch ${FILESDIR}/${PN}-2.0.4-fix-local-DOS-attack.patch || die
+}
+
+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}/etc/ha.d/resource.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
+}