mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
66 lines
1.3 KiB
Meson
66 lines
1.3 KiB
Meson
node_device_driver_sources = [
|
|
'node_device_driver.c',
|
|
]
|
|
|
|
stateful_driver_source_files += files(node_device_driver_sources)
|
|
|
|
if conf.has('WITH_UDEV')
|
|
node_device_driver_sources += 'node_device_udev.c'
|
|
endif
|
|
|
|
driver_source_files += files(node_device_driver_sources)
|
|
|
|
if conf.has('WITH_NODE_DEVICES')
|
|
node_device_driver_impl = static_library(
|
|
'virt_driver_nodedev_impl',
|
|
[
|
|
node_device_driver_sources,
|
|
],
|
|
dependencies: [
|
|
access_dep,
|
|
libnl_dep,
|
|
pciaccess_dep,
|
|
src_dep,
|
|
udev_dep,
|
|
],
|
|
include_directories: [
|
|
conf_inc_dir,
|
|
],
|
|
)
|
|
|
|
virt_modules += {
|
|
'name': 'virt_driver_nodedev',
|
|
'link_whole': [
|
|
node_device_driver_impl,
|
|
],
|
|
'link_args': [
|
|
libvirt_no_undefined,
|
|
],
|
|
}
|
|
|
|
virt_daemons += {
|
|
'name': 'virtnodedevd',
|
|
'c_args': [
|
|
'-DDAEMON_NAME="virtnodedevd"',
|
|
'-DMODULE_NAME="nodedev"',
|
|
],
|
|
}
|
|
|
|
virt_daemon_confs += {
|
|
'name': 'virtnodedevd',
|
|
}
|
|
|
|
virt_daemon_units += {
|
|
'service': 'virtnodedevd',
|
|
'service_in': files('virtnodedevd.service.in'),
|
|
'name': 'Libvirt nodedev',
|
|
'sockprefix': 'virtnodedevd',
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
}
|
|
|
|
openrc_init_files += {
|
|
'name': 'virtnodedevd',
|
|
'in_file': files('virtnodedevd.init.in'),
|
|
}
|
|
endif
|