3 enable_tmpfiles = conf.get('ENABLE_TMPFILES', 0) == 1
5 tmpfiles = [['home.conf', ''],
6 ['journal-nocow.conf', ''],
7 ['systemd-nologin.conf', ''],
8 ['systemd-nspawn.conf', ''],
9 ['systemd-remote.conf', 'ENABLE_REMOTE'],
13 ['legacy.conf', 'HAVE_SYSV_COMPAT'],
16 foreach pair : tmpfiles
17 if not enable_tmpfiles
19 elif pair[1] == '' or conf.get(pair[1], 0) == 1
20 install_data(pair[0], install_dir : tmpfilesdir)
22 message('Not installing tmpfiles.d/@0@ because @1@ is @2@'.format(
23 pair[0], pair[1], conf.get(pair[1], 0)))
27 m4_files = ['etc.conf',
30 foreach file : m4_files
35 command : [m4, '-P'] + m4_defines + ['@INPUT@'],
37 install : enable_tmpfiles,
38 install_dir : tmpfilesdir)