]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: always install network example files
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 Nov 2023 23:06:29 +0000 (00:06 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 23 Nov 2023 10:02:36 +0000 (10:02 +0000)
I started working on integrating this in the Fedora package and realized that
the example files should be installed regardless of the renamed files when
default-network=true is used. This is because the renamed files become part of
a different package, and we want to have the other files which are used as
documentation in the main package anyway.

network/meson.build

index 4f17f7385edd1318e53072774f02246ee3fb4e0f..2a472f4f516b3d6b94ffce85122c14a64d39a500 100644 (file)
@@ -18,6 +18,10 @@ if conf.get('ENABLE_NETWORKD') == 1
                 '80-wifi-station.network.example',
         )
 
+        install_data(
+                example_network_files,
+                install_dir : networkdir)
+
         if get_option('default-network')
                 foreach f : example_network_files
                         install_data(
@@ -25,12 +29,7 @@ if conf.get('ENABLE_NETWORKD') == 1
                                 rename : fs.replace_suffix(fs.name(f), ''),
                                 install_dir : networkdir)
                 endforeach
-        else
-                install_data(
-                        example_network_files,
-                        install_dir : networkdir)
         endif
-
 endif
 
 install_data('99-default.link',