meson: src/nwfilter: install nwfilter XML files

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:
Pavel Hrdina 2020-06-23 13:51:26 +02:00
parent 7f1e2fa7a6
commit 2ba64a44fb
3 changed files with 24 additions and 9 deletions

View File

@ -1,14 +1,5 @@
# vim: filetype=automake
NWFILTER_XML_FILES = $(wildcard $(srcdir)/nwfilter/xml/*.xml)
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(NWFILTER_DRIVER_SOURCES))
STATEFUL_DRIVER_SOURCE_FILES += \
$(addprefix $(srcdir)/,$(NWFILTER_DRIVER_SOURCES))
if WITH_NWFILTER
nwfilterxmldir = $(sysconfdir)/libvirt/nwfilter
nwfilterxml_DATA = $(NWFILTER_XML_FILES)
endif WITH_NWFILTER

View File

@ -64,4 +64,6 @@ if conf.has('WITH_NWFILTER')
'name': 'virtnwfilterd',
'file': files('virtnwfilterd.sysconf'),
}
subdir('xml')
endif

View File

@ -0,0 +1,22 @@
nwfilter_xml_files = [
'allow-arp.xml',
'allow-dhcp-server.xml',
'allow-dhcp.xml',
'allow-incoming-ipv4.xml',
'allow-ipv4.xml',
'clean-traffic-gateway.xml',
'clean-traffic.xml',
'no-arp-ip-spoofing.xml',
'no-arp-mac-spoofing.xml',
'no-arp-spoofing.xml',
'no-ip-multicast.xml',
'no-ip-spoofing.xml',
'no-mac-broadcast.xml',
'no-mac-spoofing.xml',
'no-other-l2-traffic.xml',
'no-other-rarp-traffic.xml',
'qemu-announce-self-rarp.xml',
'qemu-announce-self.xml',
]
install_data(nwfilter_xml_files, install_dir: sysconfdir / 'libvirt' / 'nwfilter')