# 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
--- /dev/null
+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')