Lines 2-9
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/ntfs3g/ntfs3g-2009.2.1.ebuild,v 1.1 2009/02/12 16:21:24 chutzpah Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/ntfs3g/ntfs3g-2009.2.1.ebuild,v 1.1 2009/02/12 16:21:24 chutzpah Exp $ |
4 |
|
4 |
|
5 |
MY_PN="${PN/3g/-3g}" |
5 |
inherit linux-info |
6 |
MY_P="${MY_PN}-${PV}" |
6 |
|
|
|
7 |
MY_P="${PN/3g/-3g}-${PV}" |
7 |
|
8 |
|
8 |
DESCRIPTION="Open source read-write NTFS driver that runs under FUSE" |
9 |
DESCRIPTION="Open source read-write NTFS driver that runs under FUSE" |
9 |
HOMEPAGE="http://www.ntfs-3g.org" |
10 |
HOMEPAGE="http://www.ntfs-3g.org" |
Lines 14-44
Link Here
|
14 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
15 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
15 |
IUSE="debug hal suid" |
16 |
IUSE="debug hal suid" |
16 |
|
17 |
|
17 |
RDEPEND="hal? ( sys-apps/hal )" |
18 |
[[ ${KERNEL} == "linux" ]] && IUSE="${IUSE} fuse" |
|
|
19 |
|
20 |
RDEPEND="hal? ( sys-apps/hal ) |
21 |
!kernel_linux? ( sys-fs/fuse ) |
22 |
kernel_linux? ( fuse? ( sys-fs/fuse ) )" |
23 |
|
18 |
DEPEND="${RDEPEND}" |
24 |
DEPEND="${RDEPEND}" |
19 |
|
25 |
|
20 |
S="${WORKDIR}/${MY_P}" |
26 |
S="${WORKDIR}/${MY_P}" |
21 |
|
27 |
|
|
|
28 |
pkg_setup() { |
29 |
if use kernel_linux ; then |
30 |
CONFIG_CHECK="~FUSE_FS" |
31 |
WARNING_FUSE_FS="This build of ntfs-3g will continue but your kernel needs to be built |
32 |
with FUSE support for it to function at runtime." |
33 |
linux-info_pkg_setup |
34 |
fi |
35 |
} |
36 |
|
22 |
src_compile() { |
37 |
src_compile() { |
|
|
38 |
local myconf |
39 |
|
40 |
use kernel_linux && use fuse && myconf="--with-fuse=external" |
41 |
|
23 |
econf \ |
42 |
econf \ |
24 |
--docdir="/usr/share/doc/${PF}" \ |
43 |
--docdir="/usr/share/doc/${PF}" \ |
25 |
--enable-ldscript \ |
44 |
--enable-ldscript \ |
26 |
--disable-ldconfig \ |
45 |
--disable-ldconfig \ |
27 |
$(use_enable debug) |
46 |
$(use_enable debug) \ |
|
|
47 |
${myconf} |
28 |
emake || die "emake failed" |
48 |
emake || die "emake failed" |
29 |
} |
49 |
} |
30 |
|
50 |
|
31 |
src_install() { |
51 |
src_install() { |
32 |
emake DESTDIR="${D}" install || die "install failed" |
52 |
emake DESTDIR="${D}" install || die "install failed" |
33 |
|
53 |
|
34 |
prepalldocs |
54 |
prepalldocs || die "prepalldocs failed" |
35 |
dodoc AUTHORS ChangeLog CREDITS |
55 |
dodoc AUTHORS ChangeLog CREDITS || die "dodoc failed" |
36 |
|
56 |
|
37 |
use suid && fperms u+s "/bin/${MY_PN}" |
57 |
use suid && { fperms u+s "/bin/${PN/3g/-3g}" || die "could not change file permisions"; } |
38 |
|
58 |
|
39 |
if use hal; then |
59 |
if use hal; then |
40 |
insinto /etc/hal/fdi/policy/ |
60 |
insinto /etc/hal/fdi/policy/ |
41 |
newins "${FILESDIR}/10-ntfs3g.fdi.2009" "10-ntfs3g.fdi" |
61 |
newins "${FILESDIR}/10-ntfs3g.fdi.2009" "10-ntfs3g.fdi" || die "installation of 10-ntfs3g.fdi.2009 failed" |
42 |
fi |
62 |
fi |
43 |
} |
63 |
} |
44 |
|
64 |
|
Lines 50-53
Link Here
|
50 |
ewarn "then local users may be able to gain root access on your machine." |
70 |
ewarn "then local users may be able to gain root access on your machine." |
51 |
ewarn |
71 |
ewarn |
52 |
fi |
72 |
fi |
|
|
73 |
|
74 |
if ! use kernel_linux || use kernel_linux && use fuse ; then |
75 |
ewarn |
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." |
79 |
ewarn |
80 |
fi |
53 |
} |
81 |
} |