Lines 2-7
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 |
inherit linux-info |
6 |
|
5 |
MY_PN="${PN/3g/-3g}" |
7 |
MY_PN="${PN/3g/-3g}" |
6 |
MY_P="${MY_PN}-${PV}" |
8 |
MY_P="${MY_PN}-${PV}" |
7 |
|
9 |
|
Lines 14-30
Link Here
|
14 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
16 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
15 |
IUSE="debug hal suid" |
17 |
IUSE="debug hal suid" |
16 |
|
18 |
|
|
|
19 |
[[ ${KERNEL} == "linux" ]] && IUSE="${IUSE} fuse" |
20 |
|
17 |
RDEPEND="hal? ( sys-apps/hal )" |
21 |
RDEPEND="hal? ( sys-apps/hal )" |
18 |
DEPEND="${RDEPEND}" |
22 |
DEPEND="${RDEPEND} |
|
|
23 |
!kernel_linux? ( sys-fs/fuse ) |
24 |
fuse? ( sys-fs/fuse )" |
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 |
if use fuse ; then |
41 |
myconf="$(use_with fuse fuse external)" |
42 |
fi |
43 |
|
23 |
econf \ |
44 |
econf \ |
24 |
--docdir="/usr/share/doc/${PF}" \ |
45 |
--docdir="/usr/share/doc/${PF}" \ |
25 |
--enable-ldscript \ |
46 |
--enable-ldscript \ |
26 |
--disable-ldconfig \ |
47 |
--disable-ldconfig \ |
27 |
$(use_enable debug) |
48 |
$(use_enable debug) \ |
|
|
49 |
${myconf} |
28 |
emake || die "emake failed" |
50 |
emake || die "emake failed" |
29 |
} |
51 |
} |
30 |
|
52 |
|
Lines 50-53
Link Here
|
50 |
ewarn "then local users may be able to gain root access on your machine." |
72 |
ewarn "then local users may be able to gain root access on your machine." |
51 |
ewarn |
73 |
ewarn |
52 |
fi |
74 |
fi |
|
|
75 |
|
76 |
if use fuse -o ! use kernel_linux ; then |
77 |
ewarn |
78 |
ewarn "ntfs-3g has been built with external FUSE support." |
79 |
ewarn "If your system's FUSE package gets updated please rebuild ntfs-3g," |
80 |
ewarn "as failure to do so may break ntfs-3g functionality." |
81 |
ewarn |
82 |
fi |
53 |
} |
83 |
} |