aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUltrabug <ultrabug@ultrabug.net>2010-10-26 14:17:24 +0200
committerUltrabug <ultrabug@ultrabug.net>2010-10-26 14:17:24 +0200
commitce72ae98ca77b69c4486e184203dfdc4edee2929 (patch)
tree03f337aceaf4588b0a5d42ee3b34ec83b8f5488e
parentglusterfs bump to better handle glusterd and gluster CLI (diff)
downloadsci-ce72ae98ca77b69c4486e184203dfdc4edee2929.tar.gz
sci-ce72ae98ca77b69c4486e184203dfdc4edee2929.tar.bz2
sci-ce72ae98ca77b69c4486e184203dfdc4edee2929.zip
[sys-cluster/pacemaker] proposed version bump
-rw-r--r--sys-cluster/pacemaker/Manifest5
-rw-r--r--sys-cluster/pacemaker/files/pacemaker-1.1.4-installpaths.patch9
-rw-r--r--sys-cluster/pacemaker/files/pacemaker.initd39
-rw-r--r--sys-cluster/pacemaker/files/pacemaker.service5
-rw-r--r--sys-cluster/pacemaker/pacemaker-1.1.4.ebuild87
5 files changed, 145 insertions, 0 deletions
diff --git a/sys-cluster/pacemaker/Manifest b/sys-cluster/pacemaker/Manifest
new file mode 100644
index 000000000..97ec4a635
--- /dev/null
+++ b/sys-cluster/pacemaker/Manifest
@@ -0,0 +1,5 @@
+AUX pacemaker-1.1.4-installpaths.patch 200 RMD160 d2b3bdae8d6f982b64af5f83375497df74fadbc0 SHA1 69a1b9a2c7415a0e0d10c982ecb64474da358fb3 SHA256 4b8d82244123f88491b7deecb99b2d36d6317ada5aa6c6339e95dbcdc73dbbee
+AUX pacemaker.initd 815 RMD160 f9c28c5d5a9a4f720954dc93966dcb8a04623173 SHA1 bc4a951e670144d6ff137f09b2beef9102634457 SHA256 adf97c7fe78cadc5390ac30f32377bf1afb67afd55e89ec93ffa742d4e2d0017
+AUX pacemaker.service 105 RMD160 e743788acefa97f879ea67b5b3bbbff715c71bce SHA1 42739d9a111a25a643d8f5f8b9fdd2cf1267853a SHA256 43034635a3a92ef55bf638ea3e29c2285240228283a70fbd88fe5e28c0d57c8c
+DIST Pacemaker-1.1.4.tar.bz2 23444765 RMD160 ca2635622e2a63258d7dc9933541eb2e3b728679 SHA1 382a4cbd80ef8f1c303f1c5c02d60390e808397f SHA256 922e2929cf9f2efa2e2d9b3185a7ac826a96e86cd8d9f4c4eae177f88f1f03b1
+EBUILD pacemaker-1.1.4.ebuild 2132 RMD160 191f1aeea43ba7ab69e95a92946a295c9a2a973b SHA1 f6c13b4f3985637d56ebbe820cac9d1405c682e6 SHA256 db9608e51751fa29c8c2ea3041d691aeeed50159ecffc41a6719f4bfc58e0bf6
diff --git a/sys-cluster/pacemaker/files/pacemaker-1.1.4-installpaths.patch b/sys-cluster/pacemaker/files/pacemaker-1.1.4-installpaths.patch
new file mode 100644
index 000000000..5187b7967
--- /dev/null
+++ b/sys-cluster/pacemaker/files/pacemaker-1.1.4-installpaths.patch
@@ -0,0 +1,9 @@
+--- extra/Makefile.am
++++ extra/Makefile.am
+@@ -20,5 +20,5 @@
+
+ SUBDIRS = resources
+
+-mibdir = $(datadir)/snmp/mibs
++mibdir = $(datadir)/$(PACKAGE)/snmp/mibs
+ mib_DATA = PCMK-MIB.txt
diff --git a/sys-cluster/pacemaker/files/pacemaker.initd b/sys-cluster/pacemaker/files/pacemaker.initd
new file mode 100644
index 000000000..3e4765473
--- /dev/null
+++ b/sys-cluster/pacemaker/files/pacemaker.initd
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+PIDFILE=/var/run/pacemaker.pid
+
+depend() {
+ need net corosync
+ use syslog
+}
+
+start() {
+ nc=0
+ ebegin "Starting Pacemaker Cluster Manager"
+ einfon "Waiting for Corosync startup ."
+ while true; do
+ /usr/sbin/corosync-cfgtool -s &>/dev/null && break
+ nc=$(expr $nc + 1)
+ if [ $nc -gt 30 ]; then
+ echo
+ eend 1 "Failed to detect Corosync startup, is it really running ?"
+ exit 1
+ fi
+ sleep 1
+ echo -n "."
+ done
+ echo
+ start-stop-daemon --start -q --exec /usr/sbin/pacemakerd \
+ --pidfile "${PIDFILE}" --make-pidfile --background \
+ -- -f
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Pacemaker Cluster Manager"
+ start-stop-daemon --stop -q --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/sys-cluster/pacemaker/files/pacemaker.service b/sys-cluster/pacemaker/files/pacemaker.service
new file mode 100644
index 000000000..6383499ba
--- /dev/null
+++ b/sys-cluster/pacemaker/files/pacemaker.service
@@ -0,0 +1,5 @@
+service {
+ # Load the Pacemaker Cluster Resource Manager
+ name: pacemaker
+ ver: 1
+} \ No newline at end of file
diff --git a/sys-cluster/pacemaker/pacemaker-1.1.4.ebuild b/sys-cluster/pacemaker/pacemaker-1.1.4.ebuild
new file mode 100644
index 000000000..3e90a316d
--- /dev/null
+++ b/sys-cluster/pacemaker/pacemaker-1.1.4.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+MY_PN="Pacemaker"
+MY_P="${MY_PN}-${PV}"
+PYTHON_DEPEND="2"
+inherit autotools base eutils flag-o-matic multilib python
+
+DESCRIPTION="Pacemaker CRM"
+HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker"
+SRC_URI="http://hg.clusterlabs.org/${PN}/1.1/archive/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ais heartbeat smtp snmp static-libs"
+
+RDEPEND="
+ dev-libs/libxslt
+ sys-cluster/cluster-glue
+ sys-cluster/resource-agents
+ ais? ( sys-cluster/openais )
+ heartbeat? ( >=sys-cluster/heartbeat-3.0.0 )
+ !heartbeat? ( !ais? ( sys-cluster/openais ) )
+ smtp? ( net-libs/libesmtp )
+ snmp? ( net-analyzer/net-snmp )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-installpaths.patch"
+)
+
+S="${WORKDIR}/${MY_PN}-1-1-${MY_P}"
+
+pkg_setup() {
+ if ! use ais && ! use heartbeat; then
+ ewarn "You disabled both cluster implementations"
+ ewarn "Silently enabling OpenAIS/CoroSync support."
+ fi
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ base_src_prepare
+ sed -i -e "/ggdb3/d" configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ local myopts=""
+ use heartbeat || use ais || myopts="--with-ais"
+ # appends lib to localstatedir automatically
+ econf \
+ --localstatedir=/var \
+ --disable-dependency-tracking \
+ --disable-fatal-warnings \
+ --with-cs-quorum \
+ --without-cman \
+ $(use_with smtp esmtp) \
+ $(use_with ais) \
+ $(use_with heartbeat) \
+ $(use_with snmp) \
+ $(use_enable static-libs static) \
+ ${myopts}
+}
+
+src_install() {
+ base_src_install
+ newinitd "${FILESDIR}/pacemaker.initd" pacemaker || die
+ insinto /etc/corosync/service.d
+ newins "${FILESDIR}/pacemaker.service" pacemaker || die
+}
+
+pkg_postinst() {
+ elog "This version of Pacemaker uses the new MCP feature"
+ elog "and the v1 plugin for CoroSync. Read [1] for more info."
+ elog
+ elog "To start the Pacemaker Cluster Manager, run:"
+ elog "/etc/init.d/pacemaker start"
+ elog
+ elog "[1] http://theclusterguy.clusterlabs.org/post/907043024/introducing-the-pacemaker-master-control-process-for"
+} \ No newline at end of file