summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Fontaine <fontaine.fabrice@gmail.com>2018-10-19 22:13:12 +0200
committerPeter Korsgaard <peter@korsgaard.com>2018-10-20 18:03:50 +0200
commit1f595f3cf6af9867322b2b631cec3dbda42a43c7 (patch)
treee375982645e08e6c5082cb697d6406f62c8fc57c
parent87d6d05f1532e34f7623579342d51e05e2cb0eae (diff)
downloadbuildroot-1f595f3cf6af9867322b2b631cec3dbda42a43c7.tar.gz
buildroot-1f595f3cf6af9867322b2b631cec3dbda42a43c7.zip
gvfs: enable admin backend
Enable admin backend if libcap and polkit are available Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/gvfs/gvfs.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/gvfs/gvfs.mk b/package/gvfs/gvfs.mk
index 82683d7da1..4ad66b8a6a 100644
--- a/package/gvfs/gvfs.mk
+++ b/package/gvfs/gvfs.mk
@@ -20,7 +20,6 @@ GVFS_CONF_ENV = ac_cv_path_LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-con
# Most of these are missing library support
GVFS_CONF_OPTS = \
--disable-afc \
- --disable-admin \
--disable-cdda \
--disable-gcr \
--disable-gdu \
@@ -66,6 +65,13 @@ else
GVFS_CONF_OPTS += --disable-bluray
endif
+ifeq ($(BR2_PACKAGE_LIBCAP)$(BR2_PACKAGE_POLKIT),yy)
+GVFS_DEPENDENCIES += libcap polkit
+GVFS_CONF_OPTS += --enable-admin
+else
+GVFS_CONF_OPTS += --disable-admin
+endif
+
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
GVFS_DEPENDENCIES += libfuse
GVFS_CONF_OPTS += --enable-fuse
OpenPOWER on IntegriCloud