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