annotate sys-fs/ntfs3g/ntfs3g-2009.4.4.ebuild @ 153:c494760eb51c

update pgpool-II to 2.2.3
author holger
date Fri, 14 Aug 2009 00:43:39 +0200
parents 2cb495e793ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
152
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
1 # Copyright 1999-2009 Gentoo Foundation
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/ntfs3g/ntfs3g-2009.3.8.ebuild,v 1.4 2009/08/02 13:29:02 maekke Exp $
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
4
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
5 MY_PN="${PN/3g/-3g}"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
6 MY_P="${MY_PN}-${PV}"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
7
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
8 DESCRIPTION="Open source read-write NTFS driver that runs under FUSE"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
9 HOMEPAGE="http://www.ntfs-3g.org"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
10 SRC_URI="http://www.ntfs-3g.org/${MY_P}.tgz"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
11
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
12 LICENSE="GPL-2"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
13 SLOT="0"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
14 KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
15 IUSE="debug hal suid"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
16
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
17 RDEPEND="hal? ( sys-apps/hal )"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
18 DEPEND="${RDEPEND}"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
19
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
20 S="${WORKDIR}/${MY_P}"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
21
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
22 src_compile() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
23 econf \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
24 --docdir="/usr/share/doc/${PF}" \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
25 --enable-ldscript \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
26 --disable-ldconfig \
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
27 $(use_enable debug)
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
28 emake || die "emake failed"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
29 }
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
30
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
31 src_install() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
32 emake DESTDIR="${D}" install || die "install failed"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
33
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
34 prepalldocs
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
35 dodoc AUTHORS ChangeLog CREDITS
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
36
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
37 use suid && fperms u+s "/bin/${MY_PN}"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
38
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
39 if use hal; then
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
40 insinto /etc/hal/fdi/policy/
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
41 newins "${FILESDIR}/10-ntfs3g.fdi.2009" "10-ntfs3g.fdi"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
42 fi
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
43 }
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
44
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
45 pkg_postinst() {
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
46 if use suid; then
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
47 ewarn
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
48 ewarn "You have chosen to install ${PN} with the binary setuid root. This"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
49 ewarn "means that if there any undetected vulnerabilities in the binary,"
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
50 ewarn "then local users may be able to gain root access on your machine."
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
51 ewarn
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
52 fi
2cb495e793ae add graphicsmagick to replace imagemagick
holger
parents:
diff changeset
53 }