]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
meson: systemd - get unitdir, tmpfilesdir from pkg-config
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Feb 2019 17:40:29 +0000 (18:40 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:43:28 +0000 (10:43 +0100)
meson.build
systemd/meson.build

index 72a1aa9d06f9fb06168fce5584168849204760c0..0d402db14018bf2aaf78176e0772dc316abb2c28 100644 (file)
@@ -95,6 +95,9 @@ if opt_systemd != 'disabled'
       systemd_socket = false
     endif
   endif
+  if systemd
+    pkgconf_systemd = dependency('systemd')
+  endif
   message('---------------------------')
 endif
 
index a6571edc488b426663ebfe1236241f105e26a374..c252fd3195e7585e4aec71dbaaffe625605a183e 100644 (file)
@@ -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()