aboutsummaryrefslogtreecommitdiffstats
path: root/main/drbd-utils
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-23 23:40:43 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-23 23:37:21 +0200
commit4f182e28013d7513b603daf9123a5b008ab108f6 (patch)
tree3d8edf81d21b154786b6287f10c6c48f2da2ff26 /main/drbd-utils
parent88cc34a796e86aa6af492d360d8b9bfd112a4030 (diff)
downloadaports-4f182e28013d7513b603daf9123a5b008ab108f6.tar.bz2
aports-4f182e28013d7513b603daf9123a5b008ab108f6.tar.xz
main/drbd-utils: improve abuild
Diffstat (limited to 'main/drbd-utils')
-rw-r--r--main/drbd-utils/APKBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/drbd-utils/APKBUILD b/main/drbd-utils/APKBUILD
index de2592ad27..3f03f79656 100644
--- a/main/drbd-utils/APKBUILD
+++ b/main/drbd-utils/APKBUILD
@@ -9,6 +9,7 @@ arch="all"
license="GPL-2.0-or-later"
depends="bash"
makedepends="bison docbook-xsl flex libxslt linux-headers"
+options="!check" # no tests provided
provides="drbd=$pkgver-r$pkgrel"
subpackages="$pkgname-doc $pkgname-pacemaker::noarch
$pkgname-bash-completion:bashcomp:noarch"
@@ -16,10 +17,11 @@ source="https://links.linbit.com/sources/drbd/utils/$pkgname-$pkgver.tar.gz
drbdsetup-permissions.patch
drbd.initd
"
-builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
+
./configure --prefix=/usr \
--sbindir=/sbin \
--sysconfdir=/etc \
@@ -39,9 +41,10 @@ build() {
package() {
cd "$builddir"
+
make DESTDIR="$pkgdir" install
- install -m755 -D "$srcdir/drbd.initd" \
- "$pkgdir/etc/init.d/drbd"
+
+ install -m755 -D "$srcdir/drbd.initd" "$pkgdir/etc/init.d/drbd"
}
pacemaker() {
@@ -52,8 +55,8 @@ pacemaker() {
}
bashcomp() {
- depends=""
pkgdesc="Bash completions for $pkgname"
+ depends=""
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir -p "$subpkgdir"/usr/share/bash-completion