You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.8 KiB
87 lines
1.8 KiB
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
8 years ago
|
EAPI="6"
|
||
12 years ago
|
|
||
8 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
|
inherit autotools python-single-r1
|
||
12 years ago
|
|
||
|
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"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
9 years ago
|
KEYWORDS="amd64 hppa x86"
|
||
12 years ago
|
IUSE="doc snmp static-libs"
|
||
|
|
||
|
RDEPEND="sys-cluster/cluster-glue
|
||
|
dev-libs/glib:2
|
||
|
virtual/ssh
|
||
|
net-libs/gnutls
|
||
|
snmp? ( net-analyzer/net-snmp )
|
||
8 years ago
|
${PYTHON_DEPS}
|
||
12 years ago
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig
|
||
|
dev-lang/swig
|
||
|
doc? ( dev-libs/libxslt app-text/docbook-xsl-stylesheets )"
|
||
|
|
||
|
PDEPEND="sys-cluster/resource-agents"
|
||
|
|
||
8 years ago
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||
|
|
||
12 years ago
|
S=${WORKDIR}/Heartbeat-3-0-STABLE-${PV}
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}/3.0.4-fix_configure.patch"
|
||
|
"${FILESDIR}/3.0.4-docs.patch"
|
||
|
"${FILESDIR}/3.0.4-python_tests.patch"
|
||
10 years ago
|
"${FILESDIR}/3.0.5-fix_ucast.patch"
|
||
12 years ago
|
)
|
||
|
|
||
|
pkg_setup() {
|
||
8 years ago
|
python-single-r1_pkg_setup
|
||
12 years ago
|
|
||
|
ewarn "If you're upgrading from heartbeat-2.x please follow:"
|
||
9 years ago
|
ewarn "https://www.gentoo.org/proj/en/cluster/ha-cluster/heartbeat-upgrade.xml"
|
||
12 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
8 years ago
|
default
|
||
12 years ago
|
eautoreconf
|
||
|
|
||
8 years ago
|
cp "${FILESDIR}"/heartbeat-init "${WORKDIR}" || die
|
||
12 years ago
|
sed -i \
|
||
|
-e "/ResourceManager/ s/lib/share/" \
|
||
|
-e "s:lib:$(get_libdir):g" \
|
||
8 years ago
|
"${WORKDIR}"/heartbeat-init || die
|
||
12 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--disable-fatal-warnings \
|
||
|
$(use_enable static-libs static) \
|
||
|
$(use_enable doc) \
|
||
|
--disable-tipc \
|
||
|
--enable-dopd \
|
||
|
$(use_enable snmp)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
default
|
||
12 years ago
|
|
||
8 years ago
|
newinitd "${WORKDIR}/heartbeat-init" heartbeat
|
||
12 years ago
|
|
||
|
# fix collisions
|
||
8 years ago
|
rm -rf "${D}"/usr/include/heartbeat/{compress,ha_msg}.h || die
|
||
12 years ago
|
|
||
8 years ago
|
if ! use static-libs; then
|
||
|
find "${D}" -name "*.la" -delete || die
|
||
|
fi
|
||
12 years ago
|
|
||
|
if use doc ; then
|
||
8 years ago
|
dodoc README doc/*.txt doc/AUTHORS || die
|
||
12 years ago
|
fi
|
||
|
}
|