2020-06-18 01:14:10 +02:00
|
|
|
secret_driver_sources = [
|
|
|
|
'secret_driver.c',
|
|
|
|
]
|
|
|
|
|
2020-07-27 09:10:31 +02:00
|
|
|
driver_source_files += files(secret_driver_sources)
|
2020-07-28 13:46:34 +02:00
|
|
|
stateful_driver_source_files += files(secret_driver_sources)
|
2020-07-27 09:10:31 +02:00
|
|
|
|
2020-06-18 01:14:10 +02:00
|
|
|
if conf.has('WITH_SECRETS')
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_secret',
|
|
|
|
'sources': [
|
|
|
|
files(secret_driver_sources),
|
|
|
|
],
|
|
|
|
'deps': [
|
|
|
|
access_dep,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
2020-06-22 16:55:12 +02:00
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtsecretd',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtsecretd"',
|
|
|
|
'-DMODULE_NAME="secret"',
|
|
|
|
],
|
|
|
|
}
|
2020-07-28 11:54:39 +02:00
|
|
|
|
|
|
|
virt_daemon_confs += {
|
|
|
|
'name': 'virtsecretd',
|
|
|
|
}
|
2020-07-27 09:03:25 +02:00
|
|
|
|
|
|
|
virt_daemon_units += {
|
|
|
|
'service': 'virtsecretd',
|
|
|
|
'service_in': files('virtsecretd.service.in'),
|
|
|
|
'name': 'Libvirt secret',
|
|
|
|
'sockprefix': 'virtsecretd',
|
|
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
|
|
}
|
2020-07-28 12:11:31 +02:00
|
|
|
|
|
|
|
openrc_init_files += {
|
|
|
|
'name': 'virtsecretd',
|
|
|
|
'in_file': files('virtsecretd.init.in'),
|
|
|
|
}
|
2020-06-25 17:46:33 +02:00
|
|
|
|
|
|
|
sysconf_files += {
|
|
|
|
'name': 'virtsecretd',
|
|
|
|
'file': files('virtsecretd.sysconf'),
|
|
|
|
}
|
2020-06-18 01:14:10 +02:00
|
|
|
endif
|