1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 enable_tmpfiles = conf.get('ENABLE_TMPFILES') == 1
5 files = [['README', ''],
7 ['journal-nocow.conf', ''],
8 ['systemd-nologin.conf', 'HAVE_PAM'],
9 ['systemd-nspawn.conf', 'ENABLE_MACHINED'],
10 ['systemd-tmp.conf', ''],
11 ['portables.conf', 'ENABLE_PORTABLED'],
12 ['systemd-pstore.conf', 'ENABLE_PSTORE'],
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 = [['etc.conf', ''],
29 ['legacy.conf', 'HAVE_SYSV_COMPAT'],
30 ['static-nodes-permissions.conf', ''],
35 foreach pair : in_files
36 if not enable_tmpfiles
38 elif pair[1] == '' or conf.get(pair[1]) == 1
41 input : pair[0] + '.in',
43 command : [meson_render_jinja2, config_h, '@INPUT@'],
45 install : enable_tmpfiles,
46 install_dir : tmpfilesdir)
48 message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
49 .format(pair[0], pair[1], conf.get(pair[1], 0)))
53 if enable_tmpfiles and install_sysconfdir
54 meson.add_install_script(
55 'sh', '-c', mkdir_p.format(sysconfdir / 'tmpfiles.d'))