diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2010-07-01 10:10:23 +0000 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2010-07-01 10:10:23 +0000 |
commit | 20c69291900935e20b942aa478b516688a73f4d6 (patch) | |
tree | 19030be9413352e97e13ddec2958b3fcf24d6699 /sys-cluster | |
parent | Fixed pkg_setup according to Arfrever's suggestions (diff) | |
download | historical-20c69291900935e20b942aa478b516688a73f4d6.tar.gz historical-20c69291900935e20b942aa478b516688a73f4d6.tar.bz2 historical-20c69291900935e20b942aa478b516688a73f4d6.zip |
Initial import. Ebuild written by Tomáš Chvátal <scarabeus@gentoo.org>
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/pacemaker/ChangeLog | 11 | ||||
-rw-r--r-- | sys-cluster/pacemaker/Manifest | 6 | ||||
-rw-r--r-- | sys-cluster/pacemaker/files/pacemaker-1.0.8-asneeded.patch | 32 | ||||
-rw-r--r-- | sys-cluster/pacemaker/files/pacemaker-1.0.8-installpaths.patch | 34 | ||||
-rw-r--r-- | sys-cluster/pacemaker/metadata.xml | 14 | ||||
-rw-r--r-- | sys-cluster/pacemaker/pacemaker-1.0.8.ebuild | 70 |
6 files changed, 167 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/Manifest b/sys-cluster/pacemaker/Manifest new file mode 100644 index 000000000000..a52cc139b5f3 --- /dev/null +++ b/sys-cluster/pacemaker/Manifest @@ -0,0 +1,6 @@ +AUX pacemaker-1.0.8-asneeded.patch 1178 RMD160 5fb3bd8a4683619e40c9cf0776704bb6203b88a7 SHA1 bf21b8fbc82f5695089d229f8449201909d9e0ac SHA256 8fa45fe9c04e29e3d5d978e40438cfad87c5183f201783863211251797a1c409 +AUX pacemaker-1.0.8-installpaths.patch 644 RMD160 4054a78cc87345443b08386577bf150e0525af0f SHA1 4c11d4ecf3d51c9b9f067a5af9fcbb53184dc571 SHA256 f5a6c88c8673d1d324491dd4daa3ad53c9722fe6290043d409393251421f73ef +DIST Pacemaker-1.0.8.tar.bz2 8628929 RMD160 3088990972188125557ac9a64e536a9715bc332c SHA1 d0b30de3c9bd05ab0653f68bd5eddf9c2674825b SHA256 07e2e5559720890603baac96aa7635ff02f0b33ead592977554e661c6afe7b55 +EBUILD pacemaker-1.0.8.ebuild 1660 RMD160 ae0dc8653ff2734ee1eadf18343849984752e50f SHA1 e0cbe7e19afeab5aad08700e341236ba24bcf30a SHA256 61088fd2b3ef18b78ec2dcbc3d8317391a608a7a023ae301014fe960f1c6d1c0 +MISC ChangeLog 508 RMD160 99a615068dca3c3b69717bf8382026231fb4d8c2 SHA1 e5cd5d508fa9ef504fb0b3ce7a02c1ae03351233 SHA256 3736996634bf6404a62356c348a2452dceee63439226d38556f06b57aba867d9 +MISC metadata.xml 719 RMD160 397b0ae3210822ab6e723f14e1880b38e9355768 SHA1 2f59c65b03d2d62a6a2faa749dae4db96a6bdc4b SHA256 62cb8a340d341d56c833f343982fb33e8c6cab2050c35707bf15e9d562be56b1 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} +} |