knot-resolver: config fixes + add garbage collector service

This commit is contained in:
MeganerdNL 2023-07-23 21:31:32 +02:00 committed by classabbyamp
parent d45e73d548
commit 49d30f5e14
3 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
install -d -m0755 -o _knot_resolver -g _knot_resolver /run/knot-resolver
exec kres-cache-gc ${OPTS:- -d 1000 -c /run/knot-resolver}

2
srcpkgs/knot-resolver/files/kresd/run Normal file → Executable file
View File

@ -2,4 +2,4 @@
exec 2>&1
[ -r ./conf ] && . ./conf
install -d -m0755 -o _knot_resolver -g _knot_resolver /run/knot-resolver
exec kresd ${OPTS:--f 1}
exec kresd ${OPTS:- --noninteractive -c /etc/knot-resolver/kresd.conf /run/knot-resolver}

View File

@ -1,7 +1,7 @@
# Template file for 'knot-resolver'
pkgname=knot-resolver
version=5.6.0
revision=1
revision=2
build_style=meson
configure_args="
-Dclient=enabled
@ -36,6 +36,7 @@ post_install() {
vinstall etc/root.hints 644 var/lib/knot-resolver
vinstall etc/root.keys 644 var/lib/knot-resolver
vsv kresd
vsv kres-cache-gc
}
knot-resolver-devel_package() {