diff options
Diffstat (limited to 'meta-oe/recipes-support/fuse/fuse3_3.17.4.bb')
| -rw-r--r-- | meta-oe/recipes-support/fuse/fuse3_3.17.4.bb | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/fuse/fuse3_3.17.4.bb b/meta-oe/recipes-support/fuse/fuse3_3.17.4.bb new file mode 100644 index 0000000000..256c663852 --- /dev/null +++ b/meta-oe/recipes-support/fuse/fuse3_3.17.4.bb | |||
| @@ -0,0 +1,99 @@ | |||
| 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" | ||
| 10 | LIC_FILES_CHKSUM = " \ | ||
| 11 | file://GPL2.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 12 | file://LGPL2.txt;md5=4fbd65380cdd255951079008b364516c \ | ||
| 13 | file://LICENSE;md5=a55c12a2d7d742ecb41ca9ae0a6ddc66 \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI = "https://github.com/libfuse/libfuse/releases/download/fuse-${PV}/fuse-${PV}.tar.gz" | ||
| 17 | SRC_URI[sha256sum] = "df9e40ae927b73dc702d0bce7925c0c618af47ad0b13204fbf2be66e54d8528b" | ||
| 18 | |||
| 19 | S = "${UNPACKDIR}/fuse-${PV}" | ||
| 20 | |||
| 21 | UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases" | ||
| 22 | UPSTREAM_CHECK_REGEX = "releases/tag/fuse-(?P<pver>\d+(\.\d+)+)" | ||
| 23 | |||
| 24 | CVE_PRODUCT = "fuse_project:fuse" | ||
| 25 | |||
| 26 | inherit meson pkgconfig ptest | ||
| 27 | |||
| 28 | SRC_URI += " \ | ||
| 29 | file://run-ptest \ | ||
| 30 | file://fuse3.conf \ | ||
| 31 | " | ||
| 32 | #python3-compile for filecmp module | ||
| 33 | RDEPENDS:${PN}-ptest += " \ | ||
| 34 | python3-compile \ | ||
| 35 | python3-pytest \ | ||
| 36 | python3-looseversion \ | ||
| 37 | bash \ | ||
| 38 | " | ||
| 39 | RRECOMMENDS:${PN}-ptest += " kernel-module-cuse" | ||
| 40 | |||
| 41 | do_install_ptest() { | ||
| 42 | install -d ${D}${PTEST_PATH}/test | ||
| 43 | install -d ${D}${PTEST_PATH}/example | ||
| 44 | install -d ${D}${PTEST_PATH}/util | ||
| 45 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | ||
| 46 | |||
| 47 | example_excutables=`find ${B}/example -type f -executable` | ||
| 48 | util_excutables=`find ${B}/util -type f -executable` | ||
| 49 | test_excutables=`find ${B}/test -type f -executable` | ||
| 50 | |||
| 51 | for e in $example_excutables | ||
| 52 | do | ||
| 53 | cp -rf $e ${D}${PTEST_PATH}/example/ | ||
| 54 | done | ||
| 55 | |||
| 56 | for e in $util_excutables | ||
| 57 | do | ||
| 58 | cp -rf $e ${D}${PTEST_PATH}/util/ | ||
| 59 | done | ||
| 60 | |||
| 61 | for e in $test_excutables | ||
| 62 | do | ||
| 63 | cp -rf $e ${D}${PTEST_PATH}/test | ||
| 64 | done | ||
| 65 | } | ||
| 66 | |||
| 67 | DEPENDS = "udev" | ||
| 68 | |||
| 69 | PACKAGES =+ "fuse3-utils" | ||
| 70 | |||
| 71 | RPROVIDES:${PN}-dbg += "fuse3-utils-dbg" | ||
| 72 | |||
| 73 | RRECOMMENDS:${PN}:class-target = "kernel-module-fuse fuse3-utils" | ||
| 74 | |||
| 75 | FILES:${PN} += "${libdir}/libfuse3.so.*" | ||
| 76 | FILES:${PN}-dev += "${libdir}/libfuse3*.la" | ||
| 77 | |||
| 78 | # Forbid auto-renaming to libfuse3-utils | ||
| 79 | FILES:fuse3-utils = "${bindir} ${base_sbindir}" | ||
| 80 | DEBIAN_NOAUTONAME:fuse3-utils = "1" | ||
| 81 | DEBIAN_NOAUTONAME:${PN}-dbg = "1" | ||
| 82 | |||
| 83 | SYSTEMD_SERVICE:${PN} = "" | ||
| 84 | |||
| 85 | do_install:append() { | ||
| 86 | rm -rf ${D}${base_prefix}/dev | ||
| 87 | |||
| 88 | # systemd class remove the sysv_initddir only if systemd_system_unitdir | ||
| 89 | # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES | ||
| 90 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then | ||
| 91 | rm -rf ${D}${sysconfdir}/init.d/ | ||
| 92 | fi | ||
| 93 | |||
| 94 | # Install systemd related configuration file | ||
| 95 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 96 | install -d ${D}${sysconfdir}/modules-load.d | ||
| 97 | install -m 0644 ${UNPACKDIR}/fuse3.conf ${D}${sysconfdir}/modules-load.d | ||
| 98 | fi | ||
| 99 | } | ||
