libvirt/src/vz/meson.build
Olaf Hering 8eb4461645 remove sysconfig files
sysconfig files are owned by the admin of the host. They have the
liberty to put anything they want into these files. This makes it
difficult to provide different built-in defaults.

Remove the sysconfig file and place the current desired default into
the service file.

Local customizations can now go either into /etc/sysconfig/name
or /etc/systemd/system/name.service.d/my-knobs.conf

Attempt to handle upgrades in libvirt.spec.
Dirty files which are marked as %config will be renamed to file.rpmsave.
To restore them automatically, move stale .rpmsave files away, and
catch any new rpmsave files in %posttrans.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2022-01-17 18:20:59 +01:00

62 lines
1.1 KiB
Meson

vz_driver_sources = [
'vz_driver.c',
'vz_utils.c',
'vz_sdk.c',
]
driver_source_files += files(vz_driver_sources)
stateful_driver_source_files += files(vz_driver_sources)
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,
],
)
virt_modules += {
'name': 'virt_driver_vz',
'link_whole': [
vz_driver_impl,
],
'link_args': [
libvirt_no_undefined,
],
}
virt_daemons += {
'name': 'virtvzd',
'c_args': [
'-DDAEMON_NAME="virtvzd"',
'-DMODULE_NAME="vz"',
],
}
virt_daemon_confs += {
'name': 'virtvzd',
}
virt_daemon_units += {
'service': 'virtvzd',
'service_in': files('virtvzd.service.in'),
'name': 'Libvirt vz',
'sockprefix': 'virtvzd',
'sockets': [ 'main', 'ro', 'admin' ],
}
openrc_init_files += {
'name': 'virtvzd',
'in_file': files('virtvzd.init.in'),
}
endif