summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Kowalik <xarthisius@gentoo.org>2010-06-21 07:37:29 +0000
committerKacper Kowalik <xarthisius@gentoo.org>2010-06-21 07:37:29 +0000
commit2c30f31a05a9fa600a5c36ad16da27496b854c2b (patch)
tree4a3b78495b91ca201b5e0f3ca9e8a71cbb45572b /sys-cluster/resource-agents
parentVersion bump for dev channel release. (diff)
downloadgentoo-2-2c30f31a05a9fa600a5c36ad16da27496b854c2b.tar.gz
gentoo-2-2c30f31a05a9fa600a5c36ad16da27496b854c2b.tar.bz2
gentoo-2-2c30f31a05a9fa600a5c36ad16da27496b854c2b.zip
Initial import. Ebuild written by Tomáš Chvátal <scarabeus@gentoo.org>
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/resource-agents')
-rw-r--r--sys-cluster/resource-agents/ChangeLog11
-rw-r--r--sys-cluster/resource-agents/files/1.0.3-docs.patch31
-rw-r--r--sys-cluster/resource-agents/files/1.0.3-respect_cflags.patch11
-rw-r--r--sys-cluster/resource-agents/metadata.xml12
-rw-r--r--sys-cluster/resource-agents/resource-agents-1.0.3.ebuild51
5 files changed, 116 insertions, 0 deletions
diff --git a/sys-cluster/resource-agents/ChangeLog b/sys-cluster/resource-agents/ChangeLog
new file mode 100644
index 000000000000..9999302d7b66
--- /dev/null
+++ b/sys-cluster/resource-agents/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-cluster/resource-agents
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/resource-agents/ChangeLog,v 1.1 2010/06/21 07:37:28 xarthisius Exp $
+
+*resource-agents-1.0.3 (21 Jun 2010)
+
+ 21 Jun 2010; Kacper Kowalik <xarthisius@gentoo.org>
+ +files/1.0.3-docs.patch, +files/1.0.3-respect_cflags.patch,
+ +resource-agents-1.0.3.ebuild, +metadata.xml:
+ Initial import. Ebuild written by Tomáš Chvátal <scarabeus@gentoo.org>
+
diff --git a/sys-cluster/resource-agents/files/1.0.3-docs.patch b/sys-cluster/resource-agents/files/1.0.3-docs.patch
new file mode 100644
index 000000000000..c4069392cea2
--- /dev/null
+++ b/sys-cluster/resource-agents/files/1.0.3-docs.patch
@@ -0,0 +1,31 @@
+--- configure.in
++++ configure.in
+@@ -481,10 +481,12 @@
+ AC_DEFINE_UNQUOTED(POWEROFF_CMD, "$POWEROFF_CMD", path to the poweroff command)
+ AC_DEFINE_UNQUOTED(POWEROFF_OPTIONS, "$POWEROFF_OPTIONS", poweroff options)
+
+-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])
+-fi
++AC_ARG_ENABLE([doc],
++ AS_HELP_STRING([--enable-doc],[Build documentation]))
++
++AS_IF([test "x$enable_doc" = "xyes"], [
++ AC_PATH_PROGS(XSLTPROC, xsltproc)
++])
++AM_CONDITIONAL([BUILD_DOC], [test "x$enable_doc" = "xyes"] )
+ AC_SUBST(XSLTPROC)
+
+--- doc/Makefile.am
++++ doc/Makefile.am 2010-06-20 22:04:12.649433890 +0000
+@@ -18,7 +18,7 @@
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ #
+
+-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
diff --git a/sys-cluster/resource-agents/files/1.0.3-respect_cflags.patch b/sys-cluster/resource-agents/files/1.0.3-respect_cflags.patch
new file mode 100644
index 000000000000..e22603a9fa8b
--- /dev/null
+++ b/sys-cluster/resource-agents/files/1.0.3-respect_cflags.patch
@@ -0,0 +1,11 @@
+--- configure.in
++++ configure.in
+@@ -646,8 +646,6 @@
+ CFLAGS="$CFLAGS -g"
+ enable_fatal_warnings=no
+ else
+- CFLAGS="$CFLAGS -ggdb3 -O0"
+-
+ # We had to eliminate -Wnested-externs because of libtool changes
+ # Also remove -Waggregate-return because we use one libnet
+ # call which returns a struct
diff --git a/sys-cluster/resource-agents/metadata.xml b/sys-cluster/resource-agents/metadata.xml
new file mode 100644
index 000000000000..71302fc3b717
--- /dev/null
+++ b/sys-cluster/resource-agents/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ha-cluster</herd>
+ <longdescription>
+ Resource agents are a standardized interfaces for a cluster resource.
+ They translate a standard set of operations into steps specific to
+ the resource or application, and interpret their results as success or
+ failure. Previously, they were a part of the then-monolithic Heartbeat
+ project, and had no collective name.
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-cluster/resource-agents/resource-agents-1.0.3.ebuild b/sys-cluster/resource-agents/resource-agents-1.0.3.ebuild
new file mode 100644
index 000000000000..9719ccd6ccd4
--- /dev/null
+++ b/sys-cluster/resource-agents/resource-agents-1.0.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/resource-agents/resource-agents-1.0.3.ebuild,v 1.1 2010/06/21 07:37:28 xarthisius Exp $
+
+EAPI="2"
+
+MY_P="${P/resource-}"
+inherit autotools multilib eutils base
+
+DESCRIPTION="Resources pack for Heartbeat / Pacemaker"
+HOMEPAGE="http://www.linux-ha.org/wiki/Resource_Agents"
+SRC_URI="http://hg.linux-ha.org/agents/archive/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="sys-apps/iproute2
+ sys-cluster/cluster-glue"
+RDEPEND="${DEPEND}
+ app-emulation/libvirt"
+
+S="${WORKDIR}/Cluster-Resource-Agents-${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}/1.0.3-docs.patch"
+ "${FILESDIR}/1.0.3-respect_cflags.patch"
+)
+
+src_prepare() {
+ base_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --disable-fatal-warnings \
+ --localstatedir=/var \
+ --docdir=/usr/share/doc/${PF} \
+ --libdir=/usr/$(get_libdir) \
+ --with-ocf-root=/usr/$(get_libdir)/ocf \
+ $(use_enable doc) \
+ --enable-libnet
+}
+
+src_install() {
+ base_src_install
+ rm -rf "${D}"/etc/init.d/ldirectord || die
+}