Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [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 = "GPL-2.0-only & LGPL-2.0-only" |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 10 | LIC_FILES_CHKSUM = " \ |
| 11 | file://GPL2.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 12 | file://LGPL2.txt;md5=4fbd65380cdd255951079008b364516c \ |
| 13 | file://LICENSE;md5=a55c12a2d7d742ecb41ca9ae0a6ddc66 \ |
| 14 | " |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 15 | |
| 16 | SRC_URI = "https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.gz \ |
| 17 | " |
| 18 | SRC_URI[sha256sum] = "f797055d9296b275e981f5f62d4e32e089614fc253d1ef2985851025b8a0ce87" |
| 19 | |
| 20 | S = "${WORKDIR}/fuse-${PV}" |
| 21 | |
| 22 | UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases" |
| 23 | UPSTREAM_CHECK_REGEX = "fuse\-(?P<pver>3(\.\d+)+).tar.xz" |
| 24 | |
| 25 | CVE_PRODUCT = "fuse_project:fuse" |
| 26 | |
| 27 | inherit meson pkgconfig ptest |
| 28 | |
| 29 | SRC_URI += " \ |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 30 | file://run-ptest \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 31 | " |
| 32 | |
| 33 | RDEPENDS:${PN}-ptest += " \ |
Patrick Williams | 3965356 | 2024-03-01 08:54:02 -0600 | [diff] [blame] | 34 | python3-pytest \ |
| 35 | python3-looseversion \ |
Patrick Williams | 3965356 | 2024-03-01 08:54:02 -0600 | [diff] [blame] | 36 | bash \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 37 | " |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 38 | RRECOMMENDS:${PN}-ptest += " kernel-module-cuse" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 39 | |
| 40 | do_install_ptest() { |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 41 | install -d ${D}${PTEST_PATH}/test |
| 42 | install -d ${D}${PTEST_PATH}/example |
| 43 | install -d ${D}${PTEST_PATH}/util |
| 44 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 45 | |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 46 | example_excutables=`find ${B}/example -type f -executable` |
| 47 | util_excutables=`find ${B}/util -type f -executable` |
| 48 | test_excutables=`find ${B}/test -type f -executable` |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 49 | |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 50 | for e in $example_excutables |
| 51 | do |
| 52 | cp -rf $e ${D}${PTEST_PATH}/example/ |
| 53 | done |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 54 | |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 55 | for e in $util_excutables |
| 56 | do |
| 57 | cp -rf $e ${D}${PTEST_PATH}/util/ |
| 58 | done |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 59 | |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 60 | for e in $test_excutables |
| 61 | do |
| 62 | cp -rf $e ${D}${PTEST_PATH}/test |
| 63 | done |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | DEPENDS = "udev" |
| 67 | |
| 68 | PACKAGES =+ "fuse3-utils" |
| 69 | |
| 70 | RPROVIDES:${PN}-dbg += "fuse3-utils-dbg" |
| 71 | |
| 72 | RRECOMMENDS:${PN}:class-target = "kernel-module-fuse fuse3-utils" |
| 73 | |
| 74 | FILES:${PN} += "${libdir}/libfuse3.so.*" |
| 75 | FILES:${PN}-dev += "${libdir}/libfuse3*.la" |
| 76 | |
| 77 | # Forbid auto-renaming to libfuse3-utils |
| 78 | FILES:fuse3-utils = "${bindir} ${base_sbindir}" |
| 79 | DEBIAN_NOAUTONAME:fuse3-utils = "1" |
| 80 | DEBIAN_NOAUTONAME:${PN}-dbg = "1" |
| 81 | |
| 82 | do_install:append() { |
| 83 | rm -rf ${D}${base_prefix}/dev |
| 84 | } |