summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jackson <iggy@gentoo.org>2004-02-11 05:52:30 +0000
committerBrian Jackson <iggy@gentoo.org>2004-02-11 05:52:30 +0000
commitd03239f8521732f94eead25a0309e989665a4b41 (patch)
treea220e0afa66582657982841fb02bfbca5977187d /sys-cluster/heartbeat/heartbeat-1.1.5.ebuild
parentVersion bump and cleanup, upped swig dep and added ruby dep. (diff)
downloadhistorical-d03239f8521732f94eead25a0309e989665a4b41.tar.gz
historical-d03239f8521732f94eead25a0309e989665a4b41.tar.bz2
historical-d03239f8521732f94eead25a0309e989665a4b41.zip
version bump
Diffstat (limited to 'sys-cluster/heartbeat/heartbeat-1.1.5.ebuild')
-rw-r--r--sys-cluster/heartbeat/heartbeat-1.1.5.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-cluster/heartbeat/heartbeat-1.1.5.ebuild b/sys-cluster/heartbeat/heartbeat-1.1.5.ebuild
new file mode 100644
index 000000000000..e7912c9aef6d
--- /dev/null
+++ b/sys-cluster/heartbeat/heartbeat-1.1.5.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/heartbeat/heartbeat-1.1.5.ebuild,v 1.1 2004/02/11 05:52:30 iggy Exp $
+
+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"
+IUSE="ldirectord"
+
+DEPEND="dev-libs/popt
+ dev-libs/glib
+ net-libs/libnet
+ ldirectord? ( sys-cluster/ipvsadm
+ dev-perl/libwww-perl
+ dev-perl/perl-ldap
+ dev-perl/libnet )"
+
+# need to add dev-perl/Mail-IMAPClient inside ldirectord above
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ mv ltmain.sh ltmain.orig
+ echo "export _POSIX2_VERSION=199209" > ltmain.sh
+ cat ltmain.orig >> ltmain.sh
+}
+
+src_compile() {
+ ./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 || die
+}
+
+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
+
+ # 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
+ fi
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/heartbeat-init heartbeat
+}