mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
meson: tools: generate virt-pki-validate 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
f6c14d4c1f
commit
1c7ef61b23
@ -24,7 +24,6 @@ STANDALONE_CPPFLAGS = -I$(top_srcdir)
|
|||||||
confdir = $(sysconfdir)/libvirt
|
confdir = $(sysconfdir)/libvirt
|
||||||
conf_DATA =
|
conf_DATA =
|
||||||
|
|
||||||
bin_SCRIPTS = virt-pki-validate
|
|
||||||
libexec_SCRIPTS = libvirt-guests.sh
|
libexec_SCRIPTS = libvirt-guests.sh
|
||||||
|
|
||||||
if WITH_SANLOCK
|
if WITH_SANLOCK
|
||||||
@ -35,11 +34,6 @@ if WITH_LOGIN_SHELL
|
|||||||
conf_DATA += virt-login-shell.conf
|
conf_DATA += virt-login-shell.conf
|
||||||
endif WITH_LOGIN_SHELL
|
endif WITH_LOGIN_SHELL
|
||||||
|
|
||||||
virt-pki-validate: virt-pki-validate.in Makefile
|
|
||||||
$(AM_V_GEN)sed -e 's|[@]sysconfdir@|$(sysconfdir)|g' \
|
|
||||||
-e 's|[@]VERSION@|$(VERSION)|g' \
|
|
||||||
< $< > $@ || (rm $@ && exit 1) && chmod +x $@
|
|
||||||
|
|
||||||
virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
|
virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
|
||||||
$(AM_V_GEN)sed -e 's|[@]sysconfdir@|$(sysconfdir)|' \
|
$(AM_V_GEN)sed -e 's|[@]sysconfdir@|$(sysconfdir)|' \
|
||||||
-e 's|[@]localstatedir@|$(localstatedir)|' < $< > $@ \
|
-e 's|[@]localstatedir@|$(localstatedir)|' < $< > $@ \
|
||||||
|
@ -223,6 +223,7 @@ executable(
|
|||||||
tools_conf = configuration_data()
|
tools_conf = configuration_data()
|
||||||
tools_conf.set('VERSION', meson.project_version())
|
tools_conf.set('VERSION', meson.project_version())
|
||||||
tools_conf.set('schemadir', pkgdatadir / 'schemas')
|
tools_conf.set('schemadir', pkgdatadir / 'schemas')
|
||||||
|
tools_conf.set('sysconfdir', sysconfdir)
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
input: 'virt-xml-validate.in',
|
input: 'virt-xml-validate.in',
|
||||||
@ -232,3 +233,12 @@ configure_file(
|
|||||||
install_dir: bindir,
|
install_dir: bindir,
|
||||||
install_mode: 'rwxrwxr-x',
|
install_mode: 'rwxrwxr-x',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
input: 'virt-pki-validate.in',
|
||||||
|
output: 'virt-pki-validate',
|
||||||
|
configuration: tools_conf,
|
||||||
|
install: true,
|
||||||
|
install_dir: bindir,
|
||||||
|
install_mode: 'rwxrwxr-x',
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user