docs: move /var/log/README to a tmpfiles.d symlink

This moves the /var/log/README content out of /var and into the
docs location, replacing the previous file with a symlink
created through a tmpfiles.d entry.
This commit is contained in:
Luca BRUNO
2021-07-08 09:47:32 +00:00
committed by Zbigniew Jędrzejewski-Szmek
parent cac38a9803
commit 6fe23ff31c
6 changed files with 32 additions and 20 deletions

View File

@@ -12,7 +12,6 @@ files = [['README', ''],
['systemd-pstore.conf', 'ENABLE_PSTORE'],
['tmp.conf', ''],
['x11.conf', ''],
['legacy.conf', 'HAVE_SYSV_COMPAT'],
]
foreach pair : files
@@ -26,21 +25,30 @@ foreach pair : files
endif
endforeach
in_files = ['etc.conf',
'static-nodes-permissions.conf',
'systemd.conf',
'var.conf']
in_files = [['etc.conf', ''],
['legacy.conf', 'HAVE_SYSV_COMPAT'],
['static-nodes-permissions.conf', ''],
['systemd.conf', ''],
['var.conf', ''],
]
foreach file : in_files
custom_target(
# XXX: workaround for old meson. Drop when upgrading.
'tmpfiles+' + file,
input : file + '.in',
output: file,
command : [meson_render_jinja2, config_h, '@INPUT@'],
capture : true,
install : enable_tmpfiles,
install_dir : tmpfilesdir)
foreach pair : in_files
if not enable_tmpfiles
# do nothing
elif pair[1] == '' or conf.get(pair[1]) == 1
custom_target(
# XXX: workaround for old meson. Drop when upgrading.
'tmpfiles+' + pair[0],
input : pair[0] + '.in',
output: pair[0],
command : [meson_render_jinja2, config_h, '@INPUT@'],
capture : true,
install : enable_tmpfiles,
install_dir : tmpfilesdir)
else
message('Not installing tmpfiles.d/@0@ because @1@ is @2@'
.format(pair[0], pair[1], conf.get(pair[1], 0)))
endif
endforeach
if enable_tmpfiles and install_sysconfdir