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: metadata.xml ChangeLog nfs-utils-1.1.6-r1.ebuild
Date: Sat, 30 May 2009 21:47:23
Message-Id: E1MAWOW-0006jm-R4@stork.gentoo.org
1 vapier 09/05/30 21:47:12
2
3 Modified: metadata.xml ChangeLog
4 Added: nfs-utils-1.1.6-r1.ebuild
5 Log:
6 Add support for USE=ipv6 #261926, switch to rpcbind over portmap, switch to libtirpc all the time, and make nfs3/nfs4 optional.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 net-fs/nfs-utils/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/metadata.xml?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/metadata.xml?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/metadata.xml?r1=1.2&r2=1.3
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/metadata.xml,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- metadata.xml 16 Aug 2008 03:56:31 -0000 1.2
23 +++ metadata.xml 30 May 2009 21:47:12 -0000 1.3
24 @@ -4,6 +4,8 @@
25 <herd>net-fs</herd>
26 <longdescription>NFS client and server daemons</longdescription>
27 <use>
28 + <flag name='nfsv3'>Enable support for NFSv3</flag>
29 + <flag name='nfsv4'>Enable support for NFSv4</flag>
30 <flag name='nonfsv4'>Disable support for NFSv4</flag>
31 </use>
32 </pkgmetadata>
33
34
35
36 1.157 net-fs/nfs-utils/ChangeLog
37
38 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.157&view=markup
39 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.157&content-type=text/plain
40 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.156&r2=1.157
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v
45 retrieving revision 1.156
46 retrieving revision 1.157
47 diff -u -r1.156 -r1.157
48 --- ChangeLog 9 May 2009 18:28:35 -0000 1.156
49 +++ ChangeLog 30 May 2009 21:47:12 -0000 1.157
50 @@ -1,6 +1,18 @@
51 # ChangeLog for net-fs/nfs-utils
52 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.156 2009/05/09 18:28:35 vapier Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.157 2009/05/30 21:47:12 vapier Exp $
55 +
56 + 30 May 2009; Mike Frysinger <vapier@g.o>
57 + +nfs-utils-1.1.6-r1.ebuild, metadata.xml:
58 + Add support for USE=ipv6 #261926, switch to rpcbind over portmap, switch
59 + to libtirpc all the time, and make nfs3/nfs4 optional.
60 +
61 +*nfs-utils-1.1.6-r1 (30 May 2009)
62 +
63 + 30 May 2009; Mike Frysinger <vapier@g.o>
64 + +nfs-utils-1.1.6-r1.ebuild:
65 + Add support for USE=ipv6 #261926, switch to rpcbind over portmap, switch
66 + to libtirpc all the time, and make nfs3/nfs4 optional.
67
68 *nfs-utils-1.1.6 (09 May 2009)
69
70
71
72
73 1.1 net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild
74
75 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild?rev=1.1&view=markup
76 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild?rev=1.1&content-type=text/plain
77
78 Index: nfs-utils-1.1.6-r1.ebuild
79 ===================================================================
80 # Copyright 1999-2009 Gentoo Foundation
81 # Distributed under the terms of the GNU General Public License v2
82 # $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild,v 1.1 2009/05/30 21:47:12 vapier Exp $
83
84 EAPI="1"
85
86 inherit eutils flag-o-matic multilib
87
88 DESCRIPTION="NFS client and server daemons"
89 HOMEPAGE="http://linux-nfs.org/"
90 SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
91
92 LICENSE="GPL-2"
93 SLOT="0"
94 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
95 IUSE="ipv6 kerberos +nfsv3 +nfsv4 tcpd"
96
97 # kth-krb doesn't provide the right include
98 # files, and nfs-utils doesn't build against heimdal either,
99 # so don't depend on virtual/krb.
100 # (04 Feb 2005 agriffis)
101 RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
102 sys-libs/e2fsprogs-libs
103 !net-nds/portmap
104 net-nds/rpcbind
105 net-libs/libtirpc
106 nfsv4? (
107 >=dev-libs/libevent-1.0b
108 >=net-libs/libnfsidmap-0.21-r1
109 kerberos? (
110 net-libs/librpcsecgss
111 net-libs/libgssglue
112 app-crypt/mit-krb5
113 )
114 )"
115 # util-linux dep is to prevent man-page collision
116 DEPEND="${RDEPEND}
117 >=sys-apps/util-linux-2.12r-r7"
118
119 src_unpack() {
120 unpack ${A}
121 cd "${S}"
122 epatch "${FILESDIR}"/${PN}-1.1.2-rpcgen-ioctl.patch
123 epatch "${FILESDIR}"/${PN}-1.1.4-ascii-man.patch
124 epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
125 epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
126 }
127
128 src_compile() {
129 econf \
130 --with-statedir=/var/lib/nfs \
131 --enable-tirpc \
132 $(use_with tcpd tcp-wrappers) \
133 $(use_enable nfsv3) \
134 $(use_enable nfsv4) \
135 $(use_enable ipv6) \
136 $(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
137 emake || die "Failed to compile"
138 }
139
140 src_install() {
141 emake DESTDIR="${D}" install || die
142
143 # Don't overwrite existing xtab/etab, install the original
144 # versions somewhere safe... more info in pkg_postinst
145 dodir /usr/lib/nfs
146 keepdir /var/lib/nfs/{sm,sm.bak}
147 mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
148 keepdir /var/lib/nfs
149
150 # Install some client-side binaries in /sbin
151 dodir /sbin
152 mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
153
154 dodoc ChangeLog README
155 docinto linux-nfs ; dodoc linux-nfs/*
156
157 insinto /etc
158 doins "${FILESDIR}"/exports
159
160 local f list=""
161 if use nfsv4 ; then
162 list="${list} rpc.idmapd rpc.pipefs"
163 use kerberos && list="${list} rpc.gssd rpc.svcgssd"
164 fi
165 for f in nfs nfsmount rpc.statd ${list} ; do
166 newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
167 done
168 newconfd "${FILESDIR}"/nfs.confd nfs
169
170 # uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
171 if ! use elibc_glibc ; then
172 dobin tools/rpcgen/rpcgen || die "rpcgen"
173 newdoc tools/rpcgen/README README.rpcgen
174 fi
175 }
176
177 pkg_postinst() {
178 # Install default xtab and friends if there's none existing.
179 # In src_install we put them in /usr/lib/nfs for safe-keeping, but
180 # the daemons actually use the files in /var/lib/nfs. This fixes
181 # bug 30486
182 local f
183 for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
184 [[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
185 einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
186 cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
187 done
188 }