]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: src/nwfilter: install nwfilter XML files
authorPavel Hrdina <phrdina@redhat.com>
Tue, 23 Jun 2020 11:51:26 +0000 (13:51 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
src/nwfilter/Makefile.inc.am
src/nwfilter/meson.build
src/nwfilter/xml/meson.build [new file with mode: 0644]

index 4df4756adf759cc63f8342875dd6c9f7328dbbcc..4d34d7f3ad160c36ccb3d57fc88d8f7b6b732244 100644 (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
index 5e0ded5be01635fc6f733d0f8e25e98b72411cc2..2459e29485e88237707f6ae514f2ff192eda3870 100644 (file)
@@ -64,4 +64,6 @@ if conf.has('WITH_NWFILTER')
     'name': 'virtnwfilterd',
     'file': files('virtnwfilterd.sysconf'),
   }
+
+  subdir('xml')
 endif
diff --git a/src/nwfilter/xml/meson.build b/src/nwfilter/xml/meson.build
new file mode 100644 (file)
index 0000000..95af75b
--- /dev/null
@@ -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')