Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/nfs-utils/
Date: Tue, 30 Nov 2021 10:45:23
Message-Id: 1638269110.179a10b91dfe454225aee6e62bb9a496d32a880e.soap@gentoo
1 commit: 179a10b91dfe454225aee6e62bb9a496d32a880e
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 30 10:45:10 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 30 10:45:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=179a10b9
7
8 net-fs/nfs-utils: drop 2.5.3-r2
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 net-fs/nfs-utils/Manifest | 1 -
13 net-fs/nfs-utils/nfs-utils-2.5.3-r2.ebuild | 207 -----------------------------
14 2 files changed, 208 deletions(-)
15
16 diff --git a/net-fs/nfs-utils/Manifest b/net-fs/nfs-utils/Manifest
17 index 51da327ce843..c36c94e4db67 100644
18 --- a/net-fs/nfs-utils/Manifest
19 +++ b/net-fs/nfs-utils/Manifest
20 @@ -1,2 +1 @@
21 -DIST nfs-utils-2.5.3.tar.bz2 937544 BLAKE2B 817af2c302cf110519e64353a507645137ffd3b93b46eb94e71d45a1869c9e831e344f0baa33b1b39514962798cca542cf56a2830520c67e96e78995f2bf901f SHA512 3be82f42c5da2bbbca4429459c858c58ae7333725749213c824d0c01b78f0beb7384455f314fc1cc1799968f9f40fd616297c7baf3514ca0e31d4686e9d6e732
22 DIST nfs-utils-2.5.4.tar.bz2 943373 BLAKE2B 72ed871613701f5b035941a7aed957771fe3b6a19fefee203130442c292bbbefde35721f2287fef19046d2d837faeda43b06a93a5acdb8ac6240eef90e6dd12c SHA512 b1395c5b06a06246666c48174594b1e08b71cf40b8f94b533497bd92625401a669e2c40e48dbd665891ad2247bc94d7d604d0c5d0f0b66bfe957b03d42e5d305
23
24 diff --git a/net-fs/nfs-utils/nfs-utils-2.5.3-r2.ebuild b/net-fs/nfs-utils/nfs-utils-2.5.3-r2.ebuild
25 deleted file mode 100644
26 index 08059cd37886..000000000000
27 --- a/net-fs/nfs-utils/nfs-utils-2.5.3-r2.ebuild
28 +++ /dev/null
29 @@ -1,207 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -inherit autotools linux-info systemd
36 -
37 -DESCRIPTION="NFS client and server daemons"
38 -HOMEPAGE="http://linux-nfs.org/"
39 -
40 -if [[ "${PV}" = *_rc* ]] ; then
41 - MY_PV="$(ver_rs 1- -)"
42 - 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"
43 - S="${WORKDIR}/${PN}-${PN}-${MY_PV}"
44 -else
45 - SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
46 - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
47 -fi
48 -
49 -LICENSE="GPL-2"
50 -SLOT="0"
51 -IUSE="caps ipv6 junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid"
52 -REQUIRED_USE="kerberos? ( nfsv4 )"
53 -RESTRICT="test" #315573
54 -
55 -# kth-krb doesn't provide the right include
56 -# files, and nfs-utils doesn't build against heimdal either,
57 -# so don't depend on virtual/krb.
58 -# (04 Feb 2005 agriffis)
59 -COMMON_DEPEND="
60 - >=dev-db/sqlite-3.3
61 - dev-libs/libxml2
62 - net-libs/libtirpc:=
63 - >=net-nds/rpcbind-0.2.4
64 - sys-fs/e2fsprogs
65 - caps? ( sys-libs/libcap )
66 - ldap? ( net-nds/openldap )
67 - libmount? ( sys-apps/util-linux )
68 - nfsv4? (
69 - dev-libs/libevent:=
70 - >=sys-apps/keyutils-1.5.9:=
71 - kerberos? (
72 - >=net-libs/libtirpc-0.2.4-r1[kerberos]
73 - app-crypt/mit-krb5
74 - )
75 - )
76 - nfsv41? (
77 - sys-fs/lvm2
78 - )
79 - tcpd? ( sys-apps/tcp-wrappers )
80 - uuid? ( sys-apps/util-linux )"
81 -DEPEND="${COMMON_DEPEND}
82 - elibc_musl? ( sys-libs/queue-standalone )
83 -"
84 -RDEPEND="${COMMON_DEPEND}
85 - !net-libs/libnfsidmap
86 - !net-nds/portmap
87 - !<sys-apps/openrc-0.13.9
88 - selinux? (
89 - sec-policy/selinux-rpc
90 - sec-policy/selinux-rpcbind
91 - )
92 -"
93 -BDEPEND="
94 - net-libs/rpcsvc-proto
95 - virtual/pkgconfig
96 -"
97 -
98 -PATCHES=( "${FILESDIR}"/${PN}-2.5.2-no-werror.patch )
99 -
100 -pkg_setup() {
101 - linux-info_pkg_setup
102 - if use nfsv4 && ! use nfsdcld && linux_config_exists && ! linux_chkconfig_present CRYPTO_MD5 ; then
103 - ewarn "Your NFS server will be unable to track clients across server restarts!"
104 - ewarn "Please enable the \"${HILITE}nfsdcld${NORMAL}\" USE flag to install the nfsdcltrack usermode"
105 - ewarn "helper upcall program, or enable ${HILITE}CONFIG_CRYPTO_MD5${NORMAL} in your kernel to"
106 - ewarn "support the legacy, in-kernel client tracker."
107 - fi
108 -}
109 -
110 -src_prepare() {
111 - default
112 -
113 - sed \
114 - -e "/^sbindir/s:= := \"${EPREFIX}\":g" \
115 - -i utils/*/Makefile.am || die
116 -
117 - eautoreconf
118 -}
119 -
120 -src_configure() {
121 - export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
122 - export ac_cv_header_keyutils_h=$(usex nfsidmap)
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 -}