1SUMMARY = "Implementation of a fully functional filesystem in a userspace program" 2DESCRIPTION = "FUSE (Filesystem in Userspace) is a simple interface for userspace \ 3 programs to export a virtual filesystem to the Linux kernel. FUSE \ 4 also aims to provide a secure method for non privileged users to \ 5 create and mount their own filesystem implementations. \ 6 " 7HOMEPAGE = "https://github.com/libfuse/libfuse" 8SECTION = "libs" 9LICENSE = "GPLv2 & LGPLv2" 10LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 11 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" 12 13SRC_URI = "https://github.com/libfuse/libfuse/releases/download/${BP}/${BP}.tar.gz \ 14 file://gold-unversioned-symbol.patch \ 15 file://aarch64.patch \ 16 file://0001-fuse-fix-the-return-value-of-help-option.patch \ 17 file://fuse2-0007-util-ulockmgr_server.c-conditionally-define-closefro.patch \ 18 file://fuse.conf \ 19" 20SRC_URI[md5sum] = "8000410aadc9231fd48495f7642f3312" 21SRC_URI[sha256sum] = "d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5" 22 23UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases" 24UPSTREAM_CHECK_REGEX = "fuse\-(?P<pver>2(\.\d+)+).tar.gz" 25 26CVE_PRODUCT = "fuse_project:fuse" 27 28inherit autotools pkgconfig update-rc.d systemd 29 30INITSCRIPT_NAME = "fuse" 31INITSCRIPT_PARAMS = "start 3 S . stop 20 0 6 ." 32 33SYSTEMD_SERVICE:${PN} = "" 34 35DEPENDS = "gettext-native" 36 37PACKAGES =+ "fuse-utils libulockmgr libulockmgr-dev" 38 39RPROVIDES:${PN}-dbg += "fuse-utils-dbg libulockmgr-dbg" 40 41RRECOMMENDS:${PN}:class-target = "kernel-module-fuse libulockmgr fuse-utils" 42 43FILES:${PN} += "${libdir}/libfuse.so.*" 44FILES:${PN}-dev += "${libdir}/libfuse*.la" 45 46FILES:libulockmgr = "${libdir}/libulockmgr.so.*" 47FILES:libulockmgr-dev += "${libdir}/libulock*.la" 48 49# Forbid auto-renaming to libfuse-utils 50FILES:fuse-utils = "${bindir} ${base_sbindir}" 51DEBIAN_NOAUTONAME:fuse-utils = "1" 52DEBIAN_NOAUTONAME:${PN}-dbg = "1" 53 54do_configure:prepend() { 55 # Make this explicit so overriding base_sbindir propagates properly. 56 export MOUNT_FUSE_PATH="${base_sbindir}" 57} 58 59do_install:append() { 60 rm -rf ${D}/dev 61 62 # systemd class remove the sysv_initddir only if systemd_system_unitdir 63 # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES 64 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then 65 rm -rf ${D}${sysconfdir}/init.d/ 66 fi 67 68 # Install systemd related configuration file 69 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 70 install -d ${D}${sysconfdir}/modules-load.d 71 install -m 0644 ${WORKDIR}/fuse.conf ${D}${sysconfdir}/modules-load.d 72 fi 73} 74 75do_install:append:class-nativesdk() { 76 install -d ${D}${sysconfdir} 77 mv ${D}/etc/* ${D}${sysconfdir}/ 78 rmdir ${D}/etc 79} 80 81BBCLASSEXTEND = "native nativesdk" 82