From 830407e88f9d40d954356c3754f2647f91d5c06a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:26:00 +0200 Subject: Adding upstream version 5.6.0. Signed-off-by: Daniel Baumann --- systemd/meson.build | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 systemd/meson.build (limited to 'systemd/meson.build') diff --git a/systemd/meson.build b/systemd/meson.build new file mode 100644 index 0000000..6ca0bac --- /dev/null +++ b/systemd/meson.build @@ -0,0 +1,66 @@ +# systemd +# SPDX-License-Identifier: GPL-3.0-or-later + +## configuration +systemd_config = configuration_data() +systemd_config.set('user', user) +systemd_config.set('group', group) +systemd_config.set('systemd_work_dir', systemd_work_dir) +systemd_config.set('systemd_cache_dir', systemd_cache_dir) +systemd_config.set('sbin_dir', sbin_dir) +systemd_config.set('etc_dir', etc_dir) +systemd_config.set('run_dir', run_dir) +systemd_config.set('lib_dir', lib_dir) + +if systemd_files == 'enabled' + ## unit files + kresd_service = configure_file( + input: 'kresd@.service.in', + output: 'kresd@.service', + configuration: systemd_config, + install_dir: systemd_unit_dir, + ) + kres_cache_gc_service = configure_file( + input: 'kres-cache-gc.service.in', + output: 'kres-cache-gc.service', + configuration: systemd_config, + install_dir: systemd_unit_dir, + ) + install_data( + sources: 'kresd.target', + install_dir: systemd_unit_dir, + ) + + ## man page + kresd_systemd_man = configure_file( + input: 'kresd.systemd.7.in', + output: 'kresd.systemd.7', + configuration: man_config, + ) + install_man(kresd_systemd_man) + + ## tmpfiles + tmpfiles = configure_file( + input: 'tmpfiles.d/knot-resolver.conf.in', + output: 'knot-resolver.tmpfiles', + configuration: systemd_config, + ) + install_data( + tmpfiles, + rename: ['knot-resolver.conf'], + install_dir: systemd_tmpfiles_dir, + ) + + ## sysusers + sysusers = configure_file( + input: 'sysusers.d/knot-resolver.conf.in', + output: 'knot-resolver.sysusers', + configuration: systemd_config, + ) + install_data( + sysusers, + rename: ['knot-resolver.conf'], + install_dir: systemd_sysusers_dir, + ) + +endif -- cgit v1.2.3