diff options
Diffstat (limited to 'testing')
-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 } |