1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils linux-info udev toolchain-funcs autotools
9 MY_P=${MY_PN}_ntfsprogs-${PV}
11 DESCRIPTION="Open source read-write NTFS driver that runs under FUSE"
12 HOMEPAGE="http://www.tuxera.com/community/ntfs-3g-download/"
13 SRC_URI="http://tuxera.com/opensource/${MY_P}.tgz"
17 KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
18 IUSE="acl debug +external-fuse ntfsdecrypt +ntfsprogs static-libs suid xattr"
20 RDEPEND="!<sys-apps/util-linux-2.20.1-r2
23 >=dev-libs/libgcrypt-1.2.2:0
24 >=net-libs/gnutls-1.4.4
26 external-fuse? ( >=sys-fs/fuse-2.8.0 )"
31 S="${WORKDIR}/${MY_P}"
33 DOCS="AUTHORS ChangeLog CREDITS README"
36 "${FILESDIR}"/${PN}-2014.2.15-no-split-usr.patch
37 "${FILESDIR}"/${PN}-2014.2.15-dont-put-things-in-root.patch
38 "${FILESDIR}"/${P}-update-fuse-lite-to-support-ioctls.patch
39 "${FILESDIR}"/${P}-implement-fstrim.patch
40 "${FILESDIR}"/${P}-fix-fstrim-applied-to-partitons.patch
44 if use external-fuse && use kernel_linux; then
45 if kernel_is lt 2 6 9; then
46 die "Your kernel is too old."
48 CONFIG_CHECK="~FUSE_FS"
49 FUSE_FS_WARNING="You need to have FUSE module built to use ntfs-3g"
55 epatch "${PATCHES[@]}"
63 --prefix="${EPREFIX}"/usr \
64 --exec-prefix="${EPREFIX}"/usr \
65 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
69 $(use_enable acl posix-acls) \
70 $(use_enable xattr xattr-mappings) \
71 $(use_enable ntfsdecrypt crypto) \
72 $(use_enable ntfsprogs) \
75 $(use_enable static-libs static) \
76 --with-fuse=$(usex external-fuse external internal)
82 use suid && fperms u+s /usr/bin/${MY_PN}
83 udev_dorules "${FILESDIR}"/99-ntfs3g.rules
86 dosym mount.ntfs-3g /usr/sbin/mount.ntfs #374197