Skip to content

Commit a353fda

Browse files
authored
Merge pull request systemd#20303 from andir/sysconfig-example
{core, login}: respect install_sysconfdir_samples in meson file
2 parents 66dc9b4 + 72964d0 commit a353fda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ foreach item : in_files
202202
output: file,
203203
command : [meson_render_jinja2, config_h, '@INPUT@'],
204204
capture : true,
205-
install : dir != 'no',
205+
install : (dir == pkgsysconfdir and install_sysconfdir_samples) or (dir != pkgsysconfdir and dir != 'no'),
206206
install_dir : dir)
207207
endforeach
208208

src/login/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pam_systemd_c = files('pam_systemd.c')
6767

6868
enable_logind = conf.get('ENABLE_LOGIND') == 1
6969
in_files = [
70-
['logind.conf', pkgsysconfdir, enable_logind],
70+
['logind.conf', pkgsysconfdir, enable_logind and install_sysconfdir_samples],
7171
['70-uaccess.rules', udevrulesdir, enable_logind and conf.get('HAVE_ACL') == 1],
7272
['71-seat.rules', udevrulesdir, enable_logind],
7373
['73-seat-late.rules', udevrulesdir, enable_logind],

0 commit comments

Comments
 (0)