diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:50:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 03:50:42 +0000 |
commit | 78e9bb837c258ac0ec7712b3d612cc2f407e731e (patch) | |
tree | f515d16b6efd858a9aeb5b0ef5d6f90bf288283d /src/userdb/meson.build | |
parent | Adding debian version 255.5-1. (diff) | |
download | systemd-78e9bb837c258ac0ec7712b3d612cc2f407e731e.tar.xz systemd-78e9bb837c258ac0ec7712b3d612cc2f407e731e.zip |
Merging upstream version 256.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/userdb/meson.build')
-rw-r--r-- | src/userdb/meson.build | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/userdb/meson.build b/src/userdb/meson.build index 2d701c8..413f2be 100644 --- a/src/userdb/meson.build +++ b/src/userdb/meson.build @@ -23,3 +23,20 @@ executables += [ 'dependencies' : threads, }, ] + +if conf.get('ENABLE_SSH_USERDB_CONFIG') == 1 + 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 : sshdconfdir.startswith('/usr/') ? sshdconfdir : libexecdir / 'sshd_config.d') + + if not sshdconfdir.startswith('/usr/') + 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')) + endif +endif |