1 enable_tmpfiles = conf.get('ENABLE_TMPFILES', false)
3 tmpfiles = [['home.conf', ''],
4 ['journal-nocow.conf', ''],
5 ['systemd-nologin.conf', ''],
6 ['systemd-nspawn.conf', ''],
7 ['systemd-remote.conf', 'ENABLE_REMOTE'],
10 ['legacy.conf', 'HAVE_SYSV_COMPAT'],
13 foreach pair : tmpfiles
14 if not enable_tmpfiles
16 elif pair[1] == '' or conf.get(pair[1], false)
17 install_data(pair[0], install_dir : tmpfilesdir)
19 message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
20 .format(pair[0], pair[1], conf.get(pair[1], 0)))
24 m4_files = ['etc.conf',
28 foreach file : m4_files
33 command : [m4, '-P'] + m4_defines + ['@INPUT@'],
35 install : enable_tmpfiles,
36 install_dir : tmpfilesdir)
40 meson.add_install_script(
42 mkdir_p.format(join_paths(sysconfdir, 'tmpfiles.d')))