From 54faffe9f8e3bdac53cb654fb254b59d7a7002f4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 16 Jan 2025 17:49:30 +0100 Subject: [PATCH] meson: use tmpfilesdir pkg-config variable Signed-off-by: Karel Zak --- meson.build | 5 +++++ misc-utils/meson.build | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index d4649e0b9..316c265b4 100644 --- a/meson.build +++ b/meson.build @@ -924,6 +924,11 @@ if systemd.found() systemd_sysusers_dir = systemd.get_variable(pkgconfig : 'sysusers_dir') endif +systemd_tmpfiles_dir = '' +if systemd.found() + systemd_tmpfiles_dir = systemd.get_variable(pkgconfig : 'tmpfiles_dir') +endif + sysvinit = get_option('sysvinit').enabled() sysvinitrcdir = sysconfdir + '/init.d' diff --git a/misc-utils/meson.build b/misc-utils/meson.build index b10625fa7..dae2698b3 100644 --- a/misc-utils/meson.build +++ b/misc-utils/meson.build @@ -69,7 +69,7 @@ if build_liblastlog2 and systemd.found() configuration : conf) install_data( lastlog2_tmpfiles, - install_dir : '/usr/lib/tmpfiles.d', + install_dir : systemd_tmpfiles_dir, rename : 'lastlog2.conf') lastlog2_service = configure_file( @@ -88,7 +88,7 @@ if build_uuidd and systemd.found() configuration : conf) install_data( uuidd_tmpfiles, - install_dir : '/usr/lib/tmpfiles.d', + install_dir : systemd_tmpfiles_dir, rename : 'uuidd.conf') uuidd_service = configure_file( -- 2.47.3