1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit linux-info versionator
8 MY_PN="${PN/3g-ar/-3g}"
9 MY_PV="$(get_version_component_range 1-3)AC.$(get_version_component_range 4)"
10 MY_P="${MY_PN}-${MY_PV}"
12 DESCRIPTION="NTFS-3G variant supporting ACLs, junction points, compression and more"
13 HOMEPAGE="http://pagesperso-orange.fr/b.andre/advanced-ntfs-3g.html"
14 SRC_URI="http://pagesperso-orange.fr/b.andre/${MY_P}.tgz"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="acl debug external-fuse hal suid udev"
21 RDEPEND="external-fuse? ( >=sys-fs/fuse-2.8.0 )
27 S="${WORKDIR}/${MY_P}"
30 if use external-fuse && use kernel_linux; then
31 if kernel_is lt 2 6 9; then
32 die "Your kernel is too old."
34 CONFIG_CHECK="~FUSE_FS"
35 FUSE_FS_WARNING="You need to have FUSE module built to use ntfs-3g"
42 --docdir="/usr/share/doc/${PF}" \
45 --with-fuse=$(use external-fuse && echo external || echo internal) \
46 $(use_enable acl posix-acls) \
51 emake DESTDIR="${D}" install || die "install failed"
53 prepalldocs || die "prepalldocs failed"
54 dodoc AUTHORS ChangeLog CREDITS || die "dodoc failed"
56 use suid && { fperms u+s "/bin/${MY_PN}" || die "set suid failed" ; }
59 insinto /etc/hal/fdi/policy/
60 newins "${FILESDIR}/10-ntfs3g.fdi.2009-r1" "10-ntfs3g.fdi" || die "hal fdi install failed"
64 insinto /etc/udev/rules.d/
65 doins "${FILESDIR}/99-ntfs3g.rules" || die "udev rules install failed"
70 ewarn "This is an advanced features release of the ntfs-3g package. It"
71 ewarn "passes standard tests on i386 and x86_64 CPUs but users should"
72 ewarn "still backup their data. More info at:"
73 ewarn "http://pagesperso-orange.fr/b.andre/advanced-ntfs-3g.html"
77 ewarn "You have chosen to install ${PN} with the binary setuid root. This"
78 ewarn "means that if there any undetected vulnerabilities in the binary,"
79 ewarn "then local users may be able to gain root access on your machine."