]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: respect install_sysconfdir_samples in meson file
authorAndreas Rammhold <andreas@rammhold.de>
Mon, 26 Jul 2021 14:57:43 +0000 (16:57 +0200)
committerAndreas Rammhold <andreas@rammhold.de>
Sat, 21 Aug 2021 13:09:44 +0000 (15:09 +0200)
The refactoring done in e11a25cadbe caused the configuration files to be
installed into the pkgsysconfdir regardless of the state of the
install_sysconfdir_samples boolean that indicates whether or not the
sample files should be installed.

src/core/meson.build

index 1c364a53e2d2f6d2801222f0d50e93d0920c4be7..728e2f080760cf27fc09aa6b94911ca428611273 100644 (file)
@@ -195,7 +195,7 @@ foreach item : in_files
                 output: file,
                 command : [meson_render_jinja2, config_h, '@INPUT@'],
                 capture : true,
-                install : dir != 'no',
+                install : (dir == pkgsysconfdir and install_sysconfdir_samples) or (dir != pkgsysconfdir and dir != 'no'),
                 install_dir : dir)
 endforeach