Commit 3efdebfb authored by Tomas Krizek's avatar Tomas Krizek

meson: systemd - get unitdir, tmpfilesdir from pkg-config

parent e619255d
......@@ -95,6 +95,9 @@ if opt_systemd != 'disabled'
systemd_socket = false
endif
endif
if systemd
pkgconf_systemd = dependency('systemd')
endif
message('---------------------------')
endif
......
......@@ -4,8 +4,8 @@
systemd_work_dir = join_paths(
prefix, get_option('localstatedir'), 'cache', 'knot-resolver')
run_dir = join_paths('/run', 'knot-resolver')
systemd_unit_dir = join_paths(lib_dir, 'systemd', 'system')
systemd_tmpfiles_dir = join_paths(lib_dir, 'tmpfiles.d')
systemd_unit_dir = pkgconf_systemd.get_pkgconfig_variable('systemdsystemunitdir')
systemd_tmpfiles_dir = pkgconf_systemd.get_pkgconfig_variable('tmpfilesdir')
## configuration
systemd_config = configuration_data()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment