1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-03 08:22:37 +03:00

meson: create /var/log/journal/{,remote/} conditionally

Not everybody has those dirs in the filesystem (and they don't need to).
When creating an installation package using $DESTDIR, it is easy enough to
remove or ignore those directories, but if installing into a real root, it
is ugly to create and remove them. Let's add an option so people can skip
it if they want.

Inspired by #12930.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-07-04 09:59:09 +02:00
parent 7810d22171
commit 6ed5ef9819
4 changed files with 24 additions and 18 deletions

View File

@ -5,7 +5,7 @@ file = configure_file(
output : 'README',
configuration : substs)
if conf.get('HAVE_SYSV_COMPAT') == 1
if conf.get('HAVE_SYSV_COMPAT') == 1 and get_option('create-log-dirs')
install_data(file,
install_dir : varlogdir)
endif