aboutsummaryrefslogtreecommitdiffstats
path: root/testing/resouce-agents/APKBUILD
blob: c736b64671bf16c5efcb709d6e228e5779336cea (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
# 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"