aboutsummaryrefslogtreecommitdiffstats
path: root/main/openntpd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-09-30 14:14:22 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-09-30 14:27:11 +0200
commitb92cb9f82e9db0b62f2d9c49945954969e5b5c1f (patch)
treea54fe6e1259076ce2536085d0f7f3740ffabd972 /main/openntpd
parentcbd058437d11cd0cc07a58278074d78f00c8a546 (diff)
downloadaports-b92cb9f82e9db0b62f2d9c49945954969e5b5c1f.tar.bz2
aports-b92cb9f82e9db0b62f2d9c49945954969e5b5c1f.tar.xz
main/openntpd: modernize abuild
Diffstat (limited to 'main/openntpd')
-rw-r--r--main/openntpd/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/main/openntpd/APKBUILD b/main/openntpd/APKBUILD
index e9063f6b2f..425ebfde4d 100644
--- a/main/openntpd/APKBUILD
+++ b/main/openntpd/APKBUILD
@@ -19,6 +19,7 @@ builddir="$srcdir/$pkgname-$_pkgver"
build() {
cd "$builddir"
+
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -26,20 +27,20 @@ build() {
--localstatedir=/var \
--mandir=/usr/share/man \
--sysconfdir=/etc \
- --with-privsep-user=ntp \
- || return 1
- make || return 1
+ --with-privsep-user=ntp
+ make
}
package() {
cd "$builddir"
- make install DESTDIR="$pkgdir" || return 1
- mkdir -p "$pkgdir"/var/empty || return 1
+ make install DESTDIR="$pkgdir"
+
+ mkdir -p "$pkgdir"/var/empty
install -Dm755 "$srcdir"/$pkgname.initd \
- "$pkgdir"/etc/init.d/"$pkgname" || return 1
+ "$pkgdir"/etc/init.d/"$pkgname"
install -Dm644 "$srcdir"/$pkgname.confd \
- "$pkgdir"/etc/conf.d/"$pkgname" || return 1
+ "$pkgdir"/etc/conf.d/"$pkgname"
rmdir "$pkgdir"/var/run
}