From: Karel Zak Date: Thu, 16 Jan 2025 16:49:30 +0000 (+0100) Subject: meson: use tmpfilesdir pkg-config variable X-Git-Tag: v2.42-start~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54faffe9f8e3bdac53cb654fb254b59d7a7002f4;p=thirdparty%2Futil-linux.git meson: use tmpfilesdir pkg-config variable Signed-off-by: Karel Zak --- 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(