summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2011-12-13 09:40:24 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2011-12-13 09:40:24 +0000
commit8a0427fea2926af942c85b3adf1a192a393db83f (patch)
tree459bd0bec480fdd5ae74ad1ed68e29adb1303044 /sys-cluster
parentAdd ~x86-fbsd (diff)
downloadgentoo-2-8a0427fea2926af942c85b3adf1a192a393db83f.tar.gz
gentoo-2-8a0427fea2926af942c85b3adf1a192a393db83f.tar.bz2
gentoo-2-8a0427fea2926af942c85b3adf1a192a393db83f.zip
version bump, new USE flag for large clusters
(Portage version: 2.1.10.34/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/cluster-glue/ChangeLog9
-rw-r--r--sys-cluster/cluster-glue/cluster-glue-1.0.9.ebuild94
-rw-r--r--sys-cluster/cluster-glue/metadata.xml1
3 files changed, 103 insertions, 1 deletions
diff --git a/sys-cluster/cluster-glue/ChangeLog b/sys-cluster/cluster-glue/ChangeLog
index bd1d9ba0f9b6..7f68385e208e 100644
--- a/sys-cluster/cluster-glue/ChangeLog
+++ b/sys-cluster/cluster-glue/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-cluster/cluster-glue
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cluster-glue/ChangeLog,v 1.16 2011/02/21 08:33:44 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cluster-glue/ChangeLog,v 1.17 2011/12/13 09:40:24 ultrabug Exp $
+
+*cluster-glue-1.0.9 (13 Dec 2011)
+
+ 13 Dec 2011; Ultrabug <ultrabug@gentoo.org> +cluster-glue-1.0.9.ebuild,
+ metadata.xml:
+ Version bump. Introduce the large-cluster USE flag to extend message length
+ limits for resource heavy clusters.
21 Feb 2011; Jeroen Roovers <jer@gentoo.org> cluster-glue-1.0.7-r2.ebuild:
Stable for HPPA (bug #354461).
diff --git a/sys-cluster/cluster-glue/cluster-glue-1.0.9.ebuild b/sys-cluster/cluster-glue/cluster-glue-1.0.9.ebuild
new file mode 100644
index 000000000000..25620ec92833
--- /dev/null
+++ b/sys-cluster/cluster-glue/cluster-glue-1.0.9.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cluster-glue/cluster-glue-1.0.9.ebuild,v 1.1 2011/12/13 09:40:24 ultrabug Exp $
+
+EAPI=4
+
+MY_P="${P/cluster-}"
+inherit autotools multilib eutils base
+
+DESCRIPTION="Library pack for Heartbeat / Pacemaker"
+HOMEPAGE="http://www.linux-ha.org/wiki/Cluster_Glue"
+SRC_URI="http://hg.linux-ha.org/glue/archive/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+IUSE="doc large-cluster libnet static-libs"
+
+RDEPEND="app-arch/bzip2
+ dev-libs/glib:2
+ libnet? ( <net-libs/libnet-1.1.5 )
+ net-misc/curl
+ net-misc/iputils
+ || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
+ dev-libs/libxml2
+ !<sys-cluster/heartbeat-3.0"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-libs/libxslt
+ app-text/docbook-xsl-stylesheets
+ )"
+
+S="${WORKDIR}/Reusable-Cluster-Components-glue--${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/1.0.5-docs.patch"
+ "${FILESDIR}/1.0.5-respect_cflags.patch"
+ "${FILESDIR}/1.0.7-fix_configure.patch"
+)
+
+pkg_setup() {
+ enewgroup haclient
+ enewuser hacluster -1 /dev/null /var/lib/heartbeat haclient
+}
+
+src_prepare() {
+ if use large-cluster
+ then
+ sed -i -e 's@256\*1024@1024\*1024@g' -e 's@2048\*1024@8192\*1024@g' "${S}"/include/clplumbing/ipc.h || die
+ fi
+ base_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ local myopts
+
+ use doc && myopts=" --enable-doc"
+ econf \
+ $(use_enable libnet) \
+ $(use_enable static-libs static) \
+ --disable-fatal-warnings \
+ --disable-dependency-tracking \
+ --docdir=/usr/share/doc/${PF} \
+ --localstatedir=/var \
+ --with-ocf-root=/usr/$(get_libdir)/ocf \
+ ${myopts} \
+ --with-group-id=$(id -g hacluster) \
+ --with-ccmuser-id=$(id -u hacluster) \
+ --with-daemon-user=hacluster --with-daemon-group=haclient
+}
+
+src_install() {
+ base_src_install
+
+ dodir /var/lib/heartbeat/cores
+ dodir /var/lib/heartbeat/lrm
+
+ keepdir /var/lib/heartbeat/cores
+ keepdir /var/lib/heartbeat/lrm
+
+ # init.d file
+ cp "${FILESDIR}"/heartbeat-logd.init "${T}/" || die
+ sed -i \
+ -e "s:%libdir%:$(get_libdir):" \
+ "${T}/heartbeat-logd.init" || die
+ newinitd "${T}/heartbeat-logd.init" heartbeat-logd || die
+ rm "${D}"/etc/init.d/logd
+}
+
+pkg_postinst() {
+ chown -R hacluster:haclient /var/lib/heartbeat/cores
+ chown -R hacluster:haclient /var/lib/heartbeat/lrm
+}
diff --git a/sys-cluster/cluster-glue/metadata.xml b/sys-cluster/cluster-glue/metadata.xml
index 92bbba9697e8..09a6c407e1c1 100644
--- a/sys-cluster/cluster-glue/metadata.xml
+++ b/sys-cluster/cluster-glue/metadata.xml
@@ -5,5 +5,6 @@
<longdescription>Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.</longdescription>
<use>
<flag name="libnet">Force use of <pkg>net-libs/libnet</pkg></flag>
+ <flag name="large-cluster">Extend messages length limits for resource heavy clusters</flag>
</use>
</pkgmetadata>