summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2010-07-01 10:10:23 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2010-07-01 10:10:23 +0000
commit145488088171f8547b56abe455a18a93c09aad8e (patch)
tree06be27b2167cda60d02123aa69d52f3b1efa4ff0 /sys-cluster
parentFixed pkg_setup according to Arfrever's suggestions (diff)
downloadgentoo-2-145488088171f8547b56abe455a18a93c09aad8e.tar.gz
gentoo-2-145488088171f8547b56abe455a18a93c09aad8e.tar.bz2
gentoo-2-145488088171f8547b56abe455a18a93c09aad8e.zip
Initial import. Ebuild written by Tomáš Chvátal <scarabeus@gentoo.org>
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/pacemaker/ChangeLog11
-rw-r--r--sys-cluster/pacemaker/files/pacemaker-1.0.8-asneeded.patch32
-rw-r--r--sys-cluster/pacemaker/files/pacemaker-1.0.8-installpaths.patch34
-rw-r--r--sys-cluster/pacemaker/metadata.xml14
-rw-r--r--sys-cluster/pacemaker/pacemaker-1.0.8.ebuild70
5 files changed, 161 insertions, 0 deletions
diff --git a/sys-cluster/pacemaker/ChangeLog b/sys-cluster/pacemaker/ChangeLog
new file mode 100644
index 000000000000..b7b128c8b156
--- /dev/null
+++ b/sys-cluster/pacemaker/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-cluster/pacemaker
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/ChangeLog,v 1.1 2010/07/01 10:10:21 xarthisius Exp $
+
+*pacemaker-1.0.8 (01 Jul 2010)
+
+ 01 Jul 2010; Kacper Kowalik <xarthisius@gentoo.org>
+ +pacemaker-1.0.8.ebuild, +files/pacemaker-1.0.8-asneeded.patch,
+ +files/pacemaker-1.0.8-installpaths.patch, +metadata.xml:
+ Initial import. Ebuild written by Tomáš Chvátal <scarabeus@gentoo.org>
+
diff --git a/sys-cluster/pacemaker/files/pacemaker-1.0.8-asneeded.patch b/sys-cluster/pacemaker/files/pacemaker-1.0.8-asneeded.patch
new file mode 100644
index 000000000000..996f6bff2fcd
--- /dev/null
+++ b/sys-cluster/pacemaker/files/pacemaker-1.0.8-asneeded.patch
@@ -0,0 +1,32 @@
+--- Makefile.am
++++ Makefile.am
+@@ -23,7 +23,7 @@
+ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure DRF/config-h.in \
+ DRF/stamp-h.in libtool.m4 ltdl.m4 libltdl.tar
+
+-SUBDIRS = debian $(LIBLTDL_DIR) replace include lib pengine cib crmd fencing tools shell xml cts extra doc
++SUBDIRS = $(LIBLTDL_DIR) replace include lib pengine cib crmd fencing tools shell xml cts extra doc
+
+ doc_DATA = AUTHORS COPYING COPYING.LIB
+
+--- pengine/Makefile.am
++++ pengine/Makefile.am
+@@ -58,6 +58,7 @@
+ # -L$(top_builddir)/lib/pils -lpils -export-dynamic -module -avoid-version
+ libpengine_la_SOURCES = pengine.c allocate.c utils.c constraints.c \
+ native.c group.c clone.c master.c graph.c
++libpengine_la_LIBADD = $(top_builddir)/lib/pengine/libpe_status.la
+
+ pengine_SOURCES = main.c
+ pengine_LDADD = $(COMMONLIBS) $(top_builddir)/lib/cib/libcib.la
+--- lib/pengine/Makefile.am
++++ lib/pengine/Makefile.am
+@@ -34,7 +34,7 @@
+
+ libpe_status_la_LDFLAGS = -version-info 2:0:0
+ libpe_status_la_SOURCES = $(rule_files) $(status_files)
+-libpe_status_la_LIBADD = -llrm
++libpe_status_la_LIBADD = -llrm @CURSESLIBS@
+
+ clean-generic:
+ rm -f *.log *.debug *~
diff --git a/sys-cluster/pacemaker/files/pacemaker-1.0.8-installpaths.patch b/sys-cluster/pacemaker/files/pacemaker-1.0.8-installpaths.patch
new file mode 100644
index 000000000000..005790c0f542
--- /dev/null
+++ b/sys-cluster/pacemaker/files/pacemaker-1.0.8-installpaths.patch
@@ -0,0 +1,34 @@
+--- cts/Makefile.am
++++ cts/Makefile.am
+@@ -25,7 +25,7 @@
+
+ ctsdir = $(datadir)/$(PACKAGE)/tests/cts
+
+-cts_PYTHON = CTSvars.py \
++cts_SCRIPTS = CTSvars.py \
+ CM_lha.py \
+ CM_ais.py \
+ CTS.py \
+@@ -35,10 +35,9 @@
+ CTSscenarios.py \
+ extracttests.py \
+ OCFIPraTest.py \
+- CIB.py
++ CIB.py \
++ cluster_test \
++ LSBDummy
+
+ cts_DATA = README cts.supp
+
+-cts_SCRIPTS = \
+- cluster_test \
+- LSBDummy
+--- 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/metadata.xml b/sys-cluster/pacemaker/metadata.xml
new file mode 100644
index 000000000000..17ef18949bdb
--- /dev/null
+++ b/sys-cluster/pacemaker/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ha-cluster</herd>
+ <longdescription>Pacemaker is a cluster resource manager.
+ It achieves maximum availability for your cluster services (aka. resources) by detecting and
+ recovering from node and resource-level failures by making use of the messaging and membership
+ capabilities provided by your preferred cluster infrastructure (either OpenAIS or Heartbeat).
+ </longdescription>
+ <use>
+ <flag name="ais">Enable <pkg>sys-cluster/openais</pkg> support.</flag>
+ <flag name="heartbeat">Enable <pkg>sys-cluster/heartbeat</pkg> support.</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-cluster/pacemaker/pacemaker-1.0.8.ebuild b/sys-cluster/pacemaker/pacemaker-1.0.8.ebuild
new file mode 100644
index 000000000000..c608c252237a
--- /dev/null
+++ b/sys-cluster/pacemaker/pacemaker-1.0.8.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.0.8.ebuild,v 1.1 2010/07/01 10:10:21 xarthisius Exp $
+
+EAPI="2"
+
+MY_PN="Pacemaker"
+MY_P="${MY_PN}-${PV}"
+PYTHON_DEPEND="2"
+inherit python autotools multilib eutils base flag-o-matic
+
+DESCRIPTION="Pacemaker CRM"
+HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker"
+SRC_URI="http://hg.clusterlabs.org/${PN}/stable-1.0/archive/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ais heartbeat 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 )
+ snmp? ( net-analyzer/net-snmp )
+ !heartbeat? ( !ais? ( sys-cluster/openais ) )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-asneeded.patch"
+ "${FILESDIR}/${P}-installpaths.patch"
+)
+
+S="${WORKDIR}/${MY_PN}-1-0-${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 hearbeat || use ais || myopts="--with-ais"
+ # appends lib to localstatedir automatically
+ econf \
+ --localstatedir=/var \
+ --disable-dependency-tracking \
+ --disable-fatal-warnings \
+ --without-esnmp \
+ $(use_with ais) \
+ $(use_with heartbeat) \
+ $(use_with snmp) \
+ $(use_enable static-libs static) \
+ ${myopts}
+}