]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: use tmpfilesdir pkg-config variable
authorKarel Zak <kzak@redhat.com>
Thu, 16 Jan 2025 16:49:30 +0000 (17:49 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Jan 2025 11:53:26 +0000 (12:53 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
meson.build
misc-utils/meson.build

index d4649e0b95c4fb6d0d11f8265d05c662ff346eb2..316c265b478af54805418b87ddc4cdc96f529d29 100644 (file)
@@ -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'
 
index b10625fa787f7eb7c6ac05fef51a63bafd65cbf3..dae2698b37c916b7fbc0e4e54a1a383734b7fea3 100644 (file)
@@ -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(