summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-11-03 15:03:27 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-11-03 15:03:27 +0000
commit2ce50ba64d103c75e6fbc566fbd03805b4c32cea (patch)
tree16299e6cbc1dbda0e632114ab21b97ca4fdb5e6a /testing
parentefd20b4ba26de55485f2e8c15b1d61ce8501ecc2 (diff)
downloadaports-2ce50ba64d103c75e6fbc566fbd03805b4c32cea.tar.bz2
aports-2ce50ba64d103c75e6fbc566fbd03805b4c32cea.tar.xz
testing/resouce-agents: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/resouce-agents/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/resouce-agents/APKBUILD b/testing/resouce-agents/APKBUILD
new file mode 100644
index 000000000..c736b6467
--- /dev/null
+++ b/testing/resouce-agents/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=resouce-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"