mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
6e8f28dc25
We are generating a fresh UUID and storing it in the XML for the default network, but this is unnecessary because the network driver will automatically generate one if it's missing from the XML; the fact that we only do this if the uuidgen command happens to be available on the build machine is further proof that we can safely skip this step. This patch is best viewed with 'git show -w'. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
109 lines
2.2 KiB
Meson
109 lines
2.2 KiB
Meson
network_driver_sources = [
|
|
'bridge_driver.c',
|
|
'bridge_driver_platform.c',
|
|
]
|
|
|
|
driver_source_files += files(network_driver_sources)
|
|
stateful_driver_source_files += files(network_driver_sources)
|
|
|
|
network_leases_helper_sources = files(
|
|
'leaseshelper.c',
|
|
)
|
|
|
|
if conf.has('WITH_NETWORK')
|
|
network_driver_impl = static_library(
|
|
'virt_driver_network_impl',
|
|
[
|
|
network_driver_sources,
|
|
],
|
|
dependencies: [
|
|
access_dep,
|
|
libnl_dep,
|
|
src_dep,
|
|
],
|
|
include_directories: [
|
|
conf_inc_dir,
|
|
],
|
|
)
|
|
|
|
virt_modules += {
|
|
'name': 'virt_driver_network',
|
|
'deps': [
|
|
libnl_dep,
|
|
],
|
|
'link_whole': [
|
|
network_driver_impl,
|
|
],
|
|
'link_args': [
|
|
libvirt_no_undefined,
|
|
],
|
|
}
|
|
|
|
virt_daemons += {
|
|
'name': 'virtnetworkd',
|
|
'c_args': [
|
|
'-DDAEMON_NAME="virtnetworkd"',
|
|
'-DMODULE_NAME="network"',
|
|
],
|
|
}
|
|
|
|
virt_daemon_confs += {
|
|
'name': 'virtnetworkd',
|
|
}
|
|
|
|
virt_helpers += {
|
|
'name': 'libvirt_leaseshelper',
|
|
'sources': [
|
|
network_leases_helper_sources,
|
|
dtrace_gen_objects,
|
|
],
|
|
}
|
|
|
|
virt_daemon_units += {
|
|
'service': 'virtnetworkd',
|
|
'service_in': files('virtnetworkd.service.in'),
|
|
'name': 'Libvirt network',
|
|
'sockprefix': 'virtnetworkd',
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
'conflicts': true,
|
|
}
|
|
|
|
openrc_init_files += {
|
|
'name': 'virtnetworkd',
|
|
'in_file': files('virtnetworkd.init.in'),
|
|
}
|
|
|
|
sysconf_files += {
|
|
'name': 'virtnetworkd',
|
|
'file': files('virtnetworkd.sysconf'),
|
|
}
|
|
|
|
virt_install_dirs += [
|
|
localstatedir / 'lib' / 'libvirt' / 'network',
|
|
localstatedir / 'lib' / 'libvirt' / 'dnsmasq',
|
|
runstatedir / 'libvirt' / 'network',
|
|
]
|
|
|
|
configure_file(
|
|
input: 'default.xml.in',
|
|
output: '@BASENAME@',
|
|
copy: true,
|
|
install: true,
|
|
install_dir: confdir / 'qemu' / 'networks',
|
|
)
|
|
|
|
meson.add_install_script(
|
|
meson_python_prog.path(), python3_prog.path(), meson_install_symlink_prog.path(),
|
|
confdir / 'qemu' / 'networks' / 'autostart',
|
|
'../default.xml', 'default.xml',
|
|
)
|
|
|
|
if conf.has('WITH_FIREWALLD_ZONE')
|
|
install_data(
|
|
'libvirt.zone',
|
|
install_dir: prefix / 'lib' / 'firewalld' / 'zones',
|
|
rename: [ 'libvirt.xml' ],
|
|
)
|
|
endif
|
|
endif
|