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
commitcddc1cdf44a659e869f577dddd085ad696fac22c (patch)
treefaa305d4f60142d6a41ccbe6933cf58a1edb663d /sys-cluster/resource-agents
parentVersion bump for dev channel release. (diff)
downloadhistorical-cddc1cdf44a659e869f577dddd085ad696fac22c.tar.gz
historical-cddc1cdf44a659e869f577dddd085ad696fac22c.tar.bz2
historical-cddc1cdf44a659e869f577dddd085ad696fac22c.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/resource-agents')
-rw-r--r--sys-cluster/resource-agents/ChangeLog11
-rw-r--r--sys-cluster/resource-agents/Manifest18
-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
6 files changed, 134 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/Manifest b/sys-cluster/resource-agents/Manifest
new file mode 100644
index 000000000000..5be7a1e22d8a
--- /dev/null
+++ b/sys-cluster/resource-agents/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 1.0.3-docs.patch 1164 RMD160 b557476f4d8867ddb7bdf7aae786c7b8a414a6a7 SHA1 91cb5a505c069bfc42dfef966240286a7a66c761 SHA256 92f061cf7926e6d93ed993d94df1e360be3a4f88e54cdf0134d14d0d054b6350
+AUX 1.0.3-respect_cflags.patch 316 RMD160 18c50ad77c7192840a14aaa3a6487cca8d5f2028 SHA1 1d6f2a42c83f9439934811f0a0a4d3c168c411a9 SHA256 62cee339be61f5d1fd0cf0e335687633e19e38f84feb4ae2de52547269f9fce2
+DIST agents-1.0.3.tar.bz2 247634 RMD160 f3596d15f50567abd336161fe31415e8017b48ec SHA1 30b6f21f4023736b64ed42c44eb20eca7eb805b7 SHA256 09b58332e34cf128c8d53d5bb4b3f61e402c2e0c0c809f5abae53ca144ad101e
+EBUILD resource-agents-1.0.3.ebuild 1180 RMD160 385a1d467820642fa95ec524d754717589c40245 SHA1 453a6f218e16cf566cd2de835ec13c54e8979b68 SHA256 ecaff8b296358fdca0c4fea127c67c57ef7a3a6c7f3abe55b02e7e1dac72c620
+MISC ChangeLog 510 RMD160 6a4c61143f4477257786790fdbe122fc3df067cc SHA1 68ebe958373c9c4c46b64d6e3f372bf34494f816 SHA256 e07505b204935c1c3d2b374740aa35d75de77fc924cf3506cf967b78f512b36f
+MISC metadata.xml 532 RMD160 96bd22e502ba9b36b650b23b500af6454c7857d6 SHA1 26ee819197a42f782e16c470630920f7f1fa57a3 SHA256 6f387855284f9180c8eaa942491103f40f8909c2a90246b153ab50ec0a2c43a8
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.15 (GNU/Linux)
+
+iJwEAQECAAYFAkwfFsUACgkQIiMqcbOVdxSIVAP/Rv5WVtm8MmnHufnLgcOnQ0JW
+9LRz2O1cOch7ss8AuJzw1mUlFGhJ8uT+ZFG8cK1g5PPnO9DdvWIRQvwG6Xaltwm/
+TycAm26PhS/hcaH5bIr74Jck1oSKFXU5o/gS0q73RIJyTae7MVFmuQkNYy+nGEX+
+CTSPet3ffE4QIt6zF2E=
+=X6+I
+-----END PGP SIGNATURE-----
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
+}