Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Implementation of a fully functional filesystem in a userspace program" |
| 2 | DESCRIPTION = "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 | " |
| 7 | HOMEPAGE = "https://github.com/libfuse/libfuse" |
| 8 | SECTION = "libs" |
| 9 | LICENSE = "GPLv2 & LGPLv2" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 11 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" |
| 12 | |
| 13 | SRC_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://fuse.conf \ |
| 18 | " |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 19 | SRC_URI[md5sum] = "8000410aadc9231fd48495f7642f3312" |
| 20 | SRC_URI[sha256sum] = "d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | |
| 22 | UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases" |
| 23 | UPSTREAM_CHECK_REGEX = "fuse\-(?P<pver>2(\.\d+)+).tar.gz" |
| 24 | |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame^] | 25 | CVE_PRODUCT = "fuse_project:fuse" |
| 26 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 27 | inherit autotools pkgconfig update-rc.d systemd |
| 28 | |
| 29 | INITSCRIPT_NAME = "fuse" |
| 30 | INITSCRIPT_PARAMS = "start 3 S . stop 20 0 6 ." |
| 31 | |
| 32 | SYSTEMD_SERVICE_${PN} = "" |
| 33 | |
| 34 | DEPENDS = "gettext-native" |
| 35 | |
| 36 | PACKAGES =+ "fuse-utils libulockmgr libulockmgr-dev" |
| 37 | |
| 38 | RPROVIDES_${PN}-dbg += "fuse-utils-dbg libulockmgr-dbg" |
| 39 | |
| 40 | RRECOMMENDS_${PN}_class-target = "kernel-module-fuse libulockmgr fuse-utils" |
| 41 | |
| 42 | FILES_${PN} += "${libdir}/libfuse.so.*" |
| 43 | FILES_${PN}-dev += "${libdir}/libfuse*.la" |
| 44 | |
| 45 | FILES_libulockmgr = "${libdir}/libulockmgr.so.*" |
| 46 | FILES_libulockmgr-dev += "${libdir}/libulock*.la" |
| 47 | |
| 48 | # Forbid auto-renaming to libfuse-utils |
| 49 | FILES_fuse-utils = "${bindir} ${base_sbindir}" |
| 50 | DEBIAN_NOAUTONAME_fuse-utils = "1" |
| 51 | DEBIAN_NOAUTONAME_${PN}-dbg = "1" |
| 52 | |
| 53 | do_configure_prepend() { |
| 54 | # Make this explicit so overriding base_sbindir propagates properly. |
| 55 | export MOUNT_FUSE_PATH="${base_sbindir}" |
| 56 | } |
| 57 | |
| 58 | do_install_append() { |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 59 | rm -rf ${D}/dev |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 60 | |
| 61 | # systemd class remove the sysv_initddir only if systemd_system_unitdir |
| 62 | # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES |
| 63 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then |
| 64 | rm -rf ${D}${sysconfdir}/init.d/ |
| 65 | fi |
| 66 | |
| 67 | # Install systemd related configuration file |
| 68 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 69 | install -d ${D}${sysconfdir}/modules-load.d |
| 70 | install -m 0644 ${WORKDIR}/fuse.conf ${D}${sysconfdir}/modules-load.d |
| 71 | fi |
| 72 | } |
| 73 | |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 74 | do_install_append_class-nativesdk() { |
| 75 | install -d ${D}${sysconfdir} |
| 76 | mv ${D}/etc/* ${D}${sysconfdir}/ |
| 77 | rmdir ${D}/etc |
| 78 | } |
| 79 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 80 | BBCLASSEXTEND = "native nativesdk" |