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'],
13 ['legacy.conf', 'HAVE_SYSV_COMPAT'],
16 foreach pair : tmpfiles
17 if not enable_tmpfiles
19 elif pair[1] == '' or conf.get(pair[1]) == 1
20 install_data(pair[0], install_dir : tmpfilesdir)
22 message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
23 .format(pair[0], pair[1], conf.get(pair[1], 0)))
27 in_files = ['static-nodes-permissions.conf']
29 foreach file : in_files
33 configuration : substs)
36 install_dir : tmpfilesdir)
40 m4_files = ['etc.conf',
44 foreach file : m4_files
50 command : [meson_apply_m4, config_h, '@INPUT@'],
53 install_dir : tmpfilesdir)
58 meson.add_install_script(
60 mkdir_p.format(join_paths(sysconfdir, 'tmpfiles.d')))