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