diff options
author | tcely <tcely@users.noreply.github.com> | 2018-03-28 19:12:45 -0400 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-04-05 06:17:30 +0000 |
commit | 36a1d2aca45e7e59347937b9cb840234d3e6c253 (patch) | |
tree | 0d1bec24f70985e5e07c4f26b12829fdec39f8ad /testing/knot-resolver | |
parent | 35ef903d927815be539595c5eec23d2b6be422a1 (diff) | |
download | aports-36a1d2aca45e7e59347937b9cb840234d3e6c253.tar.bz2 aports-36a1d2aca45e7e59347937b9cb840234d3e6c253.tar.xz |
testing/knot-resolver: modernize
Diffstat (limited to 'testing/knot-resolver')
-rw-r--r-- | testing/knot-resolver/APKBUILD | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/testing/knot-resolver/APKBUILD b/testing/knot-resolver/APKBUILD index 6e5e92ef33..e575f7bd47 100644 --- a/testing/knot-resolver/APKBUILD +++ b/testing/knot-resolver/APKBUILD @@ -32,24 +32,25 @@ build() { } package() { - make -C "$builddir" $_flags DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make $_flags DESTDIR="$pkgdir" install cd "$pkgdir" # Move sample configs to -doc. mkdir -p ./usr/share/doc/$pkgname - mv ./etc/$pkgname/* ./usr/share/doc/$pkgname/ || return 1 - chmod 644 ./usr/share/doc/$pkgname/* || return 1 + mv ./etc/$pkgname/* ./usr/share/doc/$pkgname/ + chmod 644 ./usr/share/doc/$pkgname/* install -m 640 -o root -g kresd "$srcdir"/config \ - ./etc/$pkgname/config || return 1 + ./etc/$pkgname/config - install -m 755 -o kresd -g kresd -d ./var/lib/$pkgname || return 1 + install -m 755 -o kresd -g kresd -d ./var/lib/$pkgname install -m 644 -o kresd -D "$srcdir"/root.keys \ - ./var/lib/$pkgname/root.keys || return 1 + ./var/lib/$pkgname/root.keys - install -m 755 -D "$srcdir"/$pkgname.initd ./etc/init.d/$pkgname || return 1 - install -m 644 -D "$srcdir"/$pkgname.confd ./etc/conf.d/$pkgname || return 1 + install -m 755 -D "$srcdir"/$pkgname.initd ./etc/init.d/$pkgname + install -m 644 -D "$srcdir"/$pkgname.confd ./etc/conf.d/$pkgname install -m 644 -D "$srcdir"/$pkgname.logrotate ./etc/logrotate.d/$pkgname } |