summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2013-01-24 09:24:56 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2013-01-24 09:24:56 +0000
commit4f4b6ff3a6078670d3642ce26ce83793e9ce821d (patch)
treeb8356e3b412fe576867a057614c7be5b18f4c60b /sys-cluster
parentbump (diff)
downloadhistorical-4f4b6ff3a6078670d3642ce26ce83793e9ce821d.tar.gz
historical-4f4b6ff3a6078670d3642ce26ce83793e9ce821d.tar.bz2
historical-4f4b6ff3a6078670d3642ce26ce83793e9ce821d.zip
Pass --without-corosync to configure when heartbeat is set. Fixes bug 433433 by Alois Schmid <alois.schmid@gmx.de>. Drop old
Package-Manager: portage-2.2.0_alpha150/cvs/Linux x86_64 Manifest-Sign-Key: 0x5D21B852895192F9
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/pacemaker/ChangeLog7
-rw-r--r--sys-cluster/pacemaker/Manifest25
-rw-r--r--sys-cluster/pacemaker/pacemaker-1.0.11.ebuild76
-rw-r--r--sys-cluster/pacemaker/pacemaker-1.1.7.ebuild92
-rw-r--r--sys-cluster/pacemaker/pacemaker-1.1.8-r1.ebuild8
-rw-r--r--sys-cluster/pacemaker/pacemaker-1.1.8.ebuild85
6 files changed, 27 insertions, 266 deletions
diff --git a/sys-cluster/pacemaker/ChangeLog b/sys-cluster/pacemaker/ChangeLog
index e3c055091cbd..6583eab388cb 100644
--- a/sys-cluster/pacemaker/ChangeLog
+++ b/sys-cluster/pacemaker/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-cluster/pacemaker
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/ChangeLog,v 1.27 2013/01/18 11:51:54 ultrabug Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/ChangeLog,v 1.28 2013/01/24 09:24:49 xarthisius Exp $
+
+ 24 Jan 2013; Kacper Kowalik <xarthisius@gentoo.org> -pacemaker-1.0.11.ebuild,
+ -pacemaker-1.1.7.ebuild, -pacemaker-1.1.8.ebuild, pacemaker-1.1.8-r1.ebuild:
+ Pass --without-corosync to configure when heartbeat is set. Fixes bug 433433
+ by Alois Schmid <alois.schmid@gmx.de>. Drop old
*pacemaker-1.1.8-r1 (18 Jan 2013)
diff --git a/sys-cluster/pacemaker/Manifest b/sys-cluster/pacemaker/Manifest
index a95ae434bc56..0b5803b614bc 100644
--- a/sys-cluster/pacemaker/Manifest
+++ b/sys-cluster/pacemaker/Manifest
@@ -9,22 +9,27 @@ AUX pacemaker-1.0.10-installpaths.patch 200 SHA256 4b8d82244123f88491b7deecb99b2
AUX pacemaker.initd 981 SHA256 9c081cbbf9e3843d61f8175e430f82414bd21661b6b7fb31f74b9c6c64874204 SHA512 ebf1fa1043dda01e1409960f6a0b13284186644e4ced9e348e61ac137c4d8151aa4bf82740fc553a347d19e547f61f5f08d7bd24ce2247dfeae38e7648945103 WHIRLPOOL edc3634278151e5c88082768b71281cc8cd1dd5b191ac93da219b0024a30e29fad538b904a99805b55d20ebec7212c7d8e4269524a846ece117a8aa442ab7c7e
AUX pacemaker.service 105 SHA256 43034635a3a92ef55bf638ea3e29c2285240228283a70fbd88fe5e28c0d57c8c SHA512 478e1040811f16c0c26fad8feb55cf803e5c4ec4a25e7c82ec771663f25270500fce2dd53622abd7126006c4629bdc3a82fb7f16361eb19543619824a56e848b WHIRLPOOL ec891f83ec9f561060b08bd39e9e0ecf5b243617958bd68f07a2f087a881af85895a4f25f810657ababb6d4541dfcc63e59e195fb6006717dc0cb69a1f869376
DIST Pacemaker-1.0.10.tar.bz2 6642704 SHA256 2d5635866dcf061a617a33bc4ae7957d038dd764ad840489e4f2f6b8d046e6f9 SHA512 ceed7414ce14d136205d35f4e3e11aa0c5b57b3e0069486ea2b9827d3f78f69ff216474348d3360f31ace06d1071f9287ae3300a495391509c2fb43407fc2711 WHIRLPOOL 3ac764ddcf00eebd851fdd69398670bb4cb5c083f89c6e770759463da8b1fb0f0ca03c0bb134386c45703e0db7b50139e466ba71ded72647131abde4301c283f
-DIST Pacemaker-1.0.11.tar.bz2 6706773 SHA256 568a8a7257ca9eb2d546c74fb18ee27d1e4e8eb58d9e2be0325cda1569b0ae75
DIST pacemaker-1.0.12.tar.gz 7481273 SHA256 a3b4ea4106eda19ff5569bf0631168454b481fbfd23342421010832cce0a504e SHA512 a6944318cfbddaacfd87dda82be9c377af85cb9f92f913d785f5e8a060c23480a972efc0b255af9ad7c1bbd0f7c5ee57f5e7d9797fe3b2549f4c31c7751c1d86 WHIRLPOOL 2f707c4f74c235b358fff50b4e60069b4c16c9fac5114a74ba75d6aca85c67c56b43f49d1496f876b55e652585d4908e060306cb2a3579e2b15b15d0c2b217f5
-DIST pacemaker-1.1.7.tar.gz 9207389 SHA256 acf02495a24efbe21c18d1f4a2289b4e91374fd56c0ceaaa402ae1cf88219861 SHA512 9201fa677e7d2c8b0e926df92a735797cdc206b171e60d205ea997686598a1680dead9a33f617822fcbc998040c9df464052b86824635173926f250ae00d6e81 WHIRLPOOL 5e7178c4c660b0019862189f39e853457b8cddd9140b4d5c0b2c8925f970a521d8ac258183d0f70a11e2b8a734fa88c66244b0a00dded078042793d9cc4cfbc8
DIST pacemaker-1.1.8.tar.gz 9410292 SHA256 d3a2b70968f01fefaa44c1256ced6bf427c42cd7a43fea2f3904ff42835ed449 SHA512 236ef0b50bf1c1352977e8a72296e3d79105e6ee35c50893acf4f4ec0ff36701b920d5f5ff05693a7ed2d0a13a82c67ef8c4b3468c2aec51e660a789f22ff9c6 WHIRLPOOL 5c28cd0b806cf6c41c2aa68865855084f1733e9b5f09ae03fc965e7e3ce4b5baaa1c0df3f9c03205fa7fe431ef193de9ba9fa226ba4bda89f061f3997f618a43
EBUILD pacemaker-1.0.10.ebuild 1779 SHA256 642b4687ce2abdbba8fcad04fc6c76f1aa3ddae94a84e4b85081524b87b7a65c SHA512 89deb4b02e43509591b1d62696a1e64a0e7ba31884124e1f9d9b89b27c579723d57ad931a6c12d263535b34c3bfa93b1a531731ed0b8f85d9744f08e511879bd WHIRLPOOL 06192033358d9700a3d786bffb074d1708f49e907ef2e9ac39f62a8ace867700b651275be7891dca7e9d1d8d46198c9cca26c0493e9416045648fbb9e45466ea
-EBUILD pacemaker-1.0.11.ebuild 1763 SHA256 693a452ee09487ab23cc7a0e83f78249eb962644637ff4d1c68337ab93e9f5ed SHA512 54589d39d6392afebf7f612007dc51b8bc36730bcc08de80597e5c41e2165694adffb1a8b4ddf18f0d051af573eba252610ad1c23e4225894e6908da8dd13f8a WHIRLPOOL 8a0c2ccd8e3d9aba8767607431efbe18c1265a815a840f58cfebfb6fc63fa28d5eed79535d06af24baae2adf2cac9c14bf44298969ffa0744799a0feffacfab6
EBUILD pacemaker-1.0.12.ebuild 1748 SHA256 d2e1d4c2e6856d1e5acb946a7b3e350c2f53df7a27e317e81578cb7ac8fd7fc8 SHA512 a759d7d97e75f0735275c3fa42c61481ca2ca92c8f1b2de6006c630e913de1e57f90289264ae5c4967eacee7c83707780d3b8969bddb41dcfe11dc0660c2dab6 WHIRLPOOL 9cedbfff135b60dfa5c27b2199d9a0291430f1a1cbde76ae2d3dcc7b956107be43664e4d19043f8e20f1eaff278e706749c285874c6cdec47d8022ea55268870
-EBUILD pacemaker-1.1.7.ebuild 2397 SHA256 d6c799fd86e449edbeebe06ec709a5b5cf47f89677cf15fc3037716f39a2c167 SHA512 9aa981604060b494c09d5ae751732d887ea439e9099be5676f8f9bc8b4466537f83628d7e545ea45c6900d99871e3f1a1064a2d637a77abeb6ec852da27a8fc8 WHIRLPOOL 23b32d1ffde85726fffb00a644a9c9c7ba4433e73c040650062077a73170e16f805ebfadf30db9a3aac0a33559d94abaf832b96dfaa537ac42909e15326da554
-EBUILD pacemaker-1.1.8-r1.ebuild 2041 SHA256 cbc980a102ba7fea97050bfbaed41f33e1de9342466a57e7791d9d5fe4bf0241 SHA512 23f658c0b3e4de8eed72dfa9d6df6c059f084e24b5a44e362045c88b778e5b3de6bdff210378020f3b6f11af14f5a2d9ab8c448418bafc38cada99b97b4ee903 WHIRLPOOL d58dc823061fb0e1660f0a2c4cf70a28cda7ca59a369f59240a1bf84ddcc8c4dcc4d3ccb8c23ce73f7401cf53bf4aa4502a431dfce58c3f456b7a2a2e2277b05
-EBUILD pacemaker-1.1.8.ebuild 2010 SHA256 fe2b205b29edc05e3d9c6182fca1d9390ad3d47f2c004d162cb1dec8e3e07b7b SHA512 5be52a4d705365b57848bed75aa91363edbce48607974666a11ccd0d00f9eb0a15d4cc254baa2ea0f72fc1a01faebe2efe0527d5774b2574837944693dedf118 WHIRLPOOL 1437c531d6aceacc726dd42e547ae713e2cb3dbb144a1f18310594db9880418d5ec42db27142cb2a571f4552eb1927959a7eff85baa0dedc1541dee54bc0d472
-MISC ChangeLog 5265 SHA256 473ccffe3da52ba5057848959f7ae7c177b6fff420b0dfd6d3a61c741f9aca98 SHA512 5a3c5868dbecada7718f2cc8328ee725fb399c8173443de996f0c48f57f6bb6392a774008280f56d9007a7e04997b061ce54366c96aa7fd654199495f04b8206 WHIRLPOOL bab2f78c586120b2ad98347c1275559c7f31b6d39d0f7b0abc2da530a61f58910cfc1b4f00330c6a004f17d17abdef215e8861d1215617b5676a1cfede26cc11
+EBUILD pacemaker-1.1.8-r1.ebuild 2098 SHA256 7c8aa9952c3c2a38a90fe00994f45fe220a506ea1828430e75ff8d9a930cf674 SHA512 51158b7632cc8652506bdde84b76ce303fe4790e9323b8f2b472ebdfc810d0635729f1663d36f1da19f2eb4c8c4168af53cb94dd62e154d3e95d6429cf107a20 WHIRLPOOL f60148bf443843f91b9df8fb1af490b369aac2056699705b031384f02f85a3892a47a35082250972cb0163df6ead5d1b57e683b886e99f183b4f575ba10effb4
+MISC ChangeLog 5556 SHA256 839e342d334cf780f505a6efb6c6f638b6a9df76d202acc8065ebabe947439be SHA512 2b6cefd9310909a9d1c747bb29d98dab8d526ecda467368585ba17e5291638249a77c260a353cf751a953017950f7a1bb301e6e29a06929de204c542b5487bb2 WHIRLPOOL 299c8b635385f0b62f02928bd300c9732584122cc943f56a425107f8a8415da3c1f034307c2ad855e0337861ac44abf07c3e28572f445271be1f4531701e7508
MISC metadata.xml 870 SHA256 ca8b9f3af29de78a1e6196cd392c6c85635f8f7fb2303befc762bd135439fd3b SHA512 57a334af692d25bd670f652d03aec50db6b19676910f8f988fff1f3e84af5d6c379204ee277eafcc8f570ad15445ce6364c9643f2d58540f9ee98b12ce9524c8 WHIRLPOOL 2e278c69b2f24eb38b876f832292bedcf2729252e36584c42a8438a965661bc63d87affe3e5e3e09b53b75a7e2f88e31f92edd857b1ff5ea897f47b286567c2a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iF4EAREIAAYFAlD5N18ACgkQKiQSS7ZY+hPtzAD9GGplA83F3PmUetOVAbLjNDSL
-loXm72bSniCQVQ4AEucA/1Ml6ksWxsETORgXON9zfQebNmz8ABASieMHmUF82Rb6
-=tb6/
+iQIbBAEBCAAGBQJRAP31AAoJEF0huFKJUZL5MhUP92kIOet3rWI3P6/lj6/7RmYD
+9ULIgRNTOIKQ96Nrt7cUMVgjy1TCuQY+q5miSNw7E2rURhdmd92Uw4PO/T29cViL
+7FAnV4DNUPOZFgYrjzHkl2OLI3Y41vxV5l9q6B7hINYCCGMt5keJtZ927hSFrXII
+esAKjFEJ293bhd0XVUhl/P7A//owVJXYqhEqj1URgm7hBPhmwdB2S2QmNDi4j5vP
+e/PYZMlFbe5gP/BCb7qVTUIWC9oJFWnZRH8BgAZRH4cx6ijUfSujioavQbRm9B0/
+0iTynwDHWMjHhwEFiYOlR78vqmTnF7a5uU5RpcGFPTThLHJ4F5SI6nkP0xI9jvdL
+3sIHyxv3mMUdjDXBbv59cQxIjyEGIFin23WuBUhOIaaxgV/Rab4VzFbFAHgZFkIJ
+G4Abg3SbQ2M+9/ivWf/8sMbpVXPWG7tcomxijiAOLSwveWFpvNRCpkXcTNyW5Go5
+284sDsRBFfr/KLLdO2f0BFinfyB8RNYSgErVmjeLZzrmTkOsPdGmzkI1m42M9U1v
+2RGPIy/s1BMjvN6Q4lop4/Ls/zrLPSRqeR3qGJIxLUl8KN3UIeJECkbINXiFnSKx
+XDYjVsoRw1/5+3+0p70ObXtk7TJM807h7KXG/Eos/EJGrcMzf9qi7YxpJmYfjBUY
+d9zR4P+qOBTCctxY9Sc=
+=EqnP
-----END PGP SIGNATURE-----
diff --git a/sys-cluster/pacemaker/pacemaker-1.0.11.ebuild b/sys-cluster/pacemaker/pacemaker-1.0.11.ebuild
deleted file mode 100644
index 29cf1891bc6c..000000000000
--- a/sys-cluster/pacemaker/pacemaker-1.0.11.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.0.11.ebuild,v 1.3 2012/05/24 09:24:38 xarthisius Exp $
-
-EAPI="2"
-
-MY_PN=Pacemaker
-MY_P=${MY_PN}-${PV}
-PYTHON_DEPEND="2"
-
-inherit autotools base python
-
-DESCRIPTION="Pacemaker CRM"
-HOMEPAGE="http://www.clusterlabs.org/"
-SRC_URI="http://hg.clusterlabs.org/${PN}/stable-1.0/archive/${MY_P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~x86"
-IUSE="+ais heartbeat smtp snmp static-libs"
-
-DEPEND="
- dev-libs/libxslt
- sys-cluster/cluster-glue
- sys-cluster/resource-agents
- ais? ( sys-cluster/openais )
- heartbeat? ( >=sys-cluster/heartbeat-3.0.0 )
- smtp? ( net-libs/libesmtp )
- snmp? ( net-analyzer/net-snmp )
- !heartbeat? ( !ais? ( sys-cluster/openais ) )
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
- "${FILESDIR}/${PN}-1.0.10-asneeded.patch"
- "${FILESDIR}/${PN}-1.0.10-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
- sed -e "s:<glib/ghash.h>:<glib.h>:" \
- -i lib/ais/plugin.c || die
- eautoreconf
-}
-
-src_configure() {
- local myopts=""
-
- if ! use ais && ! use heartbeat; then
- myopts="--with-ais"
- fi
- # appends lib to localstatedir automatically
- econf \
- --localstatedir=/var \
- --disable-dependency-tracking \
- --disable-fatal-warnings \
- $(use_with ais) \
- $(use_with heartbeat) \
- $(use_with smtp esmtp) \
- $(use_with snmp) \
- $(use_enable static-libs static) \
- ${myopts}
-}
diff --git a/sys-cluster/pacemaker/pacemaker-1.1.7.ebuild b/sys-cluster/pacemaker/pacemaker-1.1.7.ebuild
deleted file mode 100644
index 364c2a8fcbf7..000000000000
--- a/sys-cluster/pacemaker/pacemaker-1.1.7.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.1.7.ebuild,v 1.3 2012/08/23 11:21:54 xarthisius Exp $
-
-EAPI=4
-
-PYTHON_DEPEND="2"
-
-inherit autotools base python
-
-MY_PN=Pacemaker
-MY_P=${MY_PN}-${PV}
-MY_TREE="b5b0a7b"
-
-DESCRIPTION="Pacemaker CRM"
-HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker"
-SRC_URI="https://github.com/ClusterLabs/${PN}/tarball/${MY_P} -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~x86"
-REQUIRED_USE="cman? ( !heartbeat )"
-IUSE="acl cman heartbeat smtp snmp static-libs"
-
-DEPEND="
- app-text/docbook-xsl-stylesheets
- dev-libs/libxslt
- sys-cluster/cluster-glue
- sys-cluster/resource-agents
- cman? ( sys-cluster/cman )
- heartbeat? ( >=sys-cluster/heartbeat-3.0.0 )
- !heartbeat? ( sys-cluster/corosync )
- smtp? ( net-libs/libesmtp )
- snmp? ( net-analyzer/net-snmp )
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}"/${PV}-glibc2.16.patch )
-
-S="${WORKDIR}/ClusterLabs-${PN}-${MY_TREE}"
-
-pkg_setup() {
- python_set_active_version 2
- python_pkg_setup
-}
-
-src_prepare() {
- base_src_prepare
- sed -i -e "/ggdb3/d" configure.ac || die
- sed -e "s:<glib/ghash.h>:<glib.h>:" \
- -i lib/ais/plugin.c || die
- eautoreconf
- python_convert_shebangs -r 2 .
-}
-
-src_configure() {
- local myopts=""
- use heartbeat || myopts="--with-ais"
- # appends lib to localstatedir automatically
- econf \
- --localstatedir=/var \
- --disable-dependency-tracking \
- --disable-fatal-warnings \
- $(use_with acl) \
- $(use_with cman cs-quorum) \
- $(use_with cman cman) \
- $(use_with heartbeat) \
- $(use_with smtp esmtp) \
- $(use_with snmp) \
- $(use_enable static-libs static) \
- ${myopts}
-}
-
-src_install() {
- base_src_install
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
- insinto /etc/corosync/service.d
- newins "${FILESDIR}/${PN}.service" ${PN} || 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"
- elog
- elog "Note: sys-cluster/openais is no longer a hard dependency of ${P},"
- elog "so you may need to install it yourself to suit your needs."
-}
diff --git a/sys-cluster/pacemaker/pacemaker-1.1.8-r1.ebuild b/sys-cluster/pacemaker/pacemaker-1.1.8-r1.ebuild
index 642afe4f773f..479469cd1b68 100644
--- a/sys-cluster/pacemaker/pacemaker-1.1.8-r1.ebuild
+++ b/sys-cluster/pacemaker/pacemaker-1.1.8-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.1.8-r1.ebuild,v 1.1 2013/01/18 11:51:54 ultrabug Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.1.8-r1.ebuild,v 1.2 2013/01/24 09:24:49 xarthisius Exp $
EAPI=4
@@ -59,7 +59,11 @@ src_prepare() {
src_configure() {
local myopts=""
- use heartbeat || myopts="--with-ais"
+ if use heartbeat ; then
+ myopts="--without-corosync"
+ else
+ myopts="--with-ais"
+ fi
# appends lib to localstatedir automatically
econf \
--localstatedir=/var \
diff --git a/sys-cluster/pacemaker/pacemaker-1.1.8.ebuild b/sys-cluster/pacemaker/pacemaker-1.1.8.ebuild
deleted file mode 100644
index 8875cc847739..000000000000
--- a/sys-cluster/pacemaker/pacemaker-1.1.8.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pacemaker/pacemaker-1.1.8.ebuild,v 1.3 2012/11/14 17:24:22 jer Exp $
-
-EAPI=4
-
-PYTHON_DEPEND="2"
-
-inherit autotools base python
-
-MY_PN=Pacemaker
-MY_P=${MY_PN}-${PV}
-MY_TREE="1f8858c"
-
-DESCRIPTION="Pacemaker CRM"
-HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker"
-SRC_URI="https://github.com/ClusterLabs/${PN}/tarball/${MY_P} -> ${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~hppa ~x86"
-REQUIRED_USE="cman? ( !heartbeat )"
-IUSE="acl cman heartbeat smtp snmp static-libs"
-
-DEPEND="
- app-text/docbook-xsl-stylesheets
- dev-libs/libxslt
- sys-cluster/cluster-glue
- >=sys-cluster/libqb-0.14.0
- sys-cluster/resource-agents
- cman? ( sys-cluster/cman )
- heartbeat? ( >=sys-cluster/heartbeat-3.0.0 )
- !heartbeat? ( sys-cluster/corosync )
- smtp? ( net-libs/libesmtp )
- snmp? ( net-analyzer/net-snmp )
-"
-RDEPEND="${DEPEND}"
-PDEPEND="sys-cluster/crmsh"
-
-PATCHES=(
- "${FILESDIR}"/${PV}-backwards_compatibility.patch
- )
-
-S="${WORKDIR}/ClusterLabs-${PN}-${MY_TREE}"
-
-pkg_setup() {
- python_set_active_version 2
- python_pkg_setup
-}
-
-src_prepare() {
- base_src_prepare
- sed -i -e "/ggdb3/d" configure.ac || die
- sed -e "s:<glib/ghash.h>:<glib.h>:" \
- -i lib/ais/plugin.c || die
- eautoreconf
- python_convert_shebangs -r 2 .
-}
-
-src_configure() {
- local myopts=""
- use heartbeat || myopts="--with-ais"
- # appends lib to localstatedir automatically
- econf \
- --localstatedir=/var \
- --disable-dependency-tracking \
- --disable-fatal-warnings \
- $(use_with acl) \
- $(use_with cman cs-quorum) \
- $(use_with cman cman) \
- $(use_with heartbeat) \
- $(use_with smtp esmtp) \
- $(use_with snmp) \
- $(use_enable static-libs static) \
- ${myopts}
-}
-
-src_install() {
- base_src_install
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
- if has_version "<sys-cluster/corosync-2.0"; then
- insinto /etc/corosync/service.d
- newins "${FILESDIR}/${PN}.service" ${PN} || die
- fi
-}