From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/nfs-utils/
Date: Wed, 20 Nov 2019 12:55:44 +0000 (UTC) [thread overview]
Message-ID: <1574253719.313a6a58992063f9c17946e8f93147d5e63e3ef7.whissi@gentoo> (raw)
commit: 313a6a58992063f9c17946e8f93147d5e63e3ef7
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 12:41:59 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 12:41:59 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=313a6a58
net-fs/nfs-utils: restore v2.3.x
Bug: https://bugs.gentoo.org/688644
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
net-fs/nfs-utils/Manifest | 1 +
net-fs/nfs-utils/nfs-utils-2.3.4.ebuild | 192 ++++++++++++++++++++++++++++++++
2 files changed, 193 insertions(+)
diff --git a/net-fs/nfs-utils/Manifest b/net-fs/nfs-utils/Manifest
index 81ed810ff75..a752daf434b 100644
--- a/net-fs/nfs-utils/Manifest
+++ b/net-fs/nfs-utils/Manifest
@@ -1,2 +1,3 @@
+DIST nfs-utils-2.3.4.tar.bz2 906900 BLAKE2B 968fac7b37c7311bc8d29667c88db925aac0c062ed7ef8c13f9e5c11c3c88960ffaea56c1b6cfb5594a01238f9190e55ab7b837a79a7a804bc55dcca75908eea SHA512 25203b38be6683f25ad6583ac8534873c907124092a768955c1454899e2f467b9dd427b167556eb4f28992b5720da13078eb1eb086da991438454f268e1559a5
DIST nfs-utils-2.4.1.tar.bz2 910791 BLAKE2B 4419eff7fca21747e0bc4969ebb8a8b863aa951984af8f23f197e7dfc4faad3770173808862b84178714ca75f021be1af96f9e4408fecd7ef97999d261f2f21b SHA512 655a115955f35177b761f821e29c752693d614f4c6c2a90d392e0ab83b615247a397cf18e8ad453a93c6dc528d1fa90cfdf8b04de6626e0f4083b10e2e54f540
DIST nfs-utils-2.4.2.tar.bz2 918576 BLAKE2B a1dba3ae2e58794509ea7907d80e40fc49a0c5e72019222ba16daa74aa757cab5e6fde9ed066f6b5f379b40dbd61622a05fcafc298a79231e417ab2086127278 SHA512 f9724ff2ac185e6c29afd577b33da38b1d11803af1ccb905cd615afa3383c6ac7a3fa4e0f43ea8d062e9aedcdbae90adc9b55ae9d0abe4731f69aa3a6f8d2534
diff --git a/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild b/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild
new file mode 100644
index 00000000000..975b78c549b
--- /dev/null
+++ b/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild
@@ -0,0 +1,192 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic multilib systemd
+
+DESCRIPTION="NFS client and server daemons"
+HOMEPAGE="http://linux-nfs.org/"
+
+if [[ "${PV}" = *_rc* ]] ; then
+ MY_PV="$(ver_rs 1- -)"
+ 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"
+ S="${WORKDIR}/${PN}-${PN}-${MY_PV}"
+else
+ SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="caps ipv6 junction kerberos ldap +libmount nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid"
+REQUIRED_USE="kerberos? ( nfsv4 )"
+RESTRICT="test" #315573
+
+# kth-krb doesn't provide the right include
+# files, and nfs-utils doesn't build against heimdal either,
+# so don't depend on virtual/krb.
+# (04 Feb 2005 agriffis)
+DEPEND="
+ >=dev-db/sqlite-3.3
+ dev-libs/libxml2
+ net-libs/libtirpc:=
+ >=net-nds/rpcbind-0.2.4
+ sys-libs/e2fsprogs-libs
+ caps? ( sys-libs/libcap )
+ ldap? ( net-nds/openldap )
+ libmount? ( sys-apps/util-linux )
+ nfsv4? (
+ dev-libs/libevent:=
+ >=sys-apps/keyutils-1.5.9
+ kerberos? (
+ >=net-libs/libtirpc-0.2.4-r1[kerberos]
+ app-crypt/mit-krb5
+ )
+ )
+ nfsv41? (
+ sys-fs/lvm2
+ )
+ tcpd? ( sys-apps/tcp-wrappers )
+ uuid? ( sys-apps/util-linux )"
+RDEPEND="${DEPEND}
+ !net-libs/libnfsidmap
+ !net-nds/portmap
+ !<sys-apps/openrc-0.13.9
+ selinux? (
+ sec-policy/selinux-rpc
+ sec-policy/selinux-rpcbind
+ )
+"
+BDEPEND="
+ net-libs/rpcsvc-proto
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
+ "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
+ "${FILESDIR}"/${PN}-2.3.4-no-werror.patch
+)
+
+src_prepare() {
+ default
+
+ sed \
+ -e "/^sbindir/s:= := \"${EPREFIX}\":g" \
+ -i utils/*/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
+ export ac_cv_header_keyutils_h=$(usex nfsidmap)
+ local myeconfargs=(
+ --with-statedir="${EPREFIX%/}"/var/lib/nfs
+ --enable-tirpc
+ --with-tirpcinclude="${EPREFIX%/}"/usr/include/tirpc/
+ --with-pluginpath="${EPREFIX%/}"/usr/$(get_libdir)/libnfsidmap
+ --with-rpcgen
+ --with-systemd="$(systemd_get_systemunitdir)"
+ --without-gssglue
+ $(use_enable caps)
+ $(use_enable ipv6)
+ $(use_enable junction)
+ $(use_enable kerberos gss)
+ $(use_enable kerberos svcgss)
+ $(use_enable ldap)
+ $(use_enable libmount libmount-mount)
+ $(use_enable nfsdcld nfsdcltrack)
+ $(use_enable nfsv4)
+ $(use_enable nfsv41)
+ $(use_enable uuid)
+ $(use_with tcpd tcp-wrappers)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile(){
+ # remove compiled files bundled in the tarball
+ emake clean
+ default
+}
+
+src_install() {
+ default
+ rm linux-nfs/Makefile* || die
+ dodoc -r linux-nfs README
+
+ # Don't overwrite existing xtab/etab, install the original
+ # versions somewhere safe... more info in pkg_postinst
+ keepdir /var/lib/nfs/{,sm,sm.bak}
+ mv "${ED}"/var/lib/nfs "${ED}"/usr/$(get_libdir)/ || die
+
+ # Install some client-side binaries in /sbin
+ dodir /sbin
+ mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die
+
+ if use nfsv4 && use nfsidmap ; then
+ # Install a config file for idmappers in newer kernels. #415625
+ insinto /etc/request-key.d
+ echo 'create id_resolver * * /usr/sbin/nfsidmap -t 600 %k %d' > id_resolver.conf
+ doins id_resolver.conf
+ fi
+
+ insinto /etc
+ doins "${FILESDIR}"/exports
+ keepdir /etc/exports.d
+
+ local f list=() opt_need=""
+ if use nfsv4 ; then
+ opt_need="rpc.idmapd"
+ list+=( rpc.idmapd rpc.pipefs )
+ use kerberos && list+=( rpc.gssd rpc.svcgssd )
+ fi
+ for f in nfs nfsclient rpc.statd "${list[@]}" ; do
+ newinitd "${FILESDIR}"/${f}.initd ${f}
+ done
+ newinitd "${FILESDIR}"/nfsmount.initd-1.3.1 nfsmount # Nuke after 2015/08/01
+ for f in nfs nfsclient ; do
+ newconfd "${FILESDIR}"/${f}.confd ${f}
+ done
+ sed -i \
+ -e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \
+ "${ED}"/etc/conf.d/nfs || die #234132
+
+ local systemd_systemunitdir="$(systemd_get_systemunitdir)"
+ sed -i \
+ -e 's:/usr/sbin/rpc.statd:/sbin/rpc.statd:' \
+ "${ED}${systemd_systemunitdir}"/* || die
+
+ keepdir /var/lib/nfs #368505
+ keepdir /var/lib/nfs/v4recovery #603628
+
+}
+
+pkg_postinst() {
+ # Install default xtab and friends if there's none existing. In
+ # src_install we put them in /usr/lib/nfs for safe-keeping, but
+ # the daemons actually use the files in /var/lib/nfs. #30486
+ local f
+ for f in "${EROOT}"/usr/$(get_libdir)/nfs/*; do
+ [[ -e ${EROOT}/var/lib/nfs/${f##*/} ]] && continue
+ einfo "Copying default ${f##*/} from ${EPREFIX}/usr/$(get_libdir)/nfs to ${EPREFIX}/var/lib/nfs"
+ cp -pPR "${f}" "${EROOT}"/var/lib/nfs/
+ done
+
+ if systemd_is_booted; then
+ for v in ${REPLACING_VERSIONS}; do
+ if ver_test "${v}" -lt 1.3.0; then
+ ewarn "We have switched to upstream systemd unit files. Since"
+ ewarn "they got renamed, you should probably enable the new ones."
+ ewarn "You can run 'equery files nfs-utils | grep systemd'"
+ ewarn "to know what services you need to enable now."
+ fi
+ done
+ else
+ ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient."
+ ewarn "If you were using nfsmount, please add nfsclient and netmount to the"
+ ewarn "same runlevel as nfsmount."
+ fi
+}
next reply other threads:[~2019-11-20 12:55 UTC|newest]
Thread overview: 197+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-20 12:55 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-03 21:11 [gentoo-commits] repo/gentoo:master commit in: net-fs/nfs-utils/ Andreas Sturmlechner
2024-11-02 7:52 Sam James
2024-10-18 16:12 Arthur Zamarin
2024-10-17 7:24 Sam James
2024-10-17 7:19 Sam James
2024-10-17 7:12 Sam James
2024-10-17 7:10 Sam James
2024-08-30 16:36 Sam James
2024-08-29 2:10 Sam James
2024-08-06 15:42 James Le Cuirot
2024-02-26 10:36 David Seifert
2024-02-24 14:01 Sam James
2024-02-24 14:01 Sam James
2024-02-24 7:08 Sam James
2024-02-20 23:38 Sam James
2024-02-20 23:38 Sam James
2024-02-20 23:38 Sam James
2024-02-20 14:06 Jakov Smolić
2024-02-20 14:06 Jakov Smolić
2024-02-20 9:49 David Seifert
2024-02-14 16:48 Sam James
2024-01-25 13:26 David Seifert
2024-01-25 11:08 David Seifert
2024-01-23 14:45 David Seifert
2024-01-18 0:28 Sam James
2024-01-17 6:34 Sam James
2024-01-17 6:30 Arthur Zamarin
2024-01-17 5:50 Sam James
2024-01-17 5:50 Sam James
2023-11-30 3:49 Sam James
2023-08-20 16:32 James Le Cuirot
2023-06-25 17:40 Arthur Zamarin
2023-06-25 17:40 Arthur Zamarin
2023-06-06 21:07 Sam James
2023-06-01 3:34 Sam James
2023-06-01 3:34 Sam James
2023-06-01 3:34 Sam James
2023-06-01 3:32 Sam James
2023-06-01 3:29 Sam James
2023-06-01 3:29 Sam James
2023-04-20 5:01 Sam James
2022-11-25 9:45 Arthur Zamarin
2022-11-25 7:54 Sam James
2022-11-25 6:39 Arthur Zamarin
2022-11-25 5:15 Sam James
2022-11-25 5:15 Sam James
2022-11-25 5:15 Sam James
2022-11-25 5:07 Sam James
2022-11-25 5:06 Sam James
2022-10-20 3:50 Sam James
2022-09-23 2:14 Sam James
2022-08-28 6:30 WANG Xuerui
2022-08-12 18:16 Sam James
2022-08-10 4:48 Sam James
2022-05-07 18:19 Arthur Zamarin
2022-05-07 18:19 Arthur Zamarin
2022-05-07 18:19 Arthur Zamarin
2022-05-07 18:19 Arthur Zamarin
2022-05-07 18:08 Arthur Zamarin
2022-05-07 18:05 Arthur Zamarin
2022-05-07 17:45 Jakov Smolić
2022-05-07 17:45 Jakov Smolić
2022-03-27 6:00 Matt Turner
2022-03-27 3:26 Matt Turner
2022-03-08 9:43 David Seifert
2021-11-30 10:45 David Seifert
2021-11-28 1:33 Mike Gilbert
2021-10-14 7:03 Sam James
2021-10-14 7:03 Sam James
2021-10-03 21:57 David Seifert
2021-10-03 21:57 David Seifert
2021-09-23 1:07 Matt Turner
2021-09-13 20:30 David Seifert
2021-08-15 19:46 Sam James
2021-08-11 23:10 Sam James
2021-08-11 0:24 Sam James
2021-08-11 0:12 Sam James
2021-08-11 0:02 Sam James
2021-08-10 15:36 Agostino Sarubbo
2021-06-17 23:20 Thomas Deutschmann
2021-05-13 13:55 David Seifert
2021-04-09 22:20 Sam James
2021-04-07 22:45 Sam James
2021-04-07 22:44 Sam James
2021-04-06 19:53 Sam James
2021-04-06 19:53 Sam James
2021-04-06 15:42 Sergei Trofimovich
2021-04-05 19:01 Thomas Deutschmann
2021-03-26 22:34 David Seifert
2021-02-21 17:51 Lars Wendler
2020-12-13 23:23 Sam James
2020-09-07 2:13 Sam James
2020-08-29 17:57 Thomas Deutschmann
2020-08-25 17:48 Sergei Trofimovich
2020-08-24 17:33 Sergei Trofimovich
2020-08-23 6:52 Sam James
2020-08-22 5:43 Agostino Sarubbo
2020-08-21 18:20 Agostino Sarubbo
2020-08-01 7:55 Sergei Trofimovich
2020-07-17 7:21 Agostino Sarubbo
2020-07-08 19:46 Sam James
2020-07-07 6:58 Sergei Trofimovich
2020-07-06 7:22 Sergei Trofimovich
2020-07-06 7:02 Sergei Trofimovich
2020-07-04 21:55 Mart Raudsepp
2020-06-23 7:46 Lars Wendler
2020-06-23 7:46 Lars Wendler
2020-02-11 10:30 Lars Wendler
2019-11-20 12:55 Thomas Deutschmann
2019-11-20 12:55 Thomas Deutschmann
2019-09-28 14:53 Thomas Deutschmann
2019-09-21 5:20 Matt Turner
2019-09-20 6:39 Sergei Trofimovich
2019-09-13 12:04 Agostino Sarubbo
2019-09-09 6:02 Agostino Sarubbo
2019-09-09 5:54 Agostino Sarubbo
2019-09-09 3:59 Matt Turner
2019-09-08 22:29 Aaron Bauman
2019-09-08 18:30 Sergei Trofimovich
2019-09-08 18:26 Sergei Trofimovich
2019-09-08 10:22 Agostino Sarubbo
2019-09-08 1:13 Thomas Deutschmann
2019-09-02 7:08 Matt Turner
2019-09-02 7:08 Matt Turner
2019-09-02 7:08 Matt Turner
2019-09-02 7:08 Matt Turner
2019-06-11 11:12 Lars Wendler
2019-05-13 8:06 Lars Wendler
2019-05-12 10:20 Lars Wendler
2019-01-18 8:10 Mikle Kolyada
2019-01-18 8:10 Mikle Kolyada
2019-01-16 21:37 Mart Raudsepp
2018-12-30 19:15 Matt Turner
2018-12-02 17:55 Mikle Kolyada
2018-12-01 14:51 Sergei Trofimovich
2018-11-28 12:15 Tobias Klausmann
2018-11-18 9:24 Mikle Kolyada
2018-11-05 7:51 Sergei Trofimovich
2018-11-05 7:51 Sergei Trofimovich
2018-11-05 7:23 Sergei Trofimovich
2018-11-04 19:14 Thomas Deutschmann
2018-11-04 7:31 Mikle Kolyada
2018-09-10 13:11 Lars Wendler
2018-07-15 22:00 Mikle Kolyada
2018-07-15 22:00 Mikle Kolyada
2018-06-03 17:16 Mikle Kolyada
2018-05-28 21:48 Mike Gilbert
2018-05-28 10:35 Lars Wendler
2018-03-28 20:53 Mart Raudsepp
2018-03-17 15:42 Thomas Deutschmann
2018-03-15 15:52 Mikle Kolyada
2018-03-11 6:08 Matt Turner
2018-03-02 15:59 Tobias Klausmann
2018-02-28 22:18 Sergei Trofimovich
2018-02-25 10:35 Sergei Trofimovich
2018-02-19 7:50 Jason Zaman
2018-02-18 21:48 Thomas Deutschmann
2018-02-18 19:48 Sergei Trofimovich
2018-02-15 13:26 Lars Wendler
2018-02-15 13:26 Lars Wendler
2018-01-10 4:28 Mike Frysinger
2017-12-28 15:57 Lars Wendler
2017-12-20 20:37 Lars Wendler
2017-11-25 15:08 Thomas Deutschmann
2017-11-12 21:08 Justin Lecher
2017-11-09 9:51 Lars Wendler
2017-11-07 12:11 Lars Wendler
2017-11-07 10:00 Lars Wendler
2017-11-07 8:48 Lars Wendler
2017-11-07 8:48 Lars Wendler
2017-10-10 0:07 Thomas Deutschmann
2017-09-11 9:03 Jeroen Roovers
2017-08-15 14:02 Lars Wendler
2017-08-15 14:02 Lars Wendler
2017-06-18 23:22 Lars Wendler
2017-06-14 21:32 Lars Wendler
2017-06-08 20:12 Lars Wendler
2017-05-16 8:34 Lars Wendler
2017-05-16 7:48 Lars Wendler
2017-05-15 13:15 Lars Wendler
2017-05-11 8:45 Lars Wendler
2017-05-11 8:39 Lars Wendler
2017-04-15 8:59 Jeroen Roovers
2017-03-30 2:39 Matt Turner
2017-03-30 2:39 Matt Turner
2017-03-15 5:44 Jeroen Roovers
2017-03-07 10:03 Michael Weber
2017-03-03 19:06 Markus Meier
2017-02-20 7:53 Lars Wendler
2017-02-15 13:49 Tobias Klausmann
2017-02-11 11:40 Lars Wendler
2016-12-19 8:44 Lars Wendler
2016-08-07 19:15 Lars Wendler
2016-01-22 8:56 Michael Palimaka
2015-11-03 15:08 Mike Frysinger
2015-10-21 10:05 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1574253719.313a6a58992063f9c17946e8f93147d5e63e3ef7.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox