]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: tweak meson conditionalization for ssh{d,}_config drop-ins 34297/head
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Sep 2024 11:59:10 +0000 (13:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 9 Sep 2024 17:03:48 +0000 (19:03 +0200)
Let's make sure "no" is an acceptable setting for these paths.

src/ssh-generator/meson.build
src/userdb/meson.build

index d5413f71ab50c7eb808ae29e42ad0c1334788b4f..d0473e2cbb3e92fa2b79eacc7c6965bb38f2b8ac 100644 (file)
@@ -20,7 +20,7 @@ if conf.get('ENABLE_SSH_PROXY_CONFIG') == 1
                 install : true,
                 install_dir : sshconfdir.startswith('/usr/') ? sshconfdir : libexecdir / 'ssh_config.d')
 
-        if not sshconfdir.startswith('/usr/')
+        if conf.get('LINK_SSH_PROXY_DROPIN') == 1
                 install_emptydir(sshconfdir)
 
                 meson.add_install_script(sh, '-c',
index 413f2bea9fd5409e3dd1d27e49c81289717a5e5a..f6d068500dc6ffbf7762c02917efd497e1304a64 100644 (file)
@@ -33,7 +33,7 @@ if conf.get('ENABLE_SSH_USERDB_CONFIG') == 1
                 install : true,
                 install_dir : sshdconfdir.startswith('/usr/') ? sshdconfdir : libexecdir / 'sshd_config.d')
 
-        if not sshdconfdir.startswith('/usr/')
+        if conf.get('LINK_SSHD_USERDB_DROPIN') == 1
                 install_emptydir(sshdconfdir)
 
                 meson.add_install_script(sh, '-c',