diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2024-01-22 17:11:14 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-01-22 23:01:39 +0100 |
commit | 6c7fc5d5f2011a27cea40491133bb90540377750 (patch) | |
tree | 90fa6441a3234e434977865f3d230ea9b4640d3f /src/userdb | |
parent | vmspawn: document -q/--quiet (diff) | |
download | systemd-6c7fc5d5f2011a27cea40491133bb90540377750.tar.xz systemd-6c7fc5d5f2011a27cea40491133bb90540377750.zip |
meson: correctly handle "no" value for sshd?confdir options
Diffstat (limited to 'src/userdb')
-rw-r--r-- | src/userdb/meson.build | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/userdb/meson.build b/src/userdb/meson.build index 260dbab2c8..2ee366dbae 100644 --- a/src/userdb/meson.build +++ b/src/userdb/meson.build @@ -24,15 +24,17 @@ executables += [ }, ] -custom_target( - '20-systemd-userdb.conf', - input : '20-systemd-userdb.conf.in', - output : '20-systemd-userdb.conf', - command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], - install : conf.get('ENABLE_USERDB') == 1 and sshdconfdir != 'no', - install_dir : libexecdir / 'sshd_config.d') +if conf.get('ENABLE_USERDB') == 1 and sshdconfdir != 'no' + custom_target( + '20-systemd-userdb.conf', + input : '20-systemd-userdb.conf.in', + output : '20-systemd-userdb.conf', + command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], + install : true, + install_dir : libexecdir / 'sshd_config.d') -install_emptydir(sshdconfdir) + install_emptydir(sshdconfdir) -meson.add_install_script(sh, '-c', - ln_s.format(libexecdir / 'sshd_config.d' / '20-systemd-userdb.conf', sshdconfdir / '20-systemd-userdb.conf')) + meson.add_install_script(sh, '-c', + ln_s.format(libexecdir / 'sshd_config.d' / '20-systemd-userdb.conf', sshdconfdir / '20-systemd-userdb.conf')) +endif |