# Contributor: Roland Kammerer # Maintainer: Roland Kammerer _usname=drbdmanage pkgname=$_usname pkgver=0.91 pkgrel=0 pkgdesc="DRBD9 Cluster Management Tool" url="http://www.drbd.org" arch="noarch" license="GPL" depends="python py-gobject dbus py-dbus lvm2" depends_dev="" makedepends="python-dev libxslt docbook-xsl help2man py-gobject drbd-utils" install="" subpackages="$pkgname-doc" source="http://oss.linbit.com/$_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" python setup.py build_man || return 1 python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } doc() { # Man pages mkdir -p "$subpkgdir"/usr/share/man || return 1 mv "$pkgdir"/usr/share/man "$subpkgdir"/usr/share/ || return 1 } md5sums="5f005ccc1ec9968fbf760436f573d721 drbdmanage-0.91.tar.gz 24c95b3312a4ee69e7225bdb0e19b4ed rm-systemd-and-bash.patch" sha256sums="7beae8e8ba7f257d6c918daa0eadf061b8aaad6b801297e8af41b5e39cf45bf3 drbdmanage-0.91.tar.gz 14bc5ac238ccd56794f24f21ed5bbe2d957edb725b4cb0889d1f539e4c187e23 rm-systemd-and-bash.patch" sha512sums="ea9a29ff9fc2f513ac895b09e23552ea6477cefa834b2248cb7d91fa5d8b3a1fac5593b22575f85b0071486c7d36db5bb39e0ffd8c18c24b578d3535576bd0b1 drbdmanage-0.91.tar.gz ca8108c2a46b6cac54bc0b811547107329d34f58462075010d5af7c7b0c3cdbf58061e80057b54f095f0dedde54b3b8cb99b5b0aab21960e7c0d47b01528037e rm-systemd-and-bash.patch"