[dbus PATCH 1/2] configure: Make polkit rules directory configurable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is consistent with how we treat other directories where
we install data files.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 configure.ac     | 5 +++++
 data/Makefile.am | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index a52a108..af96b97 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,11 @@ LIBVIRT_ARG_WITH([DBUS_INTERFACES], [where D-Bus interfaces directory is],
 DBUS_INTERFACES_DIR="$with_dbus_interfaces"
 AC_SUBST([DBUS_INTERFACES_DIR])
 
+LIBVIRT_ARG_WITH([POLKIT_RULES], [directory for polkit rules],
+                 ['$(sysconfdir)/polkit-1/rules.d'])
+POLKIT_RULES_DIR="$with_polkit_rules"
+AC_SUBST(POLKIT_RULES_DIR)
+
 LIBVIRT_ARG_WITH([SYSTEM_USER], [username to run system instance as],
                  ['libvirtdbus'])
 SYSTEM_USER=$with_system_user
diff --git a/data/Makefile.am b/data/Makefile.am
index b0e6b31..8c5a8d2 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -15,7 +15,7 @@ system_policy_DATA = $(system_policy_files:.conf.in=.conf)
 
 polkit_files = \
 	system/libvirt-dbus.rules.in
-polkitdir = $(sysconfdir)/polkit-1/rules.d
+polkitdir = $(POLKIT_RULES_DIR)
 polkit_DATA = $(polkit_files:.rules.in=.rules)
 
 interfaces_files = \
-- 
2.17.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux