summaryrefslogtreecommitdiffstats
path: root/testing/cluster-glue/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/cluster-glue/APKBUILD')
-rw-r--r--testing/cluster-glue/APKBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/testing/cluster-glue/APKBUILD b/testing/cluster-glue/APKBUILD
new file mode 100644
index 000000000..68276bea1
--- /dev/null
+++ b/testing/cluster-glue/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=cluster-glue
+pkgver=1.0.8
+pkgrel=0
+pkgdesc="A set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack."
+url="http://linux-ha.org/wiki/Cluster_Glue"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="net-snmp-dev libxml2-dev glib-dev bzip2-dev curl-dev e2fsprogs-dev"
+makedepends="$depends_dev libtool autoconf automake libltdl libuuid"
+install=""
+pkggroups="haclient"
+pkgusers="hacluster"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="http://hg.linux-ha.org/glue/archive/glue-$pkgver.tar.bz2
+ 1.0.7-fix_configure.patch
+ ha_logd.initd
+ $pkgname.post-install
+ $pkgname.pre-install"
+
+_builddir="$srcdir"/Reusable-Cluster-Components-glue--glue-$pkgver
+
+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
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --localstatedir=/var \
+ --enable-fatal-warnings=no \
+ --with-daemon-group="$pkggroups" \
+ --with-daemon-user="$pkgusers"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install || return 1
+ find "$pkgdir"/usr/lib -name *.la -delete || return 1
+ rm -rf "$pkgdir"/etc/init.d
+ # initd file needs fixing
+ #install -m755 -D "$srcdir"/ha_logd.initd \
+ # "$pkgdir"/etc/init.d/ha_logd || return 1
+}
+
+libs() {
+ pkgdesc="A collection of libraries that are useful for writing cluster managers such as Pacemaker."
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/lib*.so.* \
+ "$subpkgdir"/usr/lib/ || return 1
+}
+
+md5sums="6cbeaed8b108cfac9ae693e8ab333283 glue-1.0.8.tar.bz2
+49cf61a00828bfc4590b308baabe429d 1.0.7-fix_configure.patch
+2702ce634ba869dbe59d70a23829a053 ha_logd.initd
+d63b0532d08e602d714e8cabaa628158 cluster-glue.post-install
+fb252beedb92eab87b07c3547f18a4c3 cluster-glue.pre-install"