Lines 1-12
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
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/net-fs/nfs-utils/nfs-utils-1.1.2.ebuild,v 1.3 2008/04/20 16:57:59 flameeyes Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.4.ebuild,v 1.3 2008/10/26 09:02:47 vapier Exp $ |
4 |
|
4 |
|
5 |
inherit eutils flag-o-matic multilib autotools |
5 |
inherit eutils flag-o-matic multilib autotools |
6 |
|
6 |
|
7 |
DESCRIPTION="NFS client and server daemons" |
7 |
DESCRIPTION="NFS client and server daemons" |
8 |
HOMEPAGE="http://nfs.sourceforge.net/" |
8 |
HOMEPAGE="http://nfs.sourceforge.net/" |
9 |
SRC_URI="mirror://sourceforge/nfs/${P}.tar.gz" |
9 |
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
10 |
|
10 |
|
11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
12 |
SLOT="0" |
Lines 18-27
Link Here
|
18 |
# so don't depend on virtual/krb. |
18 |
# so don't depend on virtual/krb. |
19 |
# (04 Feb 2005 agriffis) |
19 |
# (04 Feb 2005 agriffis) |
20 |
RDEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
20 |
RDEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
|
|
21 |
sys-libs/e2fsprogs-libs |
21 |
>=net-nds/portmap-5b-r6 |
22 |
>=net-nds/portmap-5b-r6 |
22 |
!nonfsv4? ( |
23 |
!nonfsv4? ( |
23 |
>=dev-libs/libevent-1.0b |
24 |
>=dev-libs/libevent-1.0b |
24 |
>=net-libs/libnfsidmap-0.16 |
25 |
>=net-libs/libnfsidmap-0.21-r1 |
25 |
kerberos? ( |
26 |
kerberos? ( |
26 |
net-libs/librpcsecgss |
27 |
net-libs/librpcsecgss |
27 |
|| ( |
28 |
|| ( |
Lines 29-35
Link Here
|
29 |
net-libs/libgssglue |
30 |
net-libs/libgssglue |
30 |
app-crypt/mit-krb5 |
31 |
app-crypt/mit-krb5 |
31 |
) |
32 |
) |
32 |
>=app-crypt/heimdal-1.0 |
33 |
>=app-crypt/heimdal-1.2 |
33 |
) |
34 |
) |
34 |
) |
35 |
) |
35 |
)" |
36 |
)" |
Lines 40-55
Link Here
|
40 |
src_unpack() { |
41 |
src_unpack() { |
41 |
unpack ${A} |
42 |
unpack ${A} |
42 |
cd "${S}" |
43 |
cd "${S}" |
43 |
epatch "${FILESDIR}"/${P}-rpcgen-ioctl.patch |
44 |
epatch "${FILESDIR}"/${PN}-1.1.2-rpcgen-ioctl.patch |
44 |
epatch "${FILESDIR}"/${P}-pkgconfig_ac.patch |
45 |
epatch "${FILESDIR}"/${PN}-1.1.2-kerberos-ac.patch |
45 |
epatch "${FILESDIR}"/${P}-no_libgssapi.patch |
46 |
epatch "${FILESDIR}"/${PN}-1.1.2-pkgconfig_ac.patch |
46 |
epatch "${FILESDIR}"/${P}-mount-eacces.patch #219729 |
47 |
epatch "${FILESDIR}"/${PN}-1.1.2-no_libgssapi.patch |
|
|
48 |
epatch "${FILESDIR}"/${PN}-1.1.4-heimdal_functions.patch |
47 |
eautoreconf |
49 |
eautoreconf |
48 |
} |
50 |
} |
49 |
|
51 |
|
50 |
src_compile() { |
52 |
src_compile() { |
51 |
local myconf |
53 |
local myconf |
52 |
if use nonfsv4; then |
54 |
if use nonfsv4 ; then |
53 |
myconf="--disable-gss" |
55 |
myconf="--disable-gss" |
54 |
else |
56 |
else |
55 |
myconf="$(use_enable kerberos gss)" |
57 |
myconf="$(use_enable kerberos gss)" |
Lines 90-103
Link Here
|
90 |
|
92 |
|
91 |
local f list="" |
93 |
local f list="" |
92 |
if use !nonfsv4 ; then |
94 |
if use !nonfsv4 ; then |
93 |
list="${list} rpc.idmapd" |
95 |
list="${list} rpc.idmapd rpc.pipefs" |
94 |
use kerberos && list="${list} rpc.gssd rpc.svcgssd" |
96 |
use kerberos && list="${list} rpc.gssd rpc.svcgssd" |
95 |
fi |
97 |
fi |
96 |
for f in nfs nfsmount rpc.statd ${list} ; do |
98 |
for f in nfs nfsmount rpc.statd ${list} ; do |
97 |
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}" |
99 |
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}" |
98 |
done |
100 |
done |
99 |
newconfd "${FILESDIR}"/nfs.confd nfs |
101 |
newconfd "${FILESDIR}"/nfs.confd nfs |
100 |
use !nonfsv4 && doins utils/idmapd/idmapd.conf |
|
|
101 |
|
102 |
|
102 |
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils |
103 |
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils |
103 |
if ! use elibc_glibc ; then |
104 |
if ! use elibc_glibc ; then |
Lines 106-115
Link Here
|
106 |
fi |
107 |
fi |
107 |
} |
108 |
} |
108 |
|
109 |
|
109 |
pkg_preinst() { |
|
|
110 |
[[ -s ${ROOT}/etc/exports ]] && rm -f "${D}"/etc/exports |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
110 |
pkg_postinst() { |
114 |
# Install default xtab and friends if there's none existing. |
111 |
# Install default xtab and friends if there's none existing. |
115 |
# In src_install we put them in /usr/lib/nfs for safe-keeping, but |
112 |
# In src_install we put them in /usr/lib/nfs for safe-keeping, but |