aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pacemaker/APKBUILD
blob: a1c2887f69583feadf0c8258487f345d694935e9 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=pacemaker
pkgver=1.1.12
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="$pkgname-$pkgver.tar.gz::https://github.com/ClusterLabs/pacemaker/archive/Pacemaker-$pkgver.tar.gz
	fix-headers.patch
	fix-SIGCHLD.patch
	$pkgname.initd"

_builddir="$srcdir"/pacemaker-Pacemaker-$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
	libtoolize --force && aclocal -I m4 && autoheader && autoconf \
		&& automake --add-missing || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--enable-fatal-warnings=no \
		--with-corosync
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
        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="c5c28013efb08441ab74a12034d9e9b4  pacemaker-1.1.12.tar.gz
fad579ccd7adf446c2037329961772ab  fix-headers.patch
6af4189cd1c2dbd23f5e9e13a330de86  fix-SIGCHLD.patch
aca8b793c4a977294121615ed3ce6398  pacemaker.initd"
sha256sums="f5c72b609fac18d362880d120f08f990e8afd9388e6ff86c55cd93900ba54d9c  pacemaker-1.1.12.tar.gz
48e2fb2432175eeceebfa77f00506d5175f2eaa88206d3efe92e0c8dc0a60b91  fix-headers.patch
d0118f3ce94dcc9fbccda9777a0ea864a01a08b7dfc400ea48e85795890a7603  fix-SIGCHLD.patch
0253da4a3a91d8c3aa7badd30062cbba32a0626b77f1a27db1d731d1bbe133af  pacemaker.initd"
sha512sums="cf88a313f5e91f445a159a5d800d27fd891f63c082c92d3f09bfd2aff856325e8ef6e0ebab8c0b2b9cd6eb15cc593c58c8e23e888e17d5286ebc651dd096f9c1  pacemaker-1.1.12.tar.gz
fbd60b0f7117b1dd645494db12bb5730cd8aeb7b3424affe7141bf7e6bd74ab5bab65ebe7ebf718788002c413bbe003bab7d0f8424f11265fdb0515b44d1a4e6  fix-headers.patch
289a8ee8d3def43d672f321643eb7c9ab7c1c46f0a05d9532d130ca06057949cc4528defa7d564751b49aeda7a008d438750fab0050e35388277e2c593b95903  fix-SIGCHLD.patch
ccd15fb4401863e51cf7639f3f143e35a969b11a53e0fcff49f70f33e78975051c7b879a299c082951e0b10db32eb9f53a52aaadfaab27cd27cc85be742e264a  pacemaker.initd"