/[gentoo-x86]/sys-fs/ntfs3g/ntfs3g-2010.8.8.ebuild
Gentoo

Contents of /sys-fs/ntfs3g/ntfs3g-2010.8.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Jan 23 18:32:01 2012 UTC (2 years, 6 months ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Version bump, add new "extras" USE flag. Drop some older versions.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/ntfs3g/ntfs3g-2010.8.8.ebuild,v 1.9 2011/02/26 07:58:52 xarthisius Exp $
4
5 EAPI=2
6 inherit linux-info
7
8 MY_PN="${PN/3g/-3g}"
9 MY_P="${MY_PN}-${PV}"
10
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"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 ~arm ppc ppc64 ~sparc x86"
18 IUSE="acl debug suid udev +external-fuse"
19
20 RDEPEND="external-fuse? ( >=sys-fs/fuse-2.8.0 )"
21 DEPEND="${RDEPEND}
22 dev-util/pkgconfig
23 sys-apps/attr"
24
25 S="${WORKDIR}/${MY_P}"
26
27 pkg_setup() {
28 if use external-fuse && use kernel_linux; then
29 if kernel_is lt 2 6 9; then
30 die "Your kernel is too old."
31 fi
32 CONFIG_CHECK="~FUSE_FS"
33 FUSE_FS_WARNING="You need to have FUSE module built to use ntfs-3g"
34 linux-info_pkg_setup
35 fi
36 }
37
38 src_configure() {
39 econf \
40 --docdir="/usr/share/doc/${PF}" \
41 --enable-ldscript \
42 --disable-ldconfig \
43 --with-fuse=$(use external-fuse && echo external || echo internal) \
44 $(use_enable acl posix-acls) \
45 $(use_enable debug)
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" install || die "install failed"
50
51 dodoc AUTHORS ChangeLog CREDITS README
52
53 use suid && fperms u+s "/bin/${MY_PN}"
54
55 if use udev; then
56 insinto /etc/udev/rules.d/
57 doins "${FILESDIR}/99-ntfs3g.rules"
58 fi
59 }
60
61 pkg_postinst() {
62 if use suid; then
63 ewarn
64 ewarn "You have chosen to install ${PN} with the binary setuid root. This"
65 ewarn "means that if there any undetected vulnerabilities in the binary,"
66 ewarn "then local users may be able to gain root access on your machine."
67 ewarn
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20