]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
examples: Install Polkit examples
authorAndrea Bolognani <abologna@redhat.com>
Wed, 22 May 2019 11:10:12 +0000 (13:10 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 3 Jun 2019 15:27:28 +0000 (17:27 +0200)
Right now we install the files in RPMs only, and we include
them in the -daemon package which is probably not the best
option either. Start installing them via autotools; the RPMs
will get them automatically in the -docs package.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
examples/Makefile.am
libvirt.spec.in

index 67d959c6a360162b77cbb63c7a7161443bac9c07..4122219e22416c623daf453ea2a26d6845316297 100644 (file)
 
 FILTERS = $(wildcard $(srcdir)/xml/nwfilter/*.xml)
 
+POLKIT_EXAMPLES = \
+       $(wildcard $(srcdir)/polkit/*.rules) \
+       $(NULL)
+
 EXTRA_DIST = \
        lxcconvert/virt-lxc-convert \
-       polkit/libvirt-acl.rules \
+       $(POLKIT_EXAMPLES) \
        $(wildcard $(srcdir)/systemtap/*.stp) \
        $(FILTERS) \
        $(wildcard $(srcdir)/xml/storage/*.xml) \
@@ -99,6 +103,9 @@ endif WITH_NWFILTER
 
 examplesdir = $(docdir)/examples
 
+polkitexamplesdir = $(examplesdir)/polkit
+polkitexamples_DATA = $(POLKIT_EXAMPLES)
+
 install-data-local:
        for p in $(EXAMPLES); do \
                d=$$(dirname $$p); \
index ab10dfd9c09b8a072e7b141dda6f002ca15b307a..59a2a0cb245b56393dac1d32f1362746edea507c 100644 (file)
@@ -1568,8 +1568,6 @@ exit 0
 %{_mandir}/man8/virtlockd.8*
 %{_mandir}/man7/virkey*.7*
 
-%doc examples/polkit/*.rules
-
 %files daemon-config-network
 %dir %{_datadir}/libvirt/networks/
 %{_datadir}/libvirt/networks/default.xml