mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
knot-resolver: config fixes + add garbage collector service
This commit is contained in:
parent
d45e73d548
commit
49d30f5e14
3 changed files with 8 additions and 2 deletions
5
srcpkgs/knot-resolver/files/kres-cache-gc/run
Executable file
5
srcpkgs/knot-resolver/files/kres-cache-gc/run
Executable 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
2
srcpkgs/knot-resolver/files/kresd/run
Normal file → Executable file
|
@ -2,4 +2,4 @@
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
[ -r ./conf ] && . ./conf
|
[ -r ./conf ] && . ./conf
|
||||||
install -d -m0755 -o _knot_resolver -g _knot_resolver /run/knot-resolver
|
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}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'knot-resolver'
|
# Template file for 'knot-resolver'
|
||||||
pkgname=knot-resolver
|
pkgname=knot-resolver
|
||||||
version=5.6.0
|
version=5.6.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="
|
configure_args="
|
||||||
-Dclient=enabled
|
-Dclient=enabled
|
||||||
|
@ -36,6 +36,7 @@ post_install() {
|
||||||
vinstall etc/root.hints 644 var/lib/knot-resolver
|
vinstall etc/root.hints 644 var/lib/knot-resolver
|
||||||
vinstall etc/root.keys 644 var/lib/knot-resolver
|
vinstall etc/root.keys 644 var/lib/knot-resolver
|
||||||
vsv kresd
|
vsv kresd
|
||||||
|
vsv kres-cache-gc
|
||||||
}
|
}
|
||||||
|
|
||||||
knot-resolver-devel_package() {
|
knot-resolver-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue