blob: d7a692352b3595932c98019ffa3f97576e1ac954 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "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 = "GPLv2 & LGPLv2"
10LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
11 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
12
13SRC_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 \
Patrick Williams213cb262021-08-07 19:21:33 -050017 file://fuse2-0007-util-ulockmgr_server.c-conditionally-define-closefro.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018 file://fuse.conf \
19"
Brad Bishop15ae2502019-06-18 21:44:24 -040020SRC_URI[md5sum] = "8000410aadc9231fd48495f7642f3312"
21SRC_URI[sha256sum] = "d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022
23UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases"
24UPSTREAM_CHECK_REGEX = "fuse\-(?P<pver>2(\.\d+)+).tar.gz"
25
Andrew Geisslereef63862021-01-29 15:58:13 -060026CVE_PRODUCT = "fuse_project:fuse"
27
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080028inherit autotools pkgconfig update-rc.d systemd
29
30INITSCRIPT_NAME = "fuse"
31INITSCRIPT_PARAMS = "start 3 S . stop 20 0 6 ."
32
Patrick Williams213cb262021-08-07 19:21:33 -050033SYSTEMD_SERVICE:${PN} = ""
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034
35DEPENDS = "gettext-native"
36
37PACKAGES =+ "fuse-utils libulockmgr libulockmgr-dev"
38
Patrick Williams213cb262021-08-07 19:21:33 -050039RPROVIDES:${PN}-dbg += "fuse-utils-dbg libulockmgr-dbg"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080040
Patrick Williams213cb262021-08-07 19:21:33 -050041RRECOMMENDS:${PN}:class-target = "kernel-module-fuse libulockmgr fuse-utils"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080042
Patrick Williams213cb262021-08-07 19:21:33 -050043FILES:${PN} += "${libdir}/libfuse.so.*"
44FILES:${PN}-dev += "${libdir}/libfuse*.la"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080045
Patrick Williams213cb262021-08-07 19:21:33 -050046FILES:libulockmgr = "${libdir}/libulockmgr.so.*"
47FILES:libulockmgr-dev += "${libdir}/libulock*.la"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080048
49# Forbid auto-renaming to libfuse-utils
Patrick Williams213cb262021-08-07 19:21:33 -050050FILES:fuse-utils = "${bindir} ${base_sbindir}"
51DEBIAN_NOAUTONAME:fuse-utils = "1"
52DEBIAN_NOAUTONAME:${PN}-dbg = "1"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080053
Patrick Williams213cb262021-08-07 19:21:33 -050054do_configure:prepend() {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080055 # Make this explicit so overriding base_sbindir propagates properly.
56 export MOUNT_FUSE_PATH="${base_sbindir}"
57}
58
Patrick Williams213cb262021-08-07 19:21:33 -050059do_install:append() {
Brad Bishop779d0ac2019-09-27 08:23:48 -040060 rm -rf ${D}/dev
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080061
62 # systemd class remove the sysv_initddir only if systemd_system_unitdir
63 # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES
64 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then
65 rm -rf ${D}${sysconfdir}/init.d/
66 fi
67
68 # Install systemd related configuration file
69 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
70 install -d ${D}${sysconfdir}/modules-load.d
71 install -m 0644 ${WORKDIR}/fuse.conf ${D}${sysconfdir}/modules-load.d
72 fi
73}
74
Patrick Williams213cb262021-08-07 19:21:33 -050075do_install:append:class-nativesdk() {
Brad Bishop779d0ac2019-09-27 08:23:48 -040076 install -d ${D}${sysconfdir}
77 mv ${D}/etc/* ${D}${sysconfdir}/
78 rmdir ${D}/etc
79}
80
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080081BBCLASSEXTEND = "native nativesdk"