mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
meson: src/network: install firewalld zone 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
c957791859
commit
7f1e2fa7a6
@ -23,7 +23,6 @@
|
||||
BUILT_SOURCES =
|
||||
DRIVER_SOURCE_FILES =
|
||||
STATEFUL_DRIVER_SOURCE_FILES =
|
||||
INSTALL_DATA_DIRS =
|
||||
INSTALL_DATA_LOCAL =
|
||||
UNINSTALL_LOCAL =
|
||||
SYM_FILES =
|
||||
@ -201,8 +200,6 @@ libvirt_functions.stp: $(RPC_PROBE_FILES) $(top_srcdir)/scripts/gensystemtap.py
|
||||
|
||||
endif WITH_DTRACE_PROBES
|
||||
|
||||
install-data-local: $(INSTALL_DATA_LOCAL) \
|
||||
$(INSTALL_DATA_DIRS:%=install-data-%)
|
||||
install-data-local: $(INSTALL_DATA_LOCAL)
|
||||
|
||||
uninstall-local: $(UNINSTALL_LOCAL) \
|
||||
$(INSTALL_DATA_DIRS:%=uninstall-data-%)
|
||||
uninstall-local: $(UNINSTALL_LOCAL)
|
||||
|
@ -3,25 +3,3 @@
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(NETWORK_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(NETWORK_DRIVER_SOURCES))
|
||||
|
||||
if WITH_NETWORK
|
||||
INSTALL_DATA_DIRS += network
|
||||
|
||||
install-data-network:
|
||||
if WITH_FIREWALLD_ZONE
|
||||
$(MKDIR_P) "$(DESTDIR)$(prefix)/lib/firewalld/zones"
|
||||
$(INSTALL_DATA) $(srcdir)/network/libvirt.zone \
|
||||
$(DESTDIR)$(prefix)/lib/firewalld/zones/libvirt.xml
|
||||
endif WITH_FIREWALLD_ZONE
|
||||
|
||||
uninstall-data-network:
|
||||
if WITH_FIREWALLD_ZONE
|
||||
rm -f $(DESTDIR)$(prefix)/lib/firewalld/zones/libvirt.xml
|
||||
endif WITH_FIREWALLD_ZONE
|
||||
|
||||
endif WITH_NETWORK
|
||||
|
||||
.PHONY: \
|
||||
install-data-network \
|
||||
uninstall-data-network \
|
||||
$(NULL)
|
||||
|
@ -114,4 +114,12 @@ if conf.has('WITH_NETWORK')
|
||||
confdir / 'qemu' / 'networks' / 'autostart',
|
||||
'../default.xml', 'default.xml',
|
||||
)
|
||||
|
||||
if conf.has('WITH_FIREWALLD_ZONE')
|
||||
install_data(
|
||||
'libvirt.zone',
|
||||
install_dir: prefix / 'lib' / 'firewalld' / 'zones',
|
||||
rename: [ 'libvirt.xml' ],
|
||||
)
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user