aboutsummaryrefslogtreecommitdiffstats
path: root/testing/resource-agents
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-11-03 15:16:44 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-11-03 15:16:44 +0000
commit5dec50abbdfe2c9bc7e96c0601ee5896227da11f (patch)
tree8f3207e890a8738566f0c660191f111eeb27fb6a /testing/resource-agents
parent7168cb168a5768f9a49d824e0542895b97220791 (diff)
downloadaports-5dec50abbdfe2c9bc7e96c0601ee5896227da11f.tar.bz2
aports-5dec50abbdfe2c9bc7e96c0601ee5896227da11f.tar.xz
testing/resource-agents: fix aport name
Diffstat (limited to 'testing/resource-agents')
-rw-r--r--testing/resource-agents/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/resource-agents/APKBUILD b/testing/resource-agents/APKBUILD
new file mode 100644
index 0000000000..ed75607dec
--- /dev/null
+++ b/testing/resource-agents/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=resource-agents
+pkgver=3.9.2
+pkgrel=0
+pkgdesc="Open Source HA Reusable Cluster Resource Scripts"
+url="http://www.linux-ha.org/wiki/Resource_Agents"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev="cluster-glue-dev libxslt-dev libnet-dev"
+makedepends="$depends_dev automake autoconf perl docbook-xsl wget bash"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="saveas-https://github.com/ClusterLabs/resource-agents/tarball/v3.9.2/resouce-agents-3.9.2.tar.gz"
+
+_builddir="$srcdir"/ClusterLabs-resource-agents-b735277
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ sed -i 's/export -n/export/g' configure.ac
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-fatal-warnings=no \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="3b5790e8041f2a459d8a0ff310682bfe resouce-agents-3.9.2.tar.gz"