aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pacemaker/APKBUILD
blob: 026cc69e2765e99f14bf2cefcf90fdaa03f212dd (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=pacemaker
pkgver=1.1.6.1
pkgrel=0
pkgdesc="Scalable High-Availability cluster resource manager"
url="http://www.clusterlabs.org"
arch="all"
license="GPL2"
depends=""
depends_dev="glib-dev libxml2-dev libxslt-dev bzip2-dev gnutls-dev
	cluster-glue-dev resource-agents-dev corosync-dev"
makedepends="$depends_dev automake autoconf libtool libltdl wget docbook-xsl"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="saveas-https://nodeload.github.com/ClusterLabs/pacemaker/tarball/Pacemaker-1.1.6.1/pacemaker-1.1.6.1.tar.gz
	$pkgname.initd"

_builddir="$srcdir"/ClusterLabs-pacemaker-0c7312c
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 \
		--enable-fatal-warnings=no \
		--with-corosync
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib*/*.la
	rm -f "$pkgdir"/usr/lib*/heartbeat/plugins/RAExec/*.la
        install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || return 1

}

libs() {
	pkgdesc="$pkgname libraries"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/lib*.so.* \
		"$subpkgdir"/usr/lib/
}

md5sums="6a4132bbba017581b36b87c35246bb92  pacemaker-1.1.6.1.tar.gz
aca8b793c4a977294121615ed3ce6398  pacemaker.initd"