2020-03-26 11:44:56 +00:00
|
|
|
interface_driver_sources = [
|
|
|
|
'interface_driver.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if conf.has('WITH_NETCF')
|
|
|
|
interface_driver_sources += 'interface_backend_netcf.c'
|
|
|
|
endif
|
|
|
|
|
|
|
|
if conf.has('WITH_UDEV')
|
|
|
|
interface_driver_sources += 'interface_backend_udev.c'
|
|
|
|
endif
|
|
|
|
|
2020-07-27 07:10:31 +00:00
|
|
|
driver_source_files += files(interface_driver_sources)
|
2020-07-28 11:46:34 +00:00
|
|
|
stateful_driver_source_files += files(interface_driver_sources)
|
2020-07-27 07:10:31 +00:00
|
|
|
|
2020-03-26 11:44:56 +00:00
|
|
|
if conf.has('WITH_INTERFACE')
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_interface',
|
|
|
|
'sources': [
|
|
|
|
files(interface_driver_sources),
|
|
|
|
],
|
|
|
|
'deps': [
|
|
|
|
access_dep,
|
|
|
|
libnl_dep,
|
|
|
|
netcf_dep,
|
|
|
|
udev_dep,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
2020-06-22 14:32:48 +00:00
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtinterfaced',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtinterfaced"',
|
|
|
|
'-DMODULE_NAME="interface"',
|
|
|
|
],
|
|
|
|
}
|
2020-07-28 09:54:39 +00:00
|
|
|
|
|
|
|
virt_daemon_confs += {
|
|
|
|
'name': 'virtinterfaced',
|
|
|
|
}
|
2020-07-27 07:03:25 +00:00
|
|
|
|
|
|
|
virt_daemon_units += {
|
|
|
|
'service': 'virtinterfaced',
|
|
|
|
'service_in': files('virtinterfaced.service.in'),
|
|
|
|
'name': 'Libvirt interface',
|
|
|
|
'sockprefix': 'virtinterfaced',
|
|
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
|
|
}
|
2020-07-28 10:11:31 +00:00
|
|
|
|
|
|
|
openrc_init_files += {
|
|
|
|
'name': 'virtinterfaced',
|
|
|
|
'in_file': files('virtinterfaced.init.in')
|
|
|
|
}
|
2020-06-25 15:46:33 +00:00
|
|
|
|
|
|
|
sysconf_files += {
|
|
|
|
'name': 'virtinterfaced',
|
|
|
|
'file': files('virtinterfaced.sysconf'),
|
|
|
|
}
|
2020-03-26 11:44:56 +00:00
|
|
|
endif
|