[gvfs] build: Do not install polkit rules if admin backend is disabled



commit 44400ebefd2e7e7f14cc17969e3316ff34b70c97
Author: Laurent Bigonville <bigon bigon be>
Date:   Tue Nov 8 13:14:00 2016 +0100

    build: Do not install polkit rules if admin backend is disabled
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774100

 daemon/Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 60b9da2..a8b2958 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -148,6 +148,7 @@ EXTRA_DIST =                                \
        $(gvfs_gschemas_convert_dist)   \
        $(gsettings_ENUM_FILES)         \
        org.gtk.vfs.file-operations.policy.in.in \
+       org.gtk.vfs.file-operations.rules \
        $(NULL)
 
 DISTCLEANFILES = $(mount_DATA) $(noinst_DATA)
@@ -648,9 +649,11 @@ org.gtk.vfs.file-operations.policy.in: org.gtk.vfs.file-operations.policy.in.in
 org.gtk.vfs.file-operations.policy: org.gtk.vfs.file-operations.policy.in Makefile
        $(AM_V_GEN) XDG_DATA_DIRS=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ || cp 
$< $@
 
+if HAVE_ADMIN
 gvfs_polkit_actionsdir = $(datadir)/polkit-1/actions
 gvfs_polkit_actions_in_files = org.gtk.vfs.file-operations.policy.in
 gvfs_polkit_actions_DATA = org.gtk.vfs.file-operations.policy
 
 gvfs_polkit_rulesdir = $(datadir)/polkit-1/rules.d
-dist_gvfs_polkit_rules_DATA = org.gtk.vfs.file-operations.rules
+gvfs_polkit_rules_DATA = org.gtk.vfs.file-operations.rules
+endif


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