summaryrefslogtreecommitdiff
path: root/net-dns/knot-resolver/files/knot-resolver-6.0.9-config-example.patch
diff options
context:
space:
mode:
authorNicolas PARLANT <nicolas.parlant@parhuet.fr>2024-11-24 07:31:51 +0100
committerSam James <sam@gentoo.org>2024-12-01 15:16:52 +0000
commit93a2b9e8d3375fbc5c5dfcfd26458452d269dad0 (patch)
treebdecdc0da298691744a957abdbd93ac54dd68d22 /net-dns/knot-resolver/files/knot-resolver-6.0.9-config-example.patch
parent10e922e2768726d70a885ed432d2e423cf7c292f (diff)
downloadgentoo-93a2b9e8d3375fbc5c5dfcfd26458452d269dad0.tar.gz
gentoo-93a2b9e8d3375fbc5c5dfcfd26458452d269dad0.tar.bz2
gentoo-93a2b9e8d3375fbc5c5dfcfd26458452d269dad0.zip
net-dns/knot-resolver: add 6.0.9
Knot DNS API/ABI : >=net-dns/knot-3.3 New optional python component, manager, to start/manage Knot Resolver : * useflag manager (enabled by default) * python3_10..12 (no 3.13 due to app-admin/supervisor) * start with /etc/init.d/knot-resolver or knot-resolver.service * config file : /etc/conf.d/knot-resolver /etc/knot-resolver/config.yaml * option garbage collector : /etc/init.d/kres-cache-gc Old/legacy way to start Knot Resolver is still supported and installed by default, even with the manager enabled by useflag : * start with /etc/init.d/kresd or kresd'@'.service (installed by default with the meson_feature systemd_legacy_units) * config file : /etc/conf.d/kresd /etc/kresd.conf (installed by default with -Dinstall_kresd_conf=enabled) Useflags : * kresc (removed) : has never gone beyond experiment/alpha * prometheus (new) : prometheus metrics endpoint for the manager (dev-python/prometheus-client) Patches : * 5.X patches to set docdir and optional deps (nghttp, openssl) * 6.0.9-libsystemd.patch : rebase from 5.7.4. tmpfiles is independent of the systemd option/useflag * 6.0.9-config-example.patch : for the manager. A default config file is installed in /etc/knot-resolver/config.yaml and examples in /usr/share/doc/ * 6.0.9-sd_notify_alt.patch : upstream, fix systemd dep with sd_notify alternative for manager * 6.0.9-pytest_tomli.patch : for one pytest, import toml is replaced with tomli Tests : * unit_tests for kresd : enabled * unit_tests for manager : enabled * config_tests : disabled. It requires external lua modules (basexx, cqueues) * extra_tests : disabled. Too extra ... Bug: https://bugs.gentoo.org/939471 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Closes: https://github.com/gentoo/gentoo/pull/39482 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns/knot-resolver/files/knot-resolver-6.0.9-config-example.patch')
-rw-r--r--net-dns/knot-resolver/files/knot-resolver-6.0.9-config-example.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/net-dns/knot-resolver/files/knot-resolver-6.0.9-config-example.patch b/net-dns/knot-resolver/files/knot-resolver-6.0.9-config-example.patch
new file mode 100644
index 000000000000..1e20fad33e16
--- /dev/null
+++ b/net-dns/knot-resolver/files/knot-resolver-6.0.9-config-example.patch
@@ -0,0 +1,40 @@
+From 432f3078eb506dc002de94a6472e3ccf3097f274 Mon Sep 17 00:00:00 2001
+From: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
+Date: Fri, 22 Nov 2024 13:23:38 +0100
+Subject: [PATCH] Add config.yaml in etc_dir
+
+---
+ etc/config/meson.build | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/etc/config/meson.build b/etc/config/meson.build
+index ca888084..29abb992 100644
+--- a/etc/config/meson.build
++++ b/etc/config/meson.build
+@@ -10,6 +10,11 @@ example_configs = [
+ 'config.privacy',
+ 'config.personal',
+ 'config.splitview',
++ 'config.dev.yaml',
++ 'config.example.docker.yaml',
++ 'config.example.isp.yaml',
++ 'config.example.internal.yaml',
++ 'config.example.personal.yaml',
+ ]
+
+ install_data(
+@@ -17,6 +22,11 @@ install_data(
+ install_dir: examples_dir,
+ )
+
++install_data(
++ sources: 'config.example.personal.yaml',
++ rename: 'config.yaml',
++ install_dir: etc_dir,
++)
+
+ # kresd.conf
+ install_kresd_conf = get_option('install_kresd_conf') == 'enabled'
+--
+2.45.2
+