1 # SPDX-License-Identifier: LGPL-2.1+
3 enable_tmpfiles = conf.get('ENABLE_TMPFILES') == 1
5 tmpfiles = [['home.conf', ''],
6 ['journal-nocow.conf', ''],
7 ['systemd-nologin.conf', 'HAVE_PAM'],
8 ['systemd-nspawn.conf', 'ENABLE_MACHINED'],
9 ['systemd-tmp.conf', ''],
10 ['portables.conf', 'ENABLE_PORTABLED'],
11 ['systemd-pstore.conf', 'ENABLE_PSTORE'],
14 ['legacy.conf', 'HAVE_SYSV_COMPAT'],
17 foreach pair : tmpfiles
18 if not enable_tmpfiles
20 elif pair[1] == '' or conf.get(pair[1]) == 1
21 install_data(pair[0], install_dir : tmpfilesdir)
23 message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
24 .format(pair[0], pair[1], conf.get(pair[1], 0)))
28 in_files = ['static-nodes-permissions.conf']
30 foreach file : in_files
34 configuration : substs)
37 install_dir : tmpfilesdir)
41 m4_files = ['etc.conf',
45 foreach file : m4_files
51 command : [meson_apply_m4, config_h, '@INPUT@'],
54 install_dir : tmpfilesdir)
59 meson.add_install_script(
61 mkdir_p.format(join_paths(sysconfdir, 'tmpfiles.d')))