summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2013-08-22 07:45:52 +0200
committerWolfram Schlich <wschlich@gentoo.org>2013-08-22 07:45:52 +0200
commit2c8d064b367a44723b9b557fb1edca59387edf49 (patch)
tree762432f58f66cfa663464bd506f40bd73a8a812d /sys-cluster
parentinitial setup (diff)
downloadwschlich-2c8d064b367a44723b9b557fb1edca59387edf49.tar.gz
wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.tar.bz2
wschlich-2c8d064b367a44723b9b557fb1edca59387edf49.zip
added all ebuilds from my old svn repository
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/drbd-kernel/ChangeLog28
-rw-r--r--sys-cluster/drbd-kernel/Manifest6
-rw-r--r--sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild53
-rw-r--r--sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild54
-rw-r--r--sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2bin0 -> 8008 bytes
-rw-r--r--sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch23
-rw-r--r--sys-cluster/drbd/ChangeLog24
-rw-r--r--sys-cluster/drbd/Manifest6
-rw-r--r--sys-cluster/drbd/drbd-8.2.7.ebuild57
-rw-r--r--sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild63
-rw-r--r--sys-cluster/drbd/files/drbd-8.0.rc156
-rw-r--r--sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2bin0 -> 8008 bytes
-rw-r--r--sys-cluster/drbdlinks/ChangeLog11
-rw-r--r--sys-cluster/drbdlinks/Manifest6
-rw-r--r--sys-cluster/drbdlinks/drbdlinks-1.12.ebuild38
-rw-r--r--sys-cluster/drbdlinks/drbdlinks-1.15.ebuild38
-rw-r--r--sys-cluster/drbdlinks/files/drbdlinks-init41
-rw-r--r--sys-cluster/heartbeat-scripts/ChangeLog24
-rw-r--r--sys-cluster/heartbeat-scripts/Manifest3
-rw-r--r--sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild38
-rw-r--r--sys-cluster/heartbeat/ChangeLog87
-rw-r--r--sys-cluster/heartbeat/Manifest14
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch110
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch60
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch13
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch14
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch12
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch10
-rw-r--r--sys-cluster/heartbeat/files/heartbeat.init-r2133
-rw-r--r--sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild232
-rw-r--r--sys-cluster/heartbeat/heartbeat-2.1.4.ebuild202
-rw-r--r--sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild180
-rw-r--r--sys-cluster/pacemaker/ChangeLog30
-rw-r--r--sys-cluster/pacemaker/Manifest5
-rw-r--r--sys-cluster/pacemaker/pacemaker-0.6.4.ebuild69
-rw-r--r--sys-cluster/pacemaker/pacemaker-0.6.5.ebuild69
36 files changed, 1909 insertions, 0 deletions
diff --git a/sys-cluster/drbd-kernel/ChangeLog b/sys-cluster/drbd-kernel/ChangeLog
new file mode 100644
index 0000000..0689034
--- /dev/null
+++ b/sys-cluster/drbd-kernel/ChangeLog
@@ -0,0 +1,28 @@
+# ChangeLog for sys-cluster/drbd-kernel
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 03 Dec 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2,
+ +drbd-kernel-8.2.7_p20081202.ebuild:
+ bump to current drbd-8.2.git snapshot
+
+ 13 Nov 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -drbd-kernel-8.0.11.ebuild, -drbd-kernel-8.2.5.ebuild,
+ -drbd-kernel-8.2.6.ebuild, -drbd-kernel-8.2.7_rc2.ebuild,
+ +drbd-kernel-8.2.7.ebuild:
+ version bump, removed old versions
+
+ 10 Nov 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +drbd-kernel-8.2.7_rc2.ebuild:
+ version bump
+
+ 30 May 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +drbd-kernel-8.2.6.ebuild:
+ version bump
+
+ 29 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -drbd-kernel-8.0.10.ebuild, -drbd-kernel-8.2.4.ebuild,
+ -drbd-kernel-8.2.5_pre20080215.ebuild:
+ remove old versions and digests
+
diff --git a/sys-cluster/drbd-kernel/Manifest b/sys-cluster/drbd-kernel/Manifest
new file mode 100644
index 0000000..29710ca
--- /dev/null
+++ b/sys-cluster/drbd-kernel/Manifest
@@ -0,0 +1,6 @@
+AUX drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 8008 RMD160 f27c970f18a141b828f3ab8799e932bfe36c1807 SHA1 a524f68686c31c5c7069cadd1ec38899f0beff4c SHA256 6545adcf772deefca66c1f1a68c05ab593d4d2e866cd34e6f4d0bbff9910b0a7
+AUX drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch 679 RMD160 f459b054e5a0ee43bac860a365ce42d19b35f70f SHA1 d1553f440d1c2b152e6166d2d3148e80d9cd5a1c SHA256 594527b03820de4f8fbfbdfdbfeb004242e8a712575fb2854f0f6b99880d9b36
+DIST drbd-8.2.7.tar.gz 356223 RMD160 26386414fe782fe3ddf1a9c9202bbd2d49e722f9 SHA1 3e71cdb2a681d6f47ca63fb5632bb69bafafd685 SHA256 5ff70d80959be859bd687b96b14c531462300e569173fedc28b542b976b5d200
+EBUILD drbd-kernel-8.2.7.ebuild 1263 RMD160 4291f654ec1b2e7626279df6aafe07ce1f7466eb SHA1 d9c97ac4c2a3d07c81287deabef76290daf03ee4 SHA256 abf4013caa0221592ae2acc4805f55d20b43444163aecc69915f6b1c1ab9e249
+EBUILD drbd-kernel-8.2.7_p20081202.ebuild 1388 RMD160 0467848a0f5815619394dd9bad22b4c810d378ed SHA1 dbc4deb6823178562ab7f5084818dde3bde46ef0 SHA256 be01a14ade1c389c7dd57044f7106fa8484ca72b64326f104e1bd6d3ea4b5c1d
+MISC ChangeLog 956 RMD160 e8c95ec8f38f374d3f88aea814abf8e2811bc71b SHA1 0b305427d2316b16d8f1794a91a25f2d4a914e01 SHA256 b444121bcb54921537b994b5413bfbe0cba2287b87b20368816b9012960247aa
diff --git a/sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild
new file mode 100644
index 0000000..a6582e5
--- /dev/null
+++ b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator linux-mod
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+MY_PV="${PV/_/}"
+MY_PN="${PN/-kernel/}"
+MY_P="${MY_PN}-${MY_PV}"
+MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})"
+
+HOMEPAGE="http://www.drbd.org"
+DESCRIPTION="mirror/replicate block-devices across a network-connection"
+SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${MY_PV}.tar.gz"
+
+IUSE=""
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+SLOT="0"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if ! kernel_is 2 6; then
+ die "Unsupported kernel, drbd-8.0.x needs kernel 2.6.x ."
+ fi
+
+ MODULE_NAMES="drbd(block:${S}/drbd)"
+ BUILD_TARGETS="default"
+ CONFIG_CHECK="CONNECTOR"
+ CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it."
+ linux-mod_pkg_setup
+ BUILD_PARAMS="-j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT}"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-8.0.0-scripts.adjust_drbd_config_h.sh.patch || die
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ einfo ""
+ einfo "Please remember to re-emerge drbd when you upgrade your kernel!"
+ einfo ""
+}
diff --git a/sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild
new file mode 100644
index 0000000..1ae173d
--- /dev/null
+++ b/sys-cluster/drbd-kernel/drbd-kernel-8.2.7_p20081202.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator linux-mod
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+MY_PV="${PV%_p*}"; MY_PV="${MY_PV/_/}";
+MY_PN="${PN/-kernel/}"
+MY_P="${MY_PN}-${MY_PV}"
+MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})"
+
+HOMEPAGE="http://www.drbd.org"
+DESCRIPTION="mirror/replicate block-devices across a network-connection"
+SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${MY_PV}.tar.gz"
+
+IUSE=""
+
+DEPEND="virtual/linux-sources"
+RDEPEND=""
+SLOT="0"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if ! kernel_is 2 6; then
+ die "Unsupported kernel, drbd-8.0.x needs kernel 2.6.x ."
+ fi
+
+ MODULE_NAMES="drbd(block:${S}/drbd)"
+ BUILD_TARGETS="default"
+ CONFIG_CHECK="CONNECTOR"
+ CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it."
+ linux-mod_pkg_setup
+ BUILD_PARAMS="-j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT}"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-8.0.0-scripts.adjust_drbd_config_h.sh.patch || die
+ epatch "${FILESDIR}"/${MY_PN}-${MY_PV}-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 || die
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ einfo ""
+ einfo "Please remember to re-emerge drbd when you upgrade your kernel!"
+ einfo ""
+}
diff --git a/sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 b/sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2
new file mode 100644
index 0000000..34a2583
--- /dev/null
+++ b/sys-cluster/drbd-kernel/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2
Binary files differ
diff --git a/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch b/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch
new file mode 100644
index 0000000..beb07fb
--- /dev/null
+++ b/sys-cluster/drbd-kernel/files/drbd-kernel-8.0.0-scripts.adjust_drbd_config_h.sh.patch
@@ -0,0 +1,23 @@
+--- drbd-8.0.0/scripts/adjust_drbd_config_h.sh.orig 2007-02-05 01:20:58.000000000 +0100
++++ drbd-8.0.0/scripts/adjust_drbd_config_h.sh 2007-02-05 01:21:28.000000000 +0100
+@@ -26,19 +26,7 @@
+ pushd $KDIR
+
+ KDIR=${KDIR%/}
+-if test -z "$O"; then
+- ## just in case...
+- ## detect if $KDIR points to something which is actually $O ...
+- X=$( make help | sed -ne '/ -C .* O=.* help$/p' | tr -s ' ' )
+- if [[ -n $X ]]; then
+- KDIR=${X##* -C }; KDIR=${KDIR%% *}; KDIR=$(cd $KDIR && pwd)
+- O=${X##* O=}; O=${O%% *}; O=$(cd $KDIR && cd $O && pwd)
+- else
+- O=$KDIR;
+- fi
+-else
+- O=${O%/}
+-fi
++O=$KDIR;
+
+ # some paranoia: check that all files are where we expect them
+ ls > /dev/null \
diff --git a/sys-cluster/drbd/ChangeLog b/sys-cluster/drbd/ChangeLog
new file mode 100644
index 0000000..4dcdda1
--- /dev/null
+++ b/sys-cluster/drbd/ChangeLog
@@ -0,0 +1,24 @@
+# ChangeLog for sys-cluster/drbd
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 03 Dec 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2,
+ +drbd-8.2.7_p20081202.ebuild:
+ bump to current drbd-8.2.git snapshot
+
+ 13 Nov 2008; Wolfram Schlich <wschlich@gentoo.org> -drbd-8.0.11.ebuild,
+ -drbd-8.2.5.ebuild, -drbd-8.2.6.ebuild, -drbd-8.2.7_rc2.ebuild,
+ +drbd-8.2.7.ebuild:
+ version bump, removed old versions
+
+ 10 Nov 2008; Wolfram Schlich <wschlich@gentoo.org> +drbd-8.2.7_rc2.ebuild:
+ version bump
+
+ 30 May 2008; Wolfram Schlich <wschlich@gentoo.org> +drbd-8.2.6.ebuild:
+ version bump
+
+ 29 Feb 2008; Wolfram Schlich <wschlich@gentoo.org> -drbd-8.0.10.ebuild,
+ -drbd-8.2.4.ebuild, -drbd-8.2.5_pre20080215.ebuild:
+ remove old versions and digests
+
diff --git a/sys-cluster/drbd/Manifest b/sys-cluster/drbd/Manifest
new file mode 100644
index 0000000..3d76f94
--- /dev/null
+++ b/sys-cluster/drbd/Manifest
@@ -0,0 +1,6 @@
+AUX drbd-8.0.rc 3067 RMD160 741017b59b33b435e3f02497a10edbb4addfdc42 SHA1 f7288a4e1d57738018b460f2c0c40890a9b47cd0 SHA256 53bf3a766c654b32d3dd1644ea377a4006f56095bec880f7c4d94ebe976d9b50
+AUX drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 8008 RMD160 f27c970f18a141b828f3ab8799e932bfe36c1807 SHA1 a524f68686c31c5c7069cadd1ec38899f0beff4c SHA256 6545adcf772deefca66c1f1a68c05ab593d4d2e866cd34e6f4d0bbff9910b0a7
+DIST drbd-8.2.7.tar.gz 356223 RMD160 26386414fe782fe3ddf1a9c9202bbd2d49e722f9 SHA1 3e71cdb2a681d6f47ca63fb5632bb69bafafd685 SHA256 5ff70d80959be859bd687b96b14c531462300e569173fedc28b542b976b5d200
+EBUILD drbd-8.2.7.ebuild 1319 RMD160 aadd6333a50470d92a41337cfd24bdf52e9e2fa7 SHA1 1fc8b1eb6e8a98557c374551b318020f81db14bd SHA256 ee111e1fb76dc595fbf9b66b79791f6c3f7af22c33db260d9276ef553200180f
+EBUILD drbd-8.2.7_p20081202.ebuild 1483 RMD160 69fee9e0b0f97090214f3ea179c643eeb71f2647 SHA1 3ae22c66debca18f2cde9d8647dfa4f9db214bf8 SHA256 b2a4add0eea64e9efc4b49be4388280bc3c90ce276179b9f2a671c067fd763f9
+MISC ChangeLog 864 RMD160 10f680c2d16d5c6420f2b7bbe08d10376c37e8a5 SHA1 0d24047dd8c40a924a19e3f1711ce77d3caac3f1 SHA256 6db4618841a6b0ee5f79381ef30037a6f332a2876d13ce41cb9791cce69ed7ab
diff --git a/sys-cluster/drbd/drbd-8.2.7.ebuild b/sys-cluster/drbd/drbd-8.2.7.ebuild
new file mode 100644
index 0000000..caa4d9d
--- /dev/null
+++ b/sys-cluster/drbd/drbd-8.2.7.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+MY_PV="${PV/_/}"
+MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})"
+DESCRIPTION="mirror/replicate block-devices across a network-connection"
+SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${PN}-${MY_PV}.tar.gz"
+HOMEPAGE="http://www.drbd.org"
+
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+PDEPEND="~sys-cluster/drbd-kernel-${PV}"
+
+SLOT="0"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_compile() {
+ emake -j1 tools || die "compile problem"
+}
+
+src_install() {
+ emake PREFIX="${D}" install-tools || die "install problem"
+
+ # gentoo-ish init-script
+ newinitd "${FILESDIR}"/${PN}-8.0.rc ${PN} || die
+
+ # docs
+ dodoc README ChangeLog COPYING ROADMAP INSTALL
+
+ # we put drbd.conf into docs
+ # it doesnt make sense to install a default conf in /etc
+ # put it to the docs
+ rm -f "${D}"/etc/drbd.conf
+ dodoc scripts/drbd.conf || die
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "Please copy and gunzip the configuration file"
+ einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc"
+ einfo "and edit it to your needs. Helpful commands:"
+ einfo "man 5 drbd.conf"
+ einfo "man 8 drbdsetup"
+ einfo "man 8 drbdadm"
+ einfo "man 8 drbddisk"
+ einfo "man 8 drbdmeta"
+ einfo ""
+}
diff --git a/sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild b/sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild
new file mode 100644
index 0000000..ee5d31e
--- /dev/null
+++ b/sys-cluster/drbd/drbd-8.2.7_p20081202.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils versionator
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+MY_PV="${PV%_p*}"; MY_PV="${MY_PV/_/}";
+MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})"
+DESCRIPTION="mirror/replicate block-devices across a network-connection"
+SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${PN}-${MY_PV}.tar.gz"
+HOMEPAGE="http://www.drbd.org"
+
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+PDEPEND="~sys-cluster/drbd-kernel-${PV}"
+
+SLOT="0"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-${MY_PV}-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 || die
+}
+
+src_compile() {
+ emake -j1 tools || die "compile problem"
+}
+
+src_install() {
+ emake PREFIX="${D}" install-tools || die "install problem"
+
+ # gentoo-ish init-script
+ newinitd "${FILESDIR}"/${PN}-8.0.rc ${PN} || die
+
+ # docs
+ dodoc README ChangeLog COPYING ROADMAP INSTALL
+
+ # we put drbd.conf into docs
+ # it doesnt make sense to install a default conf in /etc
+ # put it to the docs
+ rm -f "${D}"/etc/drbd.conf
+ dodoc scripts/drbd.conf || die
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "Please copy and gunzip the configuration file"
+ einfo "from /usr/share/doc/${PF}/drbd.conf.gz to /etc"
+ einfo "and edit it to your needs. Helpful commands:"
+ einfo "man 5 drbd.conf"
+ einfo "man 8 drbdsetup"
+ einfo "man 8 drbdadm"
+ einfo "man 8 drbddisk"
+ einfo "man 8 drbdmeta"
+ einfo ""
+}
diff --git a/sys-cluster/drbd/files/drbd-8.0.rc b/sys-cluster/drbd/files/drbd-8.0.rc
new file mode 100644
index 0000000..4d4c004
--- /dev/null
+++ b/sys-cluster/drbd/files/drbd-8.0.rc
@@ -0,0 +1,156 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/files/drbd-8.0.rc,v 1.5 2007/11/12 00:18:35 xmerlin Exp $
+
+opts="${opts} reload"
+
+depend() {
+ use logger
+ need net
+ before heartbeat
+ after sshd
+}
+
+DEFAULTFILE="/etc/conf.d/drbd"
+DRBDADM="/sbin/drbdadm"
+PROC_DRBD="/proc/drbd"
+MODPROBE="/sbin/modprobe"
+RMMOD="/sbin/rmmod"
+UDEV_TIMEOUT=10
+ADD_MOD_PARAM=""
+
+if [ -f $DEFAULTFILE ]; then
+ . $DEFAULTFILE
+fi
+
+# Just in case drbdadm want to display any errors in the configuration
+# file, or we need to ask the user about registering this installation
+# at http://usage.drbd.org, we call drbdadm here without any IO
+# redirection.
+$DRBDADM sh-nop
+
+function assure_module_is_loaded() {
+ [ -e "$PROC_DRBD" ] && return
+ ebegin "Loading drbd module"
+ ret=0
+
+ $MODPROBE -s drbd `$DRBDADM sh-mod-parms` $ADD_MOD_PARAM || ret=20
+ eend $ret
+ return $ret
+}
+
+function adjust_with_progress() {
+ IFS_O=$IFS
+ NEWLINE='
+'
+ IFS=$NEWLINE
+ local D=0
+ local S=0
+ local N=0
+
+ einfon "Setting drbd parameters "
+ COMMANDS=`$DRBDADM -d adjust all` || {
+ eend 20 "Error executing drbdadm"
+ return 20
+ }
+ echo -n "[ "
+
+ for CMD in $COMMANDS; do
+ if echo $CMD | grep -q disk; then echo -n "d$D "; D=$(( D+1 ));
+ elif echo $CMD | grep -q syncer; then echo -n "s$S "; S=$(( S+1 ));
+ elif echo $CMD | grep -q net; then echo -n "n$N "; N=$(( N+1 ));
+ else echo echo -n ".. ";
+ fi
+ IFS=$IFS_O
+ $CMD || {
+ echo
+ eend 20 "cmd $CMD failed!"
+ return 20
+ }
+ IFS=$NEWLINE
+ done
+ echo "]"
+ eend 0
+
+ IFS=$IFS_O
+}
+
+start() {
+ einfo "Starting DRBD resources:"
+ eindent
+ assure_module_is_loaded || return $?
+ adjust_with_progress || return $?
+
+ # make sure udev has time to create the device files
+ ebegin "Waiting for udev device creation ..."
+ for RESOURCE in `$DRBDADM sh-resources`; do
+ for DEVICE in `$DRBDADM sh-dev $RESOURCE`; do
+ UDEV_TIMEOUT_LOCAL=$UDEV_TIMEOUT
+ while [ ! -e $DEVICE ] && [ $UDEV_TIMEOUT_LOCAL -gt 0 ] ; do
+ sleep 1
+ UDEV_TIMEOUT_LOCAL=$(( $UDEV_TIMEOUT_LOCAL-1 ))
+ done
+ done
+ done
+ eend 0
+
+ einfon "Waiting for connection "
+ $DRBDADM wait-con-int
+ ret=$?
+ echo
+
+ sleep 5
+
+ einfon "Become primary if configured "
+ $DRBDADM sh-b-pri all
+ echo
+
+ eend $ret
+ return $ret
+}
+
+stop() {
+ ebegin "Stopping all DRBD resources"
+
+ # Check for mounted drbd devices
+ if ! grep -q '^/dev/drbd' /proc/mounts &>/dev/null; then
+ if [ -e ${PROC_DRBD} ]; then
+ ${DRBDADM} down all
+ sleep 3
+ ${RMMOD} drbd
+ fi
+ ret=$?
+ eend $ret
+ return $ret
+ else
+ einfo "drbd devices mounted, please umount them before trying to stop drbd!"
+ eend 1
+ return 1
+ fi
+}
+
+status() {
+ # NEEDS to be heartbeat friendly...
+ # so: put some "OK" in the output.
+
+ if [ -e $PROC_DRBD ]; then
+ ret=0
+ ebegin "drbd driver loaded OK; device status:"
+ eend $ret
+ cat $PROC_DRBD
+ else
+ ebegin "drbd not loaded"
+ ret=3
+ eend $ret
+ fi
+ return $ret
+}
+
+reload() {
+ ebegin "Reloading DRBD"
+ ${DRBDADM} adjust all
+ ret=$?
+ eend $ret
+ return $ret
+}
diff --git a/sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2 b/sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2
new file mode 100644
index 0000000..34a2583
--- /dev/null
+++ b/sys-cluster/drbd/files/drbd-8.2.7-git-7e612855ab8b3ecfb9f40b22f31e026454a76946.patch.bz2
Binary files differ
diff --git a/sys-cluster/drbdlinks/ChangeLog b/sys-cluster/drbdlinks/ChangeLog
new file mode 100644
index 0000000..509bfc8
--- /dev/null
+++ b/sys-cluster/drbdlinks/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-cluster/drbdlinks
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 07 May 2009; Wolfram Schlich <wschlich@gentoo.org> -drbdlinks-1.11.ebuild,
+ +drbdlinks-1.15.ebuild:
+ version bump, removed old version
+
+ 08 Sep 2008; Wolfram Schlich <wschlich@gentoo.org> +drbdlinks-1.12.ebuild:
+ version bump
+
diff --git a/sys-cluster/drbdlinks/Manifest b/sys-cluster/drbdlinks/Manifest
new file mode 100644
index 0000000..f95a16b
--- /dev/null
+++ b/sys-cluster/drbdlinks/Manifest
@@ -0,0 +1,6 @@
+AUX drbdlinks-init 756 RMD160 cc113485aea8b4f72e7344af2d76a11848929b43 SHA1 0ae0cbd8461dd67ce91c891c7d4ac746f04cafe9 SHA256 78401d2761b7cba0343dd886d7cab6ad82bfbab781aea49a3e5be7a3ee59f59e
+DIST drbdlinks-1.12.tar.gz 15337 RMD160 c1e8ab62edf42fe587de19e0f18b335eaeaf4c62 SHA1 c93a467e8733c591b2b80de89fcd8c6f9612845b SHA256 7cab5fb03588b91be8150d0646b910ef4b5228912abf89c9d811f3e4b521f30d
+DIST drbdlinks-1.15.tar.gz 15681 RMD160 01b0d8bc9b6448285a0e5ff87130c8d33cf83cef SHA1 01f6ea75a3979bf66a5cbd76df41b9546cc9ea57 SHA256 b47195a94c748b065a5611d8c59a3c61e349cabd3b99e78b332312c2cd6d93a8
+EBUILD drbdlinks-1.12.ebuild 852 RMD160 df157d919337234efec57c07be56b0c5fdff9d1e SHA1 188ce82dbf496c2d87dcfab82e2a72f7af31f58a SHA256 84cb1885e77a74c32ed42f8ab28ff18ff33631f7513560fc95902be920e9e2cb
+EBUILD drbdlinks-1.15.ebuild 852 RMD160 8c3fa1f87a93ed8b073f13e6174d057ab4ccb09e SHA1 f12acd87ea5c90601ec4d1de2b29d425e0cd704f SHA256 f61f868fdc3cc4cc71ba92e292b3ed37cb2d0e64dbd40e098fd4cbb17bd944c0
+MISC ChangeLog 355 RMD160 a67d1958dfc75992db4e83b393e12e9bfa75ce92 SHA1 1697db1a35f625b2954b4c9274615f99a883278a SHA256 9adf35e944a8b7fa110bc70674e2496c21123f54ed35883f30658fe276996239
diff --git a/sys-cluster/drbdlinks/drbdlinks-1.12.ebuild b/sys-cluster/drbdlinks/drbdlinks-1.12.ebuild
new file mode 100644
index 0000000..a3fac2e
--- /dev/null
+++ b/sys-cluster/drbdlinks/drbdlinks-1.12.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="A python script to manage symlinks in a Linux-HA cluster environment using DRBD"
+HOMEPAGE="http://www.tummy.com/Community/software/drbdlinks"
+SRC_URI="ftp://ftp.tummy.com/pub/tummy/drbdlinks/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="heartbeat"
+
+DEPEND="dev-lang/python
+ heartbeat? ( sys-cluster/heartbeat )"
+
+src_install () {
+ dosbin drbdlinks
+
+ insinto /etc
+ doins drbdlinks.conf
+
+ newinitd "${FILESDIR}"/drbdlinks-init drbdlinks
+
+ doman drbdlinks.8
+ dodoc LICENSE README WHATSNEW
+
+ if useq heartbeat; then
+ dodir /etc/ha.d/resource.d
+ dosym /usr/sbin/drbdlinks /etc/ha.d/resource.d/drbdlinks
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Please modify /etc/drbdlinks.conf as needed."
+ einfo
+}
diff --git a/sys-cluster/drbdlinks/drbdlinks-1.15.ebuild b/sys-cluster/drbdlinks/drbdlinks-1.15.ebuild
new file mode 100644
index 0000000..12a7e19
--- /dev/null
+++ b/sys-cluster/drbdlinks/drbdlinks-1.15.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="A python script to manage symlinks in a Linux-HA cluster environment using DRBD"
+HOMEPAGE="http://www.tummy.com/Community/software/drbdlinks"
+SRC_URI="ftp://ftp.tummy.com/pub/tummy/drbdlinks/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="heartbeat"
+
+DEPEND="dev-lang/python
+ heartbeat? ( sys-cluster/heartbeat )"
+
+src_install () {
+ dosbin drbdlinks
+
+ insinto /etc
+ doins drbdlinks.conf
+
+ newinitd "${FILESDIR}"/drbdlinks-init drbdlinks
+
+ doman drbdlinks.8
+ dodoc LICENSE README WHATSNEW
+
+ if useq heartbeat; then
+ dodir /etc/ha.d/resource.d
+ dosym /usr/sbin/drbdlinks /etc/ha.d/resource.d/drbdlinks
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Please modify /etc/drbdlinks.conf as needed."
+ einfo
+}
diff --git a/sys-cluster/drbdlinks/files/drbdlinks-init b/sys-cluster/drbdlinks/files/drbdlinks-init
new file mode 100644
index 0000000..dddad8d
--- /dev/null
+++ b/sys-cluster/drbdlinks/files/drbdlinks-init
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:$
+
+#
+# TODO:
+# - make this script LSB compliant for heartbeats LSB resource agent
+#
+
+depend() {
+ need localmount
+ use drbd
+}
+
+checkconfig() {
+ if [ ! -e /etc/drbdlinks.conf ] ; then
+ eerror "You need to create /etc/drbdlinks.conf first."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Creating drbd symlinks"
+ /usr/sbin/drbdlinks start
+ eend $? "Failed to create drbd links"
+}
+
+stop() {
+ checkconfig || return 1
+ ebegin "Cleaning up drbd symlinks"
+ /usr/sbin/drbdlinks stop
+ eend $? "Failed to clean up drbd links"
+}
+
+status() {
+ ebegin "Checking for drbd symlinks"
+ /usr/sbin/drbdlinks status
+ eend $?
+}
diff --git a/sys-cluster/heartbeat-scripts/ChangeLog b/sys-cluster/heartbeat-scripts/ChangeLog
new file mode 100644
index 0000000..29a62cf
--- /dev/null
+++ b/sys-cluster/heartbeat-scripts/ChangeLog
@@ -0,0 +1,24 @@
+# ChangeLog for sys-cluster/heartbeat-scripts
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 17 Jul 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -heartbeat-scripts-3.ebuild, +heartbeat-scripts-4.ebuild:
+ version bump
+
+ 17 Jul 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -heartbeat-scripts-2.ebuild, +heartbeat-scripts-3.ebuild:
+ version bump
+
+ 17 Jul 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -heartbeat-scripts-1-r1.ebuild, +heartbeat-scripts-2.ebuild:
+ version bump
+
+ 16 Jul 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -heartbeat-scripts-1.ebuild, +heartbeat-scripts-1-r1.ebuild:
+ fixup
+
+ 16 Jul 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +heartbeat-scripts-1.ebuild:
+ initial import
+
diff --git a/sys-cluster/heartbeat-scripts/Manifest b/sys-cluster/heartbeat-scripts/Manifest
new file mode 100644
index 0000000..b2dae01
--- /dev/null
+++ b/sys-cluster/heartbeat-scripts/Manifest
@@ -0,0 +1,3 @@
+DIST heartbeat-scripts-4.tar.bz2 19617 RMD160 9113bc28c8de91a1351dc91ac2d2428f908375b7 SHA1 7eff1bd3a2410625917a7a3d5fa75e88bd7c18d6 SHA256 3781d81b799d964c08ce80e5e733fc90ae46d379a1e21830d327ac07de279c95
+EBUILD heartbeat-scripts-4.ebuild 885 RMD160 9c79fa4c48c685d1851e41bef12d30bbc1214c9d SHA1 e6cdc85de49d0b5eae544673e1aa2254abd742f8 SHA256 e41e077dd65d5a538389b3e7166f62c5e190e9e1c385ddb5be4ba297ac89cd70
+MISC ChangeLog 747 RMD160 07135ccb2aa2ff14b8ce1c691bac6a7cd5534f2b SHA1 a77a69740b924c19715b284359ade3c6cb057131 SHA256 f12cc0850cab060820f3c3bad52b306e874ad5055935ecb0dcf9f861af6fd5c9
diff --git a/sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild b/sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild
new file mode 100644
index 0000000..fa4b5d5
--- /dev/null
+++ b/sys-cluster/heartbeat-scripts/heartbeat-scripts-4.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+#
+# Created by Wolfram Schlich <wschlich@gentoo.org>
+# Feedback is greatly appreciated!
+#
+
+inherit multilib
+
+IUSE="examples"
+DESCRIPTION="Heartbeat scripts (OCF Resource Agents, STONITH plugins etc.)"
+HOMEPAGE="http://dev.gentoo.org/~wschlich/"
+SRC_URI="http://dev.gentoo.org/~wschlich/src/${CATEGORY}/${P}.tar.bz2"
+RESTRICT="mirror"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+DEPEND="sys-cluster/heartbeat"
+
+src_compile() {
+ : NOP
+}
+
+src_install() {
+ exeinto /usr/$(get_libdir)/ocf/resource.d/custom
+ doexe ${S}/ocf-ra/*
+
+ exeinto /usr/$(get_libdir)/stonith/plugins/external/custom
+ doexe ${S}/stonith/*
+
+ if use examples; then
+ local docdir=/usr/share/doc/${PF}/${_E_DOCDESTTREE_}
+ insinto ${docdir}
+ doins -r ${S}/examples
+ ecompressdir ${docdir}
+ fi
+}
diff --git a/sys-cluster/heartbeat/ChangeLog b/sys-cluster/heartbeat/ChangeLog
new file mode 100644
index 0000000..0510941
--- /dev/null
+++ b/sys-cluster/heartbeat/ChangeLog
@@ -0,0 +1,87 @@
+# ChangeLog for sys-cluster/heartbeat
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 09 Sep 2008; Wolfram Schlich <wschlich@gentoo.org>
+ heartbeat-2.1.3-r5.ebuild, heartbeat-2.1.4.ebuild,
+ +heartbeat-2.99.0_beta.ebuild:
+ *DEPEND fixed, ebuild cleanups, version bump
+
+ 18 Aug 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +heartbeat-2.1.4.ebuild:
+ version bump
+
+ 14 Aug 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -files/heartbeat.init-r1, +files/heartbeat.init-r2,
+ -heartbeat-2.1.3-r4.ebuild, +heartbeat-2.1.3-r5.ebuild:
+ modify init script to NOT start heartbeat with increased priority (-10)
+ anymore because all started resources also were started with that priority
+
+ 23 Jul 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/heartbeat.init-r1, -files/heartbeat-init,
+ -heartbeat-2.1.3-r3.ebuild, +heartbeat-2.1.3-r4.ebuild:
+ modify init script to be POSIX compliant (useful for baselayout-2/openrc)
+ and to start heartbeat with increased priority (-10)
+
+ 03 Jul 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -files/drbd-peer-outdater.sh, -heartbeat-2.1.3-r1.ebuild,
+ -heartbeat-2.1.3-r2.ebuild, -heartbeat-2.1.3_p15-r10.ebuild:
+ removed old versions
+
+ 27 Mar 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/heartbeat-2.1.3-leapyear-rewrite.patch,
+ +files/heartbeat-2.1.3-lrmadmin-cts.patch, heartbeat-2.1.3-r3.ebuild:
+ added revised leapyear patch, added lrmadmin patch to make the CTS happy,
+ remove drbd-peer-outdater wrapper and corresponding warning
+
+ 26 Mar 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch,
+ +heartbeat-2.1.3-r3.ebuild:
+ incorporate critical dopd patch from
+ http://hg.linux-ha.org/dev/rev/47f60bebe7b2
+
+ 04 Mar 2008; Wolfram Schlich <wschlich@gentoo.org>
+ heartbeat-2.1.3-r1.ebuild:
+ added missing autotools eclass inheritance
+
+ 04 Mar 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -heartbeat-2.1.3.ebuild, -heartbeat-2.1.3_p15-r8.ebuild,
+ +heartbeat-2.1.3_p15-r10.ebuild:
+ version bump, removed old versions
+
+ 29 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/heartbeat-2.1.3-leapyear.patch, heartbeat-2.1.3.ebuild,
+ heartbeat-2.1.3-r1.ebuild, heartbeat-2.1.3-r2.ebuild,
+ heartbeat-2.1.3_p15-r8.ebuild:
+ add leap year patch from
+ http://developerbugs.linux-foundation.org/show_bug.cgi?id=1849 (do NOT
+ install this on 29th of february\!)
+
+ 28 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +files/drbd-peer-outdater.sh, heartbeat-2.1.3.ebuild,
+ heartbeat-2.1.3-r1.ebuild, heartbeat-2.1.3-r2.ebuild,
+ heartbeat-2.1.3_p15-r8.ebuild:
+ provide a wrapper script for drbd-peer-outdater
+
+ 28 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -heartbeat-2.1.2.ebuild:
+ remove old version
+
+ 28 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -heartbeat-2.1.3_p15-r1.ebuild:
+ remove old version
+
+ 28 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -files/heartbeat-2.0.8-crm-leaks.patch,
+ -files/heartbeat-2.0.8-delay.patch, -heartbeat-2.0.8-r2.ebuild:
+ remove old version
+
+ 28 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +heartbeat-2.1.3_p15-r8.ebuild:
+ version bump
+
+ 28 Feb 2008; Wolfram Schlich <wschlich@gentoo.org> heartbeat-2.1.3.ebuild,
+ heartbeat-2.1.3-r1.ebuild, heartbeat-2.1.3-r2.ebuild,
+ heartbeat-2.1.3_p15-r1.ebuild:
+ added python + pyxml deps for ciblint + crm_sh
+
diff --git a/sys-cluster/heartbeat/Manifest b/sys-cluster/heartbeat/Manifest
new file mode 100644
index 0000000..ce6aa14
--- /dev/null
+++ b/sys-cluster/heartbeat/Manifest
@@ -0,0 +1,14 @@
+AUX heartbeat-2.1.3-dopd-47f60bebe7b2.patch 4349 RMD160 67cffb5d20f18c67ede9d31cf54f9a4490688f89 SHA1 48fbde8fd5768c110f41287f3dabf12f07700109 SHA256 91db17608a16534e6093979a0a4a699ebf6c85e06da40faafd031646ba41211c
+AUX heartbeat-2.1.3-leapyear-rewrite.patch 1914 RMD160 06a01ba33fdc741428686c6260123ca90b46c7e1 SHA1 9b152a6d839f73de8dc08216298e2e7672a6333c SHA256 16694ff6b46fa2d6b9fc5493d32c0cd74086bb03c84c69873f58fd72f70b2144
+AUX heartbeat-2.1.3-leapyear.patch 434 RMD160 9c6346a5fa31ffcb7a59a836f99825d9958961a8 SHA1 e983d014aed4eaf400311a8f255c6dcdbd33cca6 SHA256 95128a654714c28a1184255a82e66ce06c83a33d75d1a700e12e611544a0da1d
+AUX heartbeat-2.1.3-lrm-op_status.patch 439 RMD160 2bba0b59c98442e9ef2638703ea2c7cf72a1ad94 SHA1 3b7ba193230e20929658ace332f7a5de37e2a420 SHA256 98a97ecb4c61953b4b7edf15662d4a64a344ad9f6a435e51fc0e43695c383183
+AUX heartbeat-2.1.3-lrmadmin-cts.patch 451 RMD160 dd2a8e565d1b206aa87e8507a0d2409affbfbf79 SHA1 468adb7d1d3fac121ee694985ea160a8a6bc5211 SHA256 5a535e8a9e20999a125a954f2db3e52d38bb83870bf5b6e9411b345b937d0643
+AUX heartbeat-2.1.3-nocrm-dopd.patch 306 RMD160 0809d1a47be005febc5135f9951e131df2e58b6c SHA1 54f84d32e0ed4f8375c1a255ef74aebd103226ed SHA256 c41035a0dfcfa97dce756de7dcd321baa5474f59220688ce93a6dbaa346e13e9
+AUX heartbeat.init-r2 2806 RMD160 44e9c63f4a9b5b865068de3458bbc81498fde1c5 SHA1 4473d7a55f4ff9a8f48cd58bc8806ad84524ca6b SHA256 b39e7f2e0909c161d06df7c6466ef12c543cc1bf9af172997eefc1f63b78d2d0
+DIST STABLE-2.1.4.tar.bz2 1914005 RMD160 08b952c3c58edb64606299db1677c5ba73c5d8c9 SHA1 f5b9beb9c2af71e53cc8aaf69699377f9e3404bb SHA256 00483fcbaf7bdb43fd59f547c387167aac4c3fffffb09e219cff9f17fa43ba6a
+DIST beta-2.99.0.tar.bz2 1105297 RMD160 3fb643b99d340ca03e174ed7db05141dba329d92 SHA1 cd29f160f738a7453719fe16b38a21ac7777065e SHA256 38462b486347726216454eabf11ec293f19b1486e4307e44542c9939f3efb900
+DIST heartbeat-2.1.3.tar.gz 3679620 RMD160 1eed127aa84e686131be890549cee5749e5443eb SHA1 97577ac6e96670cc3920fce1f1cfcda8d49d310b SHA256 15443b9cbad55be58d76270da0fbbeb625d64eafba8c5963750573b4f9a12e24
+EBUILD heartbeat-2.1.3-r5.ebuild 6985 RMD160 b18612a2feb0e18ed9ad206bbe4cd3834a803283 SHA1 4c9aafdc79a01e058314c70c4205a86ffeb37412 SHA256 4c86c9487ba4729f54720afd4c6895121c4bbe204f4e607b7f08ddf8a6143fd1
+EBUILD heartbeat-2.1.4.ebuild 5927 RMD160 70dbc383f92da482b47049774b18f51d050e8b34 SHA1 19d04e0356f10c29f63c333390c7f7062e0cc7f8 SHA256 5532b3cb7a2424b753aa9bb831fb0c04b099b3f42d46cadc550ed1a81fcb8fde
+EBUILD heartbeat-2.99.0_beta.ebuild 5400 RMD160 733f9cce1a54d7be082a2a34d30b7d781212303e SHA1 6a8ef4094fb39062b9028fe38ac856a0cec37387 SHA256 94e35052785e0e9dbba40714c6b1686394cf55f894231d54875f1bbef5f10e73
+MISC ChangeLog 3369 RMD160 6fd81e6caf4cb5479d32a9f0db1af4e500037971 SHA1 eca60dea7a7f2315fa21fae92db592a10e372123 SHA256 78cbe5e0e3acc1bab3cba0084d319216694b81047ebb8b3b2a801c91ac382aab
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch
new file mode 100644
index 0000000..87f5d45
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-dopd-47f60bebe7b2.patch
@@ -0,0 +1,110 @@
+
+# HG changeset patch
+# User Rasto Levrinc <rasto@linbit.com>
+# Date 1206539836 -3600
+# Node ID 47f60bebe7b25abd88ea7b5488e66dfe187416ae
+# Parent 17c0cf487322287d0689a036c32f21b900ce5a80
+dopd: fix basic failover; fix hb message corruption by fprintf(stderr)
+
+check_drbd_peer() used to return FALSE for "node name not in node list",
+so drbd-peer-outdater returned "invalid nodename".
+Then the semantic changed, and check_drbd_peer learned about "dead" peers
+and returned FALSE for them as well. Which made basic failover impossible :(
+
+The return code was now changed to "peer unreachable" for a dead peer.
+And even for nodes which really are not in the host list (and thus could be
+classified as invalide), because, after all, thats what they are.
+unreachable.
+
+Node name comparison needs to be case insensitive; fixed.
+
+During testing with 15 concurrent drbd resources several dopd crashes have been
+observed, which after some debugging turned out to be simply a wrong assumption
+about the global availability of stderr: some fprintf(stderr, "debug message")
+had accidentally used the heartbeat communication channel file descriptor,
+which seriously confused the comm layer.
+All those fprintfs have now been changed to use cl_log.
+
+--- a/contrib/drbd-outdate-peer/dopd.c Mon Mar 24 16:14:12 2008 +0100
++++ b/contrib/drbd-outdate-peer/dopd.c Wed Mar 26 14:57:16 2008 +0100
+@@ -202,14 +202,17 @@ msg_outdate_rc(struct ha_msg *msg_in, vo
+ }
+
+ /* check_drbd_peer()
+- * walk the nodes and return TRUE if peer is not this node and it exists.
++ * walk the nodes and return
++ * FALSE if peer is not found, not a "normal" node, or "dead"
++ * (no point in trying to reach those nodes).
++ * TRUE if peer is found to be alive and "normal".
+ */
+ gboolean
+ check_drbd_peer(const char *drbd_peer)
+ {
+ const char *node;
+ gboolean found = FALSE;
+- if (!strcmp(drbd_peer, node_name)) {
++ if (!strcasecmp(drbd_peer, node_name)) {
+ cl_log(LOG_WARNING, "drbd peer node %s is me!\n", drbd_peer);
+ return FALSE;
+ }
+@@ -306,9 +309,9 @@ outdater_callback(IPC_Channel *client, g
+ } else
+ pthread_mutex_unlock(&conn_mutex);
+ } else {
+- /* wrong peer was specified,
+- send return code 20 to the client */
+- send_to_client(curr_client, "20");
++ /* peer "dead" or not in node list.
++ * return "peer could not be reached" */
++ send_to_client(curr_client, "5");
+ }
+
+ ha_msg_del(msg);
+--- a/contrib/drbd-outdate-peer/drbd-peer-outdater.c Mon Mar 24 16:14:12 2008 +0100
++++ b/contrib/drbd-outdate-peer/drbd-peer-outdater.c Wed Mar 26 14:57:16 2008 +0100
+@@ -76,7 +76,7 @@ outdate_callback(IPC_Channel * server, g
+
+ msg = msgfromIPC_noauth(server);
+ if (!msg) {
+- fprintf(stderr, "no message from server or other "
++ cl_log(LOG_WARNING, "no message from server or other "
+ "instance is running\n");
+ if (client->mainloop != NULL &&
+ g_main_is_running(client->mainloop))
+@@ -92,7 +92,7 @@ outdate_callback(IPC_Channel * server, g
+ errno = 0;
+ rc = strtol(rc_string, &ep, 10);
+ if (errno != 0 || *ep != EOS) {
+- fprintf(stderr, "unknown message: %s from server", rc_string);
++ cl_log(LOG_WARNING, "unknown message: %s from server", rc_string);
+ client->rc = 20; /* "officially undefined", unspecified error */
+ ha_msg_del(msg);
+ if (client->mainloop != NULL &&
+@@ -124,7 +124,7 @@ outdater_timeout_dispatch(gpointer user_
+ outdater_timeout_dispatch(gpointer user_data)
+ {
+ dop_client_t *client = (dop_client_t *)user_data;
+- fprintf(stderr, "error: could not connect to dopd after %i seconds"
++ cl_log(LOG_WARNING, "error: could not connect to dopd after %i seconds"
+ ": timeout reached\n", client->timeout);
+ if (client->mainloop != NULL && g_main_is_running(client->mainloop))
+ g_main_quit(client->mainloop);
+@@ -255,7 +255,7 @@ main(int argc, char ** argv)
+ (gpointer)new_client, &ipc_server);
+
+ if (ipc_server == NULL) {
+- fprintf(stderr, "Could not connect to "T_OUTDATER" channel\n");
++ cl_log(LOG_WARNING, "Could not connect to "T_OUTDATER" channel\n");
+ dop_exit(new_client); /* unreachable */
+ }
+
+@@ -267,7 +267,7 @@ main(int argc, char ** argv)
+ ha_msg_add(update, F_OUTDATER_RES, drbd_resource);
+
+ if (msg2ipcchan(update, ipc_server) != HA_OK) {
+- fprintf(stderr, "Could not send message\n");
++ cl_log(LOG_WARNING, "Could not send message\n");
+ dop_exit(new_client);
+ }
+
+
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch
new file mode 100644
index 0000000..97bb590
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear-rewrite.patch
@@ -0,0 +1,60 @@
+diff -r c70d0fa6579c lib/crm/common/iso8601.c
+--- a/lib/crm/common/iso8601.c Mon Mar 03 14:11:11 2008 +0800
++++ b/lib/crm/common/iso8601.c Fri Feb 29 12:35:56 2008 +0100
+@@ -649,13 +649,14 @@ convert_from_ordinal(ha_time_t *a_date)
+
+ gboolean ordinal_to_gregorian(ha_time_t *a_date)
+ {
++ /* Day of the year this month ends on */
++ int m_end = 0;
++
+ CRM_CHECK(a_date->has->years, return FALSE);
+ CRM_CHECK(a_date->has->yeardays, return FALSE);
+
+ CRM_CHECK(a_date->yeardays > 0, return FALSE);
+
+- a_date->days = a_date->yeardays;
+- a_date->months = 11;
+ if(is_leap_year(a_date->years) && a_date->yeardays > 366) {
+ crm_err("Year %.4d only has 366 days (supplied %.3d)",
+ a_date->years, a_date->yeardays);
+@@ -667,27 +668,21 @@ gboolean ordinal_to_gregorian(ha_time_t
+ a_date->yeardays = 365;
+ }
+
+- while(a_date->months > 0
+- && a_date->yeardays <= month2days[a_date->months]) {
+- crm_debug_6("month %d: %d vs. %d",
++ a_date->days = a_date->yeardays;
++ a_date->months = 0;
++ do {
++ a_date->months++;
++ m_end += days_per_month(a_date->months, a_date->years);
++ a_date->days -= days_per_month(a_date->months-1, a_date->years);
++
++ crm_debug_6("month %d: %d vs. %d - current day: %d",
+ a_date->months, a_date->yeardays,
+- month2days[a_date->months]);
+- (a_date->months)--;
+- }
++ m_end, a_date->days);
++ } while (a_date->months < 12 && m_end < a_date->yeardays);
+
+- a_date->days -= month2days[a_date->months];
+- (a_date->months)++;
+-
+ CRM_CHECK(a_date->months > 0, return FALSE);
+-
+- if(is_leap_year(a_date->years) && a_date->months > 2) {
+- (a_date->days)--;
+- }
+- if(a_date->days == 0) {
+- /* annoying underflow */
+- a_date->days = days_per_month(a_date->months, a_date->years);
+- (a_date->months)--;
+- }
++ CRM_CHECK(a_date->days <= days_per_month(a_date->months, a_date->years),
++ return FALSE);
+
+ a_date->has->days = TRUE;
+ a_date->has->months = TRUE;
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch
new file mode 100644
index 0000000..aaea0ae
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch
@@ -0,0 +1,13 @@
+diff -r 4a3eac571f44 lib/crm/common/iso8601.c
+--- a/lib/crm/common/iso8601.c Fri Dec 21 08:25:17 2007 -0700
++++ b/lib/crm/common/iso8601.c Fri Feb 29 15:01:10 2008 +0100
+@@ -677,8 +677,8 @@ gboolean ordinal_to_gregorian(ha_time_t
+ }
+ if(a_date->days == 0) {
+ /* annoying underflow */
++ (a_date->months)--;
+ a_date->days = days_per_month(a_date->months, a_date->years);
+- (a_date->months)--;
+ }
+
+ a_date->has->days = TRUE;
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch
new file mode 100644
index 0000000..1c7fb14
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrm-op_status.patch
@@ -0,0 +1,14 @@
+diff -r 98aeb5f25c95 lib/lrm/clientlib.c
+--- a/lib/lrm/clientlib.c Fri Feb 15 17:53:27 2008 +0100
++++ b/lib/lrm/clientlib.c Fri Feb 15 17:53:56 2008 +0100
+@@ -1190,10 +1190,6 @@ msg_to_op(struct ha_msg* msg)
+ else {
+ op->output = NULL;
+ }
+- /* check the rc to revise the op_status */
+- if (0 != op->rc) {
+- op->op_status = LRM_OP_ERROR;
+- }
+ } else if(op->op_status == LRM_OP_PENDING) {
+ op->rc = EXECRA_STATUS_UNKNOWN;
+
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch
new file mode 100644
index 0000000..7fa5435
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-lrmadmin-cts.patch
@@ -0,0 +1,12 @@
+diff -r 54723736ab18 lrm/admin/lrmadmin.c
+--- a/lrm/admin/lrmadmin.c Wed Mar 26 16:17:00 2008 +0100
++++ b/lrm/admin/lrmadmin.c Fri Mar 21 01:58:20 2008 +0100
+@@ -607,7 +607,7 @@ lrm_op_done_callback(lrm_op_t* op)
+ printf("return code: %d\n", op->rc);
+ printf("output data: \n%s\n", (op->output ? op->output : "[null]"));
+ printf("---------------------------------------\n\n");
+- ret_value = op->op_status;
++ ret_value = op->rc;
+ }
+
+ static int
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch
new file mode 100644
index 0000000..82b3222
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-nocrm-dopd.patch
@@ -0,0 +1,10 @@
+--- configure.in.orig 2008-02-15 01:13:20.218146974 +0100
++++ configure.in 2008-02-15 01:16:24.813180157 +0100
+@@ -2516,7 +2516,6 @@
+ fi
+ dnl None of the following items build without the CRM available
+ enable_mgmt=no
+- enable_dopd=no
+ enable_cim_provider=no
+ fi
+ AC_SUBST(CRM_DIR)
diff --git a/sys-cluster/heartbeat/files/heartbeat.init-r2 b/sys-cluster/heartbeat/files/heartbeat.init-r2
new file mode 100644
index 0000000..45b0deb
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat.init-r2
@@ -0,0 +1,133 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+opts="${opts} reload"
+
+HA_DIR='/etc/ha.d'
+
+depend() {
+ use logger
+ need net
+}
+
+checkconfig() {
+ # check for base directory
+ if ! [ -d "${HA_DIR}" ]; then
+ eerror "HA directory '${HA_DIR}' does not exist"
+ return 1
+ fi
+ # check for shellfuncs
+ local HA_SHELLFUNCS="${HA_DIR}/shellfuncs"
+ if ! [ -e "${HA_SHELLFUNCS}" ]; then
+ eerror "HA shellfuncs file '${HA_SHELLFUNCS}' does not exist"
+ return 1
+ elif ! . "${HA_SHELLFUNCS}"; then
+ eerror "Failed to source HA shell functions '${HA_SHELLFUNCS}'"
+ return 1
+ fi
+ # check for ha.cf
+ local HA_CF="${HA_DIR}/ha.cf"
+ if ! [ -e "${HA_CF}" ]; then
+ eerror "HA config file '${HA_CF}' does not exist"
+ return 1
+ fi
+ # check for haresources if not using the CRM
+ if ! checkbool "$(ha_parameter crm)"; then
+ local HA_RESOURCES="${HA_DIR}/haresources"
+ if ! [ -e "${HA_RESOURCES}" ]; then
+ eerror "HA resources file '${HA_RESOURCES}' does not exist"
+ return 1
+ fi
+ fi
+ # check for authkeys
+ local HA_AUTHKEYS="${HA_DIR}/authkeys"
+ if ! [ -e "${HA_AUTHKEYS}" ]; then
+ eerror "HA authkeys file '${HA_AUTHKEYS}' does not exist"
+ return 1
+ fi
+}
+
+# Check for boolean values
+checkbool() {
+ case $(echo "${1}" | tr '[:upper:]' '[:lower:]') in
+ y|yes|enable|on|true|1) return 0;;
+ *) return 1;;
+ esac
+}
+
+# Run startstop script if it exists
+run_startstop() {
+ if [ -x ${HA_DIR}/resource.d/startstop ]; then
+ ${HA_DIR}/resource.d/startstop "${@}"
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting ${SVCNAME}"
+
+ # start the log subsystem
+ checkbool "$(ha_parameter use_logd)" && {
+ /usr/lib/heartbeat/ha_logd -s &>/dev/null || \
+ /usr/lib/heartbeat/ha_logd -d -c /etc/ha.d/ha_logd.cf
+ }
+
+ run_startstop pre-start
+
+ checkbool "$(ha_parameter crm)" || \
+ /usr/lib/heartbeat/ResourceManager verifyallidle
+
+ # run heartbeat
+ /usr/lib/heartbeat/heartbeat &>/dev/null
+ ret=$?
+
+ run_startstop post-start
+
+ eend ${ret}
+}
+
+stop() {
+ checkconfig || return 1
+ ebegin "Stopping heartbeat"
+
+ run_startstop pre-stop
+
+ /usr/lib/heartbeat/heartbeat -k &>/dev/null
+ ret=$?
+
+ run_startstop post-stop ${ret}
+
+ # stop log subsystem
+ checkbool "$(ha_parameter use_logd)" && {
+ /usr/lib/heartbeat/ha_logd -s &>/dev/null && \
+ /usr/lib/heartbeat/ha_logd -k &>/dev/null
+ }
+
+ eend ${ret}
+}
+
+status() {
+ checkconfig || return 1
+ ebegin "Checking for ${SVCNAME}"
+ /usr/lib/heartbeat/heartbeat -s
+ eend $?
+}
+
+reload() {
+ checkconfig || return 1
+ ebegin "Reloading ${SVCNAME}"
+ /usr/lib/heartbeat/heartbeat -r &>/dev/null
+ eend $?
+}
+
+restart() {
+ checkconfig || return 1
+ let 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.1.3-r5.ebuild b/sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild
new file mode 100644
index 0000000..961eb3c
--- /dev/null
+++ b/sys-cluster/heartbeat/heartbeat-2.1.3-r5.ebuild
@@ -0,0 +1,232 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils 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 ~x86"
+IUSE="crm doc ipmi ldirectord snmp"
+
+RDEPEND="
+ =dev-libs/glib-2*
+ dev-libs/libxml2
+ net-libs/libnet
+ >=dev-lang/perl-5.8.8
+ >=dev-lang/python-2.4
+ >=dev-python/pyxml-0.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
+ virtual/perl-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
+ ipmi? (
+ >=sys-libs/openipmi-2
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ dev-util/pkgconfig
+"
+
+# let the user override the user and group defaults
+# WARNING! ATTENTION! if you plan to use DRBD for cluster storage,
+# please note that /sbin/drbdmeta and /sbin/drbdsetup need to
+# be SUID root and executable by ${HA_GROUP_NAME}!
+# otherwise, Heartbeat will not be able to handle DRBD correctly.
+test -z "${HA_GROUP_ID}" && HA_GROUP_ID='65'
+test -z "${HA_GROUP_NAME}" && HA_GROUP_NAME='haclient'
+test -z "${HA_USER_ID}" && HA_USER_ID='65'
+test -z "${HA_USER_NAME}" && HA_USER_NAME='hacluster'
+test -z "${HA_USER_HOME}" && HA_USER_HOME='/var/lib/heartbeat'
+
+pkg_setup() {
+ # check for heartbeat/HA group
+ if ! egetent group ${HA_GROUP_NAME} >&/dev/null; then
+ # check for an existing group name with another gid
+ local existing_group_name=$(egetent group ${HA_GROUP_ID} | cut -d : -f 1)
+ if [[ -n "${existing_group_name}" ]] && \
+ [[ "${existing_group_name}" != "${HA_GROUP_NAME}" ]]; then
+ eerror
+ eerror "an existing group with gid '${HA_GROUP_ID}' and a"
+ eerror "name other than '${HA_GROUP_NAME}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the uid to another one."
+ eerror
+ die "system group name problem"
+ fi
+ # create the new group
+ enewgroup ${HA_GROUP_NAME} ${HA_GROUP_ID}
+ else
+ # check for an existing gid with another group name
+ local existing_group_id=$(egetent group ${HA_GROUP_NAME} | cut -d : -f 3)
+ if [[ -n "${existing_group_id}" ]] && \
+ [[ "${existing_group_id}" != "${HA_GROUP_ID}" ]]; then
+ eerror
+ eerror "an existing group with the name '${HA_GROUP_NAME}' and a"
+ eerror "gid other than '${HA_GROUP_ID}' has been found"
+ eerror "on your system. either remove the group or change"
+ eerror "the name to another one."
+ eerror
+ die "system group id problem"
+ fi
+ fi
+
+ # check for heartbeat/HA user
+ if ! egetent passwd ${HA_USER_NAME} >&/dev/null; then
+ # check for an existing user name with another uid
+ local existing_user_name=$(egetent passwd ${HA_USER_ID} | cut -d : -f 1)
+ if [[ -n "${existing_user_name}" ]] && \
+ [[ "${existing_user_name}" != "${HA_USER_NAME}" ]]; then
+ eerror
+ eerror "an existing user with uid '${HA_USER_ID}' and a"
+ eerror "name other than '${HA_USER_NAME}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the uid to another one."
+ eerror
+ die "system user name problem"
+ fi
+ # create the new user
+ enewuser ${HA_USER_NAME} ${HA_USER_ID} -1 ${HA_USER_HOME} ${HA_GROUP_NAME}
+ else
+ # check for an existing uid with another user name
+ local existing_user_id=$(egetent passwd ${HA_USER_NAME} | cut -d : -f 3)
+ if [[ -n "${existing_user_id}" ]] && \
+ [[ "${existing_user_id}" != "${HA_USER_ID}" ]]; then
+ eerror
+ eerror "an existing user with the name '${HA_USER_NAME}' and a"
+ eerror "uid other than '${HA_USER_ID}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the name to another one."
+ eerror
+ die "system user id problem"
+ fi
+ fi
+
+ # check for USE flag constraints
+ if ! use crm && use snmp; then
+ die "USE=snmp requires USE=crm (disable USE=snmp or enable USE=crm)"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ use crm || epatch "${FILESDIR}"/${P}-nocrm-dopd.patch
+
+ # http://developerbugs.linux-foundation.org/show_bug.cgi?id=1833#c6
+ # http://hg.linux-ha.org/dev/rev/54723736ab18
+ epatch "${FILESDIR}"/${P}-lrm-op_status.patch
+ # http://developerbugs.linux-foundation.org/show_bug.cgi?id=1833#c11
+ epatch "${FILESDIR}"/${P}-lrmadmin-cts.patch
+
+ # http://developerbugs.linux-foundation.org/show_bug.cgi?id=1849#c6
+ epatch "${FILESDIR}"/${P}-leapyear-rewrite.patch
+
+ # http://hg.linux-ha.org/dev/rev/47f60bebe7b2
+ epatch "${FILESDIR}"/${P}-dopd-47f60bebe7b2.patch
+
+ eautoreconf
+}
+
+src_compile() {
+ # FIXME
+ if use ipmi; then
+ eerror "Sorry, integrated IPMI STONITH support is broken in 2.1.3."
+ die "Please disable the ipmi USE flag and try again."
+ fi
+ econf \
+ --localstatedir=/var \
+ --with-group-name=${HA_GROUP_NAME} \
+ --with-group-id=${HA_GROUP_ID} \
+ --with-ccmuser-name=${HA_USER_NAME} \
+ --with-ccmuser-id=${HA_USER_ID} \
+ --disable-rpath \
+ --disable-fatal-warnings \
+ $(use_enable snmp) \
+ $(use_enable snmp snmp-subagent) \
+ $(use_enable ipmi ipmilan) \
+ --enable-checkpointd \
+ --enable-quorumd \
+ --enable-dopd \
+ $(use_enable crm) \
+ --enable-lrm \
+ --disable-mgmt \
+ || die "configure failed"
+ emake -j 1 || die "make failed"
+}
+
+src_install() {
+ # FIXME: convert to emake?
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # heartbeat modules need these dirs
+ # FIXME: is this (not) needed?
+ #keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat
+
+ keepdir \
+ /etc/ha.d/conf \
+ /var/lib/heartbeat/{ccm,ckpt,lrm,fencing} \
+ /var/lib/heartbeat/cores/{${HA_USER_NAME},root,nobody} \
+ /var/run/heartbeat/ccm
+
+ if use crm; then
+ keepdir \
+ /var/lib/heartbeat/crm \
+ /var/lib/heartbeat/pengine \
+ /var/run/heartbeat/crm
+ else
+ rm "${D}"/usr/lib/heartbeat/haresources2cib.py
+ fi
+
+ dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord
+
+ if ! useq ldirectord; then
+ rm \
+ "${D}"/etc/init.d/ldirectord
+ "${D}"/etc/logrotate.d/ldirectord \
+ "${D}"/etc/ha.d/resource.d/ldirectord \
+ "${D}"/usr/share/man/man8/supervise-ldirectord-config.8 \
+ "${D}"/usr/share/man/man8/ldirectord.8 \
+ "${D}"/usr/sbin/ldirectord \
+ "${D}"/usr/sbin/supervise-ldirectord-config
+ fi
+
+ newinitd "${FILESDIR}"/heartbeat.init-r2 heartbeat
+
+ dodoc \
+ README \
+ doc/*.{cf,txt} \
+ doc/{haresources,authkeys,AUTHORS,COPYING} \
+ ldirectord/ldirectord.cf
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "Notice for DRBD users:"
+ ewarn
+ ewarn "DRBD Outdate Peer Daemon (dopd) was broken as of Heartbeat 2.1.3."
+ ewarn "This ebuild includes a patch from the DRBD developers which should"
+ ewarn "fix the corresponding bugs. If you were previously using the"
+ ewarn "provided wrapper script, please switch back to the real"
+ ewarn "drbd-peer-outdater path in /etc/drbd.conf."
+ ewarn
+}
diff --git a/sys-cluster/heartbeat/heartbeat-2.1.4.ebuild b/sys-cluster/heartbeat/heartbeat-2.1.4.ebuild
new file mode 100644
index 0000000..ee3577d
--- /dev/null
+++ b/sys-cluster/heartbeat/heartbeat-2.1.4.ebuild
@@ -0,0 +1,202 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Heartbeat High-Availability Cluster Manager"
+HOMEPAGE="http://www.linux-ha.org"
+SRC_URI="http://hg.linux-ha.org/lha-2.1/archive/STABLE-2.1.4.tar.bz2"
+S="${WORKDIR}/Heartbeat-STABLE-2-1-STABLE-2.1.4"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crm doc ipmi ldirectord snmp"
+
+RDEPEND="
+ =dev-libs/glib-2*
+ dev-libs/libxml2
+ net-libs/libnet
+ >=dev-lang/perl-5.8.8
+ >=dev-lang/python-2.4
+ >=dev-python/pyxml-0.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
+ virtual/perl-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
+ ipmi? (
+ >=sys-libs/openipmi-2
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ dev-util/pkgconfig
+"
+
+# let the user override the user and group defaults
+# WARNING! ATTENTION! if you plan to use DRBD for cluster storage,
+# please note that /sbin/drbdmeta and /sbin/drbdsetup need to
+# be SUID root and executable by ${HA_GROUP_NAME}!
+# otherwise, Heartbeat will not be able to handle DRBD correctly.
+test -z "${HA_GROUP_ID}" && HA_GROUP_ID='65'
+test -z "${HA_GROUP_NAME}" && HA_GROUP_NAME='haclient'
+test -z "${HA_USER_ID}" && HA_USER_ID='65'
+test -z "${HA_USER_NAME}" && HA_USER_NAME='hacluster'
+test -z "${HA_USER_HOME}" && HA_USER_HOME='/var/lib/heartbeat'
+
+pkg_setup() {
+ # check for heartbeat/HA group
+ if ! egetent group ${HA_GROUP_NAME} >&/dev/null; then
+ # check for an existing group name with another gid
+ local existing_group_name=$(egetent group ${HA_GROUP_ID} | cut -d : -f 1)
+ if [[ -n "${existing_group_name}" ]] && \
+ [[ "${existing_group_name}" != "${HA_GROUP_NAME}" ]]; then
+ eerror
+ eerror "an existing group with gid '${HA_GROUP_ID}' and a"
+ eerror "name other than '${HA_GROUP_NAME}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the uid to another one."
+ eerror
+ die "system group name problem"
+ fi
+ # create the new group
+ enewgroup ${HA_GROUP_NAME} ${HA_GROUP_ID}
+ else
+ # check for an existing gid with another group name
+ local existing_group_id=$(egetent group ${HA_GROUP_NAME} | cut -d : -f 3)
+ if [[ -n "${existing_group_id}" ]] && \
+ [[ "${existing_group_id}" != "${HA_GROUP_ID}" ]]; then
+ eerror
+ eerror "an existing group with the name '${HA_GROUP_NAME}' and a"
+ eerror "gid other than '${HA_GROUP_ID}' has been found"
+ eerror "on your system. either remove the group or change"
+ eerror "the name to another one."
+ eerror
+ die "system group id problem"
+ fi
+ fi
+
+ # check for heartbeat/HA user
+ if ! egetent passwd ${HA_USER_NAME} >&/dev/null; then
+ # check for an existing user name with another uid
+ local existing_user_name=$(egetent passwd ${HA_USER_ID} | cut -d : -f 1)
+ if [[ -n "${existing_user_name}" ]] && \
+ [[ "${existing_user_name}" != "${HA_USER_NAME}" ]]; then
+ eerror
+ eerror "an existing user with uid '${HA_USER_ID}' and a"
+ eerror "name other than '${HA_USER_NAME}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the uid to another one."
+ eerror
+ die "system user name problem"
+ fi
+ # create the new user
+ enewuser ${HA_USER_NAME} ${HA_USER_ID} -1 ${HA_USER_HOME} ${HA_GROUP_NAME}
+ else
+ # check for an existing uid with another user name
+ local existing_user_id=$(egetent passwd ${HA_USER_NAME} | cut -d : -f 3)
+ if [[ -n "${existing_user_id}" ]] && \
+ [[ "${existing_user_id}" != "${HA_USER_ID}" ]]; then
+ eerror
+ eerror "an existing user with the name '${HA_USER_NAME}' and a"
+ eerror "uid other than '${HA_USER_ID}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the name to another one."
+ eerror
+ die "system user id problem"
+ fi
+ fi
+
+ # check for USE flag constraints
+ if ! use crm && use snmp; then
+ die "USE=snmp requires USE=crm (disable USE=snmp or enable USE=crm)"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --localstatedir=/var \
+ --with-group-name=${HA_GROUP_NAME} \
+ --with-group-id=${HA_GROUP_ID} \
+ --with-ccmuser-name=${HA_USER_NAME} \
+ --with-ccmuser-id=${HA_USER_ID} \
+ --disable-rpath \
+ --disable-fatal-warnings \
+ $(use_enable snmp) \
+ $(use_enable snmp snmp-subagent) \
+ $(use_enable ipmi ipmilan) \
+ --enable-checkpointd \
+ --enable-quorumd \
+ --enable-dopd \
+ $(use_enable crm) \
+ --enable-lrm \
+ --disable-mgmt \
+ || die "configure failed"
+ emake -j 1 || die "make failed"
+}
+
+src_install() {
+ # FIXME: convert to emake?
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # heartbeat modules need these dirs
+ # FIXME: is this (not) needed?
+ #keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat
+
+ keepdir \
+ /etc/ha.d/conf \
+ /var/lib/heartbeat/{ccm,ckpt,lrm,fencing} \
+ /var/lib/heartbeat/cores/{${HA_USER_NAME},root,nobody} \
+ /var/run/heartbeat/ccm
+
+ if use crm; then
+ keepdir \
+ /var/lib/heartbeat/crm \
+ /var/lib/heartbeat/pengine \
+ /var/run/heartbeat/crm
+ else
+ rm "${D}"/usr/lib/heartbeat/haresources2cib.py
+ fi
+
+ dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord
+
+ if ! useq ldirectord; then
+ rm \
+ "${D}"/etc/init.d/ldirectord \
+ "${D}"/etc/logrotate.d/ldirectord \
+ "${D}"/etc/ha.d/resource.d/ldirectord \
+ "${D}"/usr/share/man/man8/supervise-ldirectord-config.8 \
+ "${D}"/usr/share/man/man8/ldirectord.8 \
+ "${D}"/usr/sbin/ldirectord \
+ "${D}"/usr/sbin/supervise-ldirectord-config
+ fi
+
+ newinitd "${FILESDIR}"/heartbeat.init-r2 heartbeat
+
+ dodoc \
+ README \
+ doc/*.{cf,txt} \
+ doc/{haresources,authkeys,AUTHORS,COPYING} \
+ ldirectord/ldirectord.cf
+}
diff --git a/sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild b/sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild
new file mode 100644
index 0000000..d81a3b4
--- /dev/null
+++ b/sys-cluster/heartbeat/heartbeat-2.99.0_beta.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Heartbeat High-Availability Cluster Manager"
+HOMEPAGE="http://www.linux-ha.org"
+SRC_URI="http://hg.linux-ha.org/dev/archive/beta-2.99.0.tar.bz2"
+S="${WORKDIR}/Linux-HA-Dev-beta-2.99.0"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="doc ldirectord"
+
+RDEPEND="
+ =dev-libs/glib-2*
+ dev-libs/libxml2
+ net-libs/libnet
+ >=dev-lang/perl-5.8.8
+ >=dev-lang/python-2.4
+ >=dev-python/pyxml-0.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
+ virtual/perl-libnet
+ dev-perl/Crypt-SSLeay
+ dev-perl/HTML-Parser
+ dev-perl/perl-ldap
+ dev-perl/Mail-IMAPClient
+ dev-perl/Mail-POP3Client
+ dev-perl/MailTools
+ )
+ net-misc/telnet-bsd
+"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ dev-util/pkgconfig
+"
+
+# let the user override the user and group defaults
+# WARNING! ATTENTION! if you plan to use DRBD for cluster storage,
+# please note that /sbin/drbdmeta and /sbin/drbdsetup need to
+# be SUID root and executable by ${HA_GROUP_NAME}!
+# otherwise, Heartbeat will not be able to handle DRBD correctly.
+test -z "${HA_GROUP_ID}" && HA_GROUP_ID='65'
+test -z "${HA_GROUP_NAME}" && HA_GROUP_NAME='haclient'
+test -z "${HA_USER_ID}" && HA_USER_ID='65'
+test -z "${HA_USER_NAME}" && HA_USER_NAME='hacluster'
+test -z "${HA_USER_HOME}" && HA_USER_HOME='/var/lib/heartbeat'
+
+pkg_setup() {
+ # check for heartbeat/HA group
+ if ! egetent group ${HA_GROUP_NAME} >&/dev/null; then
+ # check for an existing group name with another gid
+ local existing_group_name=$(egetent group ${HA_GROUP_ID} | cut -d : -f 1)
+ if [[ -n "${existing_group_name}" ]] && \
+ [[ "${existing_group_name}" != "${HA_GROUP_NAME}" ]]; then
+ eerror
+ eerror "an existing group with gid '${HA_GROUP_ID}' and a"
+ eerror "name other than '${HA_GROUP_NAME}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the uid to another one."
+ eerror
+ die "system group name problem"
+ fi
+ # create the new group
+ enewgroup ${HA_GROUP_NAME} ${HA_GROUP_ID}
+ else
+ # check for an existing gid with another group name
+ local existing_group_id=$(egetent group ${HA_GROUP_NAME} | cut -d : -f 3)
+ if [[ -n "${existing_group_id}" ]] && \
+ [[ "${existing_group_id}" != "${HA_GROUP_ID}" ]]; then
+ eerror
+ eerror "an existing group with the name '${HA_GROUP_NAME}' and a"
+ eerror "gid other than '${HA_GROUP_ID}' has been found"
+ eerror "on your system. either remove the group or change"
+ eerror "the name to another one."
+ eerror
+ die "system group id problem"
+ fi
+ fi
+
+ # check for heartbeat/HA user
+ if ! egetent passwd ${HA_USER_NAME} >&/dev/null; then
+ # check for an existing user name with another uid
+ local existing_user_name=$(egetent passwd ${HA_USER_ID} | cut -d : -f 1)
+ if [[ -n "${existing_user_name}" ]] && \
+ [[ "${existing_user_name}" != "${HA_USER_NAME}" ]]; then
+ eerror
+ eerror "an existing user with uid '${HA_USER_ID}' and a"
+ eerror "name other than '${HA_USER_NAME}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the uid to another one."
+ eerror
+ die "system user name problem"
+ fi
+ # create the new user
+ enewuser ${HA_USER_NAME} ${HA_USER_ID} -1 ${HA_USER_HOME} ${HA_GROUP_NAME}
+ else
+ # check for an existing uid with another user name
+ local existing_user_id=$(egetent passwd ${HA_USER_NAME} | cut -d : -f 3)
+ if [[ -n "${existing_user_id}" ]] && \
+ [[ "${existing_user_id}" != "${HA_USER_ID}" ]]; then
+ eerror
+ eerror "an existing user with the name '${HA_USER_NAME}' and a"
+ eerror "uid other than '${HA_USER_ID}' has been found"
+ eerror "on your system. either remove the user or change"
+ eerror "the name to another one."
+ eerror
+ die "system user id problem"
+ fi
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --localstatedir=/var \
+ --with-group-name=${HA_GROUP_NAME} \
+ --with-group-id=${HA_GROUP_ID} \
+ --with-ccmuser-name=${HA_USER_NAME} \
+ --with-ccmuser-id=${HA_USER_ID} \
+ --disable-rpath \
+ --disable-fatal-warnings \
+ --disable-snmp \
+ --disable-ipmilan \
+ --disable-quorumd \
+ --enable-dopd \
+ --enable-lrm \
+ || die "configure failed"
+ emake -j 1 || die "make failed"
+}
+
+src_install() {
+ # FIXME: convert to emake?
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # heartbeat modules need these dirs
+ # FIXME: is this (not) needed?
+ #keepdir /var/lib/heartbeat/ckpt /var/lib/heartbeat/ccm /var/lib/heartbeat
+
+ keepdir \
+ /etc/ha.d/conf \
+ /var/lib/heartbeat/{ccm,ckpt,lrm,fencing} \
+ /var/lib/heartbeat/cores/{${HA_USER_NAME},root,nobody} \
+ /var/run/heartbeat/ccm
+
+ dosym /usr/sbin/ldirectord /etc/ha.d/resource.d/ldirectord
+
+ if ! useq ldirectord; then
+ rm \
+ "${D}"/etc/init.d/ldirectord \
+ "${D}"/etc/logrotate.d/ldirectord \
+ "${D}"/etc/ha.d/resource.d/ldirectord \
+ "${D}"/usr/share/man/man8/supervise-ldirectord-config.8 \
+ "${D}"/usr/share/man/man8/ldirectord.8 \
+ "${D}"/usr/sbin/ldirectord \
+ "${D}"/usr/sbin/supervise-ldirectord-config
+ fi
+
+ newinitd "${FILESDIR}"/heartbeat.init-r2 heartbeat
+
+ dodoc \
+ README \
+ doc/*.{cf,txt} \
+ doc/{haresources,authkeys,AUTHORS,COPYING} \
+ ldirectord/ldirectord.cf
+}
diff --git a/sys-cluster/pacemaker/ChangeLog b/sys-cluster/pacemaker/ChangeLog
new file mode 100644
index 0000000..f74dfda
--- /dev/null
+++ b/sys-cluster/pacemaker/ChangeLog
@@ -0,0 +1,30 @@
+# ChangeLog for sys-cluster/pacemaker
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 20 Jun 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -files/pacemaker-0.6.2-colocation-constraint.patch,
+ -pacemaker-0.6.2.ebuild, -pacemaker-0.6.2_p11-r7.ebuild,
+ -pacemaker-0.6.3.ebuild, +pacemaker-0.6.5.ebuild:
+ removed old versions
+
+ 20 Jun 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +pacemaker-0.6.5.ebuild:
+ version bump
+
+ 26 May 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +pacemaker-0.6.4.ebuild:
+ version bump
+
+ 24 Apr 2008; Wolfram Schlich <wschlich@gentoo.org>
+ +pacemaker-0.6.3.ebuild:
+ version bump
+
+ 04 Mar 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -pacemaker-0.6.2_p11-r5.ebuild, +pacemaker-0.6.2_p11-r7.ebuild:
+ version bump, remove old version
+
+ 28 Feb 2008; Wolfram Schlich <wschlich@gentoo.org>
+ -pacemaker-0.6.2_p11-r1.ebuild, +pacemaker-0.6.2_p11-r5.ebuild:
+ version bump, remove old version
+
diff --git a/sys-cluster/pacemaker/Manifest b/sys-cluster/pacemaker/Manifest
new file mode 100644
index 0000000..09b1e1d
--- /dev/null
+++ b/sys-cluster/pacemaker/Manifest
@@ -0,0 +1,5 @@
+DIST Pacemaker-0.6.4.tar.bz2 897395 RMD160 dab0ca8cb1d73cf0761332190861d308e4311acf SHA1 883efcab891b7920a1c5667664ed47b313228d85 SHA256 6dade57f5d6a7c4065dccfa48e80beff571cd72046dd71a1b5fa7cf8a3c778fa
+DIST Pacemaker-0.6.5.tar.bz2 900633 RMD160 a6f3fb8d37e783afa830250684c65025a41d1df5 SHA1 e311eba3ebe429d035e403d603d0c05ae65d1911 SHA256 54d4e0d0943b75eebfba7aa52f9515c05a9840acefd0b6ea89403761d88b8ab5
+EBUILD pacemaker-0.6.4.ebuild 1722 RMD160 9a3282574957c9885f37a5ae8dd6db0e47714afc SHA1 9a0ff864bb227de34d10257baa875a04720ed0d2 SHA256 99793a6e9e6487b81fc0e8ce0680bc5c5024851e8da685881fa15b31d8b450e4
+EBUILD pacemaker-0.6.5.ebuild 1722 RMD160 9a3282574957c9885f37a5ae8dd6db0e47714afc SHA1 9a0ff864bb227de34d10257baa875a04720ed0d2 SHA256 99793a6e9e6487b81fc0e8ce0680bc5c5024851e8da685881fa15b31d8b450e4
+MISC ChangeLog 962 RMD160 0b62431bf14a397b0b9a5c6a5f2b1b7efbd0cf39 SHA1 02b66df4ba2ce8dbf101582a1442b592267366f4 SHA256 17850002fc110bb6fa3cef9963a6d70b08d43283f46276f572d85566536d28df
diff --git a/sys-cluster/pacemaker/pacemaker-0.6.4.ebuild b/sys-cluster/pacemaker/pacemaker-0.6.4.ebuild
new file mode 100644
index 0000000..4794117
--- /dev/null
+++ b/sys-cluster/pacemaker/pacemaker-0.6.4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools flag-o-matic versionator
+
+MY_PV_MAJ=$(get_version_component_range 1)
+MY_PV_MIN=$(get_version_component_range 2)
+
+DESCRIPTION="Pacemaker (formerly known as Heartbeat CRM)"
+HOMEPAGE="http://www.clusterlabs.org/"
+SRC_URI="http://hg.clusterlabs.org/${PN}/stable-${MY_PV_MAJ}.${MY_PV_MIN}/archive/Pacemaker-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="heartbeat openais snmp"
+
+DEPEND="
+ heartbeat? (
+ >=sys-cluster/heartbeat-2.1.3-r2
+ )
+ openais? ( sys-cluster/openais )
+ snmp? ( net-analyzer/net-snmp )
+"
+
+S="${WORKDIR}"/Pacemaker-${MY_PV_MAJ}-${MY_PV_MIN}-Pacemaker-${PV}
+
+pkg_setup() {
+ # check for USE flag constraints
+ if use openais && use heartbeat; then
+ die "use either USE=openais or USE=heartbeat, but not both"
+ elif ! use openais && ! use heartbeat; then
+ die "use exactly one of USE=openais and USE=heartbeat"
+ elif use heartbeat && has_version sys-cluster/heartbeat; then
+ if built_with_use sys-cluster/heartbeat crm; then
+ die "rebuild heartbeat with USE=-crm"
+ fi
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ eautoreconf
+}
+
+src_compile() {
+ append-ldflags $(bindnow-flags)
+ econf \
+ --localstatedir=/var \
+ $(use_with openais ais-support) \
+ $(use_with heartbeat heartbeat-support) \
+ $(use_enable snmp) \
+ $(use_enable snmp snmp-subagent) \
+ || die "configure failed"
+ emake -j 1 || die "make failed"
+}
+
+src_install() {
+ # FIXME: convert to emake?
+ make DESTDIR=${D} install || die "make install failed"
+ if use heartbeat; then
+ keepdir \
+ /var/lib/heartbeat/crm \
+ /var/lib/heartbeat/pengine \
+ /var/run/heartbeat/crm
+ fi
+}
diff --git a/sys-cluster/pacemaker/pacemaker-0.6.5.ebuild b/sys-cluster/pacemaker/pacemaker-0.6.5.ebuild
new file mode 100644
index 0000000..4794117
--- /dev/null
+++ b/sys-cluster/pacemaker/pacemaker-0.6.5.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools flag-o-matic versionator
+
+MY_PV_MAJ=$(get_version_component_range 1)
+MY_PV_MIN=$(get_version_component_range 2)
+
+DESCRIPTION="Pacemaker (formerly known as Heartbeat CRM)"
+HOMEPAGE="http://www.clusterlabs.org/"
+SRC_URI="http://hg.clusterlabs.org/${PN}/stable-${MY_PV_MAJ}.${MY_PV_MIN}/archive/Pacemaker-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="heartbeat openais snmp"
+
+DEPEND="
+ heartbeat? (
+ >=sys-cluster/heartbeat-2.1.3-r2
+ )
+ openais? ( sys-cluster/openais )
+ snmp? ( net-analyzer/net-snmp )
+"
+
+S="${WORKDIR}"/Pacemaker-${MY_PV_MAJ}-${MY_PV_MIN}-Pacemaker-${PV}
+
+pkg_setup() {
+ # check for USE flag constraints
+ if use openais && use heartbeat; then
+ die "use either USE=openais or USE=heartbeat, but not both"
+ elif ! use openais && ! use heartbeat; then
+ die "use exactly one of USE=openais and USE=heartbeat"
+ elif use heartbeat && has_version sys-cluster/heartbeat; then
+ if built_with_use sys-cluster/heartbeat crm; then
+ die "rebuild heartbeat with USE=-crm"
+ fi
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ eautoreconf
+}
+
+src_compile() {
+ append-ldflags $(bindnow-flags)
+ econf \
+ --localstatedir=/var \
+ $(use_with openais ais-support) \
+ $(use_with heartbeat heartbeat-support) \
+ $(use_enable snmp) \
+ $(use_enable snmp snmp-subagent) \
+ || die "configure failed"
+ emake -j 1 || die "make failed"
+}
+
+src_install() {
+ # FIXME: convert to emake?
+ make DESTDIR=${D} install || die "make install failed"
+ if use heartbeat; then
+ keepdir \
+ /var/lib/heartbeat/crm \
+ /var/lib/heartbeat/pengine \
+ /var/run/heartbeat/crm
+ fi
+}