Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/nfs-utils: nfs-utils-1.2.3.ebuild ChangeLog
Date: Fri, 08 Oct 2010 20:04:20
Message-Id: 20101008194808.76F1020051@flycatcher.gentoo.org
1 vapier 10/10/08 19:48:08
2
3 Modified: ChangeLog
4 Added: nfs-utils-1.2.3.ebuild
5 Log:
6 Version bump #339288.
7
8 (Portage version: 2.2_rc86/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.174 net-fs/nfs-utils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.174&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.174&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.173&r2=1.174
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v
20 retrieving revision 1.173
21 retrieving revision 1.174
22 diff -u -r1.173 -r1.174
23 --- ChangeLog 19 Sep 2010 22:39:27 -0000 1.173
24 +++ ChangeLog 8 Oct 2010 19:48:08 -0000 1.174
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-fs/nfs-utils
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.173 2010/09/19 22:39:27 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.174 2010/10/08 19:48:08 vapier Exp $
30 +
31 +*nfs-utils-1.2.3 (08 Oct 2010)
32 +
33 + 08 Oct 2010; Mike Frysinger <vapier@g.o> +nfs-utils-1.2.3.ebuild:
34 + Version bump #339288.
35
36 19 Sep 2010; Mike Frysinger <vapier@g.o> nfs-utils-1.2.2-r2.ebuild:
37 Fix multilib dir handling with backed up /var/lib/nfs.
38
39
40
41 1.1 net-fs/nfs-utils/nfs-utils-1.2.3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nfs-utils-1.2.3.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.3.ebuild,v 1.1 2010/10/08 19:48:08 vapier Exp $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic multilib
55
56 DESCRIPTION="NFS client and server daemons"
57 HOMEPAGE="http://linux-nfs.org/"
58 SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
63 IUSE="caps ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
64 RESTRICT="test" #315573
65
66 # kth-krb doesn't provide the right include
67 # files, and nfs-utils doesn't build against heimdal either,
68 # so don't depend on virtual/krb.
69 # (04 Feb 2005 agriffis)
70 DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers )
71 caps? ( sys-libs/libcap )
72 sys-libs/e2fsprogs-libs
73 net-nds/rpcbind
74 net-libs/libtirpc
75 nfsv4? (
76 >=dev-libs/libevent-1.0b
77 >=net-libs/libnfsidmap-0.21-r1
78 kerberos? (
79 net-libs/librpcsecgss
80 net-libs/libgssglue
81 net-libs/libtirpc[kerberos]
82 app-crypt/mit-krb5
83 )
84 )"
85 RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
86 # util-linux dep is to prevent man-page collision
87 DEPEND="${DEPEND_COMMON}
88 >=sys-apps/util-linux-2.12r-r7"
89
90 src_prepare() {
91 epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
92 epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
93 }
94
95 src_configure() {
96 econf \
97 --with-statedir=/var/lib/nfs \
98 --enable-tirpc \
99 $(use_with tcpd tcp-wrappers) \
100 $(use_enable nfsv3) \
101 $(use_enable nfsv4) \
102 $(use_enable ipv6) \
103 $(use_enable caps) \
104 $(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
105 }
106
107 src_install() {
108 emake DESTDIR="${D}" install || die
109
110 # Don't overwrite existing xtab/etab, install the original
111 # versions somewhere safe... more info in pkg_postinst
112 keepdir /var/lib/nfs/{,sm,sm.bak}
113 mv "${D}"/var/lib "${D}"/usr/$(get_libdir) || die
114
115 # Install some client-side binaries in /sbin
116 dodir /sbin
117 mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
118
119 dodoc ChangeLog README
120 docinto linux-nfs ; dodoc linux-nfs/*
121
122 insinto /etc
123 doins "${FILESDIR}"/exports
124
125 local f list="" opt_need=""
126 if use nfsv4 ; then
127 opt_need="rpc.idmapd"
128 list="${list} rpc.idmapd rpc.pipefs"
129 use kerberos && list="${list} rpc.gssd rpc.svcgssd"
130 fi
131 for f in nfs nfsmount rpc.statd ${list} ; do
132 newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
133 done
134 newconfd "${FILESDIR}"/nfs.confd nfs
135 dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
136
137 # uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
138 if ! use elibc_glibc ; then
139 dobin tools/rpcgen/rpcgen || die "rpcgen"
140 newdoc tools/rpcgen/README README.rpcgen
141 fi
142 }
143
144 pkg_postinst() {
145 # Install default xtab and friends if there's none existing. In
146 # src_install we put them in /usr/lib/nfs for safe-keeping, but
147 # the daemons actually use the files in /var/lib/nfs. #30486
148 local f
149 for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
150 [[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
151 einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
152 cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
153 done
154 }