mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-06 18:05:45 +00:00
meson: tools: install libvirt-guests sysconf file
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
bef5b283ca
commit
444f2e70e7
@ -31,24 +31,15 @@ install-data-local: install-systemd install-nss \
|
|||||||
uninstall-local: uninstall-systemd uninstall-nss \
|
uninstall-local: uninstall-systemd uninstall-nss \
|
||||||
uninstall-bash-completion
|
uninstall-bash-completion
|
||||||
|
|
||||||
install-sysconfig:
|
|
||||||
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/sysconfig
|
|
||||||
$(INSTALL_DATA) $(srcdir)/libvirt-guests.sysconf \
|
|
||||||
$(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests
|
|
||||||
|
|
||||||
uninstall-sysconfig:
|
|
||||||
rm -f $(DESTDIR)$(sysconfdir)/sysconfig/libvirt-guests
|
|
||||||
rmdir $(DESTDIR)$(sysconfdir)/sysconfig ||:
|
|
||||||
|
|
||||||
SYSTEMD_UNIT_DIR = $(prefix)/lib/systemd/system
|
SYSTEMD_UNIT_DIR = $(prefix)/lib/systemd/system
|
||||||
|
|
||||||
if LIBVIRT_INIT_SCRIPT_SYSTEMD
|
if LIBVIRT_INIT_SCRIPT_SYSTEMD
|
||||||
install-systemd: libvirt-guests.service install-sysconfig libvirt-guests.sh
|
install-systemd: libvirt-guests.service libvirt-guests.sh
|
||||||
$(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
|
$(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
|
||||||
$(INSTALL_DATA) libvirt-guests.service \
|
$(INSTALL_DATA) libvirt-guests.service \
|
||||||
$(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
|
$(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
|
||||||
|
|
||||||
uninstall-systemd: uninstall-sysconfig
|
uninstall-systemd:
|
||||||
rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
|
rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirt-guests.service
|
||||||
rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) ||:
|
rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) ||:
|
||||||
|
|
||||||
|
@ -269,3 +269,11 @@ configure_file(
|
|||||||
install_dir: libexecdir,
|
install_dir: libexecdir,
|
||||||
install_mode: 'rwxrwxr-x',
|
install_mode: 'rwxrwxr-x',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if init_script == 'systemd'
|
||||||
|
install_data(
|
||||||
|
'libvirt-guests.sysconf',
|
||||||
|
install_dir: sysconfdir / 'sysconfig',
|
||||||
|
rename: 'libvirt-guests',
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user