1 |
robbat2 15/02/02 17:45:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nfs-utils-1.3.1-r2.ebuild nfs-utils-1.3.2-r3.ebuild |
5 |
Log: |
6 |
Avoid breaking anybody with nfsmount in their runlevels; but they should really read the news item and update their systems; migration hand-holding script will be removed not sooner than August 1st; reviewed by radhermit, williamh, zero_chaos. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, RepoMan options: --force, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.271 net-fs/nfs-utils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.271&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?rev=1.271&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/ChangeLog?r1=1.270&r2=1.271 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v |
20 |
retrieving revision 1.270 |
21 |
retrieving revision 1.271 |
22 |
diff -u -r1.270 -r1.271 |
23 |
--- ChangeLog 2 Feb 2015 13:47:41 -0000 1.270 |
24 |
+++ ChangeLog 2 Feb 2015 17:45:44 -0000 1.271 |
25 |
@@ -1,6 +1,17 @@ |
26 |
# ChangeLog for net-fs/nfs-utils |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.270 2015/02/02 13:47:41 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.271 2015/02/02 17:45:44 robbat2 Exp $ |
30 |
+ |
31 |
+*nfs-utils-1.3.2-r3 (02 Feb 2015) |
32 |
+*nfs-utils-1.3.1-r2 (02 Feb 2015) |
33 |
+ |
34 |
+ 02 Feb 2015; Robin H. Johnson <robbat2@g.o> |
35 |
+ +files/nfsmount.initd-1.3.1, +nfs-utils-1.3.1-r2.ebuild, |
36 |
+ +nfs-utils-1.3.2-r3.ebuild: |
37 |
+ Avoid breaking anybody with nfsmount in their runlevels; but they should |
38 |
+ really read the news item and update their systems; migration hand-holding |
39 |
+ script will be removed not sooner than August 1st; reviewed by radhermit, |
40 |
+ williamh, zero_chaos. |
41 |
|
42 |
*nfs-utils-1.3.2-r2 (02 Feb 2015) |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.1 net-fs/nfs-utils/nfs-utils-1.3.1-r2.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.3.1-r2.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.3.1-r2.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: nfs-utils-1.3.1-r2.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2015 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.3.1-r2.ebuild,v 1.1 2015/02/02 17:45:44 robbat2 Exp $ |
57 |
|
58 |
EAPI="5" |
59 |
|
60 |
inherit eutils flag-o-matic multilib autotools systemd |
61 |
|
62 |
DESCRIPTION="NFS client and server daemons" |
63 |
HOMEPAGE="http://linux-nfs.org/" |
64 |
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86" |
69 |
IUSE="caps ipv6 kerberos +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
70 |
REQUIRED_USE="kerberos? ( nfsv4 )" |
71 |
RESTRICT="test" #315573 |
72 |
|
73 |
# kth-krb doesn't provide the right include |
74 |
# files, and nfs-utils doesn't build against heimdal either, |
75 |
# so don't depend on virtual/krb. |
76 |
# (04 Feb 2005 agriffis) |
77 |
DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers ) |
78 |
caps? ( sys-libs/libcap ) |
79 |
sys-libs/e2fsprogs-libs |
80 |
>=net-nds/rpcbind-0.2.0-r1 |
81 |
net-libs/libtirpc |
82 |
libmount? ( sys-apps/util-linux ) |
83 |
nfsdcld? ( >=dev-db/sqlite-3.3 ) |
84 |
nfsv4? ( |
85 |
<=dev-libs/libevent-2.1 |
86 |
>=net-libs/libnfsidmap-0.21-r1 |
87 |
kerberos? ( |
88 |
>=net-libs/libtirpc-0.2.4-r1[kerberos] |
89 |
app-crypt/mit-krb5 |
90 |
) |
91 |
nfsidmap? ( |
92 |
>=net-libs/libnfsidmap-0.24 |
93 |
>=sys-apps/keyutils-1.5.9 |
94 |
) |
95 |
) |
96 |
nfsv41? ( |
97 |
sys-fs/lvm2 |
98 |
) |
99 |
uuid? ( sys-apps/util-linux )" |
100 |
RDEPEND="${DEPEND_COMMON} |
101 |
!net-nds/portmap |
102 |
!<sys-apps/openrc-0.13.4 |
103 |
selinux? ( |
104 |
sec-policy/selinux-rpc |
105 |
sec-policy/selinux-rpcbind |
106 |
) |
107 |
" |
108 |
DEPEND="${DEPEND_COMMON} |
109 |
virtual/pkgconfig" |
110 |
|
111 |
src_prepare() { |
112 |
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
113 |
epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
114 |
|
115 |
sed \ |
116 |
-e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
117 |
-i utils/*/Makefile.am || die |
118 |
|
119 |
eautoreconf |
120 |
} |
121 |
|
122 |
src_configure() { |
123 |
export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
124 |
export ac_cv_header_keyutils_h=$(usex nfsidmap) |
125 |
econf \ |
126 |
--with-statedir="${EPREFIX}"/var/lib/nfs \ |
127 |
--enable-tirpc \ |
128 |
--with-tirpcinclude="${EPREFIX}"/usr/include/tirpc/ \ |
129 |
$(use_enable libmount libmount-mount) \ |
130 |
$(use_with tcpd tcp-wrappers) \ |
131 |
$(use_enable nfsdcld nfsdcltrack) \ |
132 |
$(use_enable nfsv4) \ |
133 |
$(use_enable nfsv41) \ |
134 |
$(use_enable ipv6) \ |
135 |
$(use_enable caps) \ |
136 |
$(use_enable uuid) \ |
137 |
$(use_enable kerberos gss) \ |
138 |
--without-gssglue |
139 |
} |
140 |
|
141 |
src_compile(){ |
142 |
# remove compiled files bundled in the tarball |
143 |
emake clean |
144 |
default |
145 |
} |
146 |
|
147 |
src_install() { |
148 |
default |
149 |
rm linux-nfs/Makefile* || die |
150 |
dodoc -r linux-nfs README |
151 |
|
152 |
# Don't overwrite existing xtab/etab, install the original |
153 |
# versions somewhere safe... more info in pkg_postinst |
154 |
keepdir /var/lib/nfs/{,sm,sm.bak} |
155 |
mv "${ED}"/var/lib "${ED}"/usr/$(get_libdir) || die |
156 |
|
157 |
# Install some client-side binaries in /sbin |
158 |
dodir /sbin |
159 |
mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die |
160 |
|
161 |
if use nfsv4 && use nfsidmap ; then |
162 |
# Install a config file for idmappers in newer kernels. #415625 |
163 |
insinto /etc/request-key.d |
164 |
echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
165 |
doins id_resolver.conf |
166 |
fi |
167 |
|
168 |
insinto /etc |
169 |
doins "${FILESDIR}"/exports |
170 |
keepdir /etc/exports.d |
171 |
|
172 |
local f list=() opt_need="" |
173 |
if use nfsv4 ; then |
174 |
opt_need="rpc.idmapd" |
175 |
list+=( rpc.idmapd rpc.pipefs ) |
176 |
use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
177 |
fi |
178 |
for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
179 |
newinitd "${FILESDIR}"/${f}.initd ${f} |
180 |
done |
181 |
newinit "${FILESDIR}"/nfsmount.initd-1.3.1 # Nuke after 2015/08/01 |
182 |
for f in nfs nfsclient ; do |
183 |
newconfd "${FILESDIR}"/${f}.confd ${f} |
184 |
done |
185 |
sed -i \ |
186 |
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
187 |
"${ED}"/etc/conf.d/nfs || die #234132 |
188 |
|
189 |
systemd_dounit systemd/*.{mount,service,target} |
190 |
if ! use nfsv4 || ! use kerberos ; then |
191 |
rm "${D}$(systemd_get_unitdir)"/rpc-{gssd,svcgssd}.service || die |
192 |
fi |
193 |
rm "${D}$(systemd_get_unitdir)"/nfs-config.service || die |
194 |
sed -i -r \ |
195 |
-e "/^EnvironmentFile=/s:=.*:=${EPREFIX}/etc/conf.d/nfs:" \ |
196 |
-e '/^(After|Wants)=nfs-config.service$/d' \ |
197 |
-e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
198 |
"${D}$(systemd_get_unitdir)"/* || die |
199 |
} |
200 |
|
201 |
pkg_postinst() { |
202 |
# Install default xtab and friends if there's none existing. In |
203 |
# src_install we put them in /usr/lib/nfs for safe-keeping, but |
204 |
# the daemons actually use the files in /var/lib/nfs. #30486 |
205 |
local f |
206 |
mkdir -p "${EROOT}"/var/lib/nfs #368505 |
207 |
for f in "${EROOT}"/usr/$(get_libdir)/nfs/*; do |
208 |
[[ -e ${EROOT}/var/lib/nfs/${f##*/} ]] && continue |
209 |
einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs" |
210 |
cp -pPR "${f}" "${EROOT}"/var/lib/nfs/ |
211 |
done |
212 |
|
213 |
if systemd_is_booted; then |
214 |
if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then |
215 |
ewarn "We have switched to upstream systemd unit files. Since" |
216 |
ewarn "they got renamed, you should probably enable the new ones." |
217 |
ewarn "You can run 'equery files nfs-utils | grep systemd'" |
218 |
ewarn "to know what services you need to enable now." |
219 |
fi |
220 |
else |
221 |
ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient." |
222 |
ewarn "If you were using nfsmount, please add nfsclient and netmount to the" |
223 |
ewarn "same runlevel as nfsmount." |
224 |
fi |
225 |
} |
226 |
|
227 |
|
228 |
|
229 |
1.1 net-fs/nfs-utils/nfs-utils-1.3.2-r3.ebuild |
230 |
|
231 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.3.2-r3.ebuild?rev=1.1&view=markup |
232 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.3.2-r3.ebuild?rev=1.1&content-type=text/plain |
233 |
|
234 |
Index: nfs-utils-1.3.2-r3.ebuild |
235 |
=================================================================== |
236 |
# Copyright 1999-2015 Gentoo Foundation |
237 |
# Distributed under the terms of the GNU General Public License v2 |
238 |
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.3.2-r3.ebuild,v 1.1 2015/02/02 17:45:44 robbat2 Exp $ |
239 |
|
240 |
EAPI="5" |
241 |
|
242 |
inherit eutils flag-o-matic multilib autotools systemd |
243 |
|
244 |
DESCRIPTION="NFS client and server daemons" |
245 |
HOMEPAGE="http://linux-nfs.org/" |
246 |
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
247 |
|
248 |
LICENSE="GPL-2" |
249 |
SLOT="0" |
250 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
251 |
IUSE="caps ipv6 kerberos +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
252 |
REQUIRED_USE="kerberos? ( nfsv4 )" |
253 |
RESTRICT="test" #315573 |
254 |
|
255 |
# kth-krb doesn't provide the right include |
256 |
# files, and nfs-utils doesn't build against heimdal either, |
257 |
# so don't depend on virtual/krb. |
258 |
# (04 Feb 2005 agriffis) |
259 |
DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers ) |
260 |
caps? ( sys-libs/libcap ) |
261 |
sys-libs/e2fsprogs-libs |
262 |
>=net-nds/rpcbind-0.2.0-r1 |
263 |
net-libs/libtirpc |
264 |
libmount? ( sys-apps/util-linux ) |
265 |
nfsdcld? ( >=dev-db/sqlite-3.3 ) |
266 |
nfsv4? ( |
267 |
dev-libs/libevent |
268 |
>=net-libs/libnfsidmap-0.21-r1 |
269 |
kerberos? ( |
270 |
>=net-libs/libtirpc-0.2.4-r1[kerberos] |
271 |
app-crypt/mit-krb5 |
272 |
) |
273 |
nfsidmap? ( |
274 |
>=net-libs/libnfsidmap-0.24 |
275 |
>=sys-apps/keyutils-1.5.9 |
276 |
) |
277 |
) |
278 |
nfsv41? ( |
279 |
sys-fs/lvm2 |
280 |
) |
281 |
uuid? ( sys-apps/util-linux )" |
282 |
RDEPEND="${DEPEND_COMMON} |
283 |
!net-nds/portmap |
284 |
!<sys-apps/openrc-0.13.4 |
285 |
selinux? ( |
286 |
sec-policy/selinux-rpc |
287 |
sec-policy/selinux-rpcbind |
288 |
) |
289 |
" |
290 |
DEPEND="${DEPEND_COMMON} |
291 |
virtual/pkgconfig" |
292 |
|
293 |
src_prepare() { |
294 |
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
295 |
epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
296 |
epatch "${FILESDIR}"/${PN}-1.3.2-background-statd.patch |
297 |
|
298 |
sed \ |
299 |
-e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
300 |
-i utils/*/Makefile.am || die |
301 |
|
302 |
epatch_user |
303 |
eautoreconf |
304 |
} |
305 |
|
306 |
src_configure() { |
307 |
export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
308 |
export ac_cv_header_keyutils_h=$(usex nfsidmap) |
309 |
econf \ |
310 |
--with-statedir="${EPREFIX}"/var/lib/nfs \ |
311 |
--enable-tirpc \ |
312 |
--with-tirpcinclude="${EPREFIX}"/usr/include/tirpc/ \ |
313 |
$(use_enable libmount libmount-mount) \ |
314 |
$(use_with tcpd tcp-wrappers) \ |
315 |
$(use_enable nfsdcld nfsdcltrack) \ |
316 |
$(use_enable nfsv4) \ |
317 |
$(use_enable nfsv41) \ |
318 |
$(use_enable ipv6) \ |
319 |
$(use_enable caps) \ |
320 |
$(use_enable uuid) \ |
321 |
$(use_enable kerberos gss) \ |
322 |
--without-gssglue |
323 |
} |
324 |
|
325 |
src_compile(){ |
326 |
# remove compiled files bundled in the tarball |
327 |
emake clean |
328 |
default |
329 |
} |
330 |
|
331 |
src_install() { |
332 |
default |
333 |
rm linux-nfs/Makefile* || die |
334 |
dodoc -r linux-nfs README |
335 |
|
336 |
# Don't overwrite existing xtab/etab, install the original |
337 |
# versions somewhere safe... more info in pkg_postinst |
338 |
keepdir /var/lib/nfs/{,sm,sm.bak} |
339 |
mv "${ED}"/var/lib "${ED}"/usr/$(get_libdir) || die |
340 |
|
341 |
# Install some client-side binaries in /sbin |
342 |
dodir /sbin |
343 |
mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die |
344 |
|
345 |
if use nfsv4 && use nfsidmap ; then |
346 |
# Install a config file for idmappers in newer kernels. #415625 |
347 |
insinto /etc/request-key.d |
348 |
echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
349 |
doins id_resolver.conf |
350 |
fi |
351 |
|
352 |
insinto /etc |
353 |
doins "${FILESDIR}"/exports |
354 |
keepdir /etc/exports.d |
355 |
|
356 |
local f list=() opt_need="" |
357 |
if use nfsv4 ; then |
358 |
opt_need="rpc.idmapd" |
359 |
list+=( rpc.idmapd rpc.pipefs ) |
360 |
use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
361 |
fi |
362 |
for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
363 |
newinitd "${FILESDIR}"/${f}.initd ${f} |
364 |
done |
365 |
newinit "${FILESDIR}"/nfsmount.initd-1.3.1 # Nuke after 2015/08/01 |
366 |
for f in nfs nfsclient ; do |
367 |
newconfd "${FILESDIR}"/${f}.confd ${f} |
368 |
done |
369 |
sed -i \ |
370 |
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
371 |
"${ED}"/etc/conf.d/nfs || die #234132 |
372 |
|
373 |
systemd_dounit systemd/*.{mount,service,target} |
374 |
if ! use nfsv4 || ! use kerberos ; then |
375 |
rm "${D}$(systemd_get_unitdir)"/rpc-{gssd,svcgssd}.service || die |
376 |
fi |
377 |
if ! use nfsv41 ; then |
378 |
rm "${D}$(systemd_get_unitdir)"/nfs-blkmap.* || die |
379 |
fi |
380 |
rm "${D}$(systemd_get_unitdir)"/nfs-config.service || die |
381 |
sed -i -r \ |
382 |
-e "/^EnvironmentFile=/s:=.*:=${EPREFIX}/etc/conf.d/nfs:" \ |
383 |
-e '/^(After|Wants)=nfs-config.service$/d' \ |
384 |
-e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
385 |
"${D}$(systemd_get_unitdir)"/* || die |
386 |
} |
387 |
|
388 |
pkg_postinst() { |
389 |
# Install default xtab and friends if there's none existing. In |
390 |
# src_install we put them in /usr/lib/nfs for safe-keeping, but |
391 |
# the daemons actually use the files in /var/lib/nfs. #30486 |
392 |
local f |
393 |
mkdir -p "${EROOT}"/var/lib/nfs #368505 |
394 |
for f in "${EROOT}"/usr/$(get_libdir)/nfs/*; do |
395 |
[[ -e ${EROOT}/var/lib/nfs/${f##*/} ]] && continue |
396 |
einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs" |
397 |
cp -pPR "${f}" "${EROOT}"/var/lib/nfs/ |
398 |
done |
399 |
|
400 |
if systemd_is_booted; then |
401 |
if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then |
402 |
ewarn "We have switched to upstream systemd unit files. Since" |
403 |
ewarn "they got renamed, you should probably enable the new ones." |
404 |
ewarn "You can run 'equery files nfs-utils | grep systemd'" |
405 |
ewarn "to know what services you need to enable now." |
406 |
fi |
407 |
else |
408 |
ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient." |
409 |
ewarn "If you were using nfsmount, please add nfsclient and netmount to the" |
410 |
ewarn "same runlevel as nfsmount." |
411 |
fi |
412 |
} |