diff options
Diffstat (limited to 'community/drbdmanage')
-rw-r--r-- | community/drbdmanage/APKBUILD | 46 | ||||
-rw-r--r-- | community/drbdmanage/rm-systemd-and-bash.patch | 15 |
2 files changed, 61 insertions, 0 deletions
diff --git a/community/drbdmanage/APKBUILD b/community/drbdmanage/APKBUILD new file mode 100644 index 0000000000..0f8b7b2636 --- /dev/null +++ b/community/drbdmanage/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Roland Kammerer <roland.kammerer@linbit.com> +# Maintainer: Roland Kammerer <roland.kammerer@linbit.com> +_usname=drbdmanage +pkgname=$_usname +pkgver=0.95 +pkgrel=0 +pkgdesc="DRBD9 Cluster Management Tool" +url="http://www.drbd.org" +arch="noarch" +license="GPL" +depends="python py-gobject dbus py-dbus lvm2 drbd-utils>=8.9.6" +depends_dev="" +makedepends="python-dev libxslt docbook-xsl help2man" +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 +} + +md5sums="2598d5c451012223aaedbbf18ff985f3 drbdmanage-0.95.tar.gz +24c95b3312a4ee69e7225bdb0e19b4ed rm-systemd-and-bash.patch" +sha256sums="bc65f85fe26349961052588fe27743de93123c61aec466390d81bfd8b6f40f49 drbdmanage-0.95.tar.gz +14bc5ac238ccd56794f24f21ed5bbe2d957edb725b4cb0889d1f539e4c187e23 rm-systemd-and-bash.patch" +sha512sums="61d82c611a64d0d1805bb7419496fe2a7731c36164608d5c8a47bed251ad504a70559a73e7953b3c5d25eb05c707efdc1417a398a2b7486cfbe78ea3111af43b drbdmanage-0.95.tar.gz +ca8108c2a46b6cac54bc0b811547107329d34f58462075010d5af7c7b0c3cdbf58061e80057b54f095f0dedde54b3b8cb99b5b0aab21960e7c0d47b01528037e rm-systemd-and-bash.patch" diff --git a/community/drbdmanage/rm-systemd-and-bash.patch b/community/drbdmanage/rm-systemd-and-bash.patch new file mode 100644 index 0000000000..0041a62fff --- /dev/null +++ b/community/drbdmanage/rm-systemd-and-bash.patch @@ -0,0 +1,15 @@ +--- a/setup.py ++++ b/setup.py +@@ -166,11 +166,8 @@ + ("/etc/dbus-1/system.d", ["conf/org.drbd.drbdmanaged.conf"]), + ("/usr/share/dbus-1/system-services", + ["conf/org.drbd.drbdmanaged.service"]), +- ("/lib/systemd/system/", ["conf/drbdmanaged.service", +- "conf/drbdmanaged.socket"]), + ("/var/lib/drbd.d", []), +- ("/var/lib/drbdmanage", []), +- ("/etc/bash_completion.d", ["scripts/bash_completion/drbdmanage"])] ++ ("/var/lib/drbdmanage", [])] + + # Don't overwrite existing file + if not os.path.isfile("/etc/drbdmanaged.cfg"): |