aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Norbert Lange <nolange79@gmail.com>2019-03-15 14:30:30 +0100
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-03-20 23:28:47 +0100
commitea62ff85b59aa1ff7757787061eb451b4b4780df (patch)
treeef6377e91419bf7079ace519b0df9d4bc20b3753 /package
parentc37b81af64dd8d6729325d8edbe633e6a186bb3d (diff)
downloadbuildroot-ea62ff85b59aa1ff7757787061eb451b4b4780df.tar.gz
buildroot-ea62ff85b59aa1ff7757787061eb451b4b4780df.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>
Diffstat (limited to 'package')
-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))