2020-03-24 14:48:36 +00:00
|
|
|
vz_driver_sources = [
|
|
|
|
'vz_driver.c',
|
|
|
|
'vz_utils.c',
|
|
|
|
'vz_sdk.c',
|
|
|
|
]
|
|
|
|
|
2020-07-27 07:10:31 +00:00
|
|
|
driver_source_files += files(vz_driver_sources)
|
2020-07-28 11:46:34 +00:00
|
|
|
stateful_driver_source_files += files(vz_driver_sources)
|
2020-07-27 07:10:31 +00:00
|
|
|
|
2020-03-24 14:48:36 +00:00
|
|
|
if conf.has('WITH_VZ')
|
|
|
|
vz_driver_impl = static_library(
|
|
|
|
'virt_driver_vz_impl',
|
|
|
|
[
|
|
|
|
vz_driver_sources,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
access_dep,
|
|
|
|
libnl_dep,
|
|
|
|
parallels_sdk_dep,
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
],
|
|
|
|
)
|
2020-06-22 13:42:28 +00:00
|
|
|
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_vz',
|
|
|
|
'link_whole': [
|
|
|
|
vz_driver_impl,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
2020-06-22 14:58:39 +00:00
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtvzd',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtvzd"',
|
|
|
|
'-DMODULE_NAME="vz"',
|
|
|
|
],
|
|
|
|
}
|
2020-07-28 09:54:39 +00:00
|
|
|
|
|
|
|
virt_daemon_confs += {
|
|
|
|
'name': 'virtvzd',
|
|
|
|
}
|
2020-07-27 07:03:25 +00:00
|
|
|
|
|
|
|
virt_daemon_units += {
|
|
|
|
'service': 'virtvzd',
|
|
|
|
'service_in': files('virtvzd.service.in'),
|
|
|
|
'name': 'Libvirt vz',
|
|
|
|
'sockprefix': 'virtvzd',
|
|
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
|
|
}
|
2020-07-28 10:11:31 +00:00
|
|
|
|
|
|
|
openrc_init_files += {
|
|
|
|
'name': 'virtvzd',
|
|
|
|
'in_file': files('virtvzd.init.in'),
|
|
|
|
}
|
2020-06-25 15:46:33 +00:00
|
|
|
|
|
|
|
sysconf_files += {
|
|
|
|
'name': 'virtvzd',
|
|
|
|
'file': files('virtvzd.sysconf'),
|
|
|
|
}
|
2020-03-24 14:48:36 +00:00
|
|
|
endif
|