aboutsummaryrefslogtreecommitdiffstats
path: root/community/drbdmanage/APKBUILD
blob: 01a2c4009d8a30a22481548d0f6724a7182c24f3 (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.5
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>=8.9.9"
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="d06dd0a04ab4d68531219ced75a4495cde573d18d9190caa60c40d9362eab88c43477077e37659d20b87d5c2d7d9ebe9e423213687530b24c9d06e64f46207ce  drbdmanage-0.99.5.tar.gz
ad3c18c6fc56df0ca594afb56accb8832509489234736098c6a40b4ed2f81be16efe2c552ae6e19375d44881cf24e534d2d8cc04e14f0d98817fd8d4c614ed99  rm-systemd-and-bash.patch"