1 |
commit: 3a94789db5166fbcb26dfc594dd373ccb883d175 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 23 02:11:54 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 23 02:13:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a94789d |
7 |
|
8 |
net-fs/nfs-utils: drop 2.6.2 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-fs/nfs-utils/nfs-utils-2.6.2.ebuild | 228 -------------------------------- |
13 |
1 file changed, 228 deletions(-) |
14 |
|
15 |
diff --git a/net-fs/nfs-utils/nfs-utils-2.6.2.ebuild b/net-fs/nfs-utils/nfs-utils-2.6.2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 9f9ef08b453e..000000000000 |
18 |
--- a/net-fs/nfs-utils/nfs-utils-2.6.2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,228 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=8 |
25 |
- |
26 |
-inherit autotools linux-info systemd |
27 |
- |
28 |
-DESCRIPTION="NFS client and server daemons" |
29 |
-HOMEPAGE="http://linux-nfs.org/ https://git.linux-nfs.org/?p=steved/nfs-utils.git" |
30 |
- |
31 |
-if [[ ${PV} == *_rc* ]] ; then |
32 |
- MY_PV="$(ver_rs 1- -)" |
33 |
- 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" |
34 |
- S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
35 |
-else |
36 |
- SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2" |
37 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
38 |
-fi |
39 |
- |
40 |
-LICENSE="GPL-2" |
41 |
-SLOT="0" |
42 |
-IUSE="caps junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 sasl selinux tcpd +uuid" |
43 |
-REQUIRED_USE="kerberos? ( nfsv4 )" |
44 |
-# bug #315573 |
45 |
-RESTRICT="test" |
46 |
- |
47 |
-# kth-krb doesn't provide the right include |
48 |
-# files, and nfs-utils doesn't build against heimdal either, |
49 |
-# so don't depend on virtual/krb. |
50 |
-# (04 Feb 2005 agriffis) |
51 |
-COMMON_DEPEND=" |
52 |
- dev-libs/libxml2 |
53 |
- net-libs/libtirpc:= |
54 |
- >=net-nds/rpcbind-0.2.4 |
55 |
- sys-fs/e2fsprogs |
56 |
- caps? ( sys-libs/libcap ) |
57 |
- ldap? ( |
58 |
- net-nds/openldap:= |
59 |
- sasl? ( |
60 |
- app-crypt/mit-krb5 |
61 |
- dev-libs/cyrus-sasl:2 |
62 |
- ) |
63 |
- ) |
64 |
- libmount? ( sys-apps/util-linux ) |
65 |
- nfsv4? ( |
66 |
- dev-db/sqlite:3 |
67 |
- dev-libs/libevent:= |
68 |
- >=sys-apps/keyutils-1.5.9:= |
69 |
- kerberos? ( |
70 |
- >=net-libs/libtirpc-0.2.4-r1[kerberos] |
71 |
- app-crypt/mit-krb5 |
72 |
- ) |
73 |
- ) |
74 |
- nfsv41? ( |
75 |
- sys-fs/lvm2 |
76 |
- ) |
77 |
- tcpd? ( sys-apps/tcp-wrappers ) |
78 |
- uuid? ( sys-apps/util-linux )" |
79 |
-DEPEND="${COMMON_DEPEND} |
80 |
- elibc_musl? ( sys-libs/queue-standalone ) |
81 |
-" |
82 |
-RDEPEND="${COMMON_DEPEND} |
83 |
- !net-libs/libnfsidmap |
84 |
- selinux? ( |
85 |
- sec-policy/selinux-rpc |
86 |
- sec-policy/selinux-rpcbind |
87 |
- ) |
88 |
-" |
89 |
-BDEPEND=" |
90 |
- net-libs/rpcsvc-proto |
91 |
- virtual/pkgconfig |
92 |
-" |
93 |
- |
94 |
-PATCHES=( |
95 |
- "${FILESDIR}"/${PN}-2.5.2-no-werror.patch |
96 |
-) |
97 |
- |
98 |
-pkg_setup() { |
99 |
- linux-info_pkg_setup |
100 |
- |
101 |
- if use nfsv4 && ! use nfsdcld && linux_config_exists && ! linux_chkconfig_present CRYPTO_MD5 ; then |
102 |
- ewarn "Your NFS server will be unable to track clients across server restarts!" |
103 |
- ewarn "Please enable the \"${HILITE}nfsdcld${NORMAL}\" USE flag to install the nfsdcltrack usermode" |
104 |
- ewarn "helper upcall program, or enable ${HILITE}CONFIG_CRYPTO_MD5${NORMAL} in your kernel to" |
105 |
- ewarn "support the legacy, in-kernel client tracker." |
106 |
- fi |
107 |
-} |
108 |
- |
109 |
-src_prepare() { |
110 |
- default |
111 |
- |
112 |
- sed \ |
113 |
- -e "/^sbindir/s:= := \"${EPREFIX}\":g" \ |
114 |
- -i utils/*/Makefile.am || die |
115 |
- |
116 |
- eautoreconf |
117 |
-} |
118 |
- |
119 |
-src_configure() { |
120 |
- # Our DEPEND forces this. |
121 |
- export libsqlite3_cv_is_recent=yes |
122 |
- export ac_cv_header_keyutils_h=$(usex nfsidmap) |
123 |
- |
124 |
- # SASL is consumed in a purely automagic way |
125 |
- export ac_cv_header_sasl_h=no |
126 |
- export ac_cv_header_sasl_sasl_h=$(usex sasl) |
127 |
- |
128 |
- local myeconfargs=( |
129 |
- --disable-static |
130 |
- --with-statedir="${EPREFIX}"/var/lib/nfs |
131 |
- --enable-tirpc |
132 |
- --with-tirpcinclude="${ESYSROOT}"/usr/include/tirpc/ |
133 |
- --with-pluginpath="${EPREFIX}"/usr/$(get_libdir)/libnfsidmap |
134 |
- --with-rpcgen |
135 |
- --with-systemd="$(systemd_get_systemunitdir)" |
136 |
- --without-gssglue |
137 |
- $(use_enable caps) |
138 |
- --enable-ipv6 |
139 |
- $(use_enable junction) |
140 |
- $(use_enable kerberos gss) |
141 |
- $(use_enable kerberos svcgss) |
142 |
- $(use_enable ldap) |
143 |
- $(use_enable libmount libmount-mount) |
144 |
- $(use_enable nfsdcld nfsdcltrack) |
145 |
- $(use_enable nfsv4) |
146 |
- $(use_enable nfsv41) |
147 |
- $(use_enable uuid) |
148 |
- $(use_with tcpd tcp-wrappers) |
149 |
- ) |
150 |
- econf "${myeconfargs[@]}" |
151 |
-} |
152 |
- |
153 |
-src_compile() { |
154 |
- # Remove compiled files bundled in the tarball |
155 |
- emake clean |
156 |
- |
157 |
- default |
158 |
-} |
159 |
- |
160 |
-src_install() { |
161 |
- default |
162 |
- rm linux-nfs/Makefile* || die |
163 |
- dodoc -r linux-nfs README |
164 |
- |
165 |
- # Don't overwrite existing xtab/etab, install the original |
166 |
- # versions somewhere safe... more info in pkg_postinst |
167 |
- keepdir /var/lib/nfs/{,sm,sm.bak} |
168 |
- mv "${ED}"/var/lib/nfs "${ED}"/usr/$(get_libdir)/ || die |
169 |
- |
170 |
- # Install some client-side binaries in /sbin |
171 |
- dodir /sbin |
172 |
- mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die |
173 |
- |
174 |
- if use nfsv4 && use nfsidmap ; then |
175 |
- insinto /etc |
176 |
- doins support/nfsidmap/idmapd.conf |
177 |
- |
178 |
- # Install a config file for idmappers in newer kernels. bug #415625 |
179 |
- insinto /etc/request-key.d |
180 |
- echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf |
181 |
- doins id_resolver.conf |
182 |
- fi |
183 |
- |
184 |
- insinto /etc |
185 |
- doins "${FILESDIR}"/exports |
186 |
- keepdir /etc/exports.d |
187 |
- |
188 |
- local f list=() opt_need="" |
189 |
- if use nfsv4 ; then |
190 |
- opt_need="rpc.idmapd" |
191 |
- list+=( rpc.idmapd rpc.pipefs ) |
192 |
- use kerberos && list+=( rpc.gssd rpc.svcgssd ) |
193 |
- fi |
194 |
- for f in nfs nfsclient rpc.statd "${list[@]}" ; do |
195 |
- newinitd "${FILESDIR}"/${f}.initd ${f} |
196 |
- done |
197 |
- |
198 |
- # Nuke after 2015/08/01 |
199 |
- newinitd "${FILESDIR}"/nfsmount.initd-1.3.1 nfsmount |
200 |
- for f in nfs nfsclient ; do |
201 |
- newconfd "${FILESDIR}"/${f}.confd ${f} |
202 |
- done |
203 |
- |
204 |
- # bug #234132 |
205 |
- sed -i \ |
206 |
- -e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \ |
207 |
- "${ED}"/etc/conf.d/nfs || die |
208 |
- |
209 |
- local systemd_systemunitdir="$(systemd_get_systemunitdir)" |
210 |
- sed -i \ |
211 |
- -e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \ |
212 |
- "${ED}${systemd_systemunitdir}"/* || die |
213 |
- |
214 |
- # bug #368505 |
215 |
- keepdir /var/lib/nfs |
216 |
- # bug #603628 |
217 |
- keepdir /var/lib/nfs/v4recovery |
218 |
- |
219 |
- # No static archives |
220 |
- find "${ED}" -name '*.la' -delete || die |
221 |
-} |
222 |
- |
223 |
-pkg_postinst() { |
224 |
- # Install default xtab and friends if there's none existing. In |
225 |
- # src_install we put them in /usr/lib/nfs for safe-keeping, but |
226 |
- # the daemons actually use the files in /var/lib/nfs. #30486 |
227 |
- local f |
228 |
- for f in "${EROOT}"/usr/$(get_libdir)/nfs/*; do |
229 |
- [[ -e ${EROOT}/var/lib/nfs/${f##*/} ]] && continue |
230 |
- einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs" |
231 |
- cp -pPR "${f}" "${EROOT}"/var/lib/nfs/ |
232 |
- done |
233 |
- |
234 |
- if systemd_is_booted; then |
235 |
- for v in ${REPLACING_VERSIONS}; do |
236 |
- if ver_test "${v}" -lt 1.3.0; then |
237 |
- ewarn "We have switched to upstream systemd unit files. Since" |
238 |
- ewarn "they got renamed, you should probably enable the new ones." |
239 |
- ewarn "You can run 'equery files nfs-utils | grep systemd'" |
240 |
- ewarn "to know what services you need to enable now." |
241 |
- fi |
242 |
- done |
243 |
- else |
244 |
- ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient." |
245 |
- ewarn "If you were using nfsmount, please add nfsclient and netmount to the" |
246 |
- ewarn "same runlevel as nfsmount." |
247 |
- fi |
248 |
-} |