]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - misc-utils/meson.build
lastlog2 - Y2038 safe version of lastlog
[thirdparty/util-linux.git] / misc-utils / meson.build
index f1a9346931f02397eb8a2b77cb7d834cb0486e78..6a7dd8ceef06674a665b7087895dc3296136f55c 100644 (file)
@@ -12,6 +12,11 @@ look_sources = files(
   'look.c',
 )
 
+lastlog2_sources = files(
+  'lastlog2.c',
+) + \
+  strutils_c
+
 mcookie_sources = files(
   'mcookie.c',
 ) + \
@@ -71,6 +76,26 @@ test_uuidd_sources = files(
   'test_uuidd.c',
 )
 
+if build_liblastlog2 and systemd.found()
+  lastlog2_service = configure_file(
+    input : 'lastlog2-import.service.in',
+    output : 'lastlog2-import.service',
+    configuration : conf)
+  install_data(
+    lastlog2_service,
+    install_dir : systemdsystemunitdir)
+endif
+
+if build_liblastlog2
+  lastlog2_tmpfiles = configure_file(
+    input : 'lastlog2.conf.in',
+    output : 'lastlog2.conf',
+    configuration : conf)
+  install_data(
+    lastlog2_tmpfiles,
+    install_dir : '/usr/lib/tmpfiles.d')
+endif
+
 if build_uuidd and systemd.found()
   uuidd_service = configure_file(
     input : 'uuidd.service.in',