summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2010-06-20 21:29:19 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2010-06-20 21:29:19 +0000
commit93de00abcbd1c7afce98ed69cd7146c8baaca000 (patch)
treeb807fb5ef79e0365be69605004892755f52aede8 /sys-cluster/cluster-glue
parentInitial commit wrt #172739 by Anatoly. (diff)
downloadhistorical-93de00abcbd1c7afce98ed69cd7146c8baaca000.tar.gz
historical-93de00abcbd1c7afce98ed69cd7146c8baaca000.tar.bz2
historical-93de00abcbd1c7afce98ed69cd7146c8baaca000.zip
Initial import. Ebuild written by Tomáš Chvátal <scarabeus@gentoo.org>
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster/cluster-glue')
-rw-r--r--sys-cluster/cluster-glue/ChangeLog12
-rw-r--r--sys-cluster/cluster-glue/Manifest19
-rw-r--r--sys-cluster/cluster-glue/cluster-glue-1.0.5.ebuild88
-rw-r--r--sys-cluster/cluster-glue/files/1.0.5-docs.patch40
-rw-r--r--sys-cluster/cluster-glue/files/1.0.5-respect_cflags.patch11
-rw-r--r--sys-cluster/cluster-glue/files/heartbeat-logd.init47
-rw-r--r--sys-cluster/cluster-glue/metadata.xml6
7 files changed, 223 insertions, 0 deletions
diff --git a/sys-cluster/cluster-glue/ChangeLog b/sys-cluster/cluster-glue/ChangeLog
new file mode 100644
index 000000000000..ae4ce10615bc
--- /dev/null
+++ b/sys-cluster/cluster-glue/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sys-cluster/cluster-glue
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cluster-glue/ChangeLog,v 1.1 2010/06/20 21:29:19 xarthisius Exp $
+
+*cluster-glue-1.0.5 (20 Jun 2010)
+
+ 20 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org>
+ +files/1.0.5-docs.patch, +cluster-glue-1.0.5.ebuild,
+ +files/1.0.5-respect_cflags.patch, +files/heartbeat-logd.init,
+ +metadata.xml:
+ Initial import. Ebuild written by Tomáš Chvátal <scarabeus@gentoo.org>
+
diff --git a/sys-cluster/cluster-glue/Manifest b/sys-cluster/cluster-glue/Manifest
new file mode 100644
index 000000000000..9802a357d557
--- /dev/null
+++ b/sys-cluster/cluster-glue/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 1.0.5-docs.patch 1329 RMD160 e3617a9ce4b9ca562328d81b4563bb2ab82324c4 SHA1 08c689eebdee966512721328277ea7f828a6702e SHA256 27d854f18b0830b9f2ac0161a244a06edc04da0fa4661d81dc171e07e3efa24b
+AUX 1.0.5-respect_cflags.patch 287 RMD160 b61f719213f4d11fd43d9b6444201d26048de468 SHA1 e0a41227a9f463d5f431d64c240746a3587dcdd7 SHA256 be7f2c9cbfc8201118abbdb2aeb1cf6d9aca2c586ae7a6d55963ee3143d9f71e
+AUX heartbeat-logd.init 950 RMD160 5dc08b3ddc801c0c8cd681ec370ecc4dbc2d107a SHA1 40379cb84e0c2e0b752208b8d7964bbefb2cf5ee SHA256 c074b3875a1cfb03cfa48a6229e4cc3058d92a21d64b84c3b68c983e64e63921
+DIST glue-1.0.5.tar.bz2 431365 RMD160 3f62d6014b3717379cd5fe8f67da91d5e1d42ac3 SHA1 44606b59a4d9ca38a1765f0589efd6e794226a86 SHA256 c437a04494850b79c094f7e84d396e917ec09d9a2fdfb7c11f3b420741ea91a2
+EBUILD cluster-glue-1.0.5.ebuild 2100 RMD160 d0f8aadbec42b1cb84237ae476c8c0dd03e7b2b5 SHA1 c800f4ae118a5a58fea28d965b891a8b634e073a SHA256 da7f7f396524fab555aea21219744d3b12a1d6b25e139d607bad1afcc236d61e
+MISC ChangeLog 528 RMD160 a86a2aba32405806dbf25704f911b8d43a5e98f5 SHA1 85d779aa2540d055ea0923fe25d3dffa7bf3cf5d SHA256 4a0a65cc83d865b0f6b185fe84c602fdc19bbc5ec8ca4740dbc32c54019024b2
+MISC metadata.xml 308 RMD160 095932b8c707069c5069c288a5b9bcf146c8c863 SHA1 360fe0295835f8e00e4cdf035105e50d8b359a8a SHA256 c41cec193d39d568f83fad441120f0c7689a22a32752a833d3b2b81616fe5463
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.15 (GNU/Linux)
+
+iJwEAQECAAYFAkweiDsACgkQIiMqcbOVdxQ73QQAn2iAEhEHyN/MT/fGpDvjMhjj
+GanGHV77UgNtAqpoqtzqbh20A1n2m15zTM/ff6Y0wxkjuONUWdJRuqxm7DJoR+Ci
+76+Tuja4cVi3AicZX40ycEemexUowB6HwgBBS4df/hHvG7cqZzblMjuZQYpz4ZQg
+Cu0z8OxcuKR/QrZDb8k=
+=fSOG
+-----END PGP SIGNATURE-----
diff --git a/sys-cluster/cluster-glue/cluster-glue-1.0.5.ebuild b/sys-cluster/cluster-glue/cluster-glue-1.0.5.ebuild
new file mode 100644
index 000000000000..cc0c44d08564
--- /dev/null
+++ b/sys-cluster/cluster-glue/cluster-glue-1.0.5.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2010 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.5.ebuild,v 1.1 2010/06/20 21:29:18 xarthisius Exp $
+
+EAPI="2"
+
+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 ~x86"
+IUSE="doc"
+
+RDEPEND="app-arch/bzip2
+ net-libs/libnet:1.1
+ net-misc/curl
+ net-misc/iputils
+ || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
+ dev-libs/libxml2"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-libs/libxslt
+ app-text/docbook-xsl-stylesheets
+ )"
+
+S="${WORKDIR}/Reusable-Cluster-Components-${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/${PV}-docs.patch"
+ "${FILESDIR}/${PV}-respect_cflags.patch"
+)
+
+src_prepare() {
+ base_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ local myopts
+
+ use doc && myopts=" --enable-doc"
+ econf \
+ --disable-static \
+ --disable-fatal-warnings \
+ --disable-dependency-tracking \
+ --docdir=/usr/share/doc/${PF} \
+ --enable-libnet \
+ --localstatedir=/var \
+ --sysconfdir=/var \
+ ${myopts} \
+ --with-group-id=65 --with-ccmuser-id=65 \
+ --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_preinst() {
+ # check for cluster group, if it doesn't exist make it
+ groupadd -g 65 haclient
+ # check for cluster user, if it doesn't exist make it
+ useradd -u 65 -g haclient -s /dev/null -d /var/lib/heartbeat hacluster
+}
+
+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/files/1.0.5-docs.patch b/sys-cluster/cluster-glue/files/1.0.5-docs.patch
new file mode 100644
index 000000000000..424c529623f0
--- /dev/null
+++ b/sys-cluster/cluster-glue/files/1.0.5-docs.patch
@@ -0,0 +1,40 @@
+--- doc/Makefile.am
++++ doc/Makefile.am
+@@ -29,11 +29,10 @@
+
+ if BUILD_DOC
+ man_MANS += hb_report.8 ha_logd.8 ha_logger.1 stonith.8 meatclient.8
+-endif
+
+ EXTRA_DIST = $(man_MANS)
+
+-STYLESHEET_PREFIX ?= http://docbook.sourceforge.net/release/xsl/current
++STYLESHEET_PREFIX ?= /usr/share/sgml/docbook/xsl-stylesheets/
+ MANPAGES_STYLESHEET ?= $(STYLESHEET_PREFIX)/manpages/docbook.xsl
+ HTML_STYLESHEET ?= $(STYLESHEET_PREFIX)/xhtml/docbook.xsl
+ FO_STYLESHEET ?= $(STYLESHEET_PREFIX)/fo/docbook.xsl
+@@ -47,3 +46,4 @@
+ $(XSLTPROC) \
+ $(XSLTPROC_MANPAGES_OPTIONS) \
+ $(MANPAGES_STYLESHEET) $<
++endif
+--- configure.ac
++++ configure.ac
+@@ -492,11 +492,13 @@
+ AC_PATH_PROGS(PKGCONFIG, pkg-config)
+ AC_PATH_PROGS(XML2CONFIG, xml2-config)
+
+-AC_PATH_PROGS(XSLTPROC, xsltproc)
+-AM_CONDITIONAL(BUILD_DOC, test "x$XSLTPROC" != "x" )
+-if test "x$XSLTPROC" = "x"; then
+- AC_MSG_WARN([xsltproc not installed, unable to (re-)build manual pages])
++AC_ARG_ENABLE([doc],
++ [ --enable-doc build documentation, [default=no]],
++ [enable_doc=$withval], [enable_doc=no])
++if test "x$enable_doc" != "xno"; then
++ AC_PATH_PROGS(XSLTPROC, xsltproc)
+ fi
++AM_CONDITIONAL(BUILD_DOC, test "x$enable_doc" != "xno" )
+
+ AC_PATH_PROGS(VALGRIND_BIN, valgrind, /usr/bin/valgrind)
+ AC_DEFINE_UNQUOTED(VALGRIND_BIN, "$VALGRIND_BIN", Valgrind command)
diff --git a/sys-cluster/cluster-glue/files/1.0.5-respect_cflags.patch b/sys-cluster/cluster-glue/files/1.0.5-respect_cflags.patch
new file mode 100644
index 000000000000..f89432fc7eed
--- /dev/null
+++ b/sys-cluster/cluster-glue/files/1.0.5-respect_cflags.patch
@@ -0,0 +1,11 @@
+--- configure.ac
++++ configure.ac
+@@ -1149,8 +1149,6 @@
+ CFLAGS="$CFLAGS -g"
+ enable_fatal_warnings=no
+ else
+- CFLAGS="$CFLAGS -ggdb3 -O0"
+-
+ # We had to eliminate -Wnested-externs because of libtool changes
+ EXTRA_FLAGS="-fgnu89-inline
+ -fstack-protector-all
diff --git a/sys-cluster/cluster-glue/files/heartbeat-logd.init b/sys-cluster/cluster-glue/files/heartbeat-logd.init
new file mode 100644
index 000000000000..f6cb4f5cfb0b
--- /dev/null
+++ b/sys-cluster/cluster-glue/files/heartbeat-logd.init
@@ -0,0 +1,47 @@
+#!/sbin/runscript
+
+PIDFILE=/var/run/heartbeat-logd.pid
+
+depend() {
+ need net
+}
+
+BINARY="/usr/%libdir%/heartbeat/ha_logd"
+USER="cluster"
+GROUP="cluster"
+CONFIG="/etc/logd.cf"
+LOGFILE="/var/log/ha_logger.log"
+
+start() {
+ ebegin "Starting heartbeat non-blocking log service"
+
+ COMMAND_ARGS="-d"
+ [[ -f "${CONFIG}" ]] && COMMAND_ARGS+=" -c ${CONFIG}"
+
+ if [ -n "${RC_UNAME}" ]; then
+ PARAMS="--background --stdout '${LOGFILE}' --stderr '${LOGFILE}' -- ${ARGS}"
+ else
+ PARAMS="-- ${ARGS} >> '${LOGFILE}' 2>&1 &"
+ fi
+ eval ${CHRT} start-stop-daemon \
+ --quiet --start --chdir "${RUNTIMEDIR}" \
+ --pidfile "${PIDFILE}" \
+ --make-pidfile \
+ --exec ${BINARY} ${COMMAND_ARGS} --chuid "${USER}:${GROUP}" \
+ --nicelevel "${NICELEVEL}" \
+ ${PARAMS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping heartbeat non-blocking log service"
+ start-stop-daemon --stop --retry 3 --quiet --exec "${BINARY}"
+ rm -f "${PIDFILE}"
+ eend $?
+}
+
+restart() {
+ stop
+ sleep 3
+ start
+}
diff --git a/sys-cluster/cluster-glue/metadata.xml b/sys-cluster/cluster-glue/metadata.xml
new file mode 100644
index 000000000000..204982f9a91c
--- /dev/null
+++ b/sys-cluster/cluster-glue/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ha-cluster</herd>
+ <longdescription>Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.</longdescription>
+</pkgmetadata>