New package: knot-resolver-4.0.0

This commit is contained in:
Duncaen 2019-07-08 14:27:21 +02:00
parent 2fb4130597
commit 4546573a6f
5 changed files with 58 additions and 0 deletions

View File

@ -3480,3 +3480,4 @@ libfstrm.so.0 fstrm-0.5.0_1
libknot.so.9 libknot-2.8.2_1
libdnssec.so.7 libknot-2.8.2_1
libzscanner.so.3 libknot-2.8.2_1
libkres.so.9 knot-resolver-4.0.0_1

1
srcpkgs/knot-resolver-devel Symbolic link
View File

@ -0,0 +1 @@
knot-resolver

View File

@ -0,0 +1,6 @@
case ${ACTION} in
post)
chown -R _knot_resolver:_knot_resolver var/lib/knot-resolver
;;
esac

View File

@ -0,0 +1,4 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
install -d -m0755 -o _knot-resolver -g _knot-resolver /run/knot-resolver
exec kresd ${OPTS:--f 1}

View File

@ -0,0 +1,46 @@
# Template file for 'knot-resolver'
pkgname=knot-resolver
version=4.0.0
revision=1
build_style=meson
configure_args="
-Dclient=enabled
-Dgroup=_knot_resolver
-Duser=_knot_resolver
-Dkeyfile_default=/var/lib/knot-resolver/root.keys
-Droot_hints=/var/lib/knot-resolver/root.hints"
hostmakedepends="meson pkg-config protobuf-c"
makedepends="LuaJIT-devel fstrm-devel gnutls-devel libedit-devel libknot-devel
libuv-devel lmdb-devel protobuf-c-devel"
short_desc="Full caching DNS resolver implementation"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.knot-resolver.cz/"
distfiles="https://secure.nic.cz/files/knot-resolver/knot-resolver-${version}.tar.xz"
checksum=37161d931e64535ce38c33b9635f06a43cd1541945bf2c79a55e37f230de1631
system_accounts="_knot_resolver"
_knot_resolver_homedir="/var/cache/knot-resolver"
mutable_files="
/var/lib/knot-resolver/root.hints
/var/lib/knot-resolver/root.keys"
conf_files="
/etc/knot-resolver/kresd.conf"
post_install() {
vinstall etc/root.hints 644 var/lib/knot-resolver
vinstall etc/root.keys 644 var/lib/knot-resolver
vsv kresd
}
knot-resolver-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}