1 |
commit: 751915e76d292d90356274caa7803d614d3eac7a |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 28 14:45:09 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 28 14:52:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=751915e7 |
7 |
|
8 |
net-fs/nfs-utils: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
net-fs/nfs-utils/Manifest | 2 - |
14 |
.../nfs-utils/files/nfs-utils-2.3.1-limits.patch | 105 ----------- |
15 |
.../files/nfs-utils-2.3.2-junction_libs.patch | 45 ----- |
16 |
.../files/nfs-utils-2.3.2-no-werror.patch | 53 ------ |
17 |
...-2.3.4_rc2-improved_res_querydomain_check.patch | 41 ---- |
18 |
net-fs/nfs-utils/nfs-utils-2.3.3.ebuild | 195 ------------------- |
19 |
net-fs/nfs-utils/nfs-utils-2.3.4.ebuild | 192 ------------------- |
20 |
net-fs/nfs-utils/nfs-utils-2.4.1-r1.ebuild | 206 --------------------- |
21 |
8 files changed, 839 deletions(-) |
22 |
|
23 |
diff --git a/net-fs/nfs-utils/Manifest b/net-fs/nfs-utils/Manifest |
24 |
index ec46a4b5e43..33eadfc1820 100644 |
25 |
--- a/net-fs/nfs-utils/Manifest |
26 |
+++ b/net-fs/nfs-utils/Manifest |
27 |
@@ -1,3 +1 @@ |
28 |
-DIST nfs-utils-2.3.3.tar.bz2 888947 BLAKE2B 7c913f0c5061807d4af162fb392c8f466abb97c88960853b52298f61056bcad08f67a16e577036dec9afa737d88268d5a766b67c4b30a014b666dfbf3db81031 SHA512 266b86ef5041a7ecd144c6f2570e8a6eb00ebb4e547fa4b8c8c3e60a4af117c2690ff9effb0d4113a7b7ef57164583c8a6ada9cb1bb8f7b748524c826eaf1cba |
29 |
-DIST nfs-utils-2.3.4.tar.bz2 906900 BLAKE2B 968fac7b37c7311bc8d29667c88db925aac0c062ed7ef8c13f9e5c11c3c88960ffaea56c1b6cfb5594a01238f9190e55ab7b837a79a7a804bc55dcca75908eea SHA512 25203b38be6683f25ad6583ac8534873c907124092a768955c1454899e2f467b9dd427b167556eb4f28992b5720da13078eb1eb086da991438454f268e1559a5 |
30 |
DIST nfs-utils-2.4.1.tar.bz2 910791 BLAKE2B 4419eff7fca21747e0bc4969ebb8a8b863aa951984af8f23f197e7dfc4faad3770173808862b84178714ca75f021be1af96f9e4408fecd7ef97999d261f2f21b SHA512 655a115955f35177b761f821e29c752693d614f4c6c2a90d392e0ab83b615247a397cf18e8ad453a93c6dc528d1fa90cfdf8b04de6626e0f4083b10e2e54f540 |
31 |
|
32 |
diff --git a/net-fs/nfs-utils/files/nfs-utils-2.3.1-limits.patch b/net-fs/nfs-utils/files/nfs-utils-2.3.1-limits.patch |
33 |
deleted file mode 100644 |
34 |
index b322b6fb17c..00000000000 |
35 |
--- a/net-fs/nfs-utils/files/nfs-utils-2.3.1-limits.patch |
36 |
+++ /dev/null |
37 |
@@ -1,105 +0,0 @@ |
38 |
-Required for successful build on musl |
39 |
-https://bugs.gentoo.org/651080#c5 |
40 |
- |
41 |
-Thanks-to: Robert Bridge <robert@××××××××.com> |
42 |
- |
43 |
---- nfs-utils-2.3.1/support/export/export.c |
44 |
-+++ nfs-utils-2.3.1/support/export/export.c |
45 |
-@@ -17,6 +17,7 @@ |
46 |
- #include <stdlib.h> |
47 |
- #include <dirent.h> |
48 |
- #include <errno.h> |
49 |
-+#include <limits.h> |
50 |
- #include "xmalloc.h" |
51 |
- #include "nfslib.h" |
52 |
- #include "exportfs.h" |
53 |
---- nfs-utils-2.3.1/support/export/xtab.c |
54 |
-+++ nfs-utils-2.3.1/support/export/xtab.c |
55 |
-@@ -18,6 +18,7 @@ |
56 |
- #include <sys/stat.h> |
57 |
- #include <errno.h> |
58 |
- #include <libgen.h> |
59 |
-+#include <limits.h> |
60 |
- |
61 |
- #include "nfslib.h" |
62 |
- #include "exportfs.h" |
63 |
---- nfs-utils-2.3.1/support/misc/file.c |
64 |
-+++ nfs-utils-2.3.1/support/misc/file.c |
65 |
-@@ -27,6 +27,7 @@ |
66 |
- #include <dirent.h> |
67 |
- #include <stdlib.h> |
68 |
- #include <stdbool.h> |
69 |
-+#include <limits.h> |
70 |
- |
71 |
- #include "xlog.h" |
72 |
- #include "misc.h" |
73 |
---- nfs-utils-2.3.1/support/nfs/xcommon.c |
74 |
-+++ nfs-utils-2.3.1/support/nfs/xcommon.c |
75 |
-@@ -16,6 +16,7 @@ |
76 |
- #include <stdio.h> |
77 |
- #include <stdlib.h> |
78 |
- #include <string.h> |
79 |
-+#include <limits.h> |
80 |
- |
81 |
- #include "xcommon.h" |
82 |
- #include "nls.h" /* _() */ |
83 |
---- nfs-utils-2.3.1/support/nsm/file.c |
84 |
-+++ nfs-utils-2.3.1/support/nsm/file.c |
85 |
-@@ -85,6 +85,7 @@ |
86 |
- #include <fcntl.h> |
87 |
- #include <dirent.h> |
88 |
- #include <grp.h> |
89 |
-+#include <limits.h> |
90 |
- |
91 |
- #include "xlog.h" |
92 |
- #include "nsm.h" |
93 |
---- nfs-utils-2.3.1/utils/blkmapd/device-discovery.c |
94 |
-+++ nfs-utils-2.3.1/utils/blkmapd/device-discovery.c |
95 |
-@@ -49,6 +49,7 @@ |
96 |
- #include <unistd.h> |
97 |
- #include <libgen.h> |
98 |
- #include <errno.h> |
99 |
-+#include <limits.h> |
100 |
- #include <libdevmapper.h> |
101 |
- |
102 |
- #ifdef HAVE_CONFIG_H |
103 |
---- nfs-utils-2.3.1/utils/gssd/krb5_util.c |
104 |
-+++ nfs-utils-2.3.1/utils/gssd/krb5_util.c |
105 |
-@@ -120,6 +120,7 @@ |
106 |
- #endif |
107 |
- #include <krb5.h> |
108 |
- #include <rpc/auth_gss.h> |
109 |
-+#include <limits.h> |
110 |
- |
111 |
- #include "gssd.h" |
112 |
- #include "err_util.h" |
113 |
---- nfs-utils-2.3.1/utils/mountd/cache.c |
114 |
-+++ nfs-utils-2.3.1/utils/mountd/cache.c |
115 |
-@@ -26,6 +26,7 @@ |
116 |
- #include <pwd.h> |
117 |
- #include <grp.h> |
118 |
- #include <mntent.h> |
119 |
-+#include <limits.h> |
120 |
- #include "misc.h" |
121 |
- #include "nfslib.h" |
122 |
- #include "exportfs.h" |
123 |
---- nfs-utils-2.3.1/utils/mountd/mountd.c |
124 |
-+++ nfs-utils-2.3.1/utils/mountd/mountd.c |
125 |
-@@ -22,6 +22,7 @@ |
126 |
- #include <fcntl.h> |
127 |
- #include <sys/resource.h> |
128 |
- #include <sys/wait.h> |
129 |
-+#include <limits.h> |
130 |
- |
131 |
- #include "conffile.h" |
132 |
- #include "xmalloc.h" |
133 |
---- nfs-utils-2.3.1/utils/mountd/rmtab.c |
134 |
-+++ nfs-utils-2.3.1/utils/mountd/rmtab.c |
135 |
-@@ -16,6 +16,7 @@ |
136 |
- #include <netinet/in.h> |
137 |
- #include <arpa/inet.h> |
138 |
- #include <netdb.h> |
139 |
-+#include <limits.h> |
140 |
- |
141 |
- #include "misc.h" |
142 |
- #include "exportfs.h" |
143 |
|
144 |
diff --git a/net-fs/nfs-utils/files/nfs-utils-2.3.2-junction_libs.patch b/net-fs/nfs-utils/files/nfs-utils-2.3.2-junction_libs.patch |
145 |
deleted file mode 100644 |
146 |
index f13f07a4c81..00000000000 |
147 |
--- a/net-fs/nfs-utils/files/nfs-utils-2.3.2-junction_libs.patch |
148 |
+++ /dev/null |
149 |
@@ -1,45 +0,0 @@ |
150 |
-From 8f3e4f4d6df9f813572051e12e974b35c26a1743 Mon Sep 17 00:00:00 2001 |
151 |
-From: Lars Wendler <polynomial-c@g.o> |
152 |
-Date: Mon, 28 May 2018 12:13:10 +0200 |
153 |
-Subject: [PATCH] Fix undefined references and bad include when build with |
154 |
- junction support |
155 |
- |
156 |
---- |
157 |
- support/junction/Makefile.am | 2 +- |
158 |
- utils/nfsref/Makefile.am | 6 +++--- |
159 |
- 2 files changed, 4 insertions(+), 4 deletions(-) |
160 |
- |
161 |
-diff --git a/support/junction/Makefile.am b/support/junction/Makefile.am |
162 |
-index 97e7426..89cb532 100644 |
163 |
---- a/support/junction/Makefile.am |
164 |
-+++ b/support/junction/Makefile.am |
165 |
-@@ -31,4 +31,4 @@ libjunction_la_SOURCES = display.c export-cache.c junction.c \ |
166 |
- |
167 |
- MAINTAINERCLEANFILES = Makefile.in |
168 |
- |
169 |
--AM_CPPFLAGS = -I. -I../include -I/usr/include/libxml2 |
170 |
-+AM_CPPFLAGS = -I. -I../include -I/usr/include/libxml2 @TIRPC_CFLAGS@ |
171 |
-diff --git a/utils/nfsref/Makefile.am b/utils/nfsref/Makefile.am |
172 |
-index 2b2bb53..a652b03 100644 |
173 |
---- a/utils/nfsref/Makefile.am |
174 |
-+++ b/utils/nfsref/Makefile.am |
175 |
-@@ -27,13 +27,13 @@ noinst_HEADERS = nfsref.h |
176 |
- |
177 |
- sbin_PROGRAMS = nfsref |
178 |
- nfsref_SOURCES = add.c lookup.c nfsref.c remove.c |
179 |
--LDADD = $(LIBXML2) $(LIBCAP) \ |
180 |
-- ../../support/nfs/libnfs.la \ |
181 |
-+LIBS += $(LIBXML2) $(LIBCAP) |
182 |
-+LDADD = ../../support/nfs/libnfs.la \ |
183 |
- ../../support/junction/libjunction.la |
184 |
- |
185 |
- man8_MANS = nfsref.man |
186 |
- |
187 |
- MAINTAINERCLEANFILES = Makefile.in |
188 |
- |
189 |
--AM_CPPFLAGS = -I. -I../../support/include |
190 |
-+AM_CPPFLAGS = -I. -I../../support/include @TIRPC_CFLAGS@ |
191 |
- ##AM_LDFLAGS = -Wl,--as-needed |
192 |
--- |
193 |
-2.17.0 |
194 |
- |
195 |
|
196 |
diff --git a/net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch b/net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch |
197 |
deleted file mode 100644 |
198 |
index d06fc4ce8b8..00000000000 |
199 |
--- a/net-fs/nfs-utils/files/nfs-utils-2.3.2-no-werror.patch |
200 |
+++ /dev/null |
201 |
@@ -1,53 +0,0 @@ |
202 |
-https://bugs.gentoo.org/656984 |
203 |
- |
204 |
-Don't build with -Werror flags. |
205 |
- |
206 |
---- a/configure.ac |
207 |
-+++ b/configure.ac |
208 |
-@@ -544,45 +544,11 @@ |
209 |
- AC_SUBST(LDFLAGS_FOR_BUILD) |
210 |
- |
211 |
- my_am_cflags="\ |
212 |
-- -pipe \ |
213 |
- -Wall \ |
214 |
- -Wextra \ |
215 |
-- -Werror=strict-prototypes \ |
216 |
-- -Werror=missing-prototypes \ |
217 |
-- -Werror=missing-declarations \ |
218 |
-- -Werror=format=2 \ |
219 |
-- -Werror=undef \ |
220 |
-- -Werror=missing-include-dirs \ |
221 |
-- -Werror=strict-aliasing=2 \ |
222 |
-- -Werror=init-self \ |
223 |
-- -Werror=implicit-function-declaration \ |
224 |
-- -Werror=return-type \ |
225 |
-- -Werror=switch \ |
226 |
-- -Werror=overflow \ |
227 |
-- -Werror=parentheses \ |
228 |
-- -Werror=aggregate-return \ |
229 |
-- -Werror=unused-result \ |
230 |
- -fno-strict-aliasing \ |
231 |
- " |
232 |
-- |
233 |
--AC_DEFUN([CHECK_CCSUPPORT], [ |
234 |
-- my_save_cflags="$CFLAGS" |
235 |
-- CFLAGS=$1 |
236 |
-- AC_MSG_CHECKING([whether CC supports $1]) |
237 |
-- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
238 |
-- [AC_MSG_RESULT([yes])] |
239 |
-- [$2+=$1], |
240 |
-- [AC_MSG_RESULT([no])] |
241 |
-- ) |
242 |
-- CFLAGS="$my_save_cflags" |
243 |
--]) |
244 |
-- |
245 |
--CHECK_CCSUPPORT([-Werror=format-overflow=2], [flg1]) |
246 |
--CHECK_CCSUPPORT([-Werror=int-conversion], [flg2]) |
247 |
--CHECK_CCSUPPORT([-Werror=incompatible-pointer-types], [flg3]) |
248 |
--CHECK_CCSUPPORT([-Werror=misleading-indentation], [flg4]) |
249 |
-- |
250 |
--AC_SUBST([AM_CFLAGS], ["$my_am_cflags $flg1 $flg2 $flg3 $flg4"]) |
251 |
-+AC_SUBST([AM_CFLAGS], ["$my_am_cflags"]) |
252 |
- |
253 |
- # Make sure that $ACLOCAL_FLAGS are used during a rebuild |
254 |
- AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \$(ACLOCAL_FLAGS)"]) |
255 |
|
256 |
diff --git a/net-fs/nfs-utils/files/nfs-utils-2.3.4_rc2-improved_res_querydomain_check.patch b/net-fs/nfs-utils/files/nfs-utils-2.3.4_rc2-improved_res_querydomain_check.patch |
257 |
deleted file mode 100644 |
258 |
index 787a96fe89d..00000000000 |
259 |
--- a/net-fs/nfs-utils/files/nfs-utils-2.3.4_rc2-improved_res_querydomain_check.patch |
260 |
+++ /dev/null |
261 |
@@ -1,41 +0,0 @@ |
262 |
-From 4f91877bb313a35ade44d9dde1fd219035ba1fd9 Mon Sep 17 00:00:00 2001 |
263 |
-From: Patrick Steinhardt <ps@×××.im> |
264 |
-Date: Wed, 27 Feb 2019 11:58:47 -0500 |
265 |
-Subject: [PATCH] configure.ac: more carefully detect availability of |
266 |
- res_querydomain(3) |
267 |
- |
268 |
-Since glibc 2.2, the function res_querydomain(3) is implemented as a |
269 |
-define to `__res_querydomain`. Due to this implementation detail, using |
270 |
-`AC_CHECK_LIB` with a symbol name of "res_querydomain" will cause a |
271 |
-linking failure and thus fail to detect its availability. This is why |
272 |
-right now, we try to detect availability of `__res_querydomain` instead. |
273 |
- |
274 |
-Unfortunately, this may break on other platforms where there is no |
275 |
-`__res_querydomain` but only the function without leading underscores. |
276 |
-To fix this, we can perform another `AC_CHECK_LIB([resolv], |
277 |
-[res_querydomain], ...)` call in case where the other one was not found |
278 |
-and only raise an error if both symbols weren't found. |
279 |
- |
280 |
-Signed-off-by: Patrick Steinhardt <ps@×××.im> |
281 |
-Signed-off-by: Steve Dickson <steved@××××××.com> |
282 |
---- |
283 |
- configure.ac | 3 ++- |
284 |
- 1 file changed, 2 insertions(+), 1 deletion(-) |
285 |
- |
286 |
-diff --git a/configure.ac b/configure.ac |
287 |
-index 4bf5aea..cb9d921 100644 |
288 |
---- a/configure.ac |
289 |
-+++ b/configure.ac |
290 |
-@@ -411,7 +411,8 @@ if test "$enable_gss" = yes; then |
291 |
- fi |
292 |
- |
293 |
- dnl libdnsidmap specific checks |
294 |
--AC_CHECK_LIB([resolv], [__res_querydomain], , AC_MSG_ERROR(res_querydomain needed)) |
295 |
-+AC_CHECK_LIB([resolv], [__res_querydomain], , |
296 |
-+ AC_CHECK_LIB([resolv], [res_querydomain], , AC_MSG_ERROR(res_querydomain needed))) |
297 |
- |
298 |
- AC_ARG_ENABLE([ldap], |
299 |
- [AS_HELP_STRING([--disable-ldap],[Disable support for LDAP @<:default=detect@:>@])]) |
300 |
--- |
301 |
-1.8.3.1 |
302 |
- |
303 |
|
304 |
diff --git a/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild b/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild |
305 |
deleted file mode 100644 |
306 |
index 77465d97e58..00000000000 |
307 |
--- a/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild |
308 |
+++ /dev/null |
309 |
@@ -1,195 +0,0 @@ |
310 |
-# Copyright 1999-2019 Gentoo Authors |
311 |
-# Distributed under the terms of the GNU General Public License v2 |
312 |
- |
313 |
-EAPI=6 |
314 |
- |
315 |
-inherit autotools flag-o-matic multilib systemd |
316 |
- |
317 |
-DESCRIPTION="NFS client and server daemons" |
318 |
-HOMEPAGE="http://linux-nfs.org/" |
319 |
- |
320 |
-if [[ "${PV}" = *_rc* ]] ; then |
321 |
- inherit versionator |
322 |
- MY_PV="$(replace_all_version_separators -)" |
323 |
- SRC_URI="http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=snapshot;h=refs/tags/${PN}-${MY_PV};sf=tgz -> ${P}.tar.gz" |
324 |
- S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
325 |
-else |
326 |
- SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
327 |
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" |
328 |
-fi |
329 |
- |
330 |
-LICENSE="GPL-2" |
331 |
-SLOT="0" |
332 |
-IUSE="caps ipv6 junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
333 |
-REQUIRED_USE="kerberos? ( nfsv4 )" |
334 |
-RESTRICT="test" #315573 |
335 |
- |
336 |
-# kth-krb doesn't provide the right include |
337 |
-# files, and nfs-utils doesn't build against heimdal either, |
338 |
-# so don't depend on virtual/krb. |
339 |
-# (04 Feb 2005 agriffis) |
340 |
-DEPEND_COMMON=" |
341 |
- dev-libs/libxml2 |
342 |
- net-libs/libtirpc:= |
343 |
- >=net-nds/rpcbind-0.2.4 |
344 |
- sys-libs/e2fsprogs-libs |
345 |
- caps? ( sys-libs/libcap ) |
346 |
- ldap? ( net-nds/openldap ) |
347 |
- libmount? ( sys-apps/util-linux ) |
348 |
- nfsdcld? ( >=dev-db/sqlite-3.3 ) |
349 |
- nfsv4? ( |
350 |
- dev-libs/libevent:= |
351 |
- >=sys-apps/keyutils-1.5.9 |
352 |
- kerberos? ( |
353 |
- >=net-libs/libtirpc-0.2.4-r1[kerberos] |
354 |
- app-crypt/mit-krb5 |
355 |
- ) |
356 |
- ) |
357 |
- nfsv41? ( |
358 |
- sys-fs/lvm2 |
359 |
- ) |
360 |
- tcpd? ( sys-apps/tcp-wrappers ) |
361 |
- uuid? ( sys-apps/util-linux )" |
362 |
-RDEPEND="${DEPEND_COMMON} |
363 |
- !net-libs/libnfsidmap |
364 |
- !net-nds/portmap |
365 |
- !<sys-apps/openrc-0.13.9 |
366 |
- selinux? ( |
367 |
- sec-policy/selinux-rpc |
368 |
- sec-policy/selinux-rpcbind |
369 |
- ) |
370 |
-" |
371 |
-DEPEND="${DEPEND_COMMON} |
372 |
- net-libs/rpcsvc-proto |
373 |
- virtual/pkgconfig" |
374 |
- |
375 |
-PATCHES=( |
376 |
- "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
377 |
- "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
378 |
- "${FILESDIR}"/${PN}-2.3.2-junction_libs.patch |
379 |
- "${FILESDIR}"/${PN}-2.3.2-no-werror.patch |
380 |
- "${FILESDIR}"/${PN}-2.3.1-limits.patch #651080 |
381 |
- "${FILESDIR}"/${PN}-2.3.4_rc2-improved_res_querydomain_check.patch #651080 |
382 |
-) |
383 |
- |
384 |
-src_prepare() { |
385 |
- default |
386 |
- |
387 |
- sed \ |
388 |
- -e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
389 |
- -i utils/*/Makefile.am || die |
390 |
- |
391 |
- eautoreconf |
392 |
-} |
393 |
- |
394 |
-src_configure() { |
395 |
- export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
396 |
- export ac_cv_header_keyutils_h=$(usex nfsidmap) |
397 |
- local myeconfargs=( |
398 |
- --with-statedir="${EPREFIX%/}"/var/lib/nfs |
399 |
- --enable-tirpc |
400 |
- --with-tirpcinclude="${EPREFIX%/}"/usr/include/tirpc/ |
401 |
- --with-pluginpath="${EPREFIX%/}"/usr/$(get_libdir)/libnfsidmap |
402 |
- --with-rpcgen |
403 |
- --with-systemd="$(systemd_get_systemunitdir)" |
404 |
- --without-gssglue |
405 |
- $(use_enable caps) |
406 |
- $(use_enable ipv6) |
407 |
- $(use_enable junction) |
408 |
- $(use_enable kerberos gss) |
409 |
- $(use_enable kerberos svcgss) |
410 |
- $(use_enable ldap) |
411 |
- $(use_enable libmount libmount-mount) |
412 |
- $(use_enable nfsdcld nfsdcltrack) |
413 |
- $(use_enable nfsv4) |
414 |
- $(use_enable nfsv41) |
415 |
- $(use_enable uuid) |
416 |
- $(use_with tcpd tcp-wrappers) |
417 |
- ) |
418 |
- econf "${myeconfargs[@]}" |
419 |
-} |
420 |
- |
421 |
-src_compile(){ |
422 |
- # remove compiled files bundled in the tarball |
423 |
- emake clean |
424 |
- default |
425 |
-} |
426 |
- |
427 |
-src_install() { |
428 |
- default |
429 |
- rm linux-nfs/Makefile* || die |
430 |
- dodoc -r linux-nfs README |
431 |
- |
432 |
- # Don't overwrite existing xtab/etab, install the original |
433 |
- # versions somewhere safe... more info in pkg_postinst |
434 |
- keepdir /var/lib/nfs/{,sm,sm.bak} |
435 |
- mv "${ED%/}"/var/lib/nfs "${ED%/}"/usr/$(get_libdir)/ || die |
436 |
- |
437 |
- # Install some client-side binaries in /sbin |
438 |
- dodir /sbin |
439 |
- mv "${ED%/}"/usr/sbin/rpc.statd "${ED%/}"/sbin/ || die |
440 |
- |
441 |
- if use nfsv4 && use nfsidmap ; then |
442 |
- # Install a config file for idmappers in newer kernels. #415625 |
443 |
- insinto /etc/request-key.d |
444 |
- echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
445 |
- doins id_resolver.conf |
446 |
- fi |
447 |
- |
448 |
- insinto /etc |
449 |
- doins "${FILESDIR}"/exports |
450 |
- keepdir /etc/exports.d |
451 |
- |
452 |
- local f list=() opt_need="" |
453 |
- if use nfsv4 ; then |
454 |
- opt_need="rpc.idmapd" |
455 |
- list+=( rpc.idmapd rpc.pipefs ) |
456 |
- use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
457 |
- fi |
458 |
- for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
459 |
- newinitd "${FILESDIR}"/${f}.initd ${f} |
460 |
- done |
461 |
- newinitd "${FILESDIR}"/nfsmount.initd-1.3.1 nfsmount # Nuke after 2015/08/01 |
462 |
- for f in nfs nfsclient ; do |
463 |
- newconfd "${FILESDIR}"/${f}.confd ${f} |
464 |
- done |
465 |
- sed -i \ |
466 |
- -e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
467 |
- "${ED%/}"/etc/conf.d/nfs || die #234132 |
468 |
- |
469 |
- local systemd_systemunitdir="$(systemd_get_systemunitdir)" |
470 |
- sed -i \ |
471 |
- -e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
472 |
- "${ED%/}${systemd_systemunitdir}"/* || die |
473 |
- |
474 |
- keepdir /var/lib/nfs #368505 |
475 |
- keepdir /var/lib/nfs/v4recovery #603628 |
476 |
- |
477 |
-} |
478 |
- |
479 |
-pkg_postinst() { |
480 |
- # Install default xtab and friends if there's none existing. In |
481 |
- # src_install we put them in /usr/lib/nfs for safe-keeping, but |
482 |
- # the daemons actually use the files in /var/lib/nfs. #30486 |
483 |
- local f |
484 |
- for f in "${EROOT%/}"/usr/$(get_libdir)/nfs/*; do |
485 |
- [[ -e ${EROOT%/}/var/lib/nfs/${f##*/} ]] && continue |
486 |
- einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs" |
487 |
- cp -pPR "${f}" "${EROOT%/}"/var/lib/nfs/ |
488 |
- done |
489 |
- |
490 |
- if systemd_is_booted; then |
491 |
- for v in ${REPLACING_VERSIONS}; do |
492 |
- if ver_test "${v}" -lt 1.3.0; then |
493 |
- ewarn "We have switched to upstream systemd unit files. Since" |
494 |
- ewarn "they got renamed, you should probably enable the new ones." |
495 |
- ewarn "You can run 'equery files nfs-utils | grep systemd'" |
496 |
- ewarn "to know what services you need to enable now." |
497 |
- fi |
498 |
- done |
499 |
- else |
500 |
- ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient." |
501 |
- ewarn "If you were using nfsmount, please add nfsclient and netmount to the" |
502 |
- ewarn "same runlevel as nfsmount." |
503 |
- fi |
504 |
-} |
505 |
|
506 |
diff --git a/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild b/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild |
507 |
deleted file mode 100644 |
508 |
index 975b78c549b..00000000000 |
509 |
--- a/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild |
510 |
+++ /dev/null |
511 |
@@ -1,192 +0,0 @@ |
512 |
-# Copyright 1999-2019 Gentoo Authors |
513 |
-# Distributed under the terms of the GNU General Public License v2 |
514 |
- |
515 |
-EAPI=7 |
516 |
- |
517 |
-inherit autotools flag-o-matic multilib systemd |
518 |
- |
519 |
-DESCRIPTION="NFS client and server daemons" |
520 |
-HOMEPAGE="http://linux-nfs.org/" |
521 |
- |
522 |
-if [[ "${PV}" = *_rc* ]] ; then |
523 |
- MY_PV="$(ver_rs 1- -)" |
524 |
- SRC_URI="http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=snapshot;h=refs/tags/${PN}-${MY_PV};sf=tgz -> ${P}.tar.gz" |
525 |
- S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
526 |
-else |
527 |
- SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
528 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
529 |
-fi |
530 |
- |
531 |
-LICENSE="GPL-2" |
532 |
-SLOT="0" |
533 |
-IUSE="caps ipv6 junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
534 |
-REQUIRED_USE="kerberos? ( nfsv4 )" |
535 |
-RESTRICT="test" #315573 |
536 |
- |
537 |
-# kth-krb doesn't provide the right include |
538 |
-# files, and nfs-utils doesn't build against heimdal either, |
539 |
-# so don't depend on virtual/krb. |
540 |
-# (04 Feb 2005 agriffis) |
541 |
-DEPEND=" |
542 |
- >=dev-db/sqlite-3.3 |
543 |
- dev-libs/libxml2 |
544 |
- net-libs/libtirpc:= |
545 |
- >=net-nds/rpcbind-0.2.4 |
546 |
- sys-libs/e2fsprogs-libs |
547 |
- caps? ( sys-libs/libcap ) |
548 |
- ldap? ( net-nds/openldap ) |
549 |
- libmount? ( sys-apps/util-linux ) |
550 |
- nfsv4? ( |
551 |
- dev-libs/libevent:= |
552 |
- >=sys-apps/keyutils-1.5.9 |
553 |
- kerberos? ( |
554 |
- >=net-libs/libtirpc-0.2.4-r1[kerberos] |
555 |
- app-crypt/mit-krb5 |
556 |
- ) |
557 |
- ) |
558 |
- nfsv41? ( |
559 |
- sys-fs/lvm2 |
560 |
- ) |
561 |
- tcpd? ( sys-apps/tcp-wrappers ) |
562 |
- uuid? ( sys-apps/util-linux )" |
563 |
-RDEPEND="${DEPEND} |
564 |
- !net-libs/libnfsidmap |
565 |
- !net-nds/portmap |
566 |
- !<sys-apps/openrc-0.13.9 |
567 |
- selinux? ( |
568 |
- sec-policy/selinux-rpc |
569 |
- sec-policy/selinux-rpcbind |
570 |
- ) |
571 |
-" |
572 |
-BDEPEND=" |
573 |
- net-libs/rpcsvc-proto |
574 |
- virtual/pkgconfig |
575 |
-" |
576 |
- |
577 |
-PATCHES=( |
578 |
- "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
579 |
- "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
580 |
- "${FILESDIR}"/${PN}-2.3.4-no-werror.patch |
581 |
-) |
582 |
- |
583 |
-src_prepare() { |
584 |
- default |
585 |
- |
586 |
- sed \ |
587 |
- -e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
588 |
- -i utils/*/Makefile.am || die |
589 |
- |
590 |
- eautoreconf |
591 |
-} |
592 |
- |
593 |
-src_configure() { |
594 |
- export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
595 |
- export ac_cv_header_keyutils_h=$(usex nfsidmap) |
596 |
- local myeconfargs=( |
597 |
- --with-statedir="${EPREFIX%/}"/var/lib/nfs |
598 |
- --enable-tirpc |
599 |
- --with-tirpcinclude="${EPREFIX%/}"/usr/include/tirpc/ |
600 |
- --with-pluginpath="${EPREFIX%/}"/usr/$(get_libdir)/libnfsidmap |
601 |
- --with-rpcgen |
602 |
- --with-systemd="$(systemd_get_systemunitdir)" |
603 |
- --without-gssglue |
604 |
- $(use_enable caps) |
605 |
- $(use_enable ipv6) |
606 |
- $(use_enable junction) |
607 |
- $(use_enable kerberos gss) |
608 |
- $(use_enable kerberos svcgss) |
609 |
- $(use_enable ldap) |
610 |
- $(use_enable libmount libmount-mount) |
611 |
- $(use_enable nfsdcld nfsdcltrack) |
612 |
- $(use_enable nfsv4) |
613 |
- $(use_enable nfsv41) |
614 |
- $(use_enable uuid) |
615 |
- $(use_with tcpd tcp-wrappers) |
616 |
- ) |
617 |
- econf "${myeconfargs[@]}" |
618 |
-} |
619 |
- |
620 |
-src_compile(){ |
621 |
- # remove compiled files bundled in the tarball |
622 |
- emake clean |
623 |
- default |
624 |
-} |
625 |
- |
626 |
-src_install() { |
627 |
- default |
628 |
- rm linux-nfs/Makefile* || die |
629 |
- dodoc -r linux-nfs README |
630 |
- |
631 |
- # Don't overwrite existing xtab/etab, install the original |
632 |
- # versions somewhere safe... more info in pkg_postinst |
633 |
- keepdir /var/lib/nfs/{,sm,sm.bak} |
634 |
- mv "${ED}"/var/lib/nfs "${ED}"/usr/$(get_libdir)/ || die |
635 |
- |
636 |
- # Install some client-side binaries in /sbin |
637 |
- dodir /sbin |
638 |
- mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die |
639 |
- |
640 |
- if use nfsv4 && use nfsidmap ; then |
641 |
- # Install a config file for idmappers in newer kernels. #415625 |
642 |
- insinto /etc/request-key.d |
643 |
- echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
644 |
- doins id_resolver.conf |
645 |
- fi |
646 |
- |
647 |
- insinto /etc |
648 |
- doins "${FILESDIR}"/exports |
649 |
- keepdir /etc/exports.d |
650 |
- |
651 |
- local f list=() opt_need="" |
652 |
- if use nfsv4 ; then |
653 |
- opt_need="rpc.idmapd" |
654 |
- list+=( rpc.idmapd rpc.pipefs ) |
655 |
- use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
656 |
- fi |
657 |
- for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
658 |
- newinitd "${FILESDIR}"/${f}.initd ${f} |
659 |
- done |
660 |
- newinitd "${FILESDIR}"/nfsmount.initd-1.3.1 nfsmount # Nuke after 2015/08/01 |
661 |
- for f in nfs nfsclient ; do |
662 |
- newconfd "${FILESDIR}"/${f}.confd ${f} |
663 |
- done |
664 |
- sed -i \ |
665 |
- -e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
666 |
- "${ED}"/etc/conf.d/nfs || die #234132 |
667 |
- |
668 |
- local systemd_systemunitdir="$(systemd_get_systemunitdir)" |
669 |
- sed -i \ |
670 |
- -e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
671 |
- "${ED}${systemd_systemunitdir}"/* || die |
672 |
- |
673 |
- keepdir /var/lib/nfs #368505 |
674 |
- keepdir /var/lib/nfs/v4recovery #603628 |
675 |
- |
676 |
-} |
677 |
- |
678 |
-pkg_postinst() { |
679 |
- # Install default xtab and friends if there's none existing. In |
680 |
- # src_install we put them in /usr/lib/nfs for safe-keeping, but |
681 |
- # the daemons actually use the files in /var/lib/nfs. #30486 |
682 |
- local f |
683 |
- for f in "${EROOT}"/usr/$(get_libdir)/nfs/*; do |
684 |
- [[ -e ${EROOT}/var/lib/nfs/${f##*/} ]] && continue |
685 |
- einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs" |
686 |
- cp -pPR "${f}" "${EROOT}"/var/lib/nfs/ |
687 |
- done |
688 |
- |
689 |
- if systemd_is_booted; then |
690 |
- for v in ${REPLACING_VERSIONS}; do |
691 |
- if ver_test "${v}" -lt 1.3.0; then |
692 |
- ewarn "We have switched to upstream systemd unit files. Since" |
693 |
- ewarn "they got renamed, you should probably enable the new ones." |
694 |
- ewarn "You can run 'equery files nfs-utils | grep systemd'" |
695 |
- ewarn "to know what services you need to enable now." |
696 |
- fi |
697 |
- done |
698 |
- else |
699 |
- ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient." |
700 |
- ewarn "If you were using nfsmount, please add nfsclient and netmount to the" |
701 |
- ewarn "same runlevel as nfsmount." |
702 |
- fi |
703 |
-} |
704 |
|
705 |
diff --git a/net-fs/nfs-utils/nfs-utils-2.4.1-r1.ebuild b/net-fs/nfs-utils/nfs-utils-2.4.1-r1.ebuild |
706 |
deleted file mode 100644 |
707 |
index 26604696ea8..00000000000 |
708 |
--- a/net-fs/nfs-utils/nfs-utils-2.4.1-r1.ebuild |
709 |
+++ /dev/null |
710 |
@@ -1,206 +0,0 @@ |
711 |
-# Copyright 1999-2019 Gentoo Authors |
712 |
-# Distributed under the terms of the GNU General Public License v2 |
713 |
- |
714 |
-EAPI=7 |
715 |
- |
716 |
-inherit autotools flag-o-matic linux-info multilib systemd |
717 |
- |
718 |
-DESCRIPTION="NFS client and server daemons" |
719 |
-HOMEPAGE="http://linux-nfs.org/" |
720 |
- |
721 |
-if [[ "${PV}" = *_rc* ]] ; then |
722 |
- MY_PV="$(ver_rs 1- -)" |
723 |
- SRC_URI="http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=snapshot;h=refs/tags/${PN}-${MY_PV};sf=tgz -> ${P}.tar.gz" |
724 |
- S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
725 |
-else |
726 |
- SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
727 |
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~riscv s390 ~sh sparc x86" |
728 |
-fi |
729 |
- |
730 |
-LICENSE="GPL-2" |
731 |
-SLOT="0" |
732 |
-IUSE="caps ipv6 junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
733 |
-REQUIRED_USE="kerberos? ( nfsv4 )" |
734 |
-RESTRICT="test" #315573 |
735 |
- |
736 |
-# kth-krb doesn't provide the right include |
737 |
-# files, and nfs-utils doesn't build against heimdal either, |
738 |
-# so don't depend on virtual/krb. |
739 |
-# (04 Feb 2005 agriffis) |
740 |
-DEPEND=" |
741 |
- >=dev-db/sqlite-3.3 |
742 |
- dev-libs/libxml2 |
743 |
- net-libs/libtirpc:= |
744 |
- >=net-nds/rpcbind-0.2.4 |
745 |
- sys-libs/e2fsprogs-libs |
746 |
- caps? ( sys-libs/libcap ) |
747 |
- ldap? ( net-nds/openldap ) |
748 |
- libmount? ( sys-apps/util-linux ) |
749 |
- nfsv4? ( |
750 |
- dev-libs/libevent:= |
751 |
- >=sys-apps/keyutils-1.5.9:= |
752 |
- kerberos? ( |
753 |
- >=net-libs/libtirpc-0.2.4-r1[kerberos] |
754 |
- app-crypt/mit-krb5 |
755 |
- ) |
756 |
- ) |
757 |
- nfsv41? ( |
758 |
- sys-fs/lvm2 |
759 |
- ) |
760 |
- tcpd? ( sys-apps/tcp-wrappers ) |
761 |
- uuid? ( sys-apps/util-linux )" |
762 |
-RDEPEND="${DEPEND} |
763 |
- !net-libs/libnfsidmap |
764 |
- !net-nds/portmap |
765 |
- !<sys-apps/openrc-0.13.9 |
766 |
- selinux? ( |
767 |
- sec-policy/selinux-rpc |
768 |
- sec-policy/selinux-rpcbind |
769 |
- ) |
770 |
-" |
771 |
-BDEPEND=" |
772 |
- net-libs/rpcsvc-proto |
773 |
- virtual/pkgconfig |
774 |
-" |
775 |
- |
776 |
-PATCHES=( |
777 |
- "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
778 |
- "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
779 |
- "${FILESDIR}"/${PN}-2.3.4-no-werror.patch |
780 |
- "${FILESDIR}"/${P}-gssd-Look-in-lib32-for-gss-libs-aswell.patch |
781 |
-) |
782 |
- |
783 |
-pkg_setup() { |
784 |
- linux-info_pkg_setup |
785 |
- if use nfsv4 && ! use nfsdcld && linux_config_exists && ! linux_chkconfig_present CRYPTO_MD5 ; then |
786 |
- ewarn "Your NFS server will be unable to track clients across server restarts!" |
787 |
- ewarn "Please enable the \"${HILITE}nfsdcld${NORMAL}\" USE flag to install the nfsdcltrack usermode" |
788 |
- ewarn "helper upcall program, or enable ${HILITE}CONFIG_CRYPTO_MD5${NORMAL} in your kernel to" |
789 |
- ewarn "support the legacy, in-kernel client tracker." |
790 |
- fi |
791 |
-} |
792 |
- |
793 |
-src_prepare() { |
794 |
- default |
795 |
- |
796 |
- sed \ |
797 |
- -e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
798 |
- -i utils/*/Makefile.am || die |
799 |
- |
800 |
- eautoreconf |
801 |
-} |
802 |
- |
803 |
-src_configure() { |
804 |
- export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
805 |
- export ac_cv_header_keyutils_h=$(usex nfsidmap) |
806 |
- local myeconfargs=( |
807 |
- --with-statedir="${EPREFIX%/}"/var/lib/nfs |
808 |
- --enable-tirpc |
809 |
- --with-tirpcinclude="${EPREFIX%/}"/usr/include/tirpc/ |
810 |
- --with-pluginpath="${EPREFIX%/}"/usr/$(get_libdir)/libnfsidmap |
811 |
- --with-rpcgen |
812 |
- --with-systemd="$(systemd_get_systemunitdir)" |
813 |
- --without-gssglue |
814 |
- $(use_enable caps) |
815 |
- $(use_enable ipv6) |
816 |
- $(use_enable junction) |
817 |
- $(use_enable kerberos gss) |
818 |
- $(use_enable kerberos svcgss) |
819 |
- $(use_enable ldap) |
820 |
- $(use_enable libmount libmount-mount) |
821 |
- $(use_enable nfsdcld nfsdcltrack) |
822 |
- $(use_enable nfsv4) |
823 |
- $(use_enable nfsv41) |
824 |
- $(use_enable uuid) |
825 |
- $(use_with tcpd tcp-wrappers) |
826 |
- ) |
827 |
- econf "${myeconfargs[@]}" |
828 |
-} |
829 |
- |
830 |
-src_compile(){ |
831 |
- # remove compiled files bundled in the tarball |
832 |
- emake clean |
833 |
- default |
834 |
-} |
835 |
- |
836 |
-src_install() { |
837 |
- default |
838 |
- rm linux-nfs/Makefile* || die |
839 |
- dodoc -r linux-nfs README |
840 |
- |
841 |
- # Don't overwrite existing xtab/etab, install the original |
842 |
- # versions somewhere safe... more info in pkg_postinst |
843 |
- keepdir /var/lib/nfs/{,sm,sm.bak} |
844 |
- mv "${ED}"/var/lib/nfs "${ED}"/usr/$(get_libdir)/ || die |
845 |
- |
846 |
- # Install some client-side binaries in /sbin |
847 |
- dodir /sbin |
848 |
- mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die |
849 |
- |
850 |
- if use nfsv4 && use nfsidmap ; then |
851 |
- insinto /etc |
852 |
- doins support/nfsidmap/idmapd.conf |
853 |
- |
854 |
- # Install a config file for idmappers in newer kernels. #415625 |
855 |
- insinto /etc/request-key.d |
856 |
- echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
857 |
- doins id_resolver.conf |
858 |
- fi |
859 |
- |
860 |
- insinto /etc |
861 |
- doins "${FILESDIR}"/exports |
862 |
- keepdir /etc/exports.d |
863 |
- |
864 |
- local f list=() opt_need="" |
865 |
- if use nfsv4 ; then |
866 |
- opt_need="rpc.idmapd" |
867 |
- list+=( rpc.idmapd rpc.pipefs ) |
868 |
- use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
869 |
- fi |
870 |
- for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
871 |
- newinitd "${FILESDIR}"/${f}.initd ${f} |
872 |
- done |
873 |
- newinitd "${FILESDIR}"/nfsmount.initd-1.3.1 nfsmount # Nuke after 2015/08/01 |
874 |
- for f in nfs nfsclient ; do |
875 |
- newconfd "${FILESDIR}"/${f}.confd ${f} |
876 |
- done |
877 |
- sed -i \ |
878 |
- -e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
879 |
- "${ED}"/etc/conf.d/nfs || die #234132 |
880 |
- |
881 |
- local systemd_systemunitdir="$(systemd_get_systemunitdir)" |
882 |
- sed -i \ |
883 |
- -e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
884 |
- "${ED}${systemd_systemunitdir}"/* || die |
885 |
- |
886 |
- keepdir /var/lib/nfs #368505 |
887 |
- keepdir /var/lib/nfs/v4recovery #603628 |
888 |
- |
889 |
-} |
890 |
- |
891 |
-pkg_postinst() { |
892 |
- # Install default xtab and friends if there's none existing. In |
893 |
- # src_install we put them in /usr/lib/nfs for safe-keeping, but |
894 |
- # the daemons actually use the files in /var/lib/nfs. #30486 |
895 |
- local f |
896 |
- for f in "${EROOT}"/usr/$(get_libdir)/nfs/*; do |
897 |
- [[ -e ${EROOT}/var/lib/nfs/${f##*/} ]] && continue |
898 |
- einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs" |
899 |
- cp -pPR "${f}" "${EROOT}"/var/lib/nfs/ |
900 |
- done |
901 |
- |
902 |
- if systemd_is_booted; then |
903 |
- for v in ${REPLACING_VERSIONS}; do |
904 |
- if ver_test "${v}" -lt 1.3.0; then |
905 |
- ewarn "We have switched to upstream systemd unit files. Since" |
906 |
- ewarn "they got renamed, you should probably enable the new ones." |
907 |
- ewarn "You can run 'equery files nfs-utils | grep systemd'" |
908 |
- ewarn "to know what services you need to enable now." |
909 |
- fi |
910 |
- done |
911 |
- else |
912 |
- ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient." |
913 |
- ewarn "If you were using nfsmount, please add nfsclient and netmount to the" |
914 |
- ewarn "same runlevel as nfsmount." |
915 |
- fi |
916 |
-} |