1 |
commit: cce8fd1c7ee9da0a2dad1e95bc35b41a53a05c2c |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 7 08:47:55 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 7 08:48:07 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cce8fd1c |
7 |
|
8 |
net-fs/nfs-utils: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.4 |
11 |
|
12 |
net-fs/nfs-utils/Manifest | 2 - |
13 |
net-fs/nfs-utils/nfs-utils-2.1.2_rc3.ebuild | 190 ---------------------------- |
14 |
net-fs/nfs-utils/nfs-utils-2.1.2_rc5.ebuild | 190 ---------------------------- |
15 |
3 files changed, 382 deletions(-) |
16 |
|
17 |
diff --git a/net-fs/nfs-utils/Manifest b/net-fs/nfs-utils/Manifest |
18 |
index a532193d2c7..a9615bafe05 100644 |
19 |
--- a/net-fs/nfs-utils/Manifest |
20 |
+++ b/net-fs/nfs-utils/Manifest |
21 |
@@ -1,7 +1,5 @@ |
22 |
DIST nfs-utils-1.3.4.tar.bz2 814545 SHA256 c529c82a82320daae811f3d3a143f83d2714d7e7a43beadd42fcd6022c17d590 SHA512 765c0bc55a9a0bdb2c25d8fb7189a9054fb9f2dd51726eda29f44e5d5c423e245b02307dfcfab9239276d8f44869a72732416f6e9ef5a1f80753d9243ba1b38c WHIRLPOOL 6dc556ef7d00a583c222eb62a600b0d83c6f91ad65d89ca14e1fb3c8aaacf4fbae492e6f0ca3fb0821e2b666f0806ad5fddec041a1124b86b9941540cdfb08b4 |
23 |
DIST nfs-utils-2.1.1.tar.bz2 820083 SHA256 0a28416948516c26f3bfe90425b0de09b79364dc1f508bf1dda8de66e1edbb09 SHA512 ed358280b7e124154632040bf747f6e4c3c6e4156bf90e82ff6915b1488f1c0dd65251a3a0f9b7ca96b9664d64e24b379828da9b524e64a3c769a44f4c930448 WHIRLPOOL bb28ae312b64c3493a1393a5b41eda457367594a71e230379ec04ffea3eb29d60ab8254e4981b0aa9cbe778dc1fbe9b08dc8615184a35cdb22bf4e5e04e56a6c |
24 |
-DIST nfs-utils-2.1.2_rc3.tar.gz 475356 SHA256 5b379316a2cc49b07f72042b72eadee0bfe7c88e65d7b5baa4798e6cefca5a82 SHA512 2f948994f275b405678240deecc879900cc0e72476adaf552db059364f08f0929722013d751e0bc7913c30eb3f8183d1fc7693709c063fc92e20b71edd24ccef WHIRLPOOL 6a16a9cc3d22d883b6a8aa2d2f01dce81f9a1df03154a80e4aa43ae9bb878a15f0ca37951702f780341283da94d885b7be3656a950285ef79619e09dc465727f |
25 |
-DIST nfs-utils-2.1.2_rc5.tar.gz 476401 SHA256 52b32896572e0f81dffd5ccd90c367e5d00b5d371b8deef45dc744ee1b7ad2ab SHA512 28670ca993c1bf953632086ab15cec1b6a525fb1b28243e382f246362cfb2629c9d0416f4f65c6a2f2c46202a4c6855d1924a7f8c984395ddb98b6d4f4b0cbcb WHIRLPOOL f2e2f75c0a989402f75740164870e250a12f29f4b3f0eb7102cecf57aea0d647a0a7860798f9333e8bef9efc4af72f516c885c62cd079e89470d108cdaca4b9d |
26 |
DIST nfs-utils-2.1.2_rc6.tar.gz 476695 SHA256 a88b499210eec4fb41414f9ba653570d1845981e414f5de6ae90ecaf14205977 SHA512 d7c054074e2ea4370a5e47922785fa2a0cf595623d0222cb16f910c4946ed7f3d6f093b471557ce139c85ad0dd321bed0222f5c5aa5b7bca04b31d422eb35f75 WHIRLPOOL 6dfec79baa7b37f57a162296b7e5acb07da9144d677cf1f7ec515fc220a844d9a0d7e935ac0f4b9a1db9eaa2816d5d1ea089141f11f6ae9e6ec8bd77d24be0b5 |
27 |
DIST nfs-utils-2.2.1.tar.bz2 853812 SHA256 0d819d8da358bea6e005e1a6cf0f6fa0c5507a78747d36bc87a0182e6af14291 SHA512 05e2aa4f413a4a4927995847211680baf87f956a435d0d903dd7b6239f72e66a15a089758d41874c05c2137e0626d72c1714010c2a9ce854943fef7798db9a24 WHIRLPOOL 8cd39c83e0a761c3cc846f81184ec6cbe68289b2648c5605ba68a31379f86afafe67f6808f348b30875730a1ee1656d65738b74dd0863a70b48250a3d325f1fc |
28 |
DIST nfs-utils-2.2.2_rc1.tar.gz 509381 SHA256 5ed5c50ef20c49a9b96c99bd288d25dc94ecbdb4b314f5d885576692e89345bc SHA512 5cc9a19e1ebf1831f1914419c0e7f12ff12037caa35e5866dfba8bf30c5355dcf2e039928b9b336c6755df856549ccac6ea646d61b57c68f96fd586d21a27f1a WHIRLPOOL 407b721b43308b96ae48553169dfeafb2844dedbce3060860549d85322aea074539bac82bb5579a17d74b2fcc212156d1450feb8a5340570f3d33c763b8fed29 |
29 |
|
30 |
diff --git a/net-fs/nfs-utils/nfs-utils-2.1.2_rc3.ebuild b/net-fs/nfs-utils/nfs-utils-2.1.2_rc3.ebuild |
31 |
deleted file mode 100644 |
32 |
index 4858d85705f..00000000000 |
33 |
--- a/net-fs/nfs-utils/nfs-utils-2.1.2_rc3.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,190 +0,0 @@ |
36 |
-# Copyright 1999-2017 Gentoo Foundation |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI="5" |
40 |
- |
41 |
-inherit eutils flag-o-matic multilib autotools systemd |
42 |
- |
43 |
-DESCRIPTION="NFS client and server daemons" |
44 |
-HOMEPAGE="http://linux-nfs.org/" |
45 |
- |
46 |
-if [[ "${PV}" = *_rc* ]] ; then |
47 |
- inherit versionator |
48 |
- MY_PV="$(replace_all_version_separators -)" |
49 |
- 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" |
50 |
- S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
51 |
-else |
52 |
- SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
53 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
54 |
-fi |
55 |
- |
56 |
-LICENSE="GPL-2" |
57 |
-SLOT="0" |
58 |
-IUSE="caps ipv6 kerberos +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
59 |
-REQUIRED_USE="kerberos? ( nfsv4 )" |
60 |
-RESTRICT="test" #315573 |
61 |
- |
62 |
-# kth-krb doesn't provide the right include |
63 |
-# files, and nfs-utils doesn't build against heimdal either, |
64 |
-# so don't depend on virtual/krb. |
65 |
-# (04 Feb 2005 agriffis) |
66 |
-DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers ) |
67 |
- caps? ( sys-libs/libcap ) |
68 |
- sys-libs/e2fsprogs-libs |
69 |
- >=net-nds/rpcbind-0.2.4 |
70 |
- net-libs/libtirpc:= |
71 |
- libmount? ( sys-apps/util-linux ) |
72 |
- nfsdcld? ( >=dev-db/sqlite-3.3 ) |
73 |
- nfsv4? ( |
74 |
- dev-libs/libevent:= |
75 |
- >=net-libs/libnfsidmap-0.21-r1 |
76 |
- kerberos? ( |
77 |
- >=net-libs/libtirpc-0.2.4-r1[kerberos] |
78 |
- app-crypt/mit-krb5 |
79 |
- ) |
80 |
- nfsidmap? ( |
81 |
- >=net-libs/libnfsidmap-0.24 |
82 |
- >=sys-apps/keyutils-1.5.9 |
83 |
- ) |
84 |
- ) |
85 |
- nfsv41? ( |
86 |
- sys-fs/lvm2 |
87 |
- ) |
88 |
- uuid? ( sys-apps/util-linux )" |
89 |
-RDEPEND="${DEPEND_COMMON} |
90 |
- !net-nds/portmap |
91 |
- !<sys-apps/openrc-0.13.9 |
92 |
- selinux? ( |
93 |
- sec-policy/selinux-rpc |
94 |
- sec-policy/selinux-rpcbind |
95 |
- ) |
96 |
-" |
97 |
-DEPEND="${DEPEND_COMMON} |
98 |
- virtual/pkgconfig" |
99 |
- |
100 |
-PATCHES=( |
101 |
- "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
102 |
- "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
103 |
-) |
104 |
- |
105 |
-src_prepare() { |
106 |
- epatch "${PATCHES[@]}" |
107 |
- |
108 |
- sed \ |
109 |
- -e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
110 |
- -i utils/*/Makefile.am || die |
111 |
- |
112 |
- epatch_user |
113 |
- eautoreconf |
114 |
-} |
115 |
- |
116 |
-src_configure() { |
117 |
- export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
118 |
- export ac_cv_header_keyutils_h=$(usex nfsidmap) |
119 |
- local myeconfargs=( |
120 |
- --with-statedir="${EPREFIX}"/var/lib/nfs |
121 |
- --enable-tirpc |
122 |
- --with-tirpcinclude="${EPREFIX}"/usr/include/tirpc/ |
123 |
- $(use_enable libmount libmount-mount) |
124 |
- $(use_with tcpd tcp-wrappers) |
125 |
- $(use_enable nfsdcld nfsdcltrack) |
126 |
- $(use_enable nfsv4) |
127 |
- $(use_enable nfsv41) |
128 |
- $(use_enable ipv6) |
129 |
- $(use_enable caps) |
130 |
- $(use_enable uuid) |
131 |
- $(use_enable kerberos gss) |
132 |
- $(use_enable kerberos svcgss) |
133 |
- --without-gssglue |
134 |
- ) |
135 |
- econf "${myeconfargs[@]}" |
136 |
-} |
137 |
- |
138 |
-src_compile(){ |
139 |
- # remove compiled files bundled in the tarball |
140 |
- emake clean |
141 |
- default |
142 |
-} |
143 |
- |
144 |
-src_install() { |
145 |
- default |
146 |
- rm linux-nfs/Makefile* || die |
147 |
- dodoc -r linux-nfs README |
148 |
- |
149 |
- # Don't overwrite existing xtab/etab, install the original |
150 |
- # versions somewhere safe... more info in pkg_postinst |
151 |
- keepdir /var/lib/nfs/{,sm,sm.bak} |
152 |
- mv "${ED}"/var/lib "${ED}"/usr/$(get_libdir) || die |
153 |
- |
154 |
- # Install some client-side binaries in /sbin |
155 |
- dodir /sbin |
156 |
- mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die |
157 |
- |
158 |
- if use nfsv4 && use nfsidmap ; then |
159 |
- # Install a config file for idmappers in newer kernels. #415625 |
160 |
- insinto /etc/request-key.d |
161 |
- echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
162 |
- doins id_resolver.conf |
163 |
- fi |
164 |
- |
165 |
- insinto /etc |
166 |
- doins "${FILESDIR}"/exports |
167 |
- keepdir /etc/exports.d |
168 |
- |
169 |
- local f list=() opt_need="" |
170 |
- if use nfsv4 ; then |
171 |
- opt_need="rpc.idmapd" |
172 |
- list+=( rpc.idmapd rpc.pipefs ) |
173 |
- use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
174 |
- fi |
175 |
- for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
176 |
- newinitd "${FILESDIR}"/${f}.initd ${f} |
177 |
- done |
178 |
- newinitd "${FILESDIR}"/nfsmount.initd-1.3.1 nfsmount # Nuke after 2015/08/01 |
179 |
- for f in nfs nfsclient ; do |
180 |
- newconfd "${FILESDIR}"/${f}.confd ${f} |
181 |
- done |
182 |
- sed -i \ |
183 |
- -e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
184 |
- "${ED}"/etc/conf.d/nfs || die #234132 |
185 |
- |
186 |
- systemd_dounit systemd/*.{mount,service,target} |
187 |
- if ! use nfsv4 || ! use kerberos ; then |
188 |
- rm "${ED}$(systemd_get_unitdir)"/rpc-{gssd,svcgssd}.service || die |
189 |
- fi |
190 |
- if ! use nfsv41 ; then |
191 |
- rm "${ED}$(systemd_get_unitdir)"/nfs-blkmap.* || die |
192 |
- fi |
193 |
- sed -i \ |
194 |
- -e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
195 |
- "${ED}$(systemd_get_unitdir)"/* || die |
196 |
- |
197 |
- keepdir /var/lib/nfs #368505 |
198 |
- keepdir /var/lib/nfs/v4recovery #603628 |
199 |
- |
200 |
-} |
201 |
- |
202 |
-pkg_postinst() { |
203 |
- # Install default xtab and friends if there's none existing. In |
204 |
- # src_install we put them in /usr/lib/nfs for safe-keeping, but |
205 |
- # the daemons actually use the files in /var/lib/nfs. #30486 |
206 |
- local f |
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 |
diff --git a/net-fs/nfs-utils/nfs-utils-2.1.2_rc5.ebuild b/net-fs/nfs-utils/nfs-utils-2.1.2_rc5.ebuild |
228 |
deleted file mode 100644 |
229 |
index 133e06869f0..00000000000 |
230 |
--- a/net-fs/nfs-utils/nfs-utils-2.1.2_rc5.ebuild |
231 |
+++ /dev/null |
232 |
@@ -1,190 +0,0 @@ |
233 |
-# Copyright 1999-2017 Gentoo Foundation |
234 |
-# Distributed under the terms of the GNU General Public License v2 |
235 |
- |
236 |
-EAPI=6 |
237 |
- |
238 |
-inherit autotools flag-o-matic multilib systemd |
239 |
- |
240 |
-DESCRIPTION="NFS client and server daemons" |
241 |
-HOMEPAGE="http://linux-nfs.org/" |
242 |
- |
243 |
-if [[ "${PV}" = *_rc* ]] ; then |
244 |
- inherit versionator |
245 |
- MY_PV="$(replace_all_version_separators -)" |
246 |
- 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" |
247 |
- S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
248 |
-else |
249 |
- SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
250 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
251 |
-fi |
252 |
- |
253 |
-LICENSE="GPL-2" |
254 |
-SLOT="0" |
255 |
-IUSE="caps ipv6 kerberos +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid" |
256 |
-REQUIRED_USE="kerberos? ( nfsv4 )" |
257 |
-RESTRICT="test" #315573 |
258 |
- |
259 |
-# kth-krb doesn't provide the right include |
260 |
-# files, and nfs-utils doesn't build against heimdal either, |
261 |
-# so don't depend on virtual/krb. |
262 |
-# (04 Feb 2005 agriffis) |
263 |
-DEPEND_COMMON="tcpd? ( sys-apps/tcp-wrappers ) |
264 |
- caps? ( sys-libs/libcap ) |
265 |
- sys-libs/e2fsprogs-libs |
266 |
- >=net-nds/rpcbind-0.2.4 |
267 |
- net-libs/libtirpc:= |
268 |
- libmount? ( sys-apps/util-linux ) |
269 |
- nfsdcld? ( >=dev-db/sqlite-3.3 ) |
270 |
- nfsv4? ( |
271 |
- dev-libs/libevent:= |
272 |
- >=net-libs/libnfsidmap-0.21-r1 |
273 |
- kerberos? ( |
274 |
- >=net-libs/libtirpc-0.2.4-r1[kerberos] |
275 |
- app-crypt/mit-krb5 |
276 |
- ) |
277 |
- nfsidmap? ( |
278 |
- >=net-libs/libnfsidmap-0.24 |
279 |
- >=sys-apps/keyutils-1.5.9 |
280 |
- ) |
281 |
- ) |
282 |
- nfsv41? ( |
283 |
- sys-fs/lvm2 |
284 |
- ) |
285 |
- uuid? ( sys-apps/util-linux )" |
286 |
-RDEPEND="${DEPEND_COMMON} |
287 |
- !net-nds/portmap |
288 |
- !<sys-apps/openrc-0.13.9 |
289 |
- selinux? ( |
290 |
- sec-policy/selinux-rpc |
291 |
- sec-policy/selinux-rpcbind |
292 |
- ) |
293 |
-" |
294 |
-DEPEND="${DEPEND_COMMON} |
295 |
- virtual/pkgconfig" |
296 |
- |
297 |
-PATCHES=( |
298 |
- "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch |
299 |
- "${FILESDIR}"/${PN}-1.2.8-cross-build.patch |
300 |
-) |
301 |
- |
302 |
-src_prepare() { |
303 |
- default |
304 |
- |
305 |
- sed \ |
306 |
- -e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
307 |
- -i utils/*/Makefile.am || die |
308 |
- |
309 |
- eautoreconf |
310 |
-} |
311 |
- |
312 |
-src_configure() { |
313 |
- export libsqlite3_cv_is_recent=yes # Our DEPEND forces this. |
314 |
- export ac_cv_header_keyutils_h=$(usex nfsidmap) |
315 |
- local myeconfargs=( |
316 |
- --with-statedir="${EPREFIX}"/var/lib/nfs |
317 |
- --enable-tirpc |
318 |
- --with-tirpcinclude="${EPREFIX}"/usr/include/tirpc/ |
319 |
- $(use_enable libmount libmount-mount) |
320 |
- $(use_with tcpd tcp-wrappers) |
321 |
- $(use_enable nfsdcld nfsdcltrack) |
322 |
- $(use_enable nfsv4) |
323 |
- $(use_enable nfsv41) |
324 |
- $(use_enable ipv6) |
325 |
- $(use_enable caps) |
326 |
- $(use_enable uuid) |
327 |
- $(use_enable kerberos gss) |
328 |
- $(use_enable kerberos svcgss) |
329 |
- --without-gssglue |
330 |
- ) |
331 |
- econf "${myeconfargs[@]}" |
332 |
-} |
333 |
- |
334 |
-src_compile(){ |
335 |
- # remove compiled files bundled in the tarball |
336 |
- emake clean |
337 |
- default |
338 |
-} |
339 |
- |
340 |
-src_install() { |
341 |
- default |
342 |
- rm linux-nfs/Makefile* || die |
343 |
- dodoc -r linux-nfs README |
344 |
- |
345 |
- # Don't overwrite existing xtab/etab, install the original |
346 |
- # versions somewhere safe... more info in pkg_postinst |
347 |
- keepdir /var/lib/nfs/{,sm,sm.bak} |
348 |
- mv "${ED%/}"/var/lib "${ED%/}"/usr/$(get_libdir) || die |
349 |
- |
350 |
- # Install some client-side binaries in /sbin |
351 |
- dodir /sbin |
352 |
- mv "${ED%/}"/usr/sbin/rpc.statd "${ED%/}"/sbin/ || die |
353 |
- |
354 |
- if use nfsv4 && use nfsidmap ; then |
355 |
- # Install a config file for idmappers in newer kernels. #415625 |
356 |
- insinto /etc/request-key.d |
357 |
- echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
358 |
- doins id_resolver.conf |
359 |
- fi |
360 |
- |
361 |
- insinto /etc |
362 |
- doins "${FILESDIR}"/exports |
363 |
- keepdir /etc/exports.d |
364 |
- |
365 |
- local f list=() opt_need="" |
366 |
- if use nfsv4 ; then |
367 |
- opt_need="rpc.idmapd" |
368 |
- list+=( rpc.idmapd rpc.pipefs ) |
369 |
- use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
370 |
- fi |
371 |
- for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
372 |
- newinitd "${FILESDIR}"/${f}.initd ${f} |
373 |
- done |
374 |
- newinitd "${FILESDIR}"/nfsmount.initd-1.3.1 nfsmount # Nuke after 2015/08/01 |
375 |
- for f in nfs nfsclient ; do |
376 |
- newconfd "${FILESDIR}"/${f}.confd ${f} |
377 |
- done |
378 |
- sed -i \ |
379 |
- -e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
380 |
- "${ED%/}"/etc/conf.d/nfs || die #234132 |
381 |
- |
382 |
- local systemd_systemunitdir="$(systemd_get_systemunitdir)" |
383 |
- systemd_dounit systemd/*.{mount,service,target} |
384 |
- if ! use nfsv4 || ! use kerberos ; then |
385 |
- rm "${ED%/}${systemd_systemunitdir}"/rpc-{gssd,svcgssd}.service || die |
386 |
- fi |
387 |
- if ! use nfsv41 ; then |
388 |
- rm "${ED%/}${systemd_systemunitdir}"/nfs-blkmap.* || die |
389 |
- fi |
390 |
- sed -i \ |
391 |
- -e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
392 |
- "${ED%/}${systemd_systemunitdir}"/* || die |
393 |
- |
394 |
- keepdir /var/lib/nfs #368505 |
395 |
- keepdir /var/lib/nfs/v4recovery #603628 |
396 |
- |
397 |
-} |
398 |
- |
399 |
-pkg_postinst() { |
400 |
- # Install default xtab and friends if there's none existing. In |
401 |
- # src_install we put them in /usr/lib/nfs for safe-keeping, but |
402 |
- # the daemons actually use the files in /var/lib/nfs. #30486 |
403 |
- local f |
404 |
- for f in "${EROOT%/}"/usr/$(get_libdir)/nfs/*; do |
405 |
- [[ -e ${EROOT%/}/var/lib/nfs/${f##*/} ]] && continue |
406 |
- einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs" |
407 |
- cp -pPR "${f}" "${EROOT%/}"/var/lib/nfs/ |
408 |
- done |
409 |
- |
410 |
- if systemd_is_booted; then |
411 |
- if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then |
412 |
- ewarn "We have switched to upstream systemd unit files. Since" |
413 |
- ewarn "they got renamed, you should probably enable the new ones." |
414 |
- ewarn "You can run 'equery files nfs-utils | grep systemd'" |
415 |
- ewarn "to know what services you need to enable now." |
416 |
- fi |
417 |
- else |
418 |
- ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient." |
419 |
- ewarn "If you were using nfsmount, please add nfsclient and netmount to the" |
420 |
- ewarn "same runlevel as nfsmount." |
421 |
- fi |
422 |
-} |