20-systemd-ssh-generator.conf expands SSHCONFDIR, which is bogus when we
build with -Dsshconfdir=no. Similarly, avoid expanding SSHDCONFDIR in
20-systemd-userdb.conf when building with -Dsshconfdir=no.
Follow-up
6c7fc5d5f2.
conf.set10('ENABLE_TIMEDATECTL', get_option('timedated') or get_option('timesyncd'))
+conf.set10('ENABLE_SSH_PROXY_CONFIG', sshconfdir != 'no')
+conf.set10('ENABLE_SSH_USERDB_CONFIG', conf.get('ENABLE_USERDB') == 1 and sshdconfdir != 'no')
+
conf.set10('SYSTEMD_SLOW_TESTS_DEFAULT', slow_tests)
#####################################################################
},
]
-if sshconfdir != 'no'
+if conf.get('ENABLE_SSH_PROXY_CONFIG') == 1
custom_target(
'20-systemd-ssh-proxy.conf',
input : '20-systemd-ssh-proxy.conf.in',
},
]
-if conf.get('ENABLE_USERDB') == 1 and sshdconfdir != 'no'
+if conf.get('ENABLE_SSH_USERDB_CONFIG') == 1
custom_target(
'20-systemd-userdb.conf',
input : '20-systemd-userdb.conf.in',
['static-nodes-permissions.conf', ''],
['systemd.conf', ''],
['var.conf', ''],
- ['20-systemd-userdb.conf', 'ENABLE_USERDB'],
- ['20-systemd-ssh-generator.conf', ''],
+ ['20-systemd-userdb.conf', 'ENABLE_SSH_USERDB_CONFIG'],
+ ['20-systemd-ssh-generator.conf', 'ENABLE_SSH_PROXY_CONFIG'],
]
foreach pair : in_files