1 enable_tmpfiles = conf.get('ENABLE_TMPFILES') == 1
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]) == 1
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', ''],
28 foreach pair : m4_files
29 if not enable_tmpfiles
31 elif pair[1] == '' or conf.get(pair[1]) == 1
33 'tmpfiles.d_' + pair[0],
34 input : pair[0] + '.m4',
36 command : [m4, '-P'] + m4_defines + ['@INPUT@'],
39 install_dir : tmpfilesdir)
41 message('Not installing tmpfiles.d/@0@.m4 because @1@ is @2@'
42 .format(pair[0], pair[1], conf.get(pair[1], 0)))
47 meson.add_install_script(
49 mkdir_p.format(join_paths(sysconfdir, 'tmpfiles.d')))