mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
meson: src/remote: install libvirt sysctl config 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
2ba64a44fb
commit
2ee04534af
@ -2,24 +2,6 @@
|
|||||||
|
|
||||||
if WITH_LIBVIRTD
|
if WITH_LIBVIRTD
|
||||||
|
|
||||||
if WITH_SYSCTL
|
|
||||||
# Use $(prefix)/lib rather than $(libdir), since man sysctl.d insists on
|
|
||||||
# /usr/lib/sysctl.d/ even when libdir is /usr/lib64
|
|
||||||
sysctldir = $(prefix)/lib/sysctl.d
|
|
||||||
|
|
||||||
install-sysctl:
|
|
||||||
$(MKDIR_P) $(DESTDIR)$(sysctldir)
|
|
||||||
$(INSTALL_DATA) $(srcdir)/remote/libvirtd.sysctl \
|
|
||||||
$(DESTDIR)$(sysctldir)/60-libvirtd.conf
|
|
||||||
|
|
||||||
uninstall-sysctl:
|
|
||||||
rm -f $(DESTDIR)$(sysctldir)/60-libvirtd.conf
|
|
||||||
rmdir $(DESTDIR)$(sysctldir) || :
|
|
||||||
|
|
||||||
INSTALL_DATA_LOCAL += install-sysctl
|
|
||||||
UNINSTALL_LOCAL += uninstall-sysctl
|
|
||||||
endif WITH_SYSCTL
|
|
||||||
|
|
||||||
if WITH_POLKIT
|
if WITH_POLKIT
|
||||||
polkitdir = $(datadir)/polkit-1
|
polkitdir = $(datadir)/polkit-1
|
||||||
polkitactionsdir = $(polkitdir)/actions
|
polkitactionsdir = $(polkitdir)/actions
|
||||||
|
@ -236,6 +236,16 @@ if conf.has('WITH_REMOTE')
|
|||||||
rename: [ name ],
|
rename: [ name ],
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
if conf.has('WITH_SYSCTL')
|
||||||
|
# Use $(prefix)/lib rather than $(libdir), since man sysctl.d insists on
|
||||||
|
# /usr/lib/sysctl.d/ even when libdir is /usr/lib64
|
||||||
|
install_data(
|
||||||
|
'libvirtd.sysctl',
|
||||||
|
install_dir: prefix / 'lib' / 'sysctl.d',
|
||||||
|
rename: [ '60-libvirtd.conf' ],
|
||||||
|
)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user