diff options
author | Thomas Oettli <spacefreak@noop.ch> | 2018-02-07 11:07:26 +0100 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2018-04-20 21:22:44 -0500 |
commit | ba9cc71a1a5b0f48768f01f190c73fd14f47baf4 (patch) | |
tree | 953a8d474bcbd3d03098e0026cd2a256ad811524 /sys-cluster/heartbeat/heartbeat-3.0.6-r1.ebuild | |
parent | dev-php/PEAR-Mail: Stable 1.4.1-r1; drop old (diff) | |
download | gentoo-ba9cc71a1a5b0f48768f01f190c73fd14f47baf4.tar.gz gentoo-ba9cc71a1a5b0f48768f01f190c73fd14f47baf4.tar.bz2 gentoo-ba9cc71a1a5b0f48768f01f190c73fd14f47baf4.zip |
sys-cluster/heartbeat: Critical bugfixes #648336
Heartbeat restarts itself after returning from partition (split-brain).
Due to a bug in 3.0.6-configure.patch, the daemon died instead.
The init-script was totally broken, some rework was needed.
Closes: https://bugs.gentoo.org/648336
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'sys-cluster/heartbeat/heartbeat-3.0.6-r1.ebuild')
-rw-r--r-- | sys-cluster/heartbeat/heartbeat-3.0.6-r1.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/sys-cluster/heartbeat/heartbeat-3.0.6-r1.ebuild b/sys-cluster/heartbeat/heartbeat-3.0.6-r1.ebuild new file mode 100644 index 000000000000..f4ea34d9baf5 --- /dev/null +++ b/sys-cluster/heartbeat/heartbeat-3.0.6-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools python-single-r1 + +DESCRIPTION="Heartbeat high availability cluster manager" +HOMEPAGE="http://www.linux-ha.org/wiki/Heartbeat" +SRC_URI="http://hg.linux-ha.org/${PN}-STABLE_3_0/archive/STABLE-${PV}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="doc snmp static-libs" + +RDEPEND="sys-cluster/cluster-glue + dev-libs/glib:2 + virtual/ssh + net-libs/gnutls + snmp? ( net-analyzer/net-snmp ) + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-lang/swig + doc? ( dev-libs/libxslt app-text/docbook-xsl-stylesheets )" + +PDEPEND="sys-cluster/resource-agents" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +S=${WORKDIR}/Heartbeat-3-0-STABLE-${PV} + +PATCHES=( + "${FILESDIR}/3.0.6-r1-configure.patch" + "${FILESDIR}/3.0.6-docs.patch" + "${FILESDIR}/3.0.4-python_tests.patch" +) + +pkg_setup() { + python-single-r1_pkg_setup + + ewarn "If you're upgrading from heartbeat-2.x please follow:" + ewarn "https://www.gentoo.org/proj/en/cluster/ha-cluster/heartbeat-upgrade.xml" +} + +src_prepare() { + default + eautoreconf + + cp "${FILESDIR}"/3.0.6-r1-heartbeat-init "${WORKDIR}"/heartbeat-init || die + sed -i \ + -e "s:HA_LIB_DIR=/usr/lib/:HA_LIB_DIR=/usr/$(get_libdir)/:g" \ + "${WORKDIR}"/heartbeat-init || die +} + +src_configure() { + econf \ + --disable-fatal-warnings \ + $(use_enable static-libs static) \ + $(use_enable doc) \ + --disable-tipc \ + --enable-dopd \ + $(use_enable snmp) +} + +src_install() { + default + + newinitd "${WORKDIR}/heartbeat-init" heartbeat + + # fix collisions + rm -rf "${D}"/usr/include/heartbeat/{compress,ha_msg}.h || die + + if ! use static-libs; then + find "${D}" -name "*.la" -delete || die + fi + + if use doc ; then + dodoc README doc/*.txt doc/AUTHORS || die + fi +} |