mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-06 20:00:05 +00:00
meson: tools: generate virt-sanlock-cleanup script
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
1c7ef61b23
commit
5e3f2ec502
@ -26,19 +26,10 @@ conf_DATA =
|
||||
|
||||
libexec_SCRIPTS = libvirt-guests.sh
|
||||
|
||||
if WITH_SANLOCK
|
||||
sbin_SCRIPTS = virt-sanlock-cleanup
|
||||
endif WITH_SANLOCK
|
||||
|
||||
if WITH_LOGIN_SHELL
|
||||
conf_DATA += virt-login-shell.conf
|
||||
endif WITH_LOGIN_SHELL
|
||||
|
||||
virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
|
||||
$(AM_V_GEN)sed -e 's|[@]sysconfdir@|$(sysconfdir)|' \
|
||||
-e 's|[@]localstatedir@|$(localstatedir)|' < $< > $@ \
|
||||
|| (rm $@ && exit 1) && chmod +x $@
|
||||
|
||||
noinst_LTLIBRARIES =
|
||||
|
||||
BUILT_SOURCES =
|
||||
|
@ -222,6 +222,7 @@ executable(
|
||||
|
||||
tools_conf = configuration_data()
|
||||
tools_conf.set('VERSION', meson.project_version())
|
||||
tools_conf.set('localstatedir', localstatedir)
|
||||
tools_conf.set('schemadir', pkgdatadir / 'schemas')
|
||||
tools_conf.set('sysconfdir', sysconfdir)
|
||||
|
||||
@ -242,3 +243,14 @@ configure_file(
|
||||
install_dir: bindir,
|
||||
install_mode: 'rwxrwxr-x',
|
||||
)
|
||||
|
||||
if conf.has('WITH_SANLOCK')
|
||||
configure_file(
|
||||
input: 'virt-sanlock-cleanup.in',
|
||||
output: 'virt-sanlock-cleanup',
|
||||
configuration: tools_conf,
|
||||
install: true,
|
||||
install_dir: sbindir,
|
||||
install_mode: 'rwxrwxr-x',
|
||||
)
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user