1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: always install network example files

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-11-23 00:06:29 +01:00 committed by Frantisek Sumsal
parent a935f3dd7e
commit 205a30fa13

View 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',