]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
d093b62c | 2 | |
250e597f YW |
3 | executables += [ |
4 | libexec_template + { | |
5 | 'name' : 'systemd-userwork', | |
6 | 'conditions' : ['ENABLE_USERDB'], | |
7 | 'sources' : files('userwork.c'), | |
8 | 'dependencies' : threads, | |
9 | }, | |
10 | libexec_template + { | |
11 | 'name' : 'systemd-userdbd', | |
12 | 'conditions' : ['ENABLE_USERDB'], | |
13 | 'sources' : files( | |
14 | 'userdbd-manager.c', | |
15 | 'userdbd.c', | |
16 | ), | |
17 | 'dependencies' : threads, | |
18 | }, | |
19 | executable_template + { | |
20 | 'name' : 'userdbctl', | |
21 | 'conditions' : ['ENABLE_USERDB'], | |
22 | 'sources' : files('userdbctl.c'), | |
23 | 'dependencies' : threads, | |
24 | }, | |
25 | ] | |
7e360799 | 26 | |
6c7fc5d5 FS |
27 | if conf.get('ENABLE_USERDB') == 1 and sshdconfdir != 'no' |
28 | custom_target( | |
29 | '20-systemd-userdb.conf', | |
30 | input : '20-systemd-userdb.conf.in', | |
31 | output : '20-systemd-userdb.conf', | |
32 | command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], | |
33 | install : true, | |
34 | install_dir : libexecdir / 'sshd_config.d') | |
7e360799 | 35 | |
6c7fc5d5 | 36 | install_emptydir(sshdconfdir) |
7e360799 | 37 | |
6c7fc5d5 FS |
38 | meson.add_install_script(sh, '-c', |
39 | ln_s.format(libexecdir / 'sshd_config.d' / '20-systemd-userdb.conf', sshdconfdir / '20-systemd-userdb.conf')) | |
40 | endif |