Gentoo Archives: gentoo-commits

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