aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cluster-glue/APKBUILD
blob: b7cb3ee3469744bfbee18cdf0658bc59830a1602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=cluster-glue
pkgver=1.0.11
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 libaio-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
pkggroups="haclient"
pkgusers="hacluster"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://hg.linux-ha.org/glue/archive/glue-$pkgver.tar.bz2
	$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
	./autogen.sh
}

build() {
	cd "$_builddir"
	./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="7d0acd99d43edac849dc76f43cfa4c7f  glue-1.0.11.tar.bz2
d63b0532d08e602d714e8cabaa628158  cluster-glue.post-install
fb252beedb92eab87b07c3547f18a4c3  cluster-glue.pre-install"
sha256sums="dbee64df379e565a0983c08d0d5510b04f8abf4bb496368734c02926735bd91c  glue-1.0.11.tar.bz2
bcd5001b742722b8a36158ba903ee104b86b5c37824c423c39918eccace04223  cluster-glue.post-install
1af6f90391392887d534089481090add5a19c7de50bcce04f6759eda9ef70840  cluster-glue.pre-install"
sha512sums="35ac8ac555c39f24c11e3a768cc50eba051fe617edf4cdc0429dac73f45a472f144cfe6ec5faff575606f2b04ff76a2f732556d848b61410c2683d93ba928413  glue-1.0.11.tar.bz2
9d75933e002f938b5ac76170db5f1fd80e89172482186a44fe905d1e27c313d79bcff18e3564023ba94f2eeff3cc25811ea30b3ad06fa345a854b4e4da492bee  cluster-glue.post-install
d4723e6a8a492d52784f42dff3297464f9217c1d8c6b1237cc4a0f902eb01818e27da9644c546d282483b5b21561426b013ca31924e32dbccc5029a84496e8f1  cluster-glue.pre-install"