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 | |
| 25 | inherit autotools pkgconfig update-rc.d systemd |
| 26 | |
| 27 | INITSCRIPT_NAME = "fuse" |
| 28 | INITSCRIPT_PARAMS = "start 3 S . stop 20 0 6 ." |
| 29 | |
| 30 | SYSTEMD_SERVICE_${PN} = "" |
| 31 | |
| 32 | DEPENDS = "gettext-native" |
| 33 | |
| 34 | PACKAGES =+ "fuse-utils libulockmgr libulockmgr-dev" |
| 35 | |
| 36 | RPROVIDES_${PN}-dbg += "fuse-utils-dbg libulockmgr-dbg" |
| 37 | |
| 38 | RRECOMMENDS_${PN}_class-target = "kernel-module-fuse libulockmgr fuse-utils" |
| 39 | |
| 40 | FILES_${PN} += "${libdir}/libfuse.so.*" |
| 41 | FILES_${PN}-dev += "${libdir}/libfuse*.la" |
| 42 | |
| 43 | FILES_libulockmgr = "${libdir}/libulockmgr.so.*" |
| 44 | FILES_libulockmgr-dev += "${libdir}/libulock*.la" |
| 45 | |
| 46 | # Forbid auto-renaming to libfuse-utils |
| 47 | FILES_fuse-utils = "${bindir} ${base_sbindir}" |
| 48 | DEBIAN_NOAUTONAME_fuse-utils = "1" |
| 49 | DEBIAN_NOAUTONAME_${PN}-dbg = "1" |
| 50 | |
| 51 | do_configure_prepend() { |
| 52 | # Make this explicit so overriding base_sbindir propagates properly. |
| 53 | export MOUNT_FUSE_PATH="${base_sbindir}" |
| 54 | } |
| 55 | |
| 56 | do_install_append() { |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 57 | rm -rf ${D}/dev |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 58 | |
| 59 | # systemd class remove the sysv_initddir only if systemd_system_unitdir |
| 60 | # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES |
| 61 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then |
| 62 | rm -rf ${D}${sysconfdir}/init.d/ |
| 63 | fi |
| 64 | |
| 65 | # Install systemd related configuration file |
| 66 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 67 | install -d ${D}${sysconfdir}/modules-load.d |
| 68 | install -m 0644 ${WORKDIR}/fuse.conf ${D}${sysconfdir}/modules-load.d |
| 69 | fi |
| 70 | } |
| 71 | |
Brad Bishop | 779d0ac | 2019-09-27 08:23:48 -0400 | [diff] [blame] | 72 | do_install_append_class-nativesdk() { |
| 73 | install -d ${D}${sysconfdir} |
| 74 | mv ${D}/etc/* ${D}${sysconfdir}/ |
| 75 | rmdir ${D}/etc |
| 76 | } |
| 77 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 78 | BBCLASSEXTEND = "native nativesdk" |