aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Norbert Lange <nolange79@gmail.com>2019-03-15 14:30:30 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-04-05 22:32:39 +0200
commit4c5958664e4357c9a995415995966c38f21df145 (patch)
tree74660df3ee172b72eaf11dbdb1a7b2139082debb
parentef4aa122297524d5f42e05209a6e99c737ccff2f (diff)
downloadbuildroot-4c5958664e4357c9a995415995966c38f21df145.tar.gz
buildroot-4c5958664e4357c9a995415995966c38f21df145.tar.bz2
package/libfuse: Install udev rules and set permissions
This fixes some omissions from the installation. Install the udev rules. Tell buildroot about the fuse device. Apply setuid permissions on the fusermount tool. Signed-off-by: Norbert Lange <norbert.lange@andritz.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> (cherry picked from commit ea62ff85b59aa1ff7757787061eb451b4b4780df) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libfuse/libfuse.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/package/libfuse/libfuse.mk b/package/libfuse/libfuse.mk
index e8a79a3166..84027ebedb 100644
--- a/package/libfuse/libfuse.mk
+++ b/package/libfuse/libfuse.mk
@@ -14,11 +14,22 @@ LIBFUSE_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
LIBFUSE_CONF_OPTS = \
--disable-example \
--enable-lib \
- --enable-util
+ --enable-util \
+ UDEV_RULES_PATH=/lib/udev/rules.d
define LIBFUSE_INSTALL_TARGET_CMDS
cp -dpf $(STAGING_DIR)/usr/bin/fusermount $(TARGET_DIR)/usr/bin/
cp -dpf $(STAGING_DIR)/usr/lib/libfuse.so* $(TARGET_DIR)/usr/lib/
+ mkdir -p $(TARGET_DIR)/lib/udev/rules.d
+ cp $(STAGING_DIR)/lib/udev/rules.d/*-fuse.rules $(TARGET_DIR)/lib/udev/rules.d
+endef
+
+define LIBFUSE_DEVICES
+ /dev/fuse c 666 0 0 10 229 0 0 -
+endef
+
+define LIBFUSE_PERMISSIONS
+ /usr/bin/fusermount f 4755 0 0 - - - - -
endef
$(eval $(autotools-package))