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