mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
d7aa78c32f
This is useful for development where overwriting files out side the configured prefix will affect the host as well as stateless systems such as NixOS that don't let packages install to /etc but handle configuration on their own. Alternative to https://github.com/systemd/systemd/pull/17501 tested with: $ mkdir inst build && cd build $ meson \ -Dcreate-log-dirs=false \ -Dsysvrcnd-path=$(realpath ../inst)/etc/rc.d \ -Dsysvinit-path=$(realpath ../inst)/etc/init.d \ -Drootprefix=$(realpath ../inst) \ -Dinstall-sysconfdir=false \ --prefix=$(realpath ../inst) .. $ ninja install
21 lines
746 B
Meson
21 lines
746 B
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
if conf.get('ENABLE_NETWORKD') == 1
|
|
install_data('80-container-host0.network',
|
|
'80-container-ve.network',
|
|
'80-container-vz.network',
|
|
'80-vm-vt.network',
|
|
'80-wifi-adhoc.network',
|
|
'80-wifi-ap.network.example',
|
|
'80-wifi-station.network.example',
|
|
install_dir : networkdir)
|
|
|
|
if install_sysconfdir
|
|
meson.add_install_script('sh', '-c',
|
|
mkdir_p.format(join_paths(sysconfdir, 'systemd/network')))
|
|
endif
|
|
endif
|
|
|
|
install_data('99-default.link',
|
|
install_dir : networkdir)
|