Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 1 | DESCRIPTION = "The NTFS-3G driver is an open source, freely available NTFS driver for Linux with read and write support." |
| 2 | HOMEPAGE = "http://www.ntfs-3g.org/" |
| 3 | DEPENDS = "fuse libgcrypt" |
| 4 | PROVIDES = "ntfsprogs ntfs-3g" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 5 | LICENSE = "GPL-2.0-only & LGPL-2.0-only" |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 7 | file://COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a" |
| 8 | |
| 9 | SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \ |
| 10 | file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \ |
| 11 | " |
| 12 | S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}" |
| 13 | SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae" |
| 14 | SRC_URI[sha256sum] = "55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb" |
| 15 | |
| 16 | UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/" |
| 17 | UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz" |
| 18 | |
| 19 | inherit autotools pkgconfig |
| 20 | |
| 21 | PACKAGECONFIG ??= "" |
| 22 | PACKAGECONFIG[uuid] = "--with-uuid,--without-uuid,util-linux" |
| 23 | |
| 24 | # required or it calls ldconfig at install step |
| 25 | EXTRA_OEMAKE = "LDCONFIG=echo" |
| 26 | |
| 27 | PACKAGES =+ "ntfs-3g ntfsprogs libntfs-3g" |
| 28 | |
| 29 | FILES:ntfs-3g = "${base_sbindir}/*.ntfs-3g ${bindir}/ntfs-3g* ${base_sbindir}/mount.ntfs" |
| 30 | RDEPENDS:ntfs-3g += "fuse" |
| 31 | RRECOMMENDS:ntfs-3g = "util-linux-mount" |
| 32 | |
| 33 | FILES:ntfsprogs = "${base_sbindir}/* ${bindir}/* ${sbindir}/*" |
| 34 | FILES:libntfs-3g = "${libdir}/*${SOLIBS}" |
| 35 | |
| 36 | do_install:append() { |
| 37 | # Standard mount will execute the program /sbin/mount.TYPE when called. |
| 38 | # Add a symbolic link to let mount find ntfs. |
| 39 | ln -sf mount.ntfs-3g ${D}${base_sbindir}/mount.ntfs |
| 40 | rmdir ${D}${libdir}/ntfs-3g |
| 41 | |
| 42 | # Handle when usrmerge is in effect. Some files are installed to /sbin |
| 43 | # regardless of the value of ${base_sbindir}. |
| 44 | if [ "${base_sbindir}" != /sbin ] && [ -d ${D}/sbin ]; then |
| 45 | mkdir -p ${D}${base_sbindir} |
| 46 | mv ${D}/sbin/* ${D}${base_sbindir} |
| 47 | rmdir ${D}/sbin |
| 48 | fi |
| 49 | } |
| 50 | |
| 51 | # Satisfy the -dev runtime dependency |
| 52 | ALLOW_EMPTY:${PN} = "1" |