aboutsummaryrefslogtreecommitdiffstats
path: root/testing/resource-agents/APKBUILD
blob: d2bf3cb7c3b4f6076a0f39d82875f9d3454daa48 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=resource-agents
pkgver=3.9.5
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="$pkgname-$pkgver.tar.gz::https://github.com/ClusterLabs/resource-agents/tarball/v$pkgver
	fix-bashism.patch
	"

_builddir="$srcdir"/ClusterLabs-resource-agents-ac806fd
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 || return 1
	aclocal && autoheader && autoconf && automake --add-missing \
		|| return 1
}

build() {
	cd "$_builddir"
	./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_sh=install install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="86ec112decf29906afb755016990f56f  resource-agents-3.9.5.tar.gz
b609cdaa30571a1e637a55b42abe5af8  fix-bashism.patch"
sha256sums="e893812a2f5e179d129badb001b2d25364e65a7dd9e97903e1f911bb6eb99d91  resource-agents-3.9.5.tar.gz
b5d19d9268121d25f0a96b1e63c04c4aa3cab958bffe0906ddbb2ef0d05164af  fix-bashism.patch"
sha512sums="d7d0926d64ca93f8735522d4e4a068ae680e77dbfc5a326042fc5b1d7775ec3bde712958a260c264d688e739793b87495c6cb6adf94a16e427edbe4c52393589  resource-agents-3.9.5.tar.gz
25949952f66f78af05179ac7c3ab5d2666600d0b26931c8579447b0c1a47463de5f39e31914df2a3971a7d60ebddcefcbe133f76411dac523fbc5a67ff2da3b9  fix-bashism.patch"