1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 MY_P=${PN/3g-ar/-3g}-${PV/_pre/AR.}
9 DESCRIPTION="Open source read-write NTFS driver that runs under FUSE"
10 HOMEPAGE="http://www.ntfs-3g.org"
11 SRC_URI="http://pagesperso-orange.fr/b.andre/${MY_P}.tgz"
15 KEYWORDS="~amd64 ~x86"
18 [[ ${KERNEL} == "linux" ]] && IUSE="${IUSE} fuse"
20 RDEPEND="hal? ( sys-apps/hal )"
24 !kernel_linux? ( sys-fs/fuse )
25 fuse? ( sys-fs/fuse )"
27 S="${WORKDIR}/${MY_P}"
30 if use kernel_linux ; then
31 CONFIG_CHECK="~FUSE_FS"
32 WARNING_FUSE_FS="This build of ntfs-3g will continue but your kernel needs to be built
33 with FUSE support for it to function at runtime."
41 use fuse && myconf="--with-fuse=external"
44 --docdir="/usr/share/doc/${PF}" \
49 emake || die "emake failed"
53 emake DESTDIR="${D}" install || die "install failed"
55 prepalldocs || die "prepalldocs failed"
56 dodoc AUTHORS ChangeLog CREDITS || die "dodoc failed"
58 use suid && fperms u+s "/bin/${MY_PN}" || die "could not chage file permisions"
61 insinto /etc/hal/fdi/policy/
62 newins "${FILESDIR}/10-ntfs3g.fdi.2009" "10-ntfs3g.fdi" || die "installation of 10-ntfs3g.fdi.2009 failed"
68 ewarn "This is an advanced features release of the ntfs-3g package. It"
69 ewarn "passes standard tests on i386 and x86_64 CPUs but users should"
70 ewarn "still backup their data. More info at:"
71 ewarn "http://pagesperso-orange.fr/b.andre/advanced-ntfs-3g.html"
74 if use fuse || ! use kernel_linux ; then
76 ewarn "ntfs-3g has been built with external FUSE support."
77 ewarn "If your system's FUSE package gets updated please rebuild ntfs-3g,"
78 ewarn "as failure to do so may break ntfs-3g functionality."
84 ewarn "You have chosen to install ntfs-3g with the binary setuid root. This"
85 ewarn "means that if there any undetected vulnerabilities in the binary,"
86 ewarn "then local users may be able to gain root access on your machine."