
Load the thunderbolt-net module if we see a host-to-host connection and configure the resulting ethernet connection automatically to be a link-local only one. The latter is done by setting a new udev property "NM_AUTO_DEFAULT_LINK_LOCAL_ONLY" which is picked up when we configure the connection for the device. https://github.com/NetworkManager/NetworkManager/pull/97
81 lines
1.9 KiB
Meson
81 lines
1.9 KiB
Meson
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',
|
|
'90-nm-thunderbolt.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
|