| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
|
| 3 |
configure_file( |
| 4 |
input: 'server.conf.in', |
| 5 |
output: '@BASENAME@', |
| 6 |
install_dir: join_paths(nm_datadir, 'doc', nm_name, 'examples'), |
| 7 |
configuration: data_conf, |
| 8 |
) |
| 9 |
|
| 10 |
if install_systemdunitdir |
| 11 |
services = [ |
| 12 |
'NetworkManager-dispatcher.service', |
| 13 |
'NetworkManager.service', |
| 14 |
'nm-priv-helper.service', |
| 15 |
'NetworkManager-wait-online.service', |
| 16 |
'NetworkManager-config-initrd.service', |
| 17 |
'NetworkManager-initrd.service', |
| 18 |
'NetworkManager-wait-online-initrd.service', |
| 19 |
] |
| 20 |
|
| 21 |
foreach service: services |
| 22 |
configure_file( |
| 23 |
input: service + '.in', |
| 24 |
output: service, |
| 25 |
install_dir: systemd_systemdsystemunitdir, |
| 26 |
configuration: data_conf, |
| 27 |
) |
| 28 |
|
| 29 |
test( |
| 30 |
'check-' + service, |
| 31 |
find_program(join_paths(source_root, 'src/tests/check-systemd-unit.sh')), |
| 32 |
args: [ join_paths(meson.current_build_dir(), service) ], |
| 33 |
) |
| 34 |
endforeach |
| 35 |
|
| 36 |
if enable_ovs |
| 37 |
install_data( |
| 38 |
'NetworkManager-ovs.conf', |
| 39 |
install_dir: join_paths(systemd_systemdsystemunitdir, 'NetworkManager.service.d'), |
| 40 |
) |
| 41 |
endif |
| 42 |
endif |
| 43 |
|
| 44 |
if install_udevdir |
| 45 |
data = files( |
| 46 |
'84-nm-drivers.rules', |
| 47 |
'85-nm-unmanaged.rules', |
| 48 |
'90-nm-thunderbolt.rules', |
| 49 |
) |
| 50 |
|
| 51 |
install_data( |
| 52 |
data, |
| 53 |
install_dir: join_paths(udev_udevdir, 'rules.d'), |
| 54 |
) |
| 55 |
endif |
| 56 |
|
| 57 |
if enable_polkit |
| 58 |
policy = 'org.freedesktop.NetworkManager.policy' |
| 59 |
|
| 60 |
policy_in = configure_file( |
| 61 |
input: policy + '.in.in', |
| 62 |
output: '@BASENAME@', |
| 63 |
configuration: data_conf, |
| 64 |
) |
| 65 |
|
| 66 |
i18n.merge_file( |
| 67 |
input: policy_in, |
| 68 |
output: '@BASENAME@', |
| 69 |
po_dir: po_dir, |
| 70 |
install: true, |
| 71 |
install_dir: polkit_policydir, |
| 72 |
) |
| 73 |
|
| 74 |
if polkit_noauth_group != '' |
| 75 |
configure_file( |
| 76 |
input: 'org.freedesktop.NetworkManager.rules.in', |
| 77 |
output: '@BASENAME@', |
| 78 |
install_dir: polkit_rulesdir, |
| 79 |
configuration: {'NM_POLKIT_NOAUTH_GROUP': polkit_noauth_group}, |
| 80 |
) |
| 81 |
endif |
| 82 |
endif |
| 83 |
|
| 84 |
if enable_firewalld_zone |
| 85 |
install_data( |
| 86 |
'nm-shared.xml', |
| 87 |
install_dir: join_paths(nm_prefix, 'lib', 'firewalld', 'zones') |
| 88 |
) |
| 89 |
endif |