]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Install example configuration files when building with meson
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 22 Dec 2025 13:10:32 +0000 (14:10 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 22 Dec 2025 13:10:32 +0000 (14:10 +0100)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
meson.build

index 74f308bf56455dd05488fbff6ed764408e865b0a..43670c7d6d22852c9faf31539cae477c48ffad56 100644 (file)
@@ -1024,6 +1024,22 @@ foreach tool, info: tools
   endif
 endforeach
 
+dep_conf_distfile = custom_target(
+  'gen-conf-distfile',
+  command: [pdns_server, '--config=default'],
+  output: 'pdns.conf-dist',
+  capture: true,
+  install: true,
+  install_dir:  get_option('sysconfdir'),
+)
+
+if get_option('tools-ixfrdist')
+  install_data(
+    'pdns' / 'ixfrdist.example.yml',
+    install_dir:  get_option('sysconfdir'),
+  )
+endif
+
 # Man-pages.
 py = import('python')
 python = py.find_installation('python3', modules: 'venv', required: false)