1 enable_tmpfiles = conf.get('ENABLE_TMPFILES', false)
3 tmpfiles = [['home.conf', ''],
4 ['journal-nocow.conf', ''],
5 ['systemd-nologin.conf', ''],
6 ['systemd-nspawn.conf', ''],
9 ['legacy.conf', 'HAVE_SYSV_COMPAT'],
12 foreach pair : tmpfiles
13 if not enable_tmpfiles
15 elif pair[1] == '' or conf.get(pair[1], false)
16 install_data(pair[0], install_dir : tmpfilesdir)
18 message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
19 .format(pair[0], pair[1], conf.get(pair[1], 0)))
23 m4_files = [['etc.conf', ''],
25 ['systemd-remote.conf', 'ENABLE_REMOTE'],
29 foreach pair : m4_files
30 if not enable_tmpfiles
32 elif pair[1] == '' or conf.get(pair[1], false)
34 'tmpfiles.d_' + pair[0],
35 input : pair[0] + '.m4',
37 command : [m4, '-P'] + m4_defines + ['@INPUT@'],
40 install_dir : tmpfilesdir)
42 message('Not installing tmpfiles.d/@0@.m4 because @1@ is @2@'
43 .format(pair[0], pair[1], conf.get(pair[1], 0)))
48 meson.add_install_script(
50 mkdir_p.format(join_paths(sysconfdir, 'tmpfiles.d')))