Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -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 = "http://fuse.sf.net" |
| 8 | SECTION = "libs" |
| 9 | LICENSE = "GPLv2 & LGPLv2" |
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 11 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" |
| 12 | |
| 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/fuse/fuse-${PV}.tar.gz \ |
| 14 | file://gold-unversioned-symbol.patch \ |
| 15 | file://aarch64.patch \ |
| 16 | file://0001-fuse-fix-the-return-value-of-help-option.patch \ |
| 17 | file://fuse.conf \ |
| 18 | " |
| 19 | SRC_URI[md5sum] = "ecb712b5ffc6dffd54f4a405c9b372d8" |
| 20 | SRC_URI[sha256sum] = "6be9c0bff6af8c677414935f31699ea5a7f8f5f791cfa5205be02ea186b97ce1" |
| 21 | |
| 22 | inherit autotools pkgconfig update-rc.d systemd |
| 23 | |
| 24 | INITSCRIPT_NAME = "fuse" |
| 25 | |
| 26 | SYSTEMD_SERVICE_${PN} = "" |
| 27 | |
| 28 | DEPENDS = "gettext-native" |
| 29 | |
| 30 | PACKAGES =+ "fuse-utils-dbg fuse-utils libulockmgr libulockmgr-dev libulockmgr-dbg" |
| 31 | |
| 32 | # Fusermount requires features from the util-linux version of mount. |
| 33 | RDEPENDS_${PN} += "util-linux-mount" |
| 34 | |
| 35 | RRECOMMENDS_${PN} = "kernel-module-fuse libulockmgr fuse-utils" |
| 36 | |
| 37 | FILES_${PN} += "${libdir}/libfuse.so.*" |
| 38 | FILES_${PN}-dev += "${libdir}/libfuse*.la" |
| 39 | |
| 40 | FILES_libulockmgr = "${libdir}/libulockmgr.so.*" |
| 41 | FILES_libulockmgr-dev += "${libdir}/libulock*.la" |
| 42 | FILES_libulockmgr-dbg += "${libdir}/.debug/libulock*" |
| 43 | |
| 44 | # Forbid auto-renaming to libfuse-utils |
| 45 | FILES_fuse-utils = "${bindir} ${base_sbindir}" |
| 46 | FILES_fuse-utils-dbg = "${bindir}/.debug ${base_sbindir}/.debug" |
| 47 | DEBIAN_NOAUTONAME_fuse-utils = "1" |
| 48 | DEBIAN_NOAUTONAME_fuse-utils-dbg = "1" |
| 49 | |
| 50 | do_install_append() { |
| 51 | rm -rf ${D}${base_prefix}/dev |
| 52 | |
| 53 | # systemd class remove the sysv_initddir only if systemd_system_unitdir |
| 54 | # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES |
| 55 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'false', 'true', d)}; then |
| 56 | rm -rf ${D}${sysconfdir}/init.d/ |
| 57 | fi |
| 58 | |
| 59 | # Install systemd related configuration file |
| 60 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 61 | install -d ${D}${sysconfdir}/modules-load.d |
| 62 | install -m 0644 ${WORKDIR}/fuse.conf ${D}${sysconfdir}/modules-load.d |
| 63 | fi |
| 64 | } |