aboutsummaryrefslogtreecommitdiffstats
path: root/community/drbdmanage/APKBUILD
blob: 63f29ac38354bc070efd871166ea38c8771e7bce (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
# Contributor: Roland Kammerer <roland.kammerer@linbit.com>
# Maintainer: Roland Kammerer <roland.kammerer@linbit.com>
_usname=drbdmanage
pkgname=$_usname
pkgver=0.99.10
pkgrel=0
pkgdesc="DRBD9 Cluster Management Tool"
url="http://www.drbd.org"
arch="noarch"
license="GPL"
depends="python2 py-gobject dbus py-dbus lvm2 drbd-utils>=9.0.0"
depends_dev=""
makedepends="python2-dev libxslt docbook-xsl help2man"
install=""
subpackages="$pkgname-doc"
source="https://links.linbit.com/sources/$_usname/$_usname-$pkgver.tar.gz
        rm-systemd-and-bash.patch"

_builddir=$srcdir/$_usname-$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
}

build() {
	cd "$_builddir"
	python2 setup.py build_man || return 1
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="4e765a87f4354e692d42a4ac7997455e302e8cd82cdcd9884c56d937f8e0fbaf4c1774e728e4782a4cf694ec4c1063e26675a9f92648d3b69bd65dcfede3ada0  drbdmanage-0.99.10.tar.gz
ad3c18c6fc56df0ca594afb56accb8832509489234736098c6a40b4ed2f81be16efe2c552ae6e19375d44881cf24e534d2d8cc04e14f0d98817fd8d4c614ed99  rm-systemd-and-bash.patch"