1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
data_conf = configuration_data()
data_conf.set('bindir', nm_bindir)
data_conf.set('libexecdir', nm_libexecdir)
data_conf.set('sbindir', nm_sbindir)
data_conf.set('sysconfdir', nm_sysconfdir)
data_conf.set('DISTRO_NETWORK_SERVICE', (enable_ifcfg_rh ? 'network.service' : ''))
data_conf.set('NM_MODIFY_SYSTEM_POLICY', (enable_modify_system ? 'yes' : 'auth_admin_keep'))
server = 'server.conf'
configure_file(
input: server + '.in',
output: server,
install: true,
install_dir: join_paths(nm_datadir, 'doc', nm_name, 'examples'),
configuration: data_conf
)
if install_systemd_unit_dir
services = [
['NetworkManager-dispatcher.service', systemd_system_unit_dir],
['NetworkManager.service', systemd_system_unit_dir],
['org.freedesktop.NetworkManager.service', dbus_sys_dir]
]
if have_systemd_200
services += [['NetworkManager-wait-online.service', systemd_system_unit_dir]]
else
services += [['NetworkManager-wait-online-systemd-pre200.service', systemd_system_unit_dir]]
endif
foreach service: services
configure_file(
input: service[0] + '.in',
output: service[0],
install: true,
install_dir: service[1],
configuration: data_conf
)
endforeach
if enable_ovs
install_data(
'NetworkManager-ovs.conf',
install_dir: join_paths(systemd_system_unit_dir, 'NetworkManager.service.d')
)
endif
endif
if install_udev_dir
data = files(
'84-nm-drivers.rules',
'85-nm-unmanaged.rules'
)
install_data(
data,
install_dir: join_paths(udev_dir, 'rules.d')
)
endif
if enable_polkit
policy = 'org.freedesktop.NetworkManager.policy'
policy_in = configure_file(
input: policy + '.in.in',
output: policy + '.in',
configuration: data_conf
)
custom_target(
policy,
input: policy_in,
output: policy,
command: intltool_xml_cmd,
install: true,
install_dir: polkit_dir
)
endif
|