Merge pull request #41 from philips/add-nfs

add NFS packages
This commit is contained in:
Greg Kroah-Hartman 2013-09-02 08:49:43 -07:00
commit 0b54a22992
75 changed files with 5669 additions and 73 deletions

View File

@ -0,0 +1,930 @@
# ChangeLog for net-fs/nfs-utils
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.220 2013/08/27 07:00:20 radhermit Exp $
*nfs-utils-1.2.8-r2 (27 Aug 2013)
27 Aug 2013; Tim Harder <radhermit@gentoo.org> +nfs-utils-1.2.8-r2.ebuild:
Add configure flag to use libgssglue for GSS support, fixes rpc.gssd segfault
issues (bug #479982 by dnh2000).
07 Aug 2013; Kacper Kowalik <xarthisius@gentoo.org> nfs-utils-1.2.7-r1.ebuild,
nfs-utils-1.2.8-r1.ebuild:
Adjust dependency on rpcbind so that version with systemd units is pulled in
for packages that require it. Fixes #480006 by redneb <redneb@gmx.com>
*nfs-utils-1.2.8-r1 (26 Jul 2013)
*nfs-utils-1.2.7-r1 (26 Jul 2013)
26 Jul 2013; Tim Harder <radhermit@gentoo.org> -nfs-utils-1.2.7.ebuild,
+nfs-utils-1.2.7-r1.ebuild, -nfs-utils-1.2.8.ebuild,
+nfs-utils-1.2.8-r1.ebuild:
Remove compiled files bundled in the tarball (fixes bug #478196).
*nfs-utils-1.2.8 (26 Jul 2013)
26 Jul 2013; Tim Harder <radhermit@gentoo.org> +nfs-utils-1.2.8.ebuild,
+files/0001-mountd-Fix-is_subdirectory-again.patch,
+files/nfs-utils-1.2.8-cross-build.patch,
+files/0001-statd-exit-if-a-statd-is-already-running.patch:
Version bump.
13 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/nfsd.service,
+files/rpc-mountd.service, +files/rpc-statd.service, nfs-utils-1.2.7.ebuild:
Install unit file (#468318)
13 Apr 2013; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.6.ebuild,
nfs-utils-1.2.7.ebuild:
Force sqlite test to work even when cross-compiling #465576 by Dennis
Schridde.
24 Mar 2013; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.2.7-libio.patch, nfs-utils-1.2.6.ebuild,
nfs-utils-1.2.7.ebuild:
Fix uClibc build w/missing libio.h #459200 by Mark Reiche.
*nfs-utils-1.2.7 (24 Mar 2013)
24 Mar 2013; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.2.7.ebuild,
metadata.xml:
Version bump #445288 by teidakankan.
24 Mar 2013; Mike Frysinger <vapier@gentoo.org> +files/nfsmount.confd,
files/nfsmount.initd, nfs-utils-1.2.6.ebuild:
Move net usage to conf.d (defaults are unchanged) #439660 by Matthew Schultz.
24 Mar 2013; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.2.7-nfsiostat-python3.patch, nfs-utils-1.2.6.ebuild:
Make nfsiostat work under python 3 #458934 by Jim Faulkner.
24 Mar 2013; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Process /etc/exports.d/*.exports too #459600 by Joakim Tjernlund.
01 Jan 2013; Jeroen Roovers <jer@gentoo.org> nfs-utils-1.2.6.ebuild:
Stable for HPPA (bug #445564).
01 Jan 2013; Raúl Porcel <armin76@gentoo.org> nfs-utils-1.2.6.ebuild:
s390/sh stable wrt #445564
30 Dec 2012; Agostino Sarubbo <ago@gentoo.org> nfs-utils-1.2.6.ebuild:
Stable for alpha, wrt bug #445564
29 Dec 2012; Agostino Sarubbo <ago@gentoo.org> nfs-utils-1.2.6.ebuild:
Stable for sparc, wrt bug #445564
18 Dec 2012; Agostino Sarubbo <ago@gentoo.org> nfs-utils-1.2.6.ebuild:
Stable for ia64, wrt bug #445564
06 Dec 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> nfs-utils-1.2.6.ebuild:
x86 stable wrt bug #445564
04 Dec 2012; Anthony G. Basile <blueness@gentoo.org> nfs-utils-1.2.6.ebuild:
stable arm ppc ppc64, bug #445564
02 Dec 2012; Markos Chandras <hwoarang@gentoo.org> nfs-utils-1.2.6.ebuild:
Stable on amd64 wrt bug #445564
16 Sep 2012; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.6.ebuild:
Pull in sqlite when USE=nfsdcld #433062 by Guillaume Castagnino.
18 May 2012; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.6.ebuild:
Update request-key.d config settings #415625 by Maciej Szmigiero.
17 May 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+files/nfs-utils-1.2.6-conditionals.patch, nfs-utils-1.2.6.ebuild:
Fix build with USE=-nfsv4.
*nfs-utils-1.2.6 (17 May 2012)
17 May 2012; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.2.6-cross-build.patch,
+files/nfs-utils-1.2.6-osd-install.patch, +nfs-utils-1.2.6.ebuild,
metadata.xml:
Version bump #416189 by teidakankan.
03 May 2012; Jeff Horelick <jdhore@gentoo.org> nfs-utils-1.2.4.ebuild,
nfs-utils-1.2.5.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
16 Jan 2012; Justin Lecher <jlec@gentoo.org> nfs-utils-1.2.5.ebuild:
Don't use default src_install function, in order to install only valid docs,
thanks ssuominen
16 Jan 2012; Justin Lecher <jlec@gentoo.org> nfs-utils-1.2.5.ebuild:
Add missing dep on sys-fs/lvm2, #399051; corrected target path in src install
$ED to $D
14 Jan 2012; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.5.ebuild:
Require newer version of libgssglue #398901 by Marien Zwart.
*nfs-utils-1.2.5 (14 Jan 2012)
14 Jan 2012; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.2.5.ebuild:
Version bump #384465 by teidakankan with updates by Justin Lecher.
28 Dec 2011; <swift@gentoo.org> nfs-utils-1.2.4.ebuild:
Add selinux triggered dependencies on selinux-rpc and selinux-rpcbind
08 Dec 2011; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.4.ebuild,
+files/nfs-utils-1.2.4-no-nfsctl.patch:
Fix building with arches that do not support nfsctl syscalls.
17 Oct 2011; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.4.ebuild:
Pull in pkg-config since we use it #387365 by bay.
18 Sep 2011; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Convert to extra_started_commands #381887 by teidakankan.
02 Sep 2011; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.4.ebuild,
+files/nfs-utils-1.2.4-cross-build.patch:
Fix cross-compiling with native helper tools.
02 Sep 2011; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.4.ebuild,
+files/nfs-utils-1.2.4-nfsidmap.patch, metadata.xml:
Add USE="nfsidmap nfsv41" to control new deps and features #381459 by
Krzysztof Pawlik.
01 Sep 2011; Diego E. Pettenò <flameeyes@gentoo.org> nfs-utils-1.2.4.ebuild,
+files/nfs-utils-1.2.4-conditional.patch:
Fix build with USE=-nfsv4, by importing two (folded) patches from git.
*nfs-utils-1.2.4 (01 Sep 2011)
01 Sep 2011; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.2.4.ebuild,
+files/nfs-utils-1.2.4-exportfs-skip-dir.patch,
+files/nfs-utils-1.2.4-exportfs-xlog.patch:
Version bump #373651 by teidakankan.
01 Sep 2011; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Drop --oknodo usage #377765 by Michael Mair-Keimberger.
19 Jun 2011; Mike Frysinger <vapier@gentoo.org> files/rpc.pipefs.initd:
Remove shortcuts that result in silent errors #372297 by Sebastian Pipping.
29 May 2011; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.3-r1.ebuild:
Make sure /var/lib/nfs exists before copying into it #368505 by William
Throwe.
24 Apr 2011; Raúl Porcel <armin76@gentoo.org> nfs-utils-1.2.3-r1.ebuild:
sparc stable wrt #358509
06 Apr 2011; Mike Frysinger <vapier@gentoo.org> files/nfs.confd,
files/nfs.initd:
Add conf.d option for tweaking nfsd settings #361473 by John Feuerstein.
24 Mar 2011; Thomas Kahle <tomka@gentoo.org> nfs-utils-1.2.3-r1.ebuild:
x86 stable per bug 358509
18 Mar 2011; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.3-r1.ebuild:
Mark alpha/arm/hppa/ia64/s390/sh stable #358509.
14 Mar 2011; Markos Chandras <hwoarang@gentoo.org> nfs-utils-1.2.3-r1.ebuild:
Stable on amd64 wrt bug #358509
13 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org>
nfs-utils-1.2.3-r1.ebuild:
ppc/ppc64 stable wrt #358509
*nfs-utils-1.2.3-r1 (14 Nov 2010)
14 Nov 2010; Mike Frysinger <vapier@gentoo.org>
+nfs-utils-1.2.3-r1.ebuild,
+files/nfs-utils-1.2.3-ti-rpc-static-ports.patch:
Add fix from upstream for ti-rpc static port bindings #340797 by John J.
Aylward.
*nfs-utils-1.2.3 (08 Oct 2010)
08 Oct 2010; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.2.3.ebuild:
Version bump #339288.
19 Sep 2010; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.2-r2.ebuild:
Fix multilib dir handling with backed up /var/lib/nfs.
07 Aug 2010; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Port logic over for detecting rpc.gssd needs in nfs init.d script #330795 by
Jared.
02 Aug 2010; Diego E. Pettenò <flameeyes@gentoo.org> files/nfs.initd:
Only require rpc.svcgssd if sec=krb is used rather than sec=sys (default).
Thanks to Jared in bug #330795.
26 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org> files/nfs.initd:
Fix nfs init script dependency generation for kerberos exports.
*nfs-utils-1.2.2-r2 (23 Jul 2010)
23 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+nfs-utils-1.2.2-r2.ebuild, +files/nfs-utils-1.2.2-nfsv4.patch:
Fix configure script when enabling NFSv4 and Kerberos, some tests would
have been skipped.
28 Jun 2010; Mike Frysinger <vapier@gentoo.org> files/nfsmount.initd:
Fix idmapd/gssd dep calculation with nfs mounts #324725 by Михаил.
*nfs-utils-1.2.2-r1 (20 Apr 2010)
20 Apr 2010; Mike Frysinger <vapier@gentoo.org>
+nfs-utils-1.2.2-r1.ebuild, +files/nfs-utils-1.2.2-optional-libcap.patch:
Make libcap support optional via USE=caps #314777.
20 Apr 2010; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.2.2.ebuild:
Disable tests since they require no rpc.statd to be running on the system
beforehand #315573 by Pacho Ramos.
*nfs-utils-1.2.2 (11 Apr 2010)
11 Apr 2010; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.2.2.ebuild:
Version bump #314603 by Tim Harder.
31 Mar 2010; <solar@gentoo.org> nfs-utils-1.1.4-r1.ebuild,
nfs-utils-1.1.5.ebuild, nfs-utils-1.1.6.ebuild, nfs-utils-1.1.6-r1.ebuild,
nfs-utils-1.2.0.ebuild, nfs-utils-1.2.1.ebuild:
- elibc_glibc has to be defined in IUSE= for profiles that are unable to
use.force that flag bug #312085
22 Nov 2009; Sven Wegener <swegener@gentoo.org> nfs-utils-1.2.1.ebuild:
Use src_configure and src_prepare for EAPI-2 compliance, this should fix
bug #294082.
*nfs-utils-1.2.1 (22 Nov 2009)
22 Nov 2009; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.2.1.ebuild:
Version bump #293523 by Florian Manschwetus and update kerberos depends
#274793 by Andrew Savchenko.
11 Sep 2009; Zac Medico <zmedico@gentoo.org> nfs-utils-1.2.0.ebuild:
Move !net-nds/portmap out of DEPEND, as per bug #108449, comment #4.
25 Aug 2009; Mike Frysinger <vapier@gentoo.org>
-files/nfs-utils-1.1.2-rpcgen-ioctl.patch, nfs-utils-1.1.4-r1.ebuild,
+files/nfs-utils-1.1.4-rpcgen-ioctl.patch, nfs-utils-1.1.5.ebuild,
nfs-utils-1.1.6.ebuild, nfs-utils-1.1.6-r1.ebuild:
Update rpcgen ioctl patch to reflect changes in upstream.
*nfs-utils-1.2.0 (02 Jun 2009)
02 Jun 2009; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.2.0.ebuild:
Version bump.
30 May 2009; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.1.6-r1.ebuild,
files/nfs.confd, files/nfs.initd:
Have nfs init.d depend on rpc.idmapd by default when USE=nfsv4, but allow
people to disable it via conf.d #234132 by roger.
30 May 2009; Mike Frysinger <vapier@gentoo.org>
+nfs-utils-1.1.6-r1.ebuild, metadata.xml:
Add support for USE=ipv6 #261926, switch to rpcbind over portmap, switch
to libtirpc all the time, and make nfs3/nfs4 optional.
*nfs-utils-1.1.6-r1 (30 May 2009)
30 May 2009; Mike Frysinger <vapier@gentoo.org>
+nfs-utils-1.1.6-r1.ebuild:
Add support for USE=ipv6 #261926, switch to rpcbind over portmap, switch
to libtirpc all the time, and make nfs3/nfs4 optional.
*nfs-utils-1.1.6 (09 May 2009)
09 May 2009; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.1.6.ebuild:
Version bump.
25 Mar 2009; Raúl Porcel <armin76@gentoo.org> nfs-utils-1.1.4-r1.ebuild:
arm/ia64/s390/sh/sparc stable wrt #261334
18 Mar 2009; Joseph Jezak <josejx@gentoo.org> nfs-utils-1.1.4-r1.ebuild:
Marked ppc stable for bug #261334.
15 Mar 2009; Markus Meier <maekke@gentoo.org> nfs-utils-1.1.4-r1.ebuild:
x86 stable, bug #261334
15 Mar 2009; Brent Baude <ranger@gentoo.org> nfs-utils-1.1.4-r1.ebuild:
Marking nfs-utils-1.1.4-r1 ppc64 for bug 261334
14 Mar 2009; Mike Frysinger <vapier@gentoo.org> files/rpc.idmapd.initd:
Add a warning upon failure that DNOTIFY is needed #261697 by Pacho Ramos.
11 Mar 2009; Tobias Klausmann <klausman@gentoo.org>
nfs-utils-1.1.4-r1.ebuild:
Stable on alpha, bug #261334
10 Mar 2009; Dawid Węgliński <cla@gentoo.org> nfs-utils-1.1.4-r1.ebuild:
Stable on amd64 (bug #261334)
*nfs-utils-1.1.5 (06 Mar 2009)
06 Mar 2009; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.1.5.ebuild:
Version bump.
06 Mar 2009; Jeroen Roovers <jer@gentoo.org> nfs-utils-1.1.4-r1.ebuild:
Stable for HPPA (bug #261334).
27 Feb 2009; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Fixup bashism in init.d script #260149 by Timothy Redaelli.
*nfs-utils-1.1.4-r1 (31 Jan 2009)
31 Jan 2009; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.1.4-ascii-man.patch,
+files/nfs-utils-1.1.4-mtab-sym.patch,
+files/nfs-utils-1.1.4-no-exec.patch, +nfs-utils-1.1.4-r1.ebuild:
Add some fixes from Debian and push out init.d fixes.
31 Jan 2009; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Also use rpc.nfsd to try to shutdown nfsd #228127 by Maurice Volaski.
31 Jan 2009; Mike Frysinger <vapier@gentoo.org> files/rpc.statd.initd:
Make sure stop() works even if rpc.statd is dead so init.d doesnt fake
stop silently.
31 Jan 2009; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Add /proc/fs/nfs -> /proc/fs/nfsd fix again.
31 Jan 2009; Mike Frysinger <vapier@gentoo.org> files/nfs.initd:
Restart rpc.idmapd if nfsd is a module #220747 by Jochen Radmacher.
30 Dec 2008; Friedrich Oslage <bluebird@gentoo.org>
nfs-utils-1.1.3.ebuild:
Stable on sparc, security bug #242696
09 Nov 2008; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.1.4.ebuild:
Always own /etc/exports from now on #246021 by Ian Kelling.
08 Nov 2008; Raúl Porcel <armin76@gentoo.org> nfs-utils-1.1.3.ebuild:
alpha/ia64 stable wrt #242696
02 Nov 2008; Tobias Scherbaum <dertobi123@gentoo.org>
nfs-utils-1.1.3.ebuild:
ppc stable, bug #242696
30 Oct 2008; Jeroen Roovers <jer@gentoo.org> nfs-utils-1.1.3.ebuild:
Stable for HPPA (bug #242696).
28 Oct 2008; Brent Baude <ranger@gentoo.org> nfs-utils-1.1.3.ebuild:
Marking nfs-utils-1.1.3 ppc64 for bug 242696
27 Oct 2008; Markus Meier <maekke@gentoo.org> nfs-utils-1.1.3.ebuild:
amd64/x86 stable, bug #242696
26 Oct 2008; Mike Frysinger <vapier@gentoo.org> files/rpc.gssd.initd,
files/rpc.idmapd.initd, +files/rpc.pipefs.initd, files/rpc.svcgssd.initd,
nfs-utils-1.0.12-r5.ebuild, nfs-utils-1.1.0-r1.ebuild,
nfs-utils-1.1.1.ebuild, nfs-utils-1.1.1-r1.ebuild, nfs-utils-1.1.2.ebuild,
nfs-utils-1.1.2-r1.ebuild, nfs-utils-1.1.3.ebuild, nfs-utils-1.1.4.ebuild:
Split rpc.pipefs mounting into its own init.d script so we handle parallel
execution properly #238593 by Michele Schiavo.
26 Oct 2008; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.1.4.ebuild:
Force newer libnfsidmap as it provides idmapd.conf #243066.
*nfs-utils-1.1.4 (18 Oct 2008)
18 Oct 2008; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.1.4.ebuild:
Version bump.
*nfs-utils-1.1.3 (16 Aug 2008)
16 Aug 2008; Mike Frysinger <vapier@gentoo.org> files/rpc.gssd.initd,
files/rpc.svcgssd.initd, +nfs-utils-1.1.3.ebuild:
Version bump. Fix arg passing for gssd binaries #232387 by Michele
Schiavo. Depend on e2fsprogs-libs for libblkid #221773 by Triffid Hunter.
16 Aug 2008; Doug Goldstein <cardoe@gentoo.org> metadata.xml:
add GLEP 56 USE flag desc from use.local.desc
*nfs-utils-1.1.2-r1 (04 May 2008)
04 May 2008; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.1.2-mount-eacces.patch, files/nfs.initd,
files/nfsmount.initd, files/rpc.gssd.initd, files/rpc.idmapd.initd,
files/rpc.svcgssd.initd, +nfs-utils-1.1.2-r1.ebuild:
Dont bother checking for config anymore #219495 by Davide Pesavento. Load
sunrpc module if rpc_pipefs is not available #219566 by Martin von Gagern.
Add change from Fedora to exit immediately upon perm denied errors when
mounting #219729 by Stefaan De Roeck.
21 Apr 2008; Mike Frysinger <vapier@gentoo.org> files/nfsmount.initd:
Use non-common awk exit values so that the default exit values dont trigger
false positives #218713 by Paolo Pedroni.
21 Apr 2008; Mike Frysinger <vapier@gentoo.org> files/rpc.gssd.initd,
files/rpc.svcgssd.initd:
Fix typo in start() func in new gssd init.d scripts as pointed out by Ryan
Tandy #218665.
20 Apr 2008; Diego Pettenò <flameeyes@gentoo.org> nfs-utils-1.1.2.ebuild:
Fix building without kerberos and with nonfsv4 USE flag enabled. See bug
#218595.
20 Apr 2008; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.1.2-rpcgen-ioctl.patch, nfs-utils-1.1.2.ebuild:
Make sure rpcgen includes sys/ioctl.h #174393.
*nfs-utils-1.1.2 (20 Apr 2008)
20 Apr 2008; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.1.2.ebuild:
Version bump.
*nfs-utils-1.1.1-r1 (20 Apr 2008)
20 Apr 2008; Mike Frysinger <vapier@gentoo.org>
+nfs-utils-1.1.1-r1.ebuild:
Push out accumulated changes.
20 Apr 2008; Mike Frysinger <vapier@gentoo.org> files/nfs.initd,
files/rpc.gssd.initd, +files/rpc.svcgssd.initd,
nfs-utils-1.0.12-r5.ebuild, nfs-utils-1.1.0-r1.ebuild,
nfs-utils-1.1.1.ebuild:
Split the gssd and svcgssd init.d scripts #186037 by Paul B. Henson.
20 Apr 2008; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.1.1.ebuild:
Only leverage kerberos when USE="-nonfsv4" #212160.
20 Apr 2008; Mike Frysinger <vapier@gentoo.org> files/nfsmount.initd:
Fix nfs4/idmapd detection #213384 by Marek Szuba.
14 Jan 2008; Mike Frysinger <vapier@gentoo.org> files/nfs.initd,
files/nfsmount.initd:
Until newer baselayout stabilizes, only use config() when it exists #203906.
08 Jan 2008; Raúl Porcel <armin76@gentoo.org> nfs-utils-1.1.0-r1.ebuild:
alpha/ia64/sparc stable wrt #201552
08 Jan 2008; Jeroen Roovers <jer@gentoo.org> nfs-utils-1.1.0-r1.ebuild:
Stable for HPPA (bug #201552).
30 Dec 2007; Mike Frysinger <vapier@gentoo.org> files/nfs.initd,
files/nfsmount.initd:
Make sure /etc/exports and /etc/fstab exist to account for the stupid cases
of running these init.d scripts without anything useful to do.
30 Dec 2007; Samuli Suominen <drac@gentoo.org> nfs-utils-1.1.0-r1.ebuild:
amd64 stable wrt #201552
29 Dec 2007; nixnut <nixnut@gentoo.org> nfs-utils-1.1.0-r1.ebuild:
Stable on ppc wrt bug 201552
29 Dec 2007; Mike Frysinger <vapier@gentoo.org> files/nfsmount.initd:
Make sure we check for "nfs" and not "nfsd" when doing client filesystem setup.
*nfs-utils-1.1.1 (29 Dec 2007)
29 Dec 2007; Mike Frysinger <vapier@gentoo.org> files/nfs.initd,
files/rpc.gssd.initd, files/rpc.idmapd.initd, files/rpc.statd.initd,
+nfs-utils-1.1.1.ebuild:
Version bump #197336 by Francisco Javier. Tweak nfs init.d needs based on
exportfs #172431. Only mount nfsd fs in nfs init.d script. Mount rpc_pipefs
in rpc.idmapd and rpc.gssd after making sure the dir exists #180425 by
Maurice Volaski.
29 Dec 2007; Mike Frysinger <vapier@gentoo.org> files/rpc.statd.initd:
Look up the full path of rpc.statd to avoid matching the init.d script
#203646 by legate.
15 Oct 2007; Markus Rothe <corsair@gentoo.org> nfs-utils-1.1.0-r1.ebuild:
Stable on ppc64
21 Sep 2007; Christian Faulhammer <opfer@gentoo.org>
nfs-utils-1.1.0-r1.ebuild:
stable x86, bug 190182
*nfs-utils-1.1.0-r1 (15 Sep 2007)
*nfs-utils-1.0.12-r1 (15 Sep 2007)
*nfs-utils-1.0.12-r5 (15 Sep 2007)
15 Sep 2007; Mike Frysinger <vapier@gentoo.org>
+nfs-utils-1.0.12-r1.ebuild, +nfs-utils-1.0.12-r5.ebuild,
+nfs-utils-1.1.0-r1.ebuild:
Force bumpage for versions to clean up libgssglue nightmare #191746.
23 Aug 2007; Joshua Kinard <kumba@gentoo.org> nfs-utils-1.0.12-r3.ebuild:
Stable on mips.
*nfs-utils-1.0.12-r4 (16 Aug 2007)
16 Aug 2007; Mike Frysinger <vapier@gentoo.org> files/nfs.initd,
files/nfsmount.initd, +nfs-utils-1.0.12-r4.ebuild:
Only force kerb init.d scripts when the NFSv4 mount needs it #180428 by
Maurice Volaski. Load the nfs module in the nfsmount client script, not
nfsd.
13 May 2007; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.1.0.ebuild:
Make sure we pull in >=app-crypt/libgssapi-0.11 #178217 by Markus Ullmann.
*nfs-utils-1.1.0 (12 May 2007)
12 May 2007; Mike Frysinger <vapier@gentoo.org> files/nfs.initd,
files/nfsmount.initd, files/rpc.gssd.initd, files/rpc.idmapd.initd,
files/rpc.statd.initd, +nfs-utils-1.1.0.ebuild:
Version bump.
06 May 2007; Marius Mauch <genone@gentoo.org> nfs-utils-1.0.6-r6.ebuild:
Replacing einfo with elog
07 Apr 2007; Mike Frysinger <vapier@gentoo.org> nfs-utils-1.0.12-r3.ebuild:
Bind rpc.gssd install to USE=kerberos rather than USE=!nonfsv4
#172431 by emerald.
*nfs-utils-1.0.12-r3 (02 Apr 2007)
02 Apr 2007; Roy Marples <uberlord@gentoo.org> files/nfs.initd,
files/rpc.gssd.initd, files/rpc.idmapd.initd, files/rpc.statd.initd,
+nfs-utils-1.0.12-r3.ebuild:
Remove some bashisms and support baselayout-2 restart option.
27 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org>
nfs-utils-1.0.12.ebuild:
Stable on alpha/amd64 wrt bug #172133.
26 Mar 2007; Gustavo Zacarias <gustavoz@gentoo.org>
nfs-utils-1.0.12.ebuild:
Stable on sparc wrt #172133
26 Mar 2007; Jeroen Roovers <jer@gentoo.org> nfs-utils-1.0.12.ebuild:
Stable for HPPA (bug #172133).
26 Mar 2007; Alec Warner <antarus@gentoo.org> nfs-utils-1.0.6-r6.ebuild,
nfs-utils-1.0.7-r2.ebuild, nfs-utils-1.0.9.ebuild,
nfs-utils-1.0.10.ebuild, nfs-utils-1.0.12.ebuild,
nfs-utils-1.0.12-r1.ebuild, nfs-utils-1.0.12-r2.ebuild:
Remove dependency on portage: ref bug 162516
*nfs-utils-1.0.12-r2 (25 Mar 2007)
25 Mar 2007; Mike Frysinger <vapier@gentoo.org> files/nfs.confd,
+files/nfs.initd, +files/nfsmount.initd, +files/rpc.gssd.initd,
+files/rpc.idmapd.initd, +files/rpc.statd.initd,
+nfs-utils-1.0.12-r2.ebuild:
Split init.d scripts up so client/server configurations are handled properly
#101624 by Tim Hobbs. Special thanks to Daniel Burr and Thomas Bettler.
25 Mar 2007; Tobias Scherbaum <dertobi123@gentoo.org>
nfs-utils-1.0.12.ebuild:
Stable on ppc wrt bug #172133.
25 Mar 2007; Andrej Kacian <ticho@gentoo.org> nfs-utils-1.0.12.ebuild:
Stable on x86, bug #172133.
25 Mar 2007; Markus Rothe <corsair@gentoo.org> nfs-utils-1.0.12.ebuild:
Stable on ppc64; bug #172133
24 Mar 2007; Mike Frysinger <vapier@gentoo.org> files/nfs:
Mount nfsd filesystem at /proc/fs/nfsd rather than /proc/fs/nfs #172019.
*nfs-utils-1.0.12-r1 (24 Mar 2007)
24 Mar 2007; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.0.12-mountd-memleak.patch, +nfs-utils-1.0.12-r1.ebuild:
Grab fix from upstream for memleak in mountd #172014 by Bardur Arantsson.
21 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org>
nfs-utils-1.0.10.ebuild:
Stable on amd64 wrt bug #167664.
16 Mar 2007; nixnut <nixnut@gentoo.org> nfs-utils-1.0.10.ebuild:
Stable on ppc wrt bug 167664
*nfs-utils-1.0.12 (27 Feb 2007)
27 Feb 2007; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.0.12.ebuild:
Version bump.
23 Feb 2007; Markus Rothe <corsair@gentoo.org> nfs-utils-1.0.10.ebuild:
Stable on ppc64; bug #167664
23 Feb 2007; Christian Faulhammer <opfer@gentoo.org>
nfs-utils-1.0.10.ebuild:
stable x86; bug 167664
10 Jan 2007; Roy Marples <uberlord@gentoo.org> files/nfs:
Use --name for s-s-d starting nfsd so baselayout-1.13 correctly finds it.
05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org>
nfs-utils-1.0.6-r6.ebuild:
Remove gnuconfig inherit.
28 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org>
nfs-utils-1.0.10.ebuild:
Stable on sparc
04 Dec 2006; Jeroen Roovers <jer@gentoo.org> nfs-utils-1.0.10.ebuild:
Stable for HPPA.
23 Oct 2006; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.0.10-uts-release.patch, nfs-utils-1.0.10.ebuild:
Fix building with linux-headers-2.6.18+.
21 Oct 2006; Aron Griffis <agriffis@gentoo.org> nfs-utils-1.0.10.ebuild:
Mark 1.0.10 stable on alpha/ia64
*nfs-utils-1.0.10 (22 Aug 2006)
22 Aug 2006; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.0.10.ebuild:
Version bump.
*nfs-utils-1.0.9 (16 Jul 2006)
16 Jul 2006; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.0.9.ebuild:
Version bump.
*nfs-utils-1.0.8 (10 Jun 2006)
10 Jun 2006; Mike Frysinger <vapier@gentoo.org> +nfs-utils-1.0.8.ebuild:
Version bump #136038 by Mario Fetka.
09 Mar 2006; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.0.7-no-stripping.patch, nfs-utils-1.0.7-r2.ebuild:
Let portage strip binaries.
29 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.0.6-usn36.patch, -files/nfs-utils-1.0.6-usn36.patch.gz,
nfs-utils-1.0.6-r6.ebuild:
Uncompress patch #120673 by Simon Stelling.
*nfs-utils-1.0.7-r2 (08 Oct 2005)
08 Oct 2005; Mike Frysinger <vapier@gentoo.org>
+files/nfs-utils-1.0.7-man-pages.patch, files/nfs, files/nfs.confd,
+nfs-utils-1.0.7-r2.ebuild:
Add support for starting/stopping gssd daemons #108276 and installing their
config files. Also tweak the man-pages SEE ALSO #107991.
23 Mar 2005; Jeremy Huddleston <eradicator@gentoo.org> files/nfsmount:
Corrected init script to use 'svc_stop; svc_start' and not 'stop; start'.
15 Mar 2005; Seemant Kulleen <seemant@gentoo.org>
nfs-utils-1.0.7-r1.ebuild:
add kerberos to IUSE
*nfs-utils-1.0.7-r1 (15 Mar 2005)
15 Mar 2005; Mike Frysinger <vapier@gentoo.org> files/nfs,
files/nfs.confd, -nfs-utils-1.0.7.ebuild, +nfs-utils-1.0.7-r1.ebuild:
Add support for integrated idmapd #71607 by Keith M Wesolowski.
*nfs-utils-1.0.7 (04 Feb 2005)
04 Feb 2005; Aron Griffis <agriffis@gentoo.org> +nfs-utils-1.0.7.ebuild:
Bump to 1.0.7. New local USE-flag nfsv4 since that pulls in mit-krb5 which
has its own problems
15 Jan 2005; Robin H. Johnson <robbat2@gentoo.org> :
Fix digest, bug #78168.
15 Jan 2005; <solar@gentoo.org> +files/nfs-utils-1.0.6-uclibc.patch,
nfs-utils-1.0.6-r6.ebuild:
- getrpcbynumber_r is not in the SuSv3 spec. disable it for uClibc
11 Dec 2004; Markus Rothe <corsair@gentoo.org> nfs-utils-1.0.6-r6.ebuild:
Stable on ppc64; bug #72113
11 Dec 2004; Joseph Jezak <josejx@gentoo.org> nfs-utils-1.0.6-r6.ebuild:
Marked ppc stable for bug #72113.
10 Dec 2004; Guy Martin <gmsoft@gentoo.org> nfs-utils-1.0.6-r6.ebuild:
Stable on hppa.
07 Dec 2004; Hardave Riar <hardave@gentoo.org> nfs-utils-1.0.6-r6.ebuild:
Stable on mips, bug #72113
07 Dec 2004; Bryan Østergaard <kloeri@gentoo.org>
nfs-utils-1.0.6-r6.ebuild:
Stable on alpha, bug 72113.
06 Dec 2004; Karol Wojtaszek <sekretarz@gentoo.org>
nfs-utils-1.0.6-r6.ebuild:
Stable on amd64, bug #72113
06 Dec 2004; Olivier Crete <tester@gentoo.org> nfs-utils-1.0.6-r6.ebuild:
Stable on x86 wrt security bug 72113
06 Dec 2004; Gustavo Zacarias <gustavoz@gentoo.org>
nfs-utils-1.0.6-r6.ebuild:
Stable on sparc wrt #72113
06 Dec 2004; <rphillips@gentoo.org> nfs-utils-1.0.6-r6.ebuild:
Added ubuntu's DOS vulnerability patch. fixes #72113
05 Dec 2004; Jason Wever <weeve@gentoo.org> nfs-utils-1.0.6-r5.ebuild:
Stable on sparc wrt security bug #72113.
05 Dec 2004; Bryan Østergaard <kloeri@gentoo.org>
nfs-utils-1.0.6-r5.ebuild:
Stable on alpha, bug 72113.
04 Dec 2004; Hardave Riar <hardave@gentoo.org> nfs-utils-1.0.6-r5.ebuild:
Stable on mips, bug #72113
04 Dec 2004; Markus Rothe <corsair@gentoo.org> nfs-utils-1.0.6-r5.ebuild:
Stable on ppc64; bug #72113
04 Dec 2004; Mike Doty <kingtaco@gentoo.org> nfs-utils-1.0.6-r5.ebuild:
stable on amd64 per #72113
*nfs-utils-1.0.6-r5 (22 Nov 2004)
22 Nov 2004; <solar@gentoo.org>
+files/nfs-utils-0.3.3-rquotad-overflow.patch, +nfs-utils-1.0.6-r5.ebuild:
Security bump for 64bit arches bug #72113 - CAN-2004-0946
07 Nov 2004; Joshua Kinard <kumba@gentoo.org> nfs-utils-1.0.6-r4.ebuild:
Marked stable on mips.
01 Nov 2004; Bryan Østergaard <kloeri@gentoo.org>
nfs-utils-1.0.6-r4.ebuild:
Stable on alpha.
19 Oct 2004; Dylan Carlson <absinthe@gentoo.org>
nfs-utils-1.0.6-r4.ebuild:
Stable on amd64.
09 Oct 2004; Christian Birchinger <joker@gentoo.org>
nfs-utils-1.0.6-r4.ebuild:
Added sparc stable keyword
23 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> files/nfsmount:
Added 'use ypbind' to nfsmount script to close bug #28195.
*nfs-utils-1.0.6-r4 (07 Jul 2004)
07 Jul 2004; Aron Griffis <agriffis@gentoo.org> files/nfs-5,
-nfs-utils-1.0.6-r3.ebuild, +nfs-utils-1.0.6-r4.ebuild:
Set a default timeout of 30 seconds in case EXPORTFSTIMEOUT is unset in
conf.d/nfs
25 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> nfs-utils-1.0.6.ebuild:
Marked stable on amd64.
*nfs-utils-1.0.6-r3 (11 Jun 2004)
11 Jun 2004; Mike Frysinger <vapier@gentoo.org> :
While i'm here, might as well fix more things :P.
Run make for the depend target so that we can then build everything
else in parallel. Add tweakable exportfs timeout to nfs init script
#37004 by Vlastimil Holer. Enable the '--enable-secure-statd' option
by default (seems to work fine on my nfs3 machines) #49444 by Juergen
Nagel. Make sure the emtpy state dirs dont get autocleaned #30522 by
Brave Cobra.
*nfs-utils-1.0.6-r2 (08 Jun 2004)
08 Jun 2004; Mike Frysinger <vapier@gentoo.org> +files/nfs-4,
+nfs-utils-1.0.6-r2.ebuild:
Add support for NFSv4 #25106 by Michael Locher.
11 May 2004; Michael McCabe <randy@gentoo.org> nfs-utils-1.0.6-r1.ebuild:
Added s390 keywords
13 Apr 2004; Joshua Kinard <kumba@gentoo.org> nfs-utils-1.0.6-r1.ebuild:
Marked stable on mips.
11 Mar 2004; Lars Weiler <pylon@gentoo.org> nfs-utils-1.0.6.ebuild:
stable on ppc
07 Mar 2004; Tom Gall <tgall@gentoo.org> nfs-utils-1.0.6-r1.ebuild:
stable on ppc64
06 Mar 2004; Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com> :
mark as ~mips
06 Mar 2004; Joshua Kinard <kumba@gentoo.org> nfs-utils-1.0.5-r1.ebuild,
nfs-utils-1.0.6-r1.ebuild:
Added ~mips to KEYWORDS.
*nfs-utils-1.0.6-r1 (30 Jan 2004)
30 Jan 2004; Daniel Robbins <drobbins@gentoo.org> nfs-utils-1.0.6-r1.ebuild:
Add a new ebuild (currently unmasked for ~x86 and ~amd64 only) that mounts
the nfsd filesystem to /proc/fs/nfs to provide robust exports handling for
2.6 kernels. (See /usr/src/linux/Documentation/Changes in a 2.6 kernel source
tree for more information on this.) I needed this fix for mountd to support
nfs version 3 on my server with a 2.6 kernel. Also changed default
"restarting" behavior to "yes," which seems to be what most users will want.
This ebuild is not in stable on any arch, so nfs-team, please let me know
what you think of these changes.
15 Jan 2004; Aron Griffis <agriffis@gentoo.org> nfs-utils-1.0.6.ebuild:
Fix bug 30486 by refraining from overwriting /var/lib/nfs/*
14 Jan 2004; Martin Holzer <mholzer@gentoo.org> files/nfs.confd:
removing quota entry from conf.d
05 Jan 2004; zhen <zhen@gentoo.org> metadata.xml:
adding to net-fs herd
28 Dec 2003; Guy Martin <gmsoft@gentoo.org> nfs-utils-1.0.6.ebuild:
Marked stable on hppa.
02 Nov 2003; Daniel Robbins <drobbins@gentoo.org> nfs-utils-1.0.6.ebuild:
added util-linux RDEPEND to ensure "mount" command it up-to-date. (See
nfs-utils README.)
22 Oct 2003; Martin Holzer <mholzer@gentoo.org> nfs-utils-1.0.5-r1.ebuild,
nfs-utils-1.0.6.ebuild:
adding RESTRICT="nomirror"
03 Oct 2003; Christian Birchinger <joker@gentoo.org> nfs-utils-1.0.6.ebuild:
Added sparc stable keyword
*nfs-utils-1.0.6 (18 Sep 2003)
18 Sep 2003; Martin Holzer <mholzer@gentoo.org> nfs-utils-1.0.6.ebuild:
Version bumped.
*nfs-utils-1.0.5-r1 (19 Jul 2003)
26 Jul 2003; Stefan Jones <cretin@gentoo.org> files/nfs-2:
Fixed waiting on exportfs to finish. Use wait $pidofexportfs ( let kill
finish in background ) Speedups of 29secs!
19 Jul 2003; Aron Griffis <agriffis@gentoo.org> nfs-utils-1.0.5-r1.ebuild,
files/nfs-2:
Change exportfs timeouts from 5 seconds to 30 seconds to prevent prematurely
killing exportfs
19 Jul 2003; Daniel Ahlberg <aliz@gentoo.org> nfs-utils-1.0.5.ebuild :
Security update, unmasking.
*nfs-utils-1.0.5 (19 Jul 2003)
19 Jul 2003; Don Seiler <rizzo@gentoo.org>; nfs-utils-1.0.4.ebuild,
nfs-utils-1.0.5.ebuild:
Version bumped and v1.0.4 deleted due to bugs that are fixed in 1.0.5
*nfs-utils-1.0.4 (17 Jul 2003)
17 Jul 2003; Martin Holzer <mholzer@gentoo.org> nfs-utils-1.0.4.ebuild:
Version bumped.
21 May 2003; Christian Birchinger <joker@gentoo.org> nfs-utils-1.0.3.ebuild:
Added sparc stable keyword
16 May 2003; Martin Holzer <mholzer@gentoo.org> nfs-utils-1.0.3.ebuild:
Marked as stable
*nfs-utils-1.0.3 (27 Mar 2003)
21 Jun 2003; Guy martin <gmsoft@gentoo.org> nfs-utils-1.0.3.ebuild :
Marked stable on hppa.
17 Apr 2003; Guy Martin <gmsoft@gentoo.org> nfs-utils-1.0.3.ebuild :
Added ~hppa to KEYWORDS.
27 Mar 2003; Brandon Low <lostlogic@gentoo.org> nfs-utils-1.0.3.ebuild:
Bump to latest released today
*nfs-utils-1.0.1-r1 (03 Mar 2003)
30 Mar 2003; Christian Birchinger <joker@gentoo.org>
nfs-utils-1.0.1-r1.ebuild:
Added sparc stable keyword
13 Mar 2003; Zach Welch <zwelch@gentoo.org> nfs-utils-1.0.1-r1.ebuild:
add arm keyword
03 Mar 2003; Aron Griffis <agriffis@gentoo.org> nfs-utils-1.0.1-r1.ebuild,
files/nfs-1:
Fix bug 16075 by installing server binaries into /usr/sbin (thanks Tero
Pelander for the clue and the updated ebuild). Fix bug 13838 by using
rpc.rquotad from the quota package instead of the nfs-utils version (thanks
Andrea Barisani for the heads-up). Finally, mark stable on x86 and alpha
where I can test as part of the package upgrade phase.
*nfs-utils-1.0.1 (12 Dec 2002)
12 Dec 2002; Brad Cowan <bcowan@gentoo.org> :
Added options to config file thanks to Cardoe and j2ee.
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
*nfs-utils-1.0.1 (13 Oct 2002)
07 Dec 2002; Jack Morgan <jmorgan@gentoo.org> nfs-utils-1.0.1.ebuild :
Changed ~sparc64 to ~sparc keyword
13 Oct 2002; Brad Cowan <bcowan@gentoo.org> nfs-utils-1.0.1.ebuild,
files/digest-nfs-utils-1.0.1 :
Version bump thanks to j2ee<maurizio@iridium.aetheric.org>.
*nfs-utils-0.3.3-r1 (24 Apr 2002)
16 Sep 2002; Maarten Thibaut <murphy@gentoo.org> nfs-utils-0.3.3-r1.ebuild :
Adding sparc/sparc64 keywords.
22 Jul 2002; Kyle Manna <nitro@gentoo.org> nfs-utils-0.3.3-r1.ebuild :
Parallel make fails sometimes. Replaced emake with make.
24 Apr 2002; Daniel Robbins <drobbins@gentoo.org>: Some rc script fixes
(removal of NFSSERVER) and cleanups in the ebuild, removal of old ebuilds and
old files in /files
*nfs-utils-0.3.3 (1 Feb 2002)
1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

View File

@ -0,0 +1,76 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX 0001-mountd-Fix-is_subdirectory-again.patch 2704 SHA256 1c1204dc5fc62debb8cc66ca299a741a3d8e515f480ff7aecb4ad72819658de7 SHA512 59a29c72096357fc35e805f0a1e443c7a6ee9b07c96ed85481b1101a6090311937b39f45aefa60325f968a5c7d2bc5550c2a43f2f54bd8522b615b84bdf71c86 WHIRLPOOL fc0c806c3c68f6d215f24a418b92b94188e23cc9249a8e0cea6ec22a1139747ab05cccab253bddff6787a15301225792658dadc8d6d1c4c6aba5543ea893d600
AUX 0001-statd-exit-if-a-statd-is-already-running.patch 3593 SHA256 d3e402c73b204d4b5e161563005269318dad6e992792c902da76ff8368b872cb SHA512 e04d451618d6f6197dc0692844cc115fec93575525cd0569d582f9278007e2dbec692ef46065c675de13d608e034161f39a60d46766873933d05d18b94633f6c WHIRLPOOL fdf6de89a5ae3f26c1091f8b314684ba0cac3aab68731d3d56e5a909a2211b8f84b8212fbf0f7179427f98bdb102b9bb3d1c3828e66e283bc70abddc9ef3964d
AUX exports 66 SHA256 5d6356df546682e2f1a87131d1bb67de9b1f9a34d3a5742343dc64e890cf71d5 SHA512 fd8052dc8e17eccb0bb1443f341c97ec7c9dac5824294cadf486d91475bc728d4bb69300034b528a690707520590f6675ee371f92e9838afc8ed88092ee0f220 WHIRLPOOL 7cc6b59c1f7013a0ad98518623b03d1cba784ecaf6d6a085b85282192c6f41ac1c649a39dc6e1b42ff38a571c00a85aed6e04ea57d6339a072cc4f2c41d5d74e
AUX nfs-utils-1.1.4-ascii-man.patch 571 SHA256 5f1cd9789b4963df22df914f61a33412d61d3c8fdde9b71b8c9dd4c2506852f7 SHA512 1b0d5ec2952b0df23254fb63a952f7700adde4638473edf43f5a4abd1ccc6fbe7102d2a613d48ebc6c77078842eea6507d1967f85342d261f6a15f818b66298f WHIRLPOOL 64bcc4e4ec2f50d199f5a580143d51c8dc02f44363660ac5665acb324922551389a873c7ef859efb4802c8c39f696a988645020074dc081520ca3b0dc1217508
AUX nfs-utils-1.1.4-mtab-sym.patch 1020 SHA256 0232799d085151649a1eb1f31644105de7e5cfba888794354005499a0db277c3 SHA512 1cd916028a8515772f05ef63832d73a09e9720055aedc9e2e4ce3a08ce1820948700a4f00ca9c4ee684880f18e67aca888dd857fc7931d923021ba50964be998 WHIRLPOOL c16ecee3228ad4522cf4ede1d05ca50cece3910955314c96eb88a61cfe07b7f6a95c42bb15a7f7f9fd211fa62cdcbb02925e68702d5066338b4543baf56fb2df
AUX nfs-utils-1.1.4-no-exec.patch 297 SHA256 f66af9d046a3524ae8920f8e4b5d0fa206de31d4e7747bfc716a10ac86537b0f SHA512 4aee60a2510ea4999c4697ad079704e13d6b8043cf3c713f700a5971a1a9a8d7c4a9281e1a60b695e7bf5d7eb30f2871e286199d85ac076780afdc352b67d29d WHIRLPOOL c13fad093f0513c0e98af3d966cea0b240312ee9197aa5918f87092b6ca1557a02709e012df84a33c86ff27e9dbffe341e1dd21c101683ee71f2bc7ebada57ae
AUX nfs-utils-1.1.4-rpcgen-ioctl.patch 414 SHA256 78ae8ba33a600e6eb1153521eeb0ec5c3c5c503bd20074b1687703b3f83be678 SHA512 d80f3525c5775d13742042aaf8604466aa16387e5ee7246645c1306b4998e4f3ec48c990a295f5224cae2f853908d01ac3bca3098b15e1a4e2218744c0b2ba7b WHIRLPOOL 7242d9b562f2e2de43f69c82223c77d3db765b4eec93f36a8301d57054b6d7ccf07a683365afd0cb74b7cadd63bf748e280bcc1a3afd5fe0c86b7a8d3779bf11
AUX nfs-utils-1.2.2-nfsv4.patch 479 SHA256 ce601318e17f108c9fffcef9963430a01e2cb7dffb5189e4ca6de53413bb153f SHA512 e4c348bcc33719e33f09d998e4f52d360e4ce6a27149306cc71927be52281ecb49e11f85525a2d1724bff2ef7cb21f27f0adbc0302c0389b663eb666c7c1892c WHIRLPOOL b095dc9fe4aad658615a9de6b311617b40b5e673c0a68983ac1b4602de5eef02eee40c9cd8958e1c5a4e0a6943904ce8095d79af212bfb7e04b386ff0ffc019c
AUX nfs-utils-1.2.2-optional-libcap.patch 2213 SHA256 75135cc2c90aacc7adb43c6ced308099ac5b2d9c8cfcc74d395ead4dc583a75a SHA512 ef7c611f53d14eb3b1d2788f06f697da4c2da046da78b5dee29942e487d2ba7fa5db49feab574ae3d46ce692867e0e09f058341957ec8bfdba2e6a81959e6060 WHIRLPOOL 2a70e7ca37ba5e2c55a5288d482e1170d9faa49239b800b0594f3d6b049b839c8e8d9b88128b3ebea9040781941f8300360b1adf900d08c9186b80c980d9ef61
AUX nfs-utils-1.2.3-ti-rpc-static-ports.patch 10290 SHA256 8f188be765d5aa41eaa9d15df7cf0dc6b7ba29413866e8ada6c54973b0a942e9 SHA512 218c0806d9445e841ca135bca9adff765e642730b24597ade7d4c3d39ab703b89dd2ab6ba2e1682d3e58779dfba8bae6a4c55f457c34f7f5fc6e7f9986ce0bf9 WHIRLPOOL 9ef11c480d9c0d84ff2521b7bef8fa7caaed1bd2286400ea35fd42e9dce73d5c9b1525995eb212f5a5a86a992f29ebfe1b352a57763d94917bcd28e3c58c7fdb
AUX nfs-utils-1.2.4-conditional.patch 756 SHA256 b911b2ae5a87fdcb8c906e49c6787853daed6bd79179f3ee2f67c7a10b761d7e SHA512 748825f2e9242a0e1ef67c3fbde3c046604ed0e0730bbccef527c570fe5dc871b08653732aef327102921b83c5a4b50a720b508cc6b6f38068d5c39544605beb WHIRLPOOL b6b65bc82c07cbce86199f8b68001e795732681e69aec58e2601bf29f7f1587fdc3378b0fa750145f0781ae1024ed3ce17a75c6a802e06c86a5f2f941a23a4e6
AUX nfs-utils-1.2.4-cross-build.patch 1883 SHA256 ec7792cf496d66d82476c92be89ae58cd21add1888837827b8114a35b5f0b150 SHA512 041da2461026251f4b0b9f292441375531eff0dd6453be8602a70cc161349050c89924ed4c1bac42719cfebba20b2f8e8d5ca9f55209c24d7b5e8bbe8b48a1fa WHIRLPOOL 0c2c8862dc7822e88f7fc45e6a9a5123ca4f9132c2dde51f0f71061be3d3390d01111f01f4b6eafbde27cb1b548ae03a33677119f4986f76ebb2414ce75f032a
AUX nfs-utils-1.2.4-exportfs-skip-dir.patch 1079 SHA256 16476adcec288a302fded2c8e1dbfc8012a57f98a6710a182623c45c889f85e4 SHA512 c7dd829c9bab0cae99356dd4a35aa0d80978893f15bebc17e2edd7bee75fe53eefe0cd2bb00685640e67ee1e0df38f4b968974e9e317ae2b4a5fe8b0e2cea3f2 WHIRLPOOL 5d4329c31ba6b532af4a90ff8437c823b25add120d4d647317f8909a513897051b0a4c68b1c360a46bf51662bd6c1f2066e18134ce6d5cf4dfb993fc43bb31c9
AUX nfs-utils-1.2.4-exportfs-xlog.patch 1757 SHA256 b9a7bcb4c4f619dee1b4a7faabbeb07875ff0e8ba04a97a77cd4cd2dbaac51ce SHA512 f388ce0101ba30a4427c1ab6039385cdf2b498f516c4455befed0c4b4dcc4a90cbf5354031eaf61b752bb5444d766012943e28f522c647d165d755a1c4a8e31a WHIRLPOOL b0ba5bc10b71558ce35155755b7e73a81c497f3cc739034449be80a938e432d21fc3261347af8683c74ae86d1cc78ddc6c52a86bceb4d69eda5c4c772538899d
AUX nfs-utils-1.2.4-nfsidmap.patch 1925 SHA256 ae15774002b877a75376c176bb313ca950100ba95be2d1641b1dacb8aaa0c33c SHA512 dfee20ed30d06f6ae60d3cad8e3d35466e90281794c17b44aecc899330455e6225d3d9ce065bbc6563fc0a0f36baff90fe9b6168c658e7e773f3d41b6566b154 WHIRLPOOL ee9d23dd65523899455921344215331e257be707ce966665d03d6e7de2d8726703b405e74c542a90b2c9076b6b446f5039a24317b5cf700580b74b72c710682e
AUX nfs-utils-1.2.4-no-nfsctl.patch 1043 SHA256 cb2f92895762337e377989835a360f423f6f0e3e2b4a82bde600496da16631b5 SHA512 be554123641b20a54f207b7ee3aa3fbc052a04f35bce00f12b0c57962c37b1a45debd44b046c8ff72e71fec0ec0fa6c539c7baa3a1635d3db3f128fc5a7e5c00 WHIRLPOOL d89c13af1a0d1a6e5487cfabfb7ef58f8dd30157ee0d3149c309a68e0632b82893c9060ad366a771608d5183dde97c3d2b1ee5802b97375e23a2f5f4d91abdcb
AUX nfs-utils-1.2.6-conditionals.patch 2020 SHA256 3f083ad6efa96110e46df09743a6988a004a73ce6213a954b303f191b9c76582 SHA512 11961b5b77cb9d01e5119c121ce4060ec7c322e97f0beb02f11d2512823f565a3b8ce4cb5db651760f763710a5d26d1bb07e235d4e3648b3b3d6cb92c7b6d1f0 WHIRLPOOL 0cc692c71abd697098927b356e97daf6d189e50c678da950982a4623f1c8a8e2f71e66f4797ca00a0f3fbe5125db8db8bcf4d7bc752f7726cc17a60fb37fa6d8
AUX nfs-utils-1.2.6-cross-build.patch 1909 SHA256 847f22436f8f389c390beb9bc99195cad182910eff68769317a5dd9902f8c0ab SHA512 ea2fd45ad9f526a72cbc669cb748268aaed5b4e5f01eec8bdeb143226795a09c305732433958261d1b65302eddb68c104eb89d1ad34718038d8b3b06817ae799 WHIRLPOOL 71e398dc619e2971a0f7a3c9c24d9cc2b3a99c4d49568c3a51ac363265e89a13534b73f8e5a744884aff32c8bfebdbfb78b2635dc19caa527bbd3801dc02cac7
AUX nfs-utils-1.2.6-osd-install.patch 1726 SHA256 04ee2915fcba7c9d459b0f1b701314ad997e61e6898dda03fe670f63113cf155 SHA512 93f4fcb84f17cb7303dc5804d7767947d26aa33f7a8bb55ad4bffd7bc3bb4a11543963062371b25770887195c218727b1b9dbf2a2d9d4ebcd7dbbbc4be3ff879 WHIRLPOOL 032c131226311800eba29c84e3fb392a31dc5171c55a27fcbd4bdc05d69651e56cd2a81922d63a698fd90f987f0e68090676507eccd760e75349b05720b21f9f
AUX nfs-utils-1.2.7-libio.patch 1601 SHA256 788b6bcca6ec03a8690b5cbabef06ad325211ab79a332b33d17708e8b0b63093 SHA512 a9643fd3689c95bf82c28a6aa5a82540459e0e6eafbb1a774ff74ad69b4f3f28bc0624f84913a78405cbdcb3321a02f912ace2407bb5534c292f5fdd930b68c3 WHIRLPOOL cb382521d1bbfb2ab823d5d44f788f1e9f1a608f7cdd632f84c046787920237569bd57fda8f298ed255254e6bdb56ef8a845cf3013ba1766e9636ce71e63c788
AUX nfs-utils-1.2.7-nfsiostat-python3.patch 11260 SHA256 c71f3d53c3b076e609ba2de1a1565deacc7a797a2b8c8325341bd6c5b08de6ac SHA512 778640c90ab5a751b9613c02a13a4332e994620c4ff2301bd141edd563bed00ebd1fed7d850adc9d72b3eb3a64d44d7791fef4501fbe0772e7aeb0b14d7d1daa WHIRLPOOL 7c89f6152fe6e1f20c1c57168f98d872cfb55ad34ea8940b5a737c57f21adddf0be5be9a696141e3f45a5848a29c5990a02dba25c804b472848d24b944fc4fc6
AUX nfs-utils-1.2.8-cross-build.patch 1323 SHA256 281ae4f2af4d28adc936be961c2ab4aa4f77c4fb74ba08f2cef1038c6e03b30e SHA512 42a41411d0de384b66a2875fa9ea15e4b854150b5f75ba2db54ad7785fd147ee329eb8867d24a26b2b1d9ef89bd887caeaf0b5a59cdda15f5a11c47888882b9a WHIRLPOOL 52f5704ec8b88eeb3fab37e4aa9a7ca64ca76f0665c66347ab663624cb3b70309a262d86b21882dc5f687741c73974dc6efbc01d6c386e3ea607bbdb89619edb
AUX nfs.confd 948 SHA256 22bba4ee5d58bae422650875c7c8a797a52fc121ddd02d48297c075b8a35401e SHA512 0981f9ea34d5aaf25b558aa1f4c32f6750b657b450d5d22b999e1556b583207c8d88b83f6f803747c56cc70531556f5a8741589125429f93d0bbc73ae31c137e WHIRLPOOL ff6db7d613126c4fd76a6b99dc432a44f086ea22c78a42e3bcb2df04b95c31e9552cb2c080345b71027c71f97b0b7470fd53ffb81502b3f77bc9bb80a38fe9cc
AUX nfs.initd 4378 SHA256 8df22f253770a24c6a53ce332d821ab680d0ede18d0e968c1c5d8b3796cb74be SHA512 1577a43b47ebf12261504dd1c9ae564e19d80edc424c4b1e308ac46b12907f6684242284f18a6cd2edafec88c815debf895b6c29d13b9bca59d6d7c883bc1f38 WHIRLPOOL da3762c3467af7d46aef1890aa9c95a85e759c6cab09a5590a00c8f6a37b600a6cf3d4c17b1593a3bc7556ad25bfe001ccabcad70bdc1a2848aa9f842e349d48
AUX nfsd.service 339 SHA256 fada3d017779466e28a6b84c5adda1d9ef7c9b9e9458884f4456efc7e85a87c7 SHA512 4accd4aa77b3f91b1472b24ba5303cb5442aee1ecc1b813605bb4815320144cfe6505265659f8ec79ba6259c8e41ee968462d67b71981cc46dd830764fe786eb WHIRLPOOL 3fca5f83bf62f4d06854066940592cad2a3d636adf6a20e103c6344f8f3abdedfc94aeed280fa285b195b461f78674a07a334215048f83655c1f1bd17bbfc55a
AUX nfsmount.confd 326 SHA256 b9389e143c2c4f95c11f97a8a379e007f140559016f60011c9d2ff0935758bcb SHA512 6e23897885cc33c49d9c7353b456585a1e0c7300822edba81bc48ba4ccc18297adce137260cc0aa9487aa5ef0aab3eecf931532cfa5bd40fd03bc9e0ddacfb28 WHIRLPOOL 97939b074a9b5717184512088388c9c22a31f37009996b69137023a0f8a97ce6eb41f7cb0a25843ea088f00d37cb45f6b3bd1ba0f801de7cb8f6dc2e5d374dfb
AUX nfsmount.initd 1126 SHA256 b57637c7eb8e40b5cc1655e8afa69dc0aaecbd3186bdca3301586d1e9b797357 SHA512 e2c4d2bf9690b092d7062d95f4242e2591e3ed0aa8b9b36eae977d5d0350b0d90d339f7e75bdcc794abef27cf1541642a8a6dbbaed90e58cc823db4c92af9336 WHIRLPOOL 54a2bdb24015a6d8184fdde3351b152c5625cb6e4ff17876d592a1600fedec1724081b4ff233711ad9d290ea761827067c40ba8ae21121fc6066ba7ed230e483
AUX rpc-mountd.service 251 SHA256 d48a2bedfc62e20a21e2b55b822290ca849cc43bd8aafafd72687a389956e44b SHA512 6d9d163d35ebfeb2cd2d00f4d3c4d7973c6f6b9615c59e1e05e5431b91e0ade3cdd414896245f53ad0bf897ad70dcb0d06eb94c71d52c9ea3787df08483f2e1b WHIRLPOOL 5aa94ae3d682919790e485a5c00b8b396674e8059b563472dd007e8be0084ab6a8aadf9a72f0a01ee68260d71e51075cbd9c86de36b713495a7beb275a3f4cab
AUX rpc-statd.service 268 SHA256 f6e9479410ea3c41949ef8c552c0246cfc4324d60a69900fa14d10c50dc2c305 SHA512 6e0ff528f98b669c33e810082c772161c9750b626e755f0bc07e2134e43ab26eb3b73d92d1da5e05926a88c1ddbd44c2670c9388de470d2a90a82c7f34253775 WHIRLPOOL 97d1fff09f4dbda3a54a88c2323df594c6170fb3891d8e542370757bd80916b0e8b027358e81fdf08ae4a8e2a79ca1c0361320fc552221626fbcbb17a4ece937
AUX rpc.gssd.initd 567 SHA256 00d9c29280a83e8458c33139d04a9b38c6fdba9d7cb9b420ca83bf6b10e6435d SHA512 cd4f763c7cced0eecb03e2d4c8fb1d5fbbddd119a014dee4e9cb881d3750fb01a50daa4475700914785cb1313ceef638b7de4d8dddac90cbab63888cc81938f6 WHIRLPOOL d9f4c381f18b76a2c5b1c0c2adb56b0005264a3230c436d4556c45e13372bea09cf1fc35f02d734cac7081322f72873e46d2b2d451334ad908f14ad7fcd54acc
AUX rpc.idmapd.initd 595 SHA256 3ce65326859c43983dad25ad2d4731488c488037796e39b6b5eda336e8bf81ef SHA512 624ac8c5a381a0ccc1bb7dfd06c080a9de85a9e94e1d4071a6ef401e1b20f0d05d767be5e85eea374c3a4c29218b3db6013383afa0bdd1a7f61b77260675bfdb WHIRLPOOL f25787957ec201bc97754c7864ada3e2c9be05bda054fc8ebdc29e6ebfa2280419d3dc44f54f71a1adf195f257e6e8292645b55e76006341bff101e5bddec94f
AUX rpc.pipefs.initd 822 SHA256 6503951b3c200ccf3f46396f7b9274f0a565807f7f6e561c17bed6b0133ae49a SHA512 d711406b29f6634fcde0f21157eb6b2230574e535c261c4478194c3c2c3ffa4bce7b326cbfa0e9f8e816c48b95a306a5cdbc94422db2acf64b48593637df133b WHIRLPOOL 4dec97b8883efdf03ef3692606baa430029e71e35cf34857f8dde287dba3d071a442ae03924c6a478f7fdf6fa79b211d39b08f16e241cbd0cfa31f763c028439
AUX rpc.statd.initd 818 SHA256 0c7bd35a14da6c0c2577f09ae82a41ddb693a88157eeaf80684616f79be6c304 SHA512 e7c85a5437f65c82bcab6818fa3aa27fdf746ce745b41987d0e59d620b59529b7a8613aad59e831a5b46fee1fe4410d6982a3e76e7834c79675c4c271b0db3b0 WHIRLPOOL b3c6c4147634f3db39f0a50307a7433e0d28f8cf2d89452d90f9db1b56d55c41add68336640a442508ebfc75270dd627154af787b00f603659a5c730ab724340
AUX rpc.svcgssd.initd 584 SHA256 f1c460d8b0e91e54a551397d755135d05a3728d81de596535bf8bda074455677 SHA512 844e8d41a6a8b632d98585724aca2e9ae596f72c67e17e4e8fb9eb81e6c58eed9e10cf8b2a96896dba8fd1efaa95d846954e712bdf3402a847ae17742dae2157 WHIRLPOOL f1e4a38168c112ce07e40432527a77e17aa80b4a37aeccb8b01a9e655f0437e67e4c12998d62ea7c162319cca956c18edd3cb3c64cfd8e17370782ea30fef677
DIST nfs-utils-1.1.4.tar.bz2 588368 SHA256 27704e3637b5e0ae141b56d5395272b685c4ca844ea0a20c777626bbfc52a94f SHA512 2e11a56e0beb442de999937ef4d2721efb0ebf098db693578fcb57cc92807045540b37c57099350d0b2151e3c34d1c92869a597695d9890fd287f39eabffa715 WHIRLPOOL 9a59089a068463234d539875b1bb0c95cb2cce9fca84360da495944996b988b1ffa71b53107714693b2422143de7cf305004bf09cb915a612474d6750425f855
DIST nfs-utils-1.1.5.tar.bz2 605790 SHA256 9a5da7cd85dc9087222ab348ce82577c38547177d5d4dc7fccc9e939c97d47dc
DIST nfs-utils-1.1.6.tar.bz2 598584 SHA256 9c7b4ba94cad4751604c31b9e428b0233b944fcb8ba89eebbd50e78cff73a5d5
DIST nfs-utils-1.2.0.tar.bz2 609908 SHA256 cb39468b3acd0bf3870cde4bbb06fe01a88e7cf0c81cff87fa7794cab871a1d1
DIST nfs-utils-1.2.1.tar.bz2 685942 SHA256 f4fc8fd71f562564de051d681997be3dd7753fb93f8a3a0eb7c5835f0f04fa6d SHA512 ec905750a250a778c7d0f334e29e9dfaca94dce49b6c30c11bdf411b510f2ed6b6527b2f25a2e4feaecda91b6b739e9ecae643e8798c36f5fc5be5850fe0c4ef WHIRLPOOL 69d1a37441a1b9e8d725066c9bb2a7d3684a079d530c94fa4e5302b035c472e51f5528d44d517eb27d689765ea53c6b59b88d982cf8da44f3d6d6a5fa456fb80
DIST nfs-utils-1.2.2.tar.bz2 721051 SHA256 fd47277666968cf1f6bf3fe4df91a0dd45122bcdf0e24403ea84c5a2dbc9d01e SHA512 5b0f3881d8d7d094d0dad85900ddd9b6dc3402bb0d34eb3c8698a83c416ffa19155d367d68227b60e2459afda749918c4edec6521c846fb35144cd664108e279 WHIRLPOOL c30bd904e6ec62b6c7b4bf5aeea31bfe045b09a3ef6967df4487821aa646080dbf5fc84a9cc92262ce8f0497fcfa06909b7b27dec5b97d9a74d5b59d430548dd
DIST nfs-utils-1.2.3.tar.bz2 672759 SHA256 5575ece941097cbfa67fbe0d220dfa11b73f5e6d991e7939c9339bd72259ff19 SHA512 3571559681608bc02f6f45ce9e7a32f47148bad929af1c14e90db7e6522027b8347b8e1e065dc8282d5a36188d10e1914c99e370b48ec2690ad6752f8e9a836b WHIRLPOOL 48d386c4e3f7da7117333ea8bb37629dfbf18819c7e7f8a9cd448d1a2dddb2b6a76793e1dac7c4e9310e7b0ba730a7574fac9b143eecb5ee5df277fd188554ac
DIST nfs-utils-1.2.4.tar.bz2 664358 SHA256 6ff1c702b1d61dc6e8c69cd977f79ab7d662dc870337ef89ca6d1b41bad026c0 SHA512 baab62086859aaa5581c47b27f209456b85c9940523bd3c36c02053f03fe57f237a3c03ef5689e2445b3cf1738c45969368388c35d54ef160c18f2f739d13904 WHIRLPOOL 87d4734eddfae2e74e0b03e3441615735ff26989f8b739d4c51cb0d4a0b7f3b2f27bc6c9123c4d23d5c75ebe25cc348bab7c1aabde9ac2632d901e1dc1f41a49
DIST nfs-utils-1.2.5.tar.bz2 698148 SHA256 3595ed4f6ee5c13514540861ad5e89907aa4fd6897bfa99577515233e4745a9b SHA512 2af72c04786804f3de43901e1b40919ba73964697f9e7bf1f8b1370314e2f6a8ba1c11e161ba50aade37ed44d5e1e0ebbd17a4cd6b497ea3aad8cd3466d2238b WHIRLPOOL 45fc1eba3c0f89693cf6b768585e23eb75a6a29ef40da7c2360dfd1521833aacdfdcb6d8c08aa18596b3f31dc772974f942b9656663685d91459489361ae5050
DIST nfs-utils-1.2.6.tar.bz2 755305 SHA256 70267288500408495085b7c54a667c4e8cfde5882f3193da095fc7dad2da0b83 SHA512 634f6d71d081fd9a06e28f25d9270d04d92cacc7bd1f99507ed610bd703d4df9e9ce4fab0de1463dd25ac64a99ae5a54f65340edb12ac007583b83a872dcbc25 WHIRLPOOL b87b0e543aacaa74ea305dccfd966c4f7717929636c8ed6f0bfd1bfec1ef2e6e913855b4a704ffd31215582931a795707455eaa3d639e601b154eb0ea77d13a2
DIST nfs-utils-1.2.7.tar.bz2 2902130 SHA256 7ef8e0a8b22cd7ff33f3afd28e770d45643fae303468a180640c2967833fe75e SHA512 c63b28be8e7b9cbc3ccb4950f31fd30f3ddc9c8707dcad4c3f2ee78fb464df9e0f1f58dc0c47e530c5afaa604712b4dc5e15af795810374e833c09a19dfd32e1 WHIRLPOOL 785511e2eb03649027977d81f11d7a5b1f960d4fdc57b790af5a3d441aa63858d8c2876e851049ea1b799a93796b209c9a3d22837f3aa3744ba17395a4fc8dbc
DIST nfs-utils-1.2.8.tar.bz2 2747577 SHA256 1cc8f02a633eddbf0a1d93421f331479c4cdab4c5ab33b8bf8c7c369f9156ac6 SHA512 abe13f37dccb40258ac2f654143e540b9ac8c41ca10fe88f104ebb558334d41c0e31220dbae0122836e43236cac763fbcfc1d5bd708aca3b282152ac3ac7213b WHIRLPOOL 95bc97e572aebae4b99d20b67845e081d75f4126fc74e9f081a6bc1a913796f5370befb5a21c7626668bd430b8671c4732ddfbf319e6a2ef8df8e15f4ef213a1
EBUILD nfs-utils-1.1.4-r1.ebuild 3167 SHA256 c0f3eedc4f31424c7788e55f504980bb530464d1bed49ed0cc0e431eef633403 SHA512 2173b772ffba0f6ffc361e846ed58a78247eedf1b7beb2b87a37fe71c654d65681e666d32e73f3ed767f9a421e65c228b9242022c02cde7aa7a31383469b88d4 WHIRLPOOL 300ceb5299d93ae8539c6e154dba43da535c39b6318f4979b635c1d0d25c9fba8761f8ea25988e793a2bd23613e2a4e2b24182291e92530aa2120a50b0f8b3e7
EBUILD nfs-utils-1.1.5.ebuild 3098 SHA256 35a23dde75f23c921c1731f4bce5bfd6a9ab4aa66416e73864b7c8909e89a964 SHA512 f25708af1eb291a2d4df9ac795c396a9d3b0e844d9478f23567e0d90cbd33414d9a3d250135c801536ce6ed4f4de2d364a7f90d70ee7d1daab2a248f304c88ad WHIRLPOOL b9fb0cfb27a52cb71eb95e4c266e8077b0fabfcbafcb3d5a891c5350f04d604bfa2a6314179f07755eb28c1a24ff23f84e64ac8cc34e79e42169b774407950cc
EBUILD nfs-utils-1.1.6-r1.ebuild 3212 SHA256 02ecf4976fd1e54ff1440a8e7b6eb2333b7e4ff2392f082c34b5b41c493f809c SHA512 df5022cdb232cfa672495d4185ce4a669ba4133e4077f5e412a0f44abd83fac2fb2a52c0fbf78e5004de1fc4c65dbbf10f6cff2f38778bf3b70cb561f2b67e42 WHIRLPOOL 7eb6753f41c8972d83330f12aa0c24bc0a46d8167912e9d698926945294c1f87ef56b25ec35017ec2057d5ebdfdb53c380141c80dc6f0323069a729ae18dff36
EBUILD nfs-utils-1.2.0.ebuild 3194 SHA256 ea1b2347de041280faa7dd8e008a2486d7b28e6b83f0b410f20afb009e906f64 SHA512 8c85eb9fb2c620649a079859cf2d7c680c0f6f738d98c38e925fbe49b25e8b268d10a203c3e29647a10e86c01a79f51fc757b4c7e8fca966d02e0a6d5c3ad64d WHIRLPOOL 2968765b005521a7aab69c66c2206fffb9517b1dadb24b2438d8a90389def6d19c1fae821ab49b5a52330602d0d590fa4f9ecb3c7ecc106151cb1c28827bc3b7
EBUILD nfs-utils-1.2.1.ebuild 3120 SHA256 5342652c52e345a17ef3d000a4a78aa0513edf863dad7adaa665975194d9771c SHA512 0e0bf20e7b2e52aeebe9034983c856bcacd77da837e67d8f8fcc12a8241bbe9c02cac2bc186b6867cc3662a144d1cc4ae6a9c810973e12714573e8ea1423f1b4 WHIRLPOOL 0d41bb515ebf6db49ddd19101b8e67bfbcfe1cafb019b6b18238ad6643aa54c6b4f1cd1e9584a0a41e751731b47747c8b947934f3ee8e1e3b973515aacb2b79e
EBUILD nfs-utils-1.2.2-r2.ebuild 3387 SHA256 9dd1368b530d093538f6adb4715ec6634fe050e664b6ae0b004f65a8fae9c4f4 SHA512 df4877e8e54e43dc7b5417db2e0a9deb072353394753fef9760c7aadd1de43f572c57ad9502aef5ced29e566fdf0f12e93fe041e15d62abe070b223204598cb2 WHIRLPOOL 61602162879402da7b353d2041d9aee57c80487bf2faab46a8d199077777a8045a524ac6ec18d5ed42d0c2e8d222e46dccbe126cf98dd52ef808856c9895ac6f
EBUILD nfs-utils-1.2.3-r1.ebuild 3243 SHA256 5660e204ebd82df18a3ea663115dd821bc73828192e9e54862b5bb01121c81b0 SHA512 dde032879ec65fff56c2fbfa5d470c9b768ed4c9e0fd3d29f1213d614b2c1430432aad51b6f61b004498bee5836fc4ebe33ba5743f6522b6035dd03cecce1851 WHIRLPOOL 467f483d4d2c2083e8cfb74f4e29c4954ad26c4e53016ff9034b5d82d4dd3d823fce50463cc6b5ef4d7e9e18b1d84d75d87e8c90ad4181eebea713f802ce175c
EBUILD nfs-utils-1.2.3.ebuild 3150 SHA256 b1c484e0cc4b032cd44ff66d9e73866e0dfcea87c22917994f2aa6312db1bcba SHA512 2d580cfd94cdf1f49f3cd1a23f87c94ff6be6ee833d41c478ae0bcd6c35d9bc23db04299a99c237c174b623006f0fa0a337b913f1587824fd295c3f1dcac97ae WHIRLPOOL dd8b739e382284b5af862ecf2a7c5baebe8633574e0b4deb44dd24b329b806a38643ce4d71604a690b7526aff93d9f20c8a19e03069066f89d33f3f92f09e8ba
EBUILD nfs-utils-1.2.4.ebuild 3737 SHA256 13042431e301d9181e6d8d54fa207a2581f675c3a2cb766c47b7fb6037ca088e SHA512 e0fe6e9ef9441311688e88310194c5cb0bf5ae6053d590eab07ca7469413d4183256d4806dc99d0f512eb4d32ab4736a5b8c60a2dff51a925d50134f14e659bc WHIRLPOOL fdb0e2e9e2648c20f8ca89b8d28dcad0646939640a88a2e900bd3601e374f31c157d1cf33de35c67600fb1773406ce0e722ff6b6bb34f5b4c0694f46b2668553
EBUILD nfs-utils-1.2.5.ebuild 3515 SHA256 f666cf561ecbfe6e4a5c1eed271957ba296c5b90a1bfefbfc741f033661d952c SHA512 0e944552e2e1f8b74d3f571df541f6577aedcac21ee88c9fb6db88e4fd7cb1455939037322c2633830582a228307fc3835afd74afc59121d2babe23da5c29d92 WHIRLPOOL e4bd59dee38ff4e2b735c9711973bd92fc9a180858d22396f5e1b7af8b3891d6ccec3deab4305d7244cdbf7ca8f97166fcb8462919e500cf0ad8e0f9b542d24a
EBUILD nfs-utils-1.2.6.ebuild 3864 SHA256 b9b8d50f103d596ff47718cb96c9bed767f3a50464d832e2119b5c8875716a10 SHA512 ff899f49b30c7614edceb9402c7db6fddd7600a5fddc654f6cf62730830a78e5a3e364b7051ffef2b1997535784bf5d7d03b94a32194418d9fac4df5c7f3dbd4 WHIRLPOOL 444908e3de5fcc8f1f034aeb44ce311166e0a600ac2edb921d27c03dc2b2a77d70a124e398259acd48856ec8322a4c604fbb6e5798a33908206b7e9926d65719
EBUILD nfs-utils-1.2.7-r1.ebuild 4017 SHA256 4b5ababa6756823dfa640552289afc4454b21f10ea9913859c77bc272d4529e7 SHA512 2b5bc123bb4ae1dbcd1b2b3f3b3b2c4d826b4a2204312e374c401411e4e7b6ed2835386f4094d29195c9ed0976c30ba3d6e1e7c200babc2f3c7437d06702e898 WHIRLPOOL b935d67048eafd035838348dd251744e9238191cdfdc9aba0e6b60a6cf07f605b641629a6ce3f567f4f95041bc6dc967af48edac8a7440159bbef3010c9c4ded
EBUILD nfs-utils-1.2.8-r1.ebuild 4027 SHA256 19055b182c8bca25dc47efd2516ef11a623939a7f1e15a95e5e10c256258e2cd SHA512 76d8be488fffdbeb0f3e56f5854896e28ae04e0262e26250f613a4fda063fd13a337e761ba12f57034452867d425f20d4c32c24c8e3d56f6f0ee35305237d548 WHIRLPOOL d0d9c4571987cda56c9d6be354b1f3a963ecadb3f9ab4cc1ad26139346cb1f5637655153f8f23dfc810308fbbd354c1916fdc83257682de0fed60137d163c004
EBUILD nfs-utils-1.2.8-r2.ebuild 4095 SHA256 76fcc1ef5d657251f8b348938ac224c2a6b9a9efe797ccda8246c772fe51cb77 SHA512 32f7b226591017489302766483a7675f503d9c8990cdcedd8c4d4447fdb069e9b235de053f93d42bd1eb588faf640beea8c9691a8fe68cd9379f887c8b9f0d6e WHIRLPOOL 20bcb1ed15f50ae06244e640550fbce704c4e9734406e532be9f639b25b2664ee046bc855b004efac0b5aa0abd4a5738d48cf88c88d268b7497edcd838a06dc1
MISC ChangeLog 35166 SHA256 a51aaf8a9a6c7c8e25f0af0f890838830a853f0d2dc96ce27dfed46521a613e4 SHA512 1aaef961ffa2d1e13404277e411dbf3337aa806521c6591bda85c85953572003e451e22e3dd91515a944e2f515088e0dc57e39278b6b8caa9f1b5048cd4ec78d WHIRLPOOL 75035a2e9ee8e5709d57394ef191c10b37b2836f9a23de419bdef840ea78e39b51ddf06fb02582803182fa76e5f68e57df6483e8471ddda44a1dd3f47c5a8072
MISC metadata.xml 668 SHA256 d9ecc29c31ebf779ec222513db190cc0e9d0737f806aea26913d097b09bbfa47 SHA512 2b269153829d1d8df6e97871814479af8fbe18a48cf0b6a33947212264875a4002feda4163b465b4a67e253e5f27e47badc53d414ebb9f3281253f813fa1dacd WHIRLPOOL a53c14f8e6f7cce4f75a7fda60d8b9f96a57eb3a877470906fa1c40befcd9791411934e7ab610ce612f6d42d4d953e0a2a78ffc9e21e9b98328a395c4de7daa8
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)
iQEcBAEBCAAGBQJSHE6IAAoJEEqz6FtPBkyjWNkH/1Bb8v021fnKu5liGUwXjjCR
jpYNTn1CVg1NJcjDVY6u9WNWUHQCmwQLP0Kbu0/nB/McfBijjWRMyCiu059j3yFR
h0GgYxCBQNtjzjH3zE0KcDcQ9TfT53sLCIRdcR0I+FlQrv3IV/CF2/xD/9FERML3
zwoofFkVpQHoHl+geTkFwDNSJPV0d7bfIQkX+MbdAbCGI3I501PxSlVKAYoJr3zx
yWFRKEoteK9uw/9J/ibgtZqM3UWkNol9YLyqDyEhBA0N7ejY/+rPMHF9V6XbJCMJ
KLAXi3C71827R43FBeesp3PhV9xoQHkYVtOezpykuEOhk4UjVH56fd4ko+mq5IY=
=imNC
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,81 @@
From 23d3980b6cfea4e9056d9b7b81e48b4fefc645e0 Mon Sep 17 00:00:00 2001
From: NeilBrown <neilb@suse.de>
Date: Tue, 7 May 2013 11:46:18 -0400
Subject: [PATCH] mountd: Fix is_subdirectory again
The problem was that is_subdirectory() would also succeed if the two
directories were the same. This is needed for path_matches() which
needs to see if the child is same-or-descendant.
So this patch rearranges path_matches() to do the "are they the same"
test itself and only bother with is_subdirectory() if it they are not
the same.
So now is_subdirectory() can be strict, and so can be usable for
subexport(), which needs a strong 'in subdirectory - not the same' test.
Acked-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
utils/mountd/cache.c | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index 737927c..517aa62 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -347,20 +347,26 @@ static char *next_mnt(void **v, char *p)
static int is_subdirectory(char *child, char *parent)
{
+ /* Check is child is strictly a subdirectory of
+ * parent or a more distant descendant.
+ */
size_t l = strlen(parent);
- if (strcmp(parent, "/") == 0)
+ if (strcmp(parent, "/") == 0 && child[1] != 0)
return 1;
- return strcmp(child, parent) == 0
- || (strncmp(child, parent, l) == 0 && child[l] == '/');
+ return (strncmp(child, parent, l) == 0 && child[l] == '/');
}
static int path_matches(nfs_export *exp, char *path)
{
- if (exp->m_export.e_flags & NFSEXP_CROSSMOUNT)
- return is_subdirectory(path, exp->m_export.e_path);
- return strcmp(path, exp->m_export.e_path) == 0;
+ /* Does the path match the export? I.e. is it an
+ * exact match, or does the export have CROSSMOUNT, and path
+ * is a descendant?
+ */
+ return strcmp(path, exp->m_export.e_path) == 0
+ || ((exp->m_export.e_flags & NFSEXP_CROSSMOUNT)
+ && is_subdirectory(path, exp->m_export.e_path));
}
static int
@@ -369,15 +375,13 @@ export_matches(nfs_export *exp, char *dom, char *path, struct addrinfo *ai)
return path_matches(exp, path) && client_matches(exp, dom, ai);
}
-/* True iff e1 is a child of e2 and e2 has crossmnt set: */
+/* True iff e1 is a child of e2 (or descendant) and e2 has crossmnt set: */
static bool subexport(struct exportent *e1, struct exportent *e2)
{
char *p1 = e1->e_path, *p2 = e2->e_path;
- size_t l2 = strlen(p2);
return e2->e_flags & NFSEXP_CROSSMOUNT
- && strncmp(p1, p2, l2) == 0
- && p1[l2] == '/';
+ && is_subdirectory(p1, p2);
}
struct parsed_fsid {
--
1.8.3.2

View File

@ -0,0 +1,126 @@
From 342446a4a624d4ee8254af859bb7f1de6d268679 Mon Sep 17 00:00:00 2001
From: Weston Andros Adamson <dros@netapp.com>
Date: Tue, 7 May 2013 11:25:29 -0400
Subject: [PATCH] statd: exit if a statd is already running
Moves nfs_probe_statd from mount to nfs support lib to share with statd.
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
support/include/nfsrpc.h | 5 +++++
support/nfs/getport.c | 22 ++++++++++++++++++++++
utils/mount/network.c | 17 -----------------
utils/statd/statd.c | 7 +++++++
4 files changed, 34 insertions(+), 17 deletions(-)
diff --git a/support/include/nfsrpc.h b/support/include/nfsrpc.h
index a0b80e1..1bfae7a 100644
--- a/support/include/nfsrpc.h
+++ b/support/include/nfsrpc.h
@@ -156,6 +156,11 @@ extern unsigned long nfs_pmap_getport(const struct sockaddr_in *,
const struct timeval *);
/*
+ * Use nfs_pmap_getport to see if statd is running locally
+ */
+extern int nfs_probe_statd(void);
+
+/*
* Contact a remote RPC service to discover whether it is responding
* to requests.
*/
diff --git a/support/nfs/getport.c b/support/nfs/getport.c
index 3331ad4..081594c 100644
--- a/support/nfs/getport.c
+++ b/support/nfs/getport.c
@@ -1102,3 +1102,25 @@ unsigned long nfs_pmap_getport(const struct sockaddr_in *sin,
return port;
}
+
+static const char *nfs_ns_pgmtbl[] = {
+ "status",
+ NULL,
+};
+
+/*
+ * nfs_probe_statd - use nfs_pmap_getport to see if statd is running locally
+ *
+ * Returns non-zero if statd is running locally.
+ */
+int nfs_probe_statd(void)
+{
+ struct sockaddr_in addr = {
+ .sin_family = AF_INET,
+ .sin_addr.s_addr = htonl(INADDR_LOOPBACK),
+ };
+ rpcprog_t program = nfs_getrpcbyname(NSMPROG, nfs_ns_pgmtbl);
+
+ return nfs_getport_ping((struct sockaddr *)(char *)&addr, sizeof(addr),
+ program, (rpcvers_t)1, IPPROTO_UDP);
+}
diff --git a/utils/mount/network.c b/utils/mount/network.c
index 4be48cd..e2cdcaf 100644
--- a/utils/mount/network.c
+++ b/utils/mount/network.c
@@ -65,11 +65,6 @@ extern int nfs_mount_data_version;
extern char *progname;
extern int verbose;
-static const char *nfs_ns_pgmtbl[] = {
- "status",
- NULL,
-};
-
static const char *nfs_mnt_pgmtbl[] = {
"mount",
"mountd",
@@ -761,18 +756,6 @@ int probe_bothports(clnt_addr_t *mnt_server, clnt_addr_t *nfs_server)
&nfs_server->pmap);
}
-static int nfs_probe_statd(void)
-{
- struct sockaddr_in addr = {
- .sin_family = AF_INET,
- .sin_addr.s_addr = htonl(INADDR_LOOPBACK),
- };
- rpcprog_t program = nfs_getrpcbyname(NSMPROG, nfs_ns_pgmtbl);
-
- return nfs_getport_ping(SAFE_SOCKADDR(&addr), sizeof(addr),
- program, (rpcvers_t)1, IPPROTO_UDP);
-}
-
/**
* start_statd - attempt to start rpc.statd
*
diff --git a/utils/statd/statd.c b/utils/statd/statd.c
index 652546c..8c51bcc 100644
--- a/utils/statd/statd.c
+++ b/utils/statd/statd.c
@@ -28,6 +28,7 @@
#include "statd.h"
#include "nfslib.h"
+#include "nfsrpc.h"
#include "nsm.h"
/* Socket operations */
@@ -237,6 +238,12 @@ int main (int argc, char **argv)
/* Set hostname */
MY_NAME = NULL;
+ /* Refuse to start if another statd is running */
+ if (nfs_probe_statd()) {
+ fprintf(stderr, "Statd service already running!\n");
+ exit(1);
+ }
+
/* Process command line switches */
while ((arg = getopt_long(argc, argv, "h?vVFNH:dn:p:o:P:L", longopts, NULL)) != EOF) {
switch (arg) {
--
1.8.3.2

View File

@ -0,0 +1 @@
# /etc/exports: NFS file systems being exported. See exports(5).

View File

@ -0,0 +1,16 @@
ripped from Debian
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493659
patch by nbreen@ofb.net (Nicholas Breen)
--- nfs-utils-1.1.3/utils/mount/nfs.man
+++ nfs-utils-1.1.3/utils/mount/nfs.man
@@ -799,7 +799,7 @@
and server load.
.P
However, UDP can be quite effective in specialized settings where
-the networks MTU is large relative to NFSs data transfer size (such
+the network's MTU is large relative to NFS's data transfer size (such
as network environments that enable jumbo Ethernet frames). In such
environments, trimming the
.B rsize

View File

@ -0,0 +1,39 @@
ripped from Debian
--- nfs-utils-1.1.4/utils/mount/fstab.c
+++ nfs-utils-1.1.4/utils/mount/fstab.c
@@ -57,7 +57,7 @@ mtab_does_not_exist(void) {
return var_mtab_does_not_exist;
}
-static int
+int
mtab_is_a_symlink(void) {
get_mtab_info();
return var_mtab_is_a_symlink;
--- nfs-utils-1.1.4/utils/mount/fstab.h
+++ nfs-utils-1.1.4/utils/mount/fstab.h
@@ -7,6 +7,7 @@
#define _PATH_FSTAB "/etc/fstab"
#endif
+int mtab_is_a_symlink(void);
int mtab_is_writable(void);
int mtab_does_not_exist(void);
void reset_mtab_info(void);
--- nfs-utils-1.1.4/utils/mount/mount.c
+++ nfs-utils-1.1.4/utils/mount/mount.c
@@ -230,6 +230,13 @@ create_mtab (void) {
int flags;
mntFILE *mfp;
+ /* Avoid writing if the mtab is a symlink to /proc/mounts, since
+ that would create a file /proc/mounts in case the proc filesystem
+ is not mounted, and the fchmod below would also fail. */
+ if (mtab_is_a_symlink()) {
+ return EX_SUCCESS;
+ }
+
lock_mtab();
mfp = nfs_setmntent (MOUNTED, "a+");

View File

@ -0,0 +1,15 @@
ripped from Debian
--- nfs-utils-1.1.2/utils/mount/mount.c
+++ nfs-utils-1.1.2/utils/mount/mount.c
@@ -381,10 +381,6 @@
mount_error(NULL, mount_point, ENOTDIR);
return 1;
}
- if (access(mount_point, X_OK) < 0) {
- mount_error(NULL, mount_point, errno);
- return 1;
- }
return 0;
}

View File

@ -0,0 +1,13 @@
http://bugs.gentoo.org/174393
--- tools/rpcgen/rpc_main.c
+++ tools/rpcgen/rpc_main.c
@@ -548,7 +548,7 @@
f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
#else
if( !tirpcflag )
- f_print(fout, "#include <sys/ttycom.h>/* TIOCNOTTY */\n");
+ f_print(fout, "#include <sys/ioctl.h>/* TIOCNOTTY */\n");
#endif
if( Cflag && (inetdflag || pmflag ) ) {
f_print(fout, "#ifdef __cplusplus\n");

View File

@ -0,0 +1,13 @@
Index: nfs-utils-1.2.2/configure.ac
===================================================================
--- nfs-utils-1.2.2.orig/configure.ac
+++ nfs-utils-1.2.2/configure.ac
@@ -81,7 +81,7 @@ AC_ARG_ENABLE(nfsv41,
if test "$enable_nfsv41" = yes; then
AC_DEFINE(NFS41_SUPPORTED, 1, [Define this if you want NFSv41 support compiled in])
else
- enable_nfsv4=
+ enable_nfsv41=
fi
AC_SUBST(enable_nfsv41)
AM_CONDITIONAL(CONFIG_NFSV41, [test "$enable_nfsv41" = "yes"])

View File

@ -0,0 +1,79 @@
From 655f6933b5db66c560098d039e3c91812399beca Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Tue, 20 Apr 2010 04:45:35 -0400
Subject: [PATCH] make capabilities support optional
The new code using libcap is quite minor, so rather than always reqiure
libcap support, make it a normal --enable type flag. Current default
behavior is retained -- if libcap is found, it is enabled, else it is
disabled like every nfs-utils version in the past.
URL: https://bugs.gentoo.org/314777
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
aclocal/libcap.m4 | 18 +++++++++++++-----
support/nsm/file.c | 4 ++++
2 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/aclocal/libcap.m4 b/aclocal/libcap.m4
index eabe507..68a624c 100644
--- a/aclocal/libcap.m4
+++ b/aclocal/libcap.m4
@@ -5,11 +5,19 @@ AC_DEFUN([AC_LIBCAP], [
dnl look for prctl
AC_CHECK_FUNC([prctl], , )
- dnl look for the library; do not add to LIBS if found
- AC_CHECK_LIB([cap], [cap_get_proc], [LIBCAP=-lcap], ,)
- AC_SUBST(LIBCAP)
+ AC_ARG_ENABLE([caps],
+ [AS_HELP_STRING([--disable-caps], [Disable capabilities support])])
+
+ LIBCAP=
+
+ if test "x$enable_caps" != "xno" ; then
+ dnl look for the library; do not add to LIBS if found
+ AC_CHECK_LIB([cap], [cap_get_proc], [LIBCAP=-lcap], ,)
- AC_CHECK_HEADERS([sys/capability.h], ,
- [AC_MSG_ERROR([libcap headers not found.])])
+ AC_CHECK_HEADERS([sys/capability.h], ,
+ [test "x$enable_caps" = "xyes" && AC_MSG_ERROR([libcap headers not found.])])
+ fi
+
+ AC_SUBST(LIBCAP)
])dnl
diff --git a/support/nsm/file.c b/support/nsm/file.c
index d469219..f4baeb9 100644
--- a/support/nsm/file.c
+++ b/support/nsm/file.c
@@ -67,7 +67,9 @@
#endif
#include <sys/types.h>
+#ifdef HAVE_SYS_CAPABILITY_H
#include <sys/capability.h>
+#endif
#include <sys/prctl.h>
#include <sys/stat.h>
@@ -347,6 +349,7 @@ nsm_is_default_parentdir(void)
static _Bool
nsm_clear_capabilities(void)
{
+#ifdef HAVE_SYS_CAPABILITY_H
cap_t caps;
caps = cap_from_text("cap_net_bind_service=ep");
@@ -362,6 +365,7 @@ nsm_clear_capabilities(void)
}
(void)cap_free(caps);
+#endif
return true;
}
--
1.7.0.2

View File

@ -0,0 +1,352 @@
http://bugs.gentoo.org/340797
From 656028f9925f5817c5a37565d27159973db84ec3 Mon Sep 17 00:00:00 2001
From: Chuck Lever <chuck.lever@oracle.com>
Date: Wed, 13 Oct 2010 11:22:07 -0400
Subject: [PATCH] libnfs.a: Allow multiple RPC listeners to share listener port number
Normally, when "-p" is not specified on the mountd command line, the
TI-RPC library chooses random port numbers for each listener. If a
port number _is_ specified on the command line, all the listeners
will get the same port number, so SO_REUSEADDR needs to be set on
each socket.
Thus we can't let TI-RPC create the listener sockets for us in this
case; we must create them ourselves and then set SO_REUSEADDR (and
other socket options) by hand.
Different versions of the same RPC program have to share the same
listener and SVCXPRT, so we have to cache xprts we create, and re-use
them when additional requests for registration come from the
application.
Though it doesn't look like it, this fix was "copied" from the legacy
rpc_init() function. It's more complicated for TI-RPC, of course,
since a TI-RPC application can set up listeners with a nearly
arbitrary number of address families and socket types, not just the
two listeners that legacy RPC applications can set up (one for AF_INET
UDP and one for AF_INET TCP).
See:
https://bugzilla.linux-nfs.org/show_bug.cgi?id=190
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
---
support/nfs/svc_create.c | 252 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 246 insertions(+), 6 deletions(-)
diff --git a/support/nfs/svc_create.c b/support/nfs/svc_create.c
index 59ba505..b3f75ed 100644
--- a/support/nfs/svc_create.c
+++ b/support/nfs/svc_create.c
@@ -27,6 +27,7 @@
#include <memory.h>
#include <signal.h>
#include <unistd.h>
+#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
@@ -41,11 +42,68 @@
#include "tcpwrapper.h"
#endif
+#include "sockaddr.h"
#include "rpcmisc.h"
#include "xlog.h"
#ifdef HAVE_LIBTIRPC
+#define SVC_CREATE_XPRT_CACHE_SIZE (8)
+static SVCXPRT *svc_create_xprt_cache[SVC_CREATE_XPRT_CACHE_SIZE] = { NULL, };
+
+/*
+ * Cache an SVC xprt, in case there are more programs or versions to
+ * register against it.
+ */
+static void
+svc_create_cache_xprt(SVCXPRT *xprt)
+{
+ unsigned int i;
+
+ /* Check if we've already got this one... */
+ for (i = 0; i < SVC_CREATE_XPRT_CACHE_SIZE; i++)
+ if (svc_create_xprt_cache[i] == xprt)
+ return;
+
+ /* No, we don't. Cache it. */
+ for (i = 0; i < SVC_CREATE_XPRT_CACHE_SIZE; i++)
+ if (svc_create_xprt_cache[i] == NULL) {
+ svc_create_xprt_cache[i] = xprt;
+ return;
+ }
+
+ xlog(L_ERROR, "%s: Failed to cache an xprt", __func__);
+}
+
+/*
+ * Find a previously cached SVC xprt structure with the given bind address
+ * and transport semantics.
+ *
+ * Returns pointer to a cached SVC xprt.
+ *
+ * If no matching SVC XPRT can be found, NULL is returned.
+ */
+static SVCXPRT *
+svc_create_find_xprt(const struct sockaddr *bindaddr, const struct netconfig *nconf)
+{
+ unsigned int i;
+
+ for (i = 0; i < SVC_CREATE_XPRT_CACHE_SIZE; i++) {
+ SVCXPRT *xprt = svc_create_xprt_cache[i];
+ struct sockaddr *sap;
+
+ if (xprt == NULL)
+ continue;
+ if (strcmp(nconf->nc_netid, xprt->xp_netid) != 0)
+ continue;
+ sap = (struct sockaddr *)xprt->xp_ltaddr.buf;
+ if (!nfs_compare_sockaddr(bindaddr, sap))
+ continue;
+ return xprt;
+ }
+ return NULL;
+}
+
/*
* Set up an appropriate bind address, given @port and @nconf.
*
@@ -98,17 +156,113 @@ svc_create_bindaddr(struct netconfig *nconf, const uint16_t port)
return ai;
}
+/*
+ * Create a listener socket on a specific bindaddr, and set
+ * special socket options to allow it to share the same port
+ * as other listeners.
+ *
+ * Returns an open, bound, and possibly listening network
+ * socket on success.
+ *
+ * Otherwise returns -1 if some error occurs.
+ */
+static int
+svc_create_sock(const struct sockaddr *sap, socklen_t salen,
+ struct netconfig *nconf)
+{
+ int fd, type, protocol;
+ int one = 1;
+
+ switch(nconf->nc_semantics) {
+ case NC_TPI_CLTS:
+ type = SOCK_DGRAM;
+ break;
+ case NC_TPI_COTS_ORD:
+ type = SOCK_STREAM;
+ break;
+ default:
+ xlog(D_GENERAL, "%s: Unrecognized bind address semantics: %u",
+ __func__, nconf->nc_semantics);
+ return -1;
+ }
+
+ if (strcmp(nconf->nc_proto, NC_UDP) == 0)
+ protocol = (int)IPPROTO_UDP;
+ else if (strcmp(nconf->nc_proto, NC_TCP) == 0)
+ protocol = (int)IPPROTO_TCP;
+ else {
+ xlog(D_GENERAL, "%s: Unrecognized bind address protocol: %s",
+ __func__, nconf->nc_proto);
+ return -1;
+ }
+
+ fd = socket((int)sap->sa_family, type, protocol);
+ if (fd == -1) {
+ xlog(L_ERROR, "Could not make a socket: (%d) %m",
+ errno);
+ return -1;
+ }
+
+#ifdef IPV6_SUPPORTED
+ if (sap->sa_family == AF_INET6) {
+ if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY,
+ &one, sizeof(one)) == -1) {
+ xlog(L_ERROR, "Failed to set IPV6_V6ONLY: (%d) %m",
+ errno);
+ (void)close(fd);
+ return -1;
+ }
+ }
+#endif /* IPV6_SUPPORTED */
+
+ if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR,
+ &one, sizeof(one)) == -1) {
+ xlog(L_ERROR, "Failed to set SO_REUSEADDR: (%d) %m",
+ errno);
+ (void)close(fd);
+ return -1;
+ }
+
+ if (bind(fd, sap, salen) == -1) {
+ xlog(L_ERROR, "Could not bind socket: (%d) %m",
+ errno);
+ (void)close(fd);
+ return -1;
+ }
+
+ if (nconf->nc_semantics == NC_TPI_COTS_ORD)
+ if (listen(fd, SOMAXCONN) == -1) {
+ xlog(L_ERROR, "Could not listen on socket: (%d) %m",
+ errno);
+ (void)close(fd);
+ return -1;
+ }
+
+ return fd;
+}
+
+/*
+ * The simple case is allowing the TI-RPC library to create a
+ * transport itself, given just the bind address and transport
+ * semantics.
+ *
+ * Our local xprt cache is ignored in this path, since the
+ * caller is not interested in sharing listeners or ports, and
+ * the library automatically avoids ports already in use.
+ *
+ * Returns the count of started listeners (one or zero).
+ */
static unsigned int
-svc_create_nconf(const char *name, const rpcprog_t program,
+svc_create_nconf_rand_port(const char *name, const rpcprog_t program,
const rpcvers_t version,
void (*dispatch)(struct svc_req *, SVCXPRT *),
- const uint16_t port, struct netconfig *nconf)
+ struct netconfig *nconf)
{
struct t_bind bindaddr;
struct addrinfo *ai;
SVCXPRT *xprt;
- ai = svc_create_bindaddr(nconf, port);
+ ai = svc_create_bindaddr(nconf, 0);
if (ai == NULL)
return 0;
@@ -119,7 +273,7 @@ svc_create_nconf(const char *name, const rpcprog_t program,
freeaddrinfo(ai);
if (xprt == NULL) {
xlog(D_GENERAL, "Failed to create listener xprt "
- "(%s, %u, %s)", name, version, nconf->nc_netid);
+ "(%s, %u, %s)", name, version, nconf->nc_netid);
return 0;
}
@@ -133,6 +287,93 @@ svc_create_nconf(const char *name, const rpcprog_t program,
return 1;
}
+/*
+ * If a port is specified on the command line, that port value will be
+ * the same for all listeners created here. Create each listener
+ * socket in advance and set SO_REUSEADDR, rather than allowing the
+ * RPC library to create the listeners for us on a randomly chosen
+ * port via svc_tli_create(RPC_ANYFD).
+ *
+ * Some callers want to listen for more than one RPC version using the
+ * same port number. For example, mountd could want to listen for MNT
+ * version 1, 2, and 3 requests. This means mountd must use the same
+ * set of listener sockets for multiple RPC versions, since, on one
+ * system, you can't have two listener sockets with the exact same
+ * bind address (and port) and transport protocol.
+ *
+ * To accomplish this, this function caches xprts as they are created.
+ * This cache is checked to see if a previously created xprt can be
+ * used, before creating a new xprt for this [program, version]. If
+ * there is a cached xprt with the same bindaddr and transport
+ * semantics, we simply register the new version with that xprt,
+ * rather than creating a fresh xprt for it.
+ *
+ * The xprt cache implemented here is local to a process. Two
+ * separate RPC daemons can not share a set of listeners.
+ *
+ * Returns the count of started listeners (one or zero).
+ */
+static unsigned int
+svc_create_nconf_fixed_port(const char *name, const rpcprog_t program,
+ const rpcvers_t version,
+ void (*dispatch)(struct svc_req *, SVCXPRT *),
+ const uint16_t port, struct netconfig *nconf)
+{
+ struct addrinfo *ai;
+ SVCXPRT *xprt;
+
+ ai = svc_create_bindaddr(nconf, port);
+ if (ai == NULL)
+ return 0;
+
+ xprt = svc_create_find_xprt(ai->ai_addr, nconf);
+ if (xprt == NULL) {
+ int fd;
+
+ fd = svc_create_sock(ai->ai_addr, ai->ai_addrlen, nconf);
+ if (fd == -1)
+ goto out_free;
+
+ xprt = svc_tli_create(fd, nconf, NULL, 0, 0);
+ if (xprt == NULL) {
+ xlog(D_GENERAL, "Failed to create listener xprt "
+ "(%s, %u, %s)", name, version, nconf->nc_netid);
+ (void)close(fd);
+ goto out_free;
+ }
+ }
+
+ if (!svc_reg(xprt, program, version, dispatch, nconf)) {
+ /* svc_reg(3) destroys @xprt in this case */
+ xlog(D_GENERAL, "Failed to register (%s, %u, %s)",
+ name, version, nconf->nc_netid);
+ goto out_free;
+ }
+
+ svc_create_cache_xprt(xprt);
+
+ freeaddrinfo(ai);
+ return 1;
+
+out_free:
+ freeaddrinfo(ai);
+ return 0;
+}
+
+static unsigned int
+svc_create_nconf(const char *name, const rpcprog_t program,
+ const rpcvers_t version,
+ void (*dispatch)(struct svc_req *, SVCXPRT *),
+ const uint16_t port, struct netconfig *nconf)
+{
+ if (port != 0)
+ return svc_create_nconf_fixed_port(name, program,
+ version, dispatch, port, nconf);
+
+ return svc_create_nconf_rand_port(name, program,
+ version, dispatch, nconf);
+}
+
/**
* nfs_svc_create - start up RPC svc listeners
* @name: C string containing name of new service
@@ -145,8 +386,7 @@ svc_create_nconf(const char *name, const rpcprog_t program,
* the RPC dispatcher. Returns the number of started network transports.
*/
unsigned int
-nfs_svc_create(__attribute__((unused)) char *name,
- const rpcprog_t program, const rpcvers_t version,
+nfs_svc_create(char *name, const rpcprog_t program, const rpcvers_t version,
void (*dispatch)(struct svc_req *, SVCXPRT *),
const uint16_t port)
{
--
1.7.3.1

View File

@ -0,0 +1,26 @@
taken from upstream git
diff --git a/configure.ac b/configure.ac
index ca12f9e..593808c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -256,9 +256,6 @@ if test "$enable_nfsv4" = yes; then
dnl check for nfsidmap libraries and headers
AC_LIBNFSIDMAP
- dnl enable nfsidmap when its support by libnfsidmap
- AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$enable_nfsidmap" = "yes"])
-
dnl check for the keyutils libraries and headers
AC_KEYUTILS
@@ -268,6 +265,9 @@ if test "$enable_nfsv4" = yes; then
AC_RPCSEC_VERSION
fi
fi
+dnl enable nfsidmap when its support by libnfsidmap
+AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$enable_nfsidmap" = "yes"])
+
if test "$knfsd_cv_glibc2" = no; then
AC_CHECK_LIB(bsd, daemon, [LIBBSD="-lbsd"])

View File

@ -0,0 +1,68 @@
this is kind of hacky, but automake doesn't make this easy
for us atm, so hack away :(
(recent autotools will always add $(CFLAGS)/etc... to the compile)
--- a/tools/locktest/Makefile.am
+++ b/tools/locktest/Makefile.am
@@ -1,12 +1,11 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
noinst_PROGRAMS = testlk
testlk_SOURCES = testlk.c
-testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
-testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)
MAINTAINERCLEANFILES = Makefile.in
--- a/tools/rpcdebug/Makefile.am
+++ b/tools/rpcdebug/Makefile.am
@@ -1,15 +1,14 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
man8_MANS = rpcdebug.man
EXTRA_DIST = $(man8_MANS)
sbin_PROGRAMS = rpcdebug
rpcdebug_SOURCES = rpcdebug.c
-rpcdebug_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcdebug_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -I$(top_srcdir)/support/include
-rpcdebug_LDFLAGS=$(LDFLAGS_FOR_BUILD)
MAINTAINERCLEANFILES = Makefile.in
--- a/tools/rpcgen/Makefile.am
+++ b/tools/rpcgen/Makefile.am
@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
noinst_PROGRAMS = rpcgen
rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \
@@ -9,10 +11,6 @@
rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \
rpc_scan.h rpc_util.h
-rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
-rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD)
-
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = rpcgen.new.1

View File

@ -0,0 +1,36 @@
From 5dc4c89b6935fcfe327b77681362319e6fd407e0 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 1 Sep 2011 11:08:04 -0400
Subject: [PATCH] exportfs: do not warn if /etc/exports.d/ does not exist
It isn't uncommon for /etc/exports.d/ to not exist, and imo, it's not
that big of a deal as often times, a simple /etc/exports is sufficient.
So silently skip the case where the dir is missing.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
utils/exportfs/exportfs.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index 986a272..7432a65 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -529,9 +529,12 @@ export_d_read(const char *dname)
n = scandir(dname, &namelist, NULL, versionsort);
- if (n < 0)
+ if (n < 0) {
+ if (errno == ENOENT)
+ /* Silently return */
+ return;
xlog(L_NOTICE, "scandir %s: %s", dname, strerror(errno));
- else if (n == 0)
+ } else if (n == 0)
return;
for (i = 0; i < n; i++) {
--
1.7.6

View File

@ -0,0 +1,56 @@
From aacec6914549f5bf4f5fb2aed0925a8a7e57b50c Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 1 Sep 2011 11:00:39 -0400
Subject: [PATCH] exportfs: drop extra newline in xlog
Since xlog() itself appends a newline, we don't want to add our own
otherwise we get extra in the output.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
utils/exportfs/exportfs.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index 12e8bf1..986a272 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -401,7 +401,7 @@ validate_export(nfs_export *exp)
int fs_has_fsid = 0;
if (stat(path, &stb) < 0) {
- xlog(L_ERROR, "Failed to stat %s: %m \n", path);
+ xlog(L_ERROR, "Failed to stat %s: %m", path);
return;
}
if (!S_ISDIR(stb.st_mode) && !S_ISREG(stb.st_mode)) {
@@ -530,7 +530,7 @@ export_d_read(const char *dname)
n = scandir(dname, &namelist, NULL, versionsort);
if (n < 0)
- xlog(L_NOTICE, "scandir %s: %s\n", dname, strerror(errno));
+ xlog(L_NOTICE, "scandir %s: %s", dname, strerror(errno));
else if (n == 0)
return;
@@ -558,7 +558,7 @@ export_d_read(const char *dname)
fname_len = snprintf(fname, PATH_MAX +1, "%s/%s", dname, d->d_name);
if (fname_len > PATH_MAX) {
- xlog(L_WARNING, "Too long file name: %s in %s\n", d->d_name, dname);
+ xlog(L_WARNING, "Too long file name: %s in %s", d->d_name, dname);
continue;
}
@@ -672,7 +672,7 @@ dump(int verbose)
static void
error(nfs_export *exp, int err)
{
- xlog(L_ERROR, "%s:%s: %s\n", exp->m_client->m_hostname,
+ xlog(L_ERROR, "%s:%s: %s", exp->m_client->m_hostname,
exp->m_export.e_path, strerror(err));
}
--
1.7.6

View File

@ -0,0 +1,57 @@
From 5606a69f9981948e1d6a36df763b2f16c43f080b Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Fri, 2 Sep 2011 14:56:59 -0400
Subject: [PATCH] nfsidmap: auto disable when keyutils is not found
Since we already auto-disable based on libnfsidmap capabilities, don't
make keyutils a hard failure.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
aclocal/keyutils.m4 | 4 ++--
aclocal/libnfsidmap.m4 | 3 +--
configure.ac | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/aclocal/keyutils.m4 b/aclocal/keyutils.m4
index 84bc112..a392c0e 100644
--- a/aclocal/keyutils.m4
+++ b/aclocal/keyutils.m4
@@ -6,6 +6,6 @@ AC_DEFUN([AC_KEYUTILS], [
AC_CHECK_LIB([keyutils], [keyctl_instantiate], [LIBKEYUTILS=-lkeyutils], ,)
AC_SUBST(LIBKEYUTILS)
- AC_CHECK_HEADERS([keyutils.h], ,
- [AC_MSG_ERROR([keyutils.h header not found.])])
+ AC_CHECK_HEADERS([keyutils.h])
+
])dnl
diff --git a/aclocal/libnfsidmap.m4 b/aclocal/libnfsidmap.m4
index 4faa923..484b1ec 100644
--- a/aclocal/libnfsidmap.m4
+++ b/aclocal/libnfsidmap.m4
@@ -15,7 +15,6 @@ AC_DEFUN([AC_LIBNFSIDMAP], [
[Define to 1 if you have the `nfs4_set_debug' function.])])
dnl only enable nfsidmap when libnfsidmap supports it
- AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid], [enable_nfsidmap=yes],
- [enable_nfsidmap=no])
+ AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid])
])dnl
diff --git a/configure.ac b/configure.ac
index c9fb27b..1a28f8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -266,7 +266,7 @@ if test "$enable_nfsv4" = yes; then
fi
fi
dnl enable nfsidmap when its support by libnfsidmap
-AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$enable_nfsidmap" = "yes"])
+AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"])
if test "$knfsd_cv_glibc2" = no; then
--
1.7.6

View File

@ -0,0 +1,43 @@
From b02133aaa4feec085627172b5466d8c64a11a5a6 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 8 Dec 2011 00:10:27 -0500
Subject: [PATCH] nfsctl: fix building with newer arches
Newer arches omitting both nfsctl and nfsservctl which breaks nfsctl.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
support/nfs/nfsctl.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/support/nfs/nfsctl.c b/support/nfs/nfsctl.c
index 89fa1a4..fec775f 100644
--- a/support/nfs/nfsctl.c
+++ b/support/nfs/nfsctl.c
@@ -11,16 +11,22 @@
#endif
#include <unistd.h>
+#include <errno.h>
#include <asm/unistd.h>
#include "nfslib.h"
/* compatibility hack... */
-#ifndef __NR_nfsctl
+#if !defined(__NR_nfsctl) && defined(__NR_nfsservctl)
#define __NR_nfsctl __NR_nfsservctl
#endif
int
nfsctl (int cmd, struct nfsctl_arg * argp, union nfsctl_res * resp)
{
+#ifdef __NR_nfsctl
return syscall (__NR_nfsctl, cmd, argp, resp);
+#else
+ errno = ENOSYS;
+ return -1;
+#endif
}
--
1.7.6.1

View File

@ -0,0 +1,58 @@
From 869d37a16d1e409cedd95b03cea29a6db65f9276 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
Date: Thu, 17 May 2012 16:26:44 -0700
Subject: [nfs-utils PATCH] build: avoid AM_CONDITIONAL in conditional
execution.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Automake does not support conditional AM_CONDITIONAL calls; what that
means is that you always have to execute AM_CONDITIONAL one way or the
other. Both the libsqlite3.m4 file and the nfsdcld conditionals are
executed only when NFSv4 is enabled, which breaks building with
--disable-nfsv4.
Remove the SQLite3 conditional altogether as it's never used, and move
the nfsdcld conditional outside of the conditional code.
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
---
aclocal/libsqlite3.m4 | 1 -
configure.ac | 3 +--
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/aclocal/libsqlite3.m4 b/aclocal/libsqlite3.m4
index 73d1e46..8c38993 100644
--- a/aclocal/libsqlite3.m4
+++ b/aclocal/libsqlite3.m4
@@ -29,5 +29,4 @@ AC_DEFUN([AC_SQLITE3_VERS], [
LIBS="$saved_LIBS"])
AC_MSG_RESULT($libsqlite3_cv_is_recent)
- AM_CONDITIONAL(CONFIG_SQLITE3, [test "$libsqlite3_cv_is_recent" = "yes"])
])dnl
diff --git a/configure.ac b/configure.ac
index 9ba53e2..b408f1b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -278,8 +278,6 @@ if test "$enable_nfsv4" = yes; then
fi
fi
- AM_CONDITIONAL(CONFIG_NFSDCLD, [test "$enable_nfsdcld" = "yes" ])
-
dnl librpcsecgss already has a dependency on libgssapi,
dnl but we need to make sure we get the right version
if test "$enable_gss" = yes; then
@@ -293,6 +291,7 @@ if test "$enable_nfsv41" = yes; then
fi
dnl enable nfsidmap when its support by libnfsidmap
+AM_CONDITIONAL(CONFIG_NFSDCLD, [test "$enable_nfsdcld" = "yes" ])
AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"])
--
1.7.8.6

View File

@ -0,0 +1,69 @@
this is kind of hacky, but automake doesn't make this easy
for us atm, so hack away :(
(recent autotools will always add $(CFLAGS)/etc... to the compile)
--- a/tools/locktest/Makefile.am
+++ b/tools/locktest/Makefile.am
@@ -1,12 +1,11 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
noinst_PROGRAMS = testlk
testlk_SOURCES = testlk.c
-testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
-testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)
MAINTAINERCLEANFILES = Makefile.in
--- a/tools/rpcdebug/Makefile.am
+++ b/tools/rpcdebug/Makefile.am
@@ -1,15 +1,14 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
man8_MANS = rpcdebug.man
EXTRA_DIST = $(man8_MANS)
sbin_PROGRAMS = rpcdebug
rpcdebug_SOURCES = rpcdebug.c
-rpcdebug_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcdebug_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -I$(top_srcdir)/support/include
-rpcdebug_LDFLAGS=$(LDFLAGS_FOR_BUILD)
MAINTAINERCLEANFILES = Makefile.in
--- a/tools/rpcgen/Makefile.am
+++ b/tools/rpcgen/Makefile.am
@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
noinst_PROGRAMS = rpcgen
rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \
@@ -9,10 +11,6 @@
rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \
rpc_scan.h rpc_util.h
-rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
-rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD)
-rpcgen_LDADD=$(LIBTIRPC)
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = rpcgen.new.1

View File

@ -0,0 +1,49 @@
From 6cecc20831eacec397a8c88b76757aeb662621e2 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 17 May 2012 01:18:57 -0400
Subject: [PATCH] osd_login: fix DESTDIR install
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
If the destination dir doesn't exist, the current install fails:
make install-data-hook
make[4]: Entering directory `/var/tmp/portage/net-fs/nfs-utils-1.2.6/work/nfs-utils-1.2.6/utils/osd_login'
/usr/bin/install -c --mode 755 osd_login /var/tmp/portage/net-fs/nfs-utils-1.2.6/image//sbin/osd_login
/usr/bin/install: cannot create regular file /var/tmp/portage/net-fs/nfs-utils-1.2.6/image//sbin/osd_login: No such file or directory
make[4]: *** [install-data-hook] Error 1
Rewrite the code to use automake's existing script support rather
than trying to install the file by hand.
Reported-by: Branko BAdrljica <brankob@avtomatika.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
utils/osd_login/Makefile.am | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/utils/osd_login/Makefile.am b/utils/osd_login/Makefile.am
index adc493a..c85584c 100644
--- a/utils/osd_login/Makefile.am
+++ b/utils/osd_login/Makefile.am
@@ -1,12 +1,11 @@
## Process this file with automake to produce Makefile.in
-OSD_LOGIN_FILES= osd_login
-
-EXTRA_DIST= $(OSD_LOGIN_FILES)
+# These scripts go in /sbin (not /usr/sbin), and that cannot be
+# overriden at config time.
+sbindir = /sbin
-all-local: $(OSD_LOGIN_FILES)
+OSD_LOGIN_FILES= osd_login
-install-data-hook:
- $(INSTALL) --mode 755 osd_login $(DESTDIR)/sbin/osd_login
+sbin_SCRIPTS= osd_login
MAINTAINERCLEANFILES = Makefile.in
--
1.7.8.6

View File

@ -0,0 +1,50 @@
https://bugs.gentoo.org/459200
From 2d9fb08c588970b842ce2a609088079181e6aafb Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sun, 24 Mar 2013 17:41:19 -0400
Subject: [PATCH [nfs-utils]] check for libio.h availability
On some systems (like uClibc), there isn't a libio.h header. But it
isn't also needed on them. So check for the header first.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
configure.ac | 2 +-
support/include/sockaddr.h | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index f461219..cc7f3b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -358,7 +358,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h \
stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
sys/param.h sys/socket.h sys/time.h sys/vfs.h \
syslog.h unistd.h com_err.h et/com_err.h \
- ifaddrs.h nfs-plugin.h])
+ ifaddrs.h nfs-plugin.h libio.h])
dnl *************************************************************
dnl Checks for typedefs, structures, and compiler characteristics
diff --git a/support/include/sockaddr.h b/support/include/sockaddr.h
index 72766db..a1c30f9 100644
--- a/support/include/sockaddr.h
+++ b/support/include/sockaddr.h
@@ -20,7 +20,13 @@
#ifndef NFS_UTILS_SOCKADDR_H
#define NFS_UTILS_SOCKADDR_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_LIBIO_H
#include <libio.h>
+#endif
#include <stdbool.h>
#include <sys/socket.h>
#include <netinet/in.h>
--
1.8.1.2

View File

@ -0,0 +1,287 @@
From b0e3dc0c1332884a82f509f98434abd78358c7ed Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sun, 24 Mar 2013 15:59:12 -0400
Subject: [PATCH] nfsiostat: make it work w/python3
Simple fixes here to work with python 2 & 3:
- use print() everywhere
- dict.iteritems() -> dict.items()
- file() -> open()
- sys.maxint -> sys.maxsize
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
tools/nfs-iostat/nfs-iostat.py | 130 +++++++++++++++++++++--------------------
1 file changed, 66 insertions(+), 64 deletions(-)
diff --git a/tools/nfs-iostat/nfs-iostat.py b/tools/nfs-iostat/nfs-iostat.py
index d909632..dfbef87 100644
--- a/tools/nfs-iostat/nfs-iostat.py
+++ b/tools/nfs-iostat/nfs-iostat.py
@@ -3,6 +3,8 @@
"""Emulate iostat for NFS mount points using /proc/self/mountstats
"""
+from __future__ import print_function
+
__copyright__ = """
Copyright (C) 2005, Chuck Lever <cel@netapp.com>
@@ -201,9 +203,9 @@ class DeviceData:
result = DeviceData()
# copy self into result
- for key, value in self.__nfs_data.iteritems():
+ for key, value in self.__nfs_data.items():
result.__nfs_data[key] = value
- for key, value in self.__rpc_data.iteritems():
+ for key, value in self.__rpc_data.items():
result.__rpc_data[key] = value
# compute the difference of each item in the list
@@ -233,9 +235,9 @@ class DeviceData:
client_bytes_read = float(nfs_stats['serverreadbytes'] - nfs_stats['directreadbytes'])
ratio = ((app_bytes_read - client_bytes_read) * 100) / app_bytes_read
- print
- print 'app bytes: %f client bytes %f' % (app_bytes_read, client_bytes_read)
- print 'Data cache hit ratio: %4.2f%%' % ratio
+ print()
+ print('app bytes: %f client bytes %f' % (app_bytes_read, client_bytes_read))
+ print('Data cache hit ratio: %4.2f%%' % ratio)
def __print_attr_cache_stats(self, sample_time):
"""Print attribute cache efficiency stats
@@ -255,13 +257,13 @@ class DeviceData:
data_invalidates = float(nfs_stats['datainvalidates'])
attr_invalidates = float(nfs_stats['attrinvalidates'])
- print
- print '%d inode revalidations, hitting in cache %4.2f%% of the time' % \
- (revalidates, ratio)
- print '%d open operations (mandatory GETATTR requests)' % opens
+ print()
+ print('%d inode revalidations, hitting in cache %4.2f%% of the time' % \
+ (revalidates, ratio))
+ print('%d open operations (mandatory GETATTR requests)' % opens)
if getattr_ops != 0:
- print '%4.2f%% of GETATTRs resulted in data cache invalidations' % \
- ((data_invalidates * 100) / getattr_ops)
+ print('%4.2f%% of GETATTRs resulted in data cache invalidations' % \
+ ((data_invalidates * 100) / getattr_ops))
def __print_dir_cache_stats(self, sample_time):
"""Print directory stats
@@ -277,13 +279,13 @@ class DeviceData:
lookups = nfs_stats['vfslookup']
getdents = nfs_stats['vfsreaddir']
- print
- print '%d open operations (pathname lookups)' % opens
- print '%d dentry revalidates and %d vfs lookup requests' % \
- (dentry_revals, lookups),
- print 'resulted in %d LOOKUPs on the wire' % lookup_ops
- print '%d vfs getdents calls resulted in %d READDIRs on the wire' % \
- (getdents, readdir_ops)
+ print()
+ print('%d open operations (pathname lookups)' % opens)
+ print('%d dentry revalidates and %d vfs lookup requests' % \
+ (dentry_revals, lookups))
+ print('resulted in %d LOOKUPs on the wire' % lookup_ops)
+ print('%d vfs getdents calls resulted in %d READDIRs on the wire' % \
+ (getdents, readdir_ops))
def __print_page_stats(self, sample_time):
"""Print page cache stats
@@ -297,33 +299,33 @@ class DeviceData:
vfswritepages = nfs_stats['vfswritepages']
pages_written = nfs_stats['writepages']
- print
- print '%d nfs_readpage() calls read %d pages' % \
- (vfsreadpage, vfsreadpage)
- print '%d nfs_readpages() calls read %d pages' % \
- (vfsreadpages, pages_read - vfsreadpage),
+ print()
+ print('%d nfs_readpage() calls read %d pages' % \
+ (vfsreadpage, vfsreadpage))
+ print('%d nfs_readpages() calls read %d pages' % \
+ (vfsreadpages, pages_read - vfsreadpage))
if vfsreadpages != 0:
- print '(%.1f pages per call)' % \
- (float(pages_read - vfsreadpage) / vfsreadpages)
+ print('(%.1f pages per call)' % \
+ (float(pages_read - vfsreadpage) / vfsreadpages))
else:
- print
-
- print
- print '%d nfs_updatepage() calls' % nfs_stats['vfsupdatepage']
- print '%d nfs_writepage() calls wrote %d pages' % \
- (vfswritepage, vfswritepage)
- print '%d nfs_writepages() calls wrote %d pages' % \
- (vfswritepages, pages_written - vfswritepage),
+ print()
+
+ print()
+ print('%d nfs_updatepage() calls' % nfs_stats['vfsupdatepage'])
+ print('%d nfs_writepage() calls wrote %d pages' % \
+ (vfswritepage, vfswritepage))
+ print('%d nfs_writepages() calls wrote %d pages' % \
+ (vfswritepages, pages_written - vfswritepage))
if (vfswritepages) != 0:
- print '(%.1f pages per call)' % \
- (float(pages_written - vfswritepage) / vfswritepages)
+ print('(%.1f pages per call)' % \
+ (float(pages_written - vfswritepage) / vfswritepages))
else:
- print
+ print()
congestionwaits = nfs_stats['congestionwait']
if congestionwaits != 0:
- print
- print '%d congestion waits' % congestionwaits
+ print()
+ print('%d congestion waits' % congestionwaits)
def __print_rpc_op_stats(self, op, sample_time):
"""Print generic stats for one RPC op
@@ -351,15 +353,15 @@ class DeviceData:
exe_per_op = 0.0
op += ':'
- print '%s' % op.lower().ljust(15),
- print ' ops/s\t\t kB/s\t\t kB/op\t\tretrans\t\tavg RTT (ms)\tavg exe (ms)'
+ print('%s' % op.lower().ljust(15))
+ print(' ops/s\t\t kB/s\t\t kB/op\t\tretrans\t\tavg RTT (ms)\tavg exe (ms)')
- print '\t\t%7.3f' % (ops / sample_time),
- print '\t%7.3f' % (kilobytes / sample_time),
- print '\t%7.3f' % kb_per_op,
- print ' %7d (%3.1f%%)' % (retrans, retrans_percent),
- print '\t%7.3f' % rtt_per_op,
- print '\t%7.3f' % exe_per_op
+ print('\t\t%7.3f' % (ops / sample_time))
+ print('\t%7.3f' % (kilobytes / sample_time))
+ print('\t%7.3f' % kb_per_op)
+ print(' %7d (%3.1f%%)' % (retrans, retrans_percent))
+ print('\t%7.3f' % rtt_per_op)
+ print('\t%7.3f' % exe_per_op)
def ops(self, sample_time):
sends = float(self.__rpc_data['rpcsends'])
@@ -384,14 +386,14 @@ class DeviceData:
else:
backlog = 0.0
- print
- print '%s mounted on %s:' % \
- (self.__nfs_data['export'], self.__nfs_data['mountpoint'])
- print
+ print()
+ print('%s mounted on %s:' % \
+ (self.__nfs_data['export'], self.__nfs_data['mountpoint']))
+ print()
- print ' op/s\t\trpc bklog'
- print '%7.2f' % (sends / sample_time),
- print '\t%7.2f' % backlog
+ print(' op/s\t\trpc bklog')
+ print('%7.2f' % (sends / sample_time))
+ print('\t%7.2f' % backlog)
if which == 0:
self.__print_rpc_op_stats('READ', sample_time)
@@ -424,7 +426,7 @@ def parse_stats_file(filename):
ms_dict = dict()
key = ''
- f = file(filename)
+ f = open(filename)
for line in f.readlines():
words = line.split()
if len(words) == 0:
@@ -494,7 +496,7 @@ def list_nfs_mounts(givenlist, mountstats):
if stats.is_nfs_mountpoint():
list += [device]
else:
- for device, descr in mountstats.iteritems():
+ for device, descr in mountstats.items():
stats = DeviceData()
stats.parse_stats(descr)
if stats.is_nfs_mountpoint():
@@ -527,7 +529,7 @@ client are listed.
usage="usage: %prog [ <interval> [ <count> ] ] [ <options> ] [ <mount point> ]",
description=mydescription,
version='version %s' % Iostats_version)
- parser.set_defaults(which=0, sort=False, list=sys.maxint)
+ parser.set_defaults(which=0, sort=False, list=sys.maxsize)
statgroup = OptionGroup(parser, "Statistics Options",
'File I/O is displayed unless one of the following is specified:')
@@ -572,29 +574,29 @@ client are listed.
try:
interval = int(arg)
except:
- print 'Illegal <interval> value %s' % arg
+ print('Illegal <interval> value %s' % arg)
return
if interval > 0:
interval_seen = True
else:
- print 'Illegal <interval> value %s' % arg
+ print('Illegal <interval> value %s' % arg)
return
elif not count_seen:
try:
count = int(arg)
except:
- print 'Ilegal <count> value %s' % arg
+ print('Ilegal <count> value %s' % arg)
return
if count > 0:
count_seen = True
else:
- print 'Illegal <count> value %s' % arg
+ print('Illegal <count> value %s' % arg)
return
# make certain devices contains only NFS mount points
devices = list_nfs_mounts(origdevices, mountstats)
if len(devices) == 0:
- print 'No NFS mount points were found'
+ print('No NFS mount points were found')
return
@@ -616,7 +618,7 @@ client are listed.
# we need to recheck the devices list when reparsing
devices = list_nfs_mounts(origdevices,mountstats)
if len(devices) == 0:
- print 'No NFS mount points were found'
+ print('No NFS mount points were found')
return
count -= 1
else:
@@ -630,7 +632,7 @@ client are listed.
# we need to recheck the devices list when reparsing
devices = list_nfs_mounts(origdevices,mountstats)
if len(devices) == 0:
- print 'No NFS mount points were found'
+ print('No NFS mount points were found')
return
#
@@ -641,7 +643,7 @@ prog = os.path.basename(sys.argv[0])
try:
iostat_command(prog)
except KeyboardInterrupt:
- print 'Caught ^C... exiting'
+ print('Caught ^C... exiting')
sys.exit(1)
sys.exit(0)
--
1.8.1.2

View File

@ -0,0 +1,48 @@
this is kind of hacky, but automake doesn't make this easy
for us atm, so hack away :(
(recent autotools will always add $(CFLAGS)/etc... to the compile)
--- a/tools/locktest/Makefile.am
+++ b/tools/locktest/Makefile.am
@@ -1,12 +1,11 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
noinst_PROGRAMS = testlk
testlk_SOURCES = testlk.c
-testlk_CFLAGS=$(CFLAGS_FOR_BUILD)
-testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
-testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD)
MAINTAINERCLEANFILES = Makefile.in
--- a/tools/rpcgen/Makefile.am
+++ b/tools/rpcgen/Makefile.am
@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in
CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
+CFLAGS=$(CFLAGS_FOR_BUILD)
+CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+LDFLAGS=$(LDFLAGS_FOR_BUILD)
noinst_PROGRAMS = rpcgen
rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \
@@ -9,10 +11,6 @@
rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \
rpc_scan.h rpc_util.h
-rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD)
-rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD)
-rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD)
-rpcgen_LDADD=$(LIBTIRPC)
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = rpcgen.new.1

View File

@ -0,0 +1,38 @@
# /etc/conf.d/nfs
# If you wish to set the port numbers for lockd,
# please see /etc/sysctl.conf
# Optional services to include in default `/etc/init.d/nfs start`
# For NFSv4 users, you'll want to add "rpc.idmapd" here.
NFS_NEEDED_SERVICES=""
# Number of servers to be started up by default
OPTS_RPC_NFSD="8"
# Options to pass to rpc.mountd
# ex. OPTS_RPC_MOUNTD="-p 32767"
OPTS_RPC_MOUNTD=""
# Options to pass to rpc.statd
# ex. OPTS_RPC_STATD="-p 32765 -o 32766"
OPTS_RPC_STATD=""
# Options to pass to rpc.idmapd
OPTS_RPC_IDMAPD=""
# Options to pass to rpc.gssd
OPTS_RPC_GSSD=""
# Options to pass to rpc.svcgssd
OPTS_RPC_SVCGSSD=""
# Options to pass to rpc.rquotad (requires sys-fs/quota)
OPTS_RPC_RQUOTAD=""
# Timeout (in seconds) for exportfs
EXPORTFS_TIMEOUT=30
# Options to set in the nfsd filesystem (/proc/fs/nfsd/).
# Format is <option>=<value>. Multiple options are allowed.
#OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096"

View File

@ -0,0 +1,163 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.27 2013/03/24 19:37:22 vapier Exp $
extra_started_commands="reload"
# This variable is used for controlling whether or not to run exportfs -ua;
# see stop() for more information
restarting=no
# The binary locations
exportfs=/usr/sbin/exportfs
mountd=/usr/sbin/rpc.mountd
nfsd=/usr/sbin/rpc.nfsd
smnotify=/usr/sbin/sm-notify
depend() {
local myneed=""
# XXX: no way to detect NFSv4 is desired and so need rpc.idmapd
myneed="${myneed} $(
awk '!/^[[:space:]]*#/ {
# clear the path to avoid spurious matches
$1 = "";
if ($0 ~ /[(][^)]*sec=(krb|spkm)[^)]*[)]/) {
print "rpc.svcgssd"
exit 0
}
}' /etc/exports /etc/exports.d/*.exports 2>/dev/null
)"
config /etc/exports /etc/exports.d/*.exports
need portmap rpc.statd ${myneed} ${NFS_NEEDED_SERVICES}
use ypbind net dns rpc.rquotad rpc.idmapd rpc.svcgssd
after quota
}
mkdir_nfsdirs() {
local d
for d in rpc_pipefs v4recovery v4root ; do
d="/var/lib/nfs/${d}"
[ ! -d "${d}" ] && mkdir -p "${d}"
done
}
waitfor_exportfs() {
local pid=$1
( sleep ${EXPORTFS_TIMEOUT:-30}; kill -9 ${pid} 2>/dev/null ) &
wait $1
}
mount_nfsd() {
if [ -e /proc/modules ] ; then
# Make sure nfs support is loaded in the kernel #64709
if ! grep -qs nfsd /proc/filesystems ; then
modprobe -q nfsd
fi
# Restart idmapd if needed #220747
if grep -qs nfsd /proc/modules ; then
killall -q -HUP rpc.idmapd
fi
fi
# This is the new "kernel 2.6 way" to handle the exports file
if grep -qs nfsd /proc/filesystems ; then
if ! grep -qs "nfsd /proc/fs/nfsd" /proc/mounts ; then
ebegin "Mounting nfsd filesystem in /proc"
mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfsd
eend $?
fi
local o
for o in ${OPTS_NFSD} ; do
echo "${o#*=}" > "/proc/fs/nfsd/${o%%=*}"
done
fi
}
start_it() {
ebegin "Starting NFS $1"
shift
"$@"
eend $?
ret=$((ret + $?))
}
start() {
mount_nfsd
mkdir_nfsdirs
# Exportfs likes to hang if networking isn't working.
# If that's the case, then try to kill it so the
# bootup process can continue.
if grep -qs '^[[:space:]]*/' /etc/exports /etc/exports.d/*.exports ; then
ebegin "Exporting NFS directories"
${exportfs} -r &
waitfor_exportfs $!
eend $?
fi
local ret=0
start_it mountd ${mountd} ${OPTS_RPC_MOUNTD}
start_it daemon ${nfsd} ${OPTS_RPC_NFSD}
[ -x "${smnotify}" ] && start_it smnotify ${smnotify} ${OPTS_SMNOTIFY}
return ${ret}
}
stop() {
local ret=0
ebegin "Stopping NFS mountd"
start-stop-daemon --stop --exec ${mountd}
eend $?
ret=$((ret + $?))
# nfsd sets its process name to [nfsd] so don't look for $nfsd
ebegin "Stopping NFS daemon"
start-stop-daemon --stop --name nfsd --user root --signal 2
eend $?
ret=$((ret + $?))
# in case things don't work out ... #228127
rpc.nfsd 0
# When restarting the NFS server, running "exportfs -ua" probably
# isn't what the user wants. Running it causes all entries listed
# in xtab to be removed from the kernel export tables, and the
# xtab file is cleared. This effectively shuts down all NFS
# activity, leaving all clients holding stale NFS filehandles,
# *even* when the NFS server has restarted.
#
# That's what you would want if you were shutting down the NFS
# server for good, or for a long period of time, but not when the
# NFS server will be running again in short order. In this case,
# then "exportfs -r" will reread the xtab, and all the current
# clients will be able to resume NFS activity, *without* needing
# to umount/(re)mount the filesystem.
if [ "${restarting}" = no -o "${RC_CMD}" = "restart" ] ; then
ebegin "Unexporting NFS directories"
# Exportfs likes to hang if networking isn't working.
# If that's the case, then try to kill it so the
# shutdown process can continue.
${exportfs} -ua &
waitfor_exportfs $!
eend $?
fi
return ${ret}
}
reload() {
# Exportfs likes to hang if networking isn't working.
# If that's the case, then try to kill it so the
# bootup process can continue.
ebegin "Reloading /etc/exports"
${exportfs} -r 1>&2 &
waitfor_exportfs $!
eend $?
}
restart() {
# See long comment in stop() regarding "restarting" and exportfs -ua
restarting=yes
svc_stop
svc_start
}

View File

@ -0,0 +1,16 @@
[Unit]
Description=NFS server
After=rpcbind.service
Requires=rpcbind.service
[Service]
Type=oneshot
EnvironmentFile=/etc/conf.d/nfs
ExecStart=/usr/sbin/rpc.nfsd $OPTS_RPC_NFSD
ExecStartPost=/usr/sbin/exportfs -a
ExecStop=/usr/sbin/rpc.nfsd 0
ExecStopPost=/usr/sbin/exportfs -a -u
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,7 @@
# You will need to set the dependencies in the nfsmount script to match
# the network configuration tools you are using. This should be done in
# this file by following the examples below, and not by changing the
# service script itself. See /etc/conf.d/netmount for more examples.
#
# This is a safe default.
rc_after="net"

View File

@ -0,0 +1,48 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.15 2013/03/24 20:29:48 vapier Exp $
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
depend() {
local myneed=""
if [ -e /etc/fstab ] ; then
myneed="${myneed} $(
awk '!/^[[:space:]]*#/ && ($3 == "nfs" || $3 == "nfs4") {
if ($3 == "nfs4")
idmapd = "rpc.idmapd"
if ($4 ~ /sec=(krb|spkm)/)
gssd = "rpc.gssd"
}
END { print idmapd " " gssd }
' /etc/fstab
)"
fi
config /etc/fstab
need portmap rpc.statd ${myneed}
use ypbind dns rpc.idmapd rpc.gssd
}
start() {
if [ -x /usr/sbin/sm-notify ] ; then
ebegin "Starting NFS sm-notify"
/usr/sbin/sm-notify ${OPTS_SMNOTIFY}
eend $?
fi
# Make sure nfs support is loaded in the kernel #64709
if [ -e /proc/modules ] && ! grep -qs 'nfs$' /proc/filesystems ; then
modprobe -q nfs
fi
ebegin "Mounting NFS filesystems"
mount -a -t nfs,nfs4
eend $?
}
stop() {
ebegin "Unmounting NFS filesystems"
umount -a -t nfs,nfs4
eend $?
}

View File

@ -0,0 +1,12 @@
[Unit]
Description=NFS Mount Daemon
After=rpcbind.service nfsd.service
Requires=rpcbind.service nfsd.service
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/nfs
ExecStart=/usr/sbin/rpc.mountd $OPTS_RPC_MOUNTD
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=NFSv2/3 Network Status Monitor Daemon
After=rpcbind.service
Requires=rpcbind.service
Before=remote-fs-pre.target
[Service]
Type=forking
EnvironmentFile=/etc/conf.d/nfs
ExecStart=/sbin/rpc.statd $OPTS_RPC_STATD
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,24 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.gssd.initd,v 1.11 2008/10/26 09:02:47 vapier Exp $
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
depend() {
use ypbind net
need portmap rpc.pipefs
after quota
}
start() {
ebegin "Starting gssd"
start-stop-daemon --start --exec /usr/sbin/rpc.gssd -- ${OPTS_RPC_GSSD}
eend $?
}
stop() {
ebegin "Stopping gssd"
start-stop-daemon --stop --exec /usr/sbin/rpc.gssd
eend $?
}

View File

@ -0,0 +1,26 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.idmapd.initd,v 1.8 2009/03/14 18:43:18 vapier Exp $
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
rpc_bin=/usr/sbin/rpc.idmapd
depend() {
use ypbind net
need portmap rpc.pipefs
after quota
}
start() {
ebegin "Starting idmapd"
${rpc_bin} ${OPTS_RPC_IDMAPD}
eend $? "make sure DNOTIFY support is enabled ..."
}
stop() {
ebegin "Stopping idmapd"
start-stop-daemon --stop --exec ${rpc_bin}
eend $?
}

View File

@ -0,0 +1,25 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.pipefs.initd,v 1.2 2011/06/19 23:04:36 vapier Exp $
mount_pipefs() {
local fstype=rpc_pipefs mntpoint=/var/lib/nfs/rpc_pipefs
# if things are already mounted, nothing to do
mountinfo -q ${mntpoint} && return 0
# if rpc_pipefs is not available, try to load sunrpc for it #219566
grep -qs ${fstype} /proc/filesystems || modprobe -q sunrpc
# if still not available, the `mount` will issue an error for the user
# now just do it for kicks
mkdir -p ${mntpoint}
mount -t ${fstype} ${fstype} ${mntpoint}
}
start() {
ebegin "Setting up RPC pipefs"
mount_pipefs
eend $? "make sure you have NFS/SUNRPC enabled in your kernel"
}

View File

@ -0,0 +1,33 @@
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.statd.initd,v 1.7 2009/01/31 22:16:11 vapier Exp $
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
rpc_bin=/sbin/rpc.statd
rpc_pid=/var/run/rpc.statd.pid
depend() {
use ypbind net
need portmap
after quota
}
start() {
# Don't start rpc.statd if already started by someone else ...
# Don't try and kill it if it's already dead ...
if killall -q -0 ${rpc_bin} ; then
return 0
fi
ebegin "Starting NFS statd"
start-stop-daemon --start --exec ${rpc_bin} -- --no-notify ${OPTS_RPC_STATD}
eend $?
}
stop() {
ebegin "Stopping NFS statd"
start-stop-daemon --stop --exec ${rpc_bin} --pidfile /var/run/rpc.statd.pid
eend $?
}

View File

@ -0,0 +1,24 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/rpc.svcgssd.initd,v 1.5 2008/10/26 09:02:47 vapier Exp $
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
depend() {
use ypbind net
need portmap rpc.pipefs
after quota
}
start() {
ebegin "Starting svcgssd"
start-stop-daemon --start --exec /usr/sbin/rpc.svcgssd -- ${OPTS_RPC_SVCGSSD}
eend $?
}
stop() {
ebegin "Stopping svcgssd"
start-stop-daemon --stop --exec /usr/sbin/rpc.svcgssd
eend $?
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>net-fs</herd>
<longdescription>NFS client and server daemons</longdescription>
<use>
<flag name='nfsdcld'>Enable nfsdcld NFSv4 clientid tracking daemon</flag>
<flag name='nfsidmap'>Enable support for newer nfsidmap helper</flag>
<flag name='nfsv3'>Enable support for NFSv3</flag>
<flag name='nfsv4'>Enable support for NFSv4</flag>
<flag name='nfsv41'>Enable support for NFSv4.1</flag>
<flag name='nonfsv4'>Disable support for NFSv4</flag>
<flag name='uuid'>Support UUID lookups in rpc.mountd</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,114 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.4-r1.ebuild,v 1.10 2010/03/31 18:06:59 solar Exp $
inherit eutils flag-o-matic multilib
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="nonfsv4 tcpd kerberos elibc_glibc"
# 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)
RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
sys-libs/e2fsprogs-libs
>=net-nds/portmap-5b-r6
!nonfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
app-crypt/mit-krb5
)
)"
# util-linux dep is to prevent man-page collision
DEPEND="${RDEPEND}
>=sys-apps/util-linux-2.12r-r7"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.1.4-rpcgen-ioctl.patch
epatch "${FILESDIR}"/${PN}-1.1.4-ascii-man.patch
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
}
src_compile() {
local myconf
if use nonfsv4 ; then
myconf="--disable-gss"
else
myconf="$(use_enable kerberos gss)"
fi
econf \
--mandir=/usr/share/man \
--with-statedir=/var/lib/nfs \
--disable-rquotad \
--enable-nfsv3 \
--enable-secure-statd \
$(use_with tcpd tcp-wrappers) \
$(use_enable !nonfsv4 nfsv4) \
${myconf} \
|| die "Configure failed"
emake || die "Failed to compile"
}
src_install() {
emake DESTDIR="${D}" install || die
# Don't overwrite existing xtab/etab, install the original
# versions somewhere safe... more info in pkg_postinst
dodir /usr/lib/nfs
keepdir /var/lib/nfs/{sm,sm.bak}
mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
keepdir /var/lib/nfs
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list=""
if use !nonfsv4 ; then
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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. This fixes
# bug 30486
local f
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,111 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.5.ebuild,v 1.4 2010/03/31 18:06:59 solar Exp $
inherit eutils flag-o-matic multilib
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="nonfsv4 tcpd kerberos elibc_glibc"
# 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)
RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
sys-libs/e2fsprogs-libs
>=net-nds/portmap-5b-r6
!nonfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
app-crypt/mit-krb5
)
)"
# util-linux dep is to prevent man-page collision
DEPEND="${RDEPEND}
>=sys-apps/util-linux-2.12r-r7"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.1.4-rpcgen-ioctl.patch
epatch "${FILESDIR}"/${PN}-1.1.4-ascii-man.patch
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
}
src_compile() {
local myconf
if use nonfsv4 ; then
myconf="--disable-gss"
else
myconf="$(use_enable kerberos gss)"
fi
econf \
--with-statedir=/var/lib/nfs \
--enable-nfsv3 \
$(use_with tcpd tcp-wrappers) \
$(use_enable !nonfsv4 nfsv4) \
${myconf} \
|| die "Configure failed"
emake || die "Failed to compile"
}
src_install() {
emake DESTDIR="${D}" install || die
# Don't overwrite existing xtab/etab, install the original
# versions somewhere safe... more info in pkg_postinst
dodir /usr/lib/nfs
keepdir /var/lib/nfs/{sm,sm.bak}
mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
keepdir /var/lib/nfs
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list=""
if use !nonfsv4 ; then
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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. This fixes
# bug 30486
local f
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,111 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.1.6-r1.ebuild,v 1.4 2010/03/31 18:06:59 solar Exp $
EAPI="1"
inherit eutils flag-o-matic multilib
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
# 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)
RDEPEND="tcpd? ( sys-apps/tcp-wrappers )
sys-libs/e2fsprogs-libs
!net-nds/portmap
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
app-crypt/mit-krb5
)
)"
# util-linux dep is to prevent man-page collision
DEPEND="${RDEPEND}
>=sys-apps/util-linux-2.12r-r7"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.1.4-rpcgen-ioctl.patch
epatch "${FILESDIR}"/${PN}-1.1.4-ascii-man.patch
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
}
src_compile() {
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv3) \
$(use_enable nfsv4) \
$(use_enable ipv6) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
emake || die "Failed to compile"
}
src_install() {
emake DESTDIR="${D}" install || die
# Don't overwrite existing xtab/etab, install the original
# versions somewhere safe... more info in pkg_postinst
dodir /usr/lib/nfs
keepdir /var/lib/nfs/{sm,sm.bak}
mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
keepdir /var/lib/nfs
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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. This fixes
# bug 30486
local f
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,110 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.0.ebuild,v 1.3 2010/03/31 18:06:59 solar Exp $
EAPI="1"
inherit eutils flag-o-matic multilib
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
# 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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
app-crypt/mit-krb5
)
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
>=sys-apps/util-linux-2.12r-r7"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-1.1.4-ascii-man.patch
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
}
src_compile() {
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv3) \
$(use_enable nfsv4) \
$(use_enable ipv6) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
emake || die "Failed to compile"
}
src_install() {
emake DESTDIR="${D}" install || die
# Don't overwrite existing xtab/etab, install the original
# versions somewhere safe... more info in pkg_postinst
dodir /usr/lib/nfs
keepdir /var/lib/nfs/{sm,sm.bak}
mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
keepdir /var/lib/nfs
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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. This fixes
# bug 30486
local f
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,107 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.1.ebuild,v 1.3 2010/03/31 18:06:59 solar Exp $
EAPI="2"
inherit eutils flag-o-matic multilib
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
# 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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
>=sys-apps/util-linux-2.12r-r7"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
}
src_configure() {
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv3) \
$(use_enable nfsv4) \
$(use_enable ipv6) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
}
src_install() {
emake DESTDIR="${D}" install || die
# Don't overwrite existing xtab/etab, install the original
# versions somewhere safe... more info in pkg_postinst
dodir /usr/lib/nfs
keepdir /var/lib/nfs/{sm,sm.bak}
mv "${D}"/var/lib/nfs/* "${D}"/usr/lib/nfs
keepdir /var/lib/nfs
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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. This fixes
# bug 30486
local f
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,112 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.2-r2.ebuild,v 1.2 2010/09/19 22:39:27 vapier Exp $
EAPI="2"
inherit eutils flag-o-matic multilib autotools
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="caps ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
>=sys-apps/util-linux-2.12r-r7"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
epatch "${FILESDIR}"/${PN}-1.2.2-optional-libcap.patch #314777
epatch "${FILESDIR}"/${PN}-1.2.2-nfsv4.patch # fix typo
chmod a+x tests/t0001-statd-basic-mon-unmon.sh || die
eautoreconf
}
src_configure() {
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv3) \
$(use_enable nfsv4) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
}
src_install() {
emake DESTDIR="${D}" install || die
# Don't overwrite existing xtab/etab, install the original
# versions somewhere safe... more info in pkg_postinst
dodir /usr/$(get_libdir)/nfs
mv "${D}"/var/lib/nfs "${D}"/usr/$(get_libdir)/ || die
keepdir /var/lib/nfs/{,sm,sm.bak}
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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 "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,109 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.3-r1.ebuild,v 1.7 2011/05/29 00:34:58 vapier Exp $
EAPI="2"
inherit eutils flag-o-matic multilib
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="caps ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
>=sys-apps/util-linux-2.12r-r7"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
epatch "${FILESDIR}"/${P}-ti-rpc-static-ports.patch #340797
}
src_configure() {
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv3) \
$(use_enable nfsv4) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
}
src_install() {
emake DESTDIR="${D}" install || die
# 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 "${D}"/var/lib "${D}"/usr/$(get_libdir) || die
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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
mkdir -p "${ROOT}"/var/lib/nfs #368505
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,107 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.3.ebuild,v 1.1 2010/10/08 19:48:08 vapier Exp $
EAPI="2"
inherit eutils flag-o-matic multilib
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="caps ipv6 kerberos +nfsv3 +nfsv4 tcpd elibc_glibc"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
>=sys-apps/util-linux-2.12r-r7"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.1.4-no-exec.patch
}
src_configure() {
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv3) \
$(use_enable nfsv4) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
}
src_install() {
emake DESTDIR="${D}" install || die
# 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 "${D}"/var/lib "${D}"/usr/$(get_libdir) || die
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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 "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,125 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.4.ebuild,v 1.8 2012/05/03 04:06:33 jdhore Exp $
EAPI="2"
inherit eutils flag-o-matic multilib autotools
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="caps ipv6 kerberos nfsidmap +nfsv3 +nfsv4 nfsv41 selinux tcpd elibc_glibc"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
net-libs/libgssglue
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
nfsidmap? (
>=net-libs/libnfsidmap-0.24
sys-apps/keyutils
)
)
selinux? (
sec-policy/selinux-rpc
sec-policy/selinux-rpcbind
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
virtual/pkgconfig
!<sys-apps/util-linux-2.12r-r7"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${P}-exportfs-xlog.patch
epatch "${FILESDIR}"/${P}-exportfs-skip-dir.patch
epatch "${FILESDIR}"/${P}-conditional.patch
epatch "${FILESDIR}"/${PN}-1.2.4-nfsidmap.patch
epatch "${FILESDIR}"/${PN}-1.2.4-cross-build.patch
epatch "${FILESDIR}"/${PN}-1.2.4-no-nfsctl.patch
eautoreconf
}
src_configure() {
export ac_cv_header_keyutils_h=$(use nfsidmap && echo yes || echo no)
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv3) \
$(use_enable nfsv4) \
$(use_enable nfsv41) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
}
src_install() {
emake DESTDIR="${D}" install || die
# 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 "${D}"/var/lib "${D}"/usr/$(get_libdir) || die
# Install some client-side binaries in /sbin
dodir /sbin
mv "${D}"/usr/sbin/rpc.statd "${D}"/sbin/ || die
dodoc ChangeLog README
docinto linux-nfs ; dodoc linux-nfs/*
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f} || die "doinitd ${f}"
done
newconfd "${FILESDIR}"/nfs.confd nfs
dosed "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" /etc/conf.d/nfs #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen || die "rpcgen"
newdoc tools/rpcgen/README README.rpcgen
fi
}
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
mkdir -p "${ROOT}"/var/lib/nfs #368505
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,124 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.5.ebuild,v 1.5 2012/05/03 04:06:33 jdhore Exp $
EAPI="4"
inherit eutils flag-o-matic multilib autotools
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="caps ipv6 kerberos nfsidmap +nfsv4 nfsv41 selinux tcpd elibc_glibc"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
>=net-libs/libgssglue-0.3
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
nfsidmap? (
>=net-libs/libnfsidmap-0.24
sys-apps/keyutils
)
)
nfsv41? (
sys-fs/lvm2
)
selinux? (
sec-policy/selinux-rpc
sec-policy/selinux-rpcbind
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
virtual/pkgconfig
!<sys-apps/util-linux-2.12r-r7"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.2.4-cross-build.patch
epatch "${FILESDIR}"/${PN}-1.2.4-no-nfsctl.patch
eautoreconf
}
src_configure() {
export ac_cv_header_keyutils_h=$(usex nfsidmap)
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsv4) \
$(use_enable nfsv41) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
}
src_install() {
emake DESTDIR="${D}" install
rm linux-nfs/Makefile* || die
dodoc -r linux-nfs ChangeLog 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 "${ED}"/usr/$(get_libdir) || die
# Install some client-side binaries in /sbin
dodir /sbin
mv "${ED}"/usr/sbin/rpc.statd "${ED}"/sbin/ || die
insinto /etc
doins "${FILESDIR}"/exports
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f}
done
newconfd "${FILESDIR}"/nfs.confd nfs
sed -i \
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \
"${ED}"/etc/conf.d/nfs || die #234132
# uClibc doesn't provide rpcgen like glibc, so lets steal it from nfs-utils
if ! use elibc_glibc ; then
dobin tools/rpcgen/rpcgen
newdoc tools/rpcgen/README README.rpcgen
fi
}
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
mkdir -p "${ROOT}"/var/lib/nfs #368505
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,133 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.6.ebuild,v 1.16 2013/04/13 20:02:02 vapier Exp $
EAPI="4"
inherit eutils flag-o-matic multilib autotools
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="caps ipv6 kerberos nfsdcld nfsidmap +nfsv4 nfsv41 selinux tcpd"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
net-nds/rpcbind
net-libs/libtirpc
nfsdcld? ( >=dev-db/sqlite-3.3 )
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
>=net-libs/libgssglue-0.3
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
nfsidmap? (
>=net-libs/libnfsidmap-0.24
sys-apps/keyutils
)
)
nfsv41? (
sys-fs/lvm2
)
selinux? (
sec-policy/selinux-rpc
sec-policy/selinux-rpcbind
)"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
# util-linux dep is to prevent man-page collision
DEPEND="${DEPEND_COMMON}
virtual/pkgconfig
!<sys-apps/util-linux-2.12r-r7"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.2.6-cross-build.patch
epatch "${FILESDIR}"/${PN}-1.2.6-osd-install.patch
epatch "${FILESDIR}"/${PN}-1.2.6-conditionals.patch
epatch "${FILESDIR}"/${PN}-1.2.7-nfsiostat-python3.patch #458934
epatch "${FILESDIR}"/${PN}-1.2.7-libio.patch #459200
eautoreconf
}
src_configure() {
export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
export ac_cv_header_keyutils_h=$(usex nfsidmap)
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsdcld) \
$(use_enable nfsv4) \
$(use_enable nfsv41) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use nfsv4 && use_enable kerberos gss || echo "--disable-gss")
}
src_install() {
default
rm linux-nfs/Makefile* || die
dodoc -r linux-nfs ChangeLog 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 "${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 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
local f list="" opt_need=""
if use nfsv4 ; then
opt_need="rpc.idmapd"
list="${list} rpc.idmapd rpc.pipefs"
use kerberos && list="${list} rpc.gssd rpc.svcgssd"
fi
for f in nfs nfsmount rpc.statd ${list} ; do
newinitd "${FILESDIR}"/${f}.initd ${f}
done
for f in nfs nfsmount ; do
newconfd "${FILESDIR}"/${f}.confd ${f}
done
sed -i \
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \
"${ED}"/etc/conf.d/nfs || die #234132
}
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
mkdir -p "${ROOT}"/var/lib/nfs #368505
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,140 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.7-r1.ebuild,v 1.2 2013/08/07 13:54:00 xarthisius Exp $
EAPI="4"
inherit eutils flag-o-matic multilib autotools systemd
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="caps ipv6 kerberos nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
>=net-nds/rpcbind-0.2.0-r1
net-libs/libtirpc
nfsdcld? ( >=dev-db/sqlite-3.3 )
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
>=net-libs/libgssglue-0.3
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
nfsidmap? (
>=net-libs/libnfsidmap-0.24
sys-apps/keyutils
)
)
nfsv41? (
sys-fs/lvm2
)
selinux? (
sec-policy/selinux-rpc
sec-policy/selinux-rpcbind
)
uuid? ( sys-apps/util-linux )"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
DEPEND="${DEPEND_COMMON}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.2.6-cross-build.patch
epatch "${FILESDIR}"/${PN}-1.2.7-nfsiostat-python3.patch #458934
epatch "${FILESDIR}"/${PN}-1.2.7-libio.patch #459200
eautoreconf
}
src_configure() {
export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
export ac_cv_header_keyutils_h=$(usex nfsidmap)
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsdcld nfsdcltrack) \
$(use_enable nfsv4) \
$(use_enable nfsv41) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use_enable uuid) \
$(usex nfsv4 "$(use_enable kerberos gss)" "--disable-gss")
}
src_compile(){
# remove compiled files bundled in the tarball
emake clean
default
}
src_install() {
default
rm linux-nfs/Makefile* || die
dodoc -r linux-nfs ChangeLog 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 "${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
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 nfsmount rpc.statd "${list[@]}" ; do
newinitd "${FILESDIR}"/${f}.initd ${f}
done
for f in nfs nfsmount ; do
newconfd "${FILESDIR}"/${f}.confd ${f}
done
sed -i \
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \
"${ED}"/etc/conf.d/nfs || die #234132
systemd_dounit "${FILESDIR}"/nfsd.service
systemd_dounit "${FILESDIR}"/rpc-statd.service
systemd_dounit "${FILESDIR}"/rpc-mountd.service
}
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
mkdir -p "${ROOT}"/var/lib/nfs #368505
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,140 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.8-r1.ebuild,v 1.2 2013/08/07 13:54:00 xarthisius Exp $
EAPI="4"
inherit eutils flag-o-matic multilib autotools systemd
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="caps ipv6 kerberos nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
>=net-nds/rpcbind-0.2.0-r1
net-libs/libtirpc
nfsdcld? ( >=dev-db/sqlite-3.3 )
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
>=net-libs/libgssglue-0.3
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
nfsidmap? (
>=net-libs/libnfsidmap-0.24
sys-apps/keyutils
)
)
nfsv41? (
sys-fs/lvm2
)
selinux? (
sec-policy/selinux-rpc
sec-policy/selinux-rpcbind
)
uuid? ( sys-apps/util-linux )"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
DEPEND="${DEPEND_COMMON}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
epatch "${FILESDIR}"/0001-statd-exit-if-a-statd-is-already-running.patch
epatch "${FILESDIR}"/0001-mountd-Fix-is_subdirectory-again.patch
eautoreconf
}
src_configure() {
export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
export ac_cv_header_keyutils_h=$(usex nfsidmap)
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsdcld nfsdcltrack) \
$(use_enable nfsv4) \
$(use_enable nfsv41) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use_enable uuid) \
$(usex nfsv4 "$(use_enable kerberos gss)" "--disable-gss")
}
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 "${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
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 nfsmount rpc.statd "${list[@]}" ; do
newinitd "${FILESDIR}"/${f}.initd ${f}
done
for f in nfs nfsmount ; do
newconfd "${FILESDIR}"/${f}.confd ${f}
done
sed -i \
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \
"${ED}"/etc/conf.d/nfs || die #234132
systemd_dounit "${FILESDIR}"/nfsd.service
systemd_dounit "${FILESDIR}"/rpc-statd.service
systemd_dounit "${FILESDIR}"/rpc-mountd.service
}
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
mkdir -p "${ROOT}"/var/lib/nfs #368505
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,141 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/nfs-utils-1.2.8-r2.ebuild,v 1.1 2013/08/27 07:00:20 radhermit Exp $
EAPI="4"
inherit eutils flag-o-matic multilib autotools systemd
DESCRIPTION="NFS client and server daemons"
HOMEPAGE="http://linux-nfs.org/"
SRC_URI="mirror://sourceforge/nfs/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="caps ipv6 kerberos nfsdcld +nfsidmap +nfsv4 nfsv41 selinux tcpd +uuid"
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_COMMON="tcpd? ( sys-apps/tcp-wrappers )
caps? ( sys-libs/libcap )
sys-libs/e2fsprogs-libs
>=net-nds/rpcbind-0.2.0-r1
net-libs/libtirpc
nfsdcld? ( >=dev-db/sqlite-3.3 )
nfsv4? (
>=dev-libs/libevent-1.0b
>=net-libs/libnfsidmap-0.21-r1
kerberos? (
net-libs/librpcsecgss
>=net-libs/libgssglue-0.3
net-libs/libtirpc[kerberos]
app-crypt/mit-krb5
)
nfsidmap? (
>=net-libs/libnfsidmap-0.24
sys-apps/keyutils
)
)
nfsv41? (
sys-fs/lvm2
)
selinux? (
sec-policy/selinux-rpc
sec-policy/selinux-rpcbind
)
uuid? ( sys-apps/util-linux )"
RDEPEND="${DEPEND_COMMON} !net-nds/portmap"
DEPEND="${DEPEND_COMMON}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.1.4-mtab-sym.patch
epatch "${FILESDIR}"/${PN}-1.2.8-cross-build.patch
epatch "${FILESDIR}"/0001-statd-exit-if-a-statd-is-already-running.patch
epatch "${FILESDIR}"/0001-mountd-Fix-is_subdirectory-again.patch
eautoreconf
}
src_configure() {
export libsqlite3_cv_is_recent=yes # Our DEPEND forces this.
export ac_cv_header_keyutils_h=$(usex nfsidmap)
econf \
--with-statedir=/var/lib/nfs \
--enable-tirpc \
$(use_with tcpd tcp-wrappers) \
$(use_enable nfsdcld nfsdcltrack) \
$(use_enable nfsv4) \
$(use_enable nfsv41) \
$(use_enable ipv6) \
$(use_enable caps) \
$(use_enable uuid) \
$(usex nfsv4 "$(use_enable kerberos gss)" "--disable-gss") \
$(usex nfsv4 "$(use_with kerberos gssglue)" "--without-gssglue")
}
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 "${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
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 nfsmount rpc.statd "${list[@]}" ; do
newinitd "${FILESDIR}"/${f}.initd ${f}
done
for f in nfs nfsmount ; do
newconfd "${FILESDIR}"/${f}.confd ${f}
done
sed -i \
-e "/^NFS_NEEDED_SERVICES=/s:=.*:=\"${opt_need}\":" \
"${ED}"/etc/conf.d/nfs || die #234132
systemd_dounit "${FILESDIR}"/nfsd.service
systemd_dounit "${FILESDIR}"/rpc-statd.service
systemd_dounit "${FILESDIR}"/rpc-mountd.service
}
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
mkdir -p "${ROOT}"/var/lib/nfs #368505
for f in "${ROOT}"/usr/$(get_libdir)/nfs/*; do
[[ -e ${ROOT}/var/lib/nfs/${f##*/} ]] && continue
einfo "Copying default ${f##*/} from /usr/$(get_libdir)/nfs to /var/lib/nfs"
cp -pPR "${f}" "${ROOT}"/var/lib/nfs/
done
}

View File

@ -0,0 +1,179 @@
# ChangeLog for net-libs/libnfsidmap
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnfsidmap/ChangeLog,v 1.41 2012/05/21 19:13:27 xarthisius Exp $
21 May 2012; Kacper Kowalik <xarthisius@gentoo.org>
libnfsidmap-0.21-r1.ebuild, libnfsidmap-0.23-r1.ebuild,
libnfsidmap-0.24.ebuild:
Add missing inheritance of eutils.eclass
04 Feb 2012; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.24.ebuild:
alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #400441
01 Feb 2012; Samuli Suominen <ssuominen@gentoo.org> libnfsidmap-0.24.ebuild:
ppc/ppc64 stable wrt #400441
31 Jan 2012; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.24.ebuild:
Stable for HPPA (bug #400441).
28 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> libnfsidmap-0.24.ebuild:
x86 stable wrt bug #400441
27 Jan 2012; Agostino Sarubbo <ago@gentoo.org> libnfsidmap-0.24.ebuild:
Stable for amd64, wrt bug #400441
*libnfsidmap-0.24 (02 Sep 2011)
02 Sep 2011; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.24.ebuild:
Version bump and USE=static-libs support.
*libnfsidmap-0.23-r1 (14 Sep 2010)
14 Sep 2010; Mike Frysinger <vapier@gentoo.org>
files/libnfsidmap-0.21-headers.patch, +libnfsidmap-0.23-r1.ebuild:
Fix static lib handling and block newer nfs-utils due to man page collision
#337213 by Robin Johnson.
*libnfsidmap-0.23 (27 Jul 2010)
27 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org>
-libnfsidmap-0.19.ebuild, +libnfsidmap-0.23.ebuild:
Remove old version, add a new one that does not build useless static
archives and does not install .la files.
25 Mar 2009; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.21-r1.ebuild:
arm/ia64/s390/sh/sparc stable wrt #261334
18 Mar 2009; Joseph Jezak <josejx@gentoo.org> libnfsidmap-0.21-r1.ebuild:
Marked ppc stable for bug #261334.
15 Mar 2009; Markus Meier <maekke@gentoo.org> libnfsidmap-0.21-r1.ebuild:
x86 stable, bug #261334
15 Mar 2009; Brent Baude <ranger@gentoo.org> libnfsidmap-0.21-r1.ebuild:
Marking libnfsidmap-0.21-r1 ppc64 for bug 261334
11 Mar 2009; Tobias Klausmann <klausman@gentoo.org>
libnfsidmap-0.21-r1.ebuild:
Stable on alpha, bug #261334
10 Mar 2009; Dawid Węgliński <cla@gentoo.org>
libnfsidmap-0.21-r1.ebuild:
Stable on amd64 (bug #261334)
06 Mar 2009; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.21-r1.ebuild:
Stable for HPPA (bug #261334).
02 Feb 2009; Mike Frysinger <vapier@gentoo.org>
+files/libnfsidmap-0.21-headers.patch, libnfsidmap-0.21-r1.ebuild:
Fix prototype warnings.
02 Feb 2009; Torsten Veller <tove@gentoo.org> libnfsidmap-0.21-r1.ebuild:
Back to ~arch until !<net-fs/nfs-utils-0.14 is stabil too (#257148 + dups)
01 Feb 2009; Markus Meier <maekke@gentoo.org> libnfsidmap-0.21-r1.ebuild:
amd64/x86 stable, bug #257148
01 Feb 2009; Tobias Klausmann <klausman@gentoo.org>
libnfsidmap-0.21-r1.ebuild:
Stable on alpha, bug #257148
*libnfsidmap-0.21-r1 (26 Oct 2008)
26 Oct 2008; Mike Frysinger <vapier@gentoo.org>
+libnfsidmap-0.21-r1.ebuild:
Provide idmapd.conf now #243066.
*libnfsidmap-0.21 (16 Aug 2008)
16 Aug 2008; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.21.ebuild:
Version bump.
13 Oct 2007; Markus Rothe <corsair@gentoo.org> libnfsidmap-0.19.ebuild:
Stable on ppc64; bug #191296
09 Oct 2007; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.19.ebuild:
sparc stable wrt #191296
23 Sep 2007; Wulf C. Krueger <philantrop@gentoo.org>
libnfsidmap-0.19.ebuild:
Marked stable on amd64 as per bug 191296.
08 Sep 2007; nixnut <nixnut@gentoo.org> libnfsidmap-0.19.ebuild:
Stable on ppc wrt bug 191296
07 Sep 2007; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.19.ebuild:
Stable for HPPA (bug #191296).
06 Sep 2007; Raúl Porcel <armin76@gentoo.org> libnfsidmap-0.19.ebuild:
alpha/ia64/x86 stable wrt #191296
*libnfsidmap-0.20 (04 Sep 2007)
04 Sep 2007; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.20.ebuild:
Version bump #190586 by Francisco Javier.
25 Mar 2007; Mike Frysinger <vapier@gentoo.org>
+files/libnfsidmap-0.19-getgrouplist.patch, libnfsidmap-0.19.ebuild:
Provide getgrouplist() when need be #169909 by Natanael Copa.
31 Jan 2007; Tobias Scherbaum <dertobi123@gentoo.org>
libnfsidmap-0.17.ebuild:
Stable on ppc wrt bug #161640.
26 Jan 2007; Alexander H. Færøy <eroyf@gentoo.org>
libnfsidmap-0.17.ebuild:
Stable on MIPS; bug #161640
*libnfsidmap-0.19 (21 Jan 2007)
21 Jan 2007; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.19.ebuild:
Version bump #162910 by Erik Logtenberg.
16 Jan 2007; Olivier Crête <tester@gentoo.org> libnfsidmap-0.17.ebuild:
Stable on amd64 per bug #161640
12 Jan 2007; Markus Rothe <corsair@gentoo.org> libnfsidmap-0.17.ebuild:
Stable on ppc64; bug #161640
12 Jan 2007; Christian Faulhammer <opfer@gentoo.org>
libnfsidmap-0.17.ebuild:
stable x86, bug #161640
28 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org>
libnfsidmap-0.17.ebuild:
Stable on sparc
04 Dec 2006; Jeroen Roovers <jer@gentoo.org> libnfsidmap-0.17.ebuild:
Stable for HPPA.
21 Oct 2006; Aron Griffis <agriffis@gentoo.org> libnfsidmap-0.17.ebuild:
Mark 0.17 stable on alpha/ia64
*libnfsidmap-0.17 (22 Aug 2006)
22 Aug 2006; Mike Frysinger <vapier@gentoo.org> +libnfsidmap-0.17.ebuild:
Version bump #143975 by Erik Logtenberg.
*libnfsidmap-0.16 (10 Jun 2006)
10 Jun 2006; Mike Frysinger <vapier@gentoo.org> :
Version bump / rename.
*nfsidmap-0.10 (15 Mar 2005)
15 Mar 2005; Mike Frysinger <vapier@gentoo.org> +nfsidmap-0.10.ebuild:
Version bump.
*nfsidmap-0.9 (04 Feb 2005)
04 Feb 2005; Aron Griffis <agriffis@gentoo.org> +nfsidmap-0.9.ebuild:
Bump to version 0.9
08 Jan 2005; Sven Wegener <swegener@gentoo.org> nfsidmap-0.7.ebuild:
Added inherit flag-o-matic.
*nfsidmap-0.7 (30 Dec 2004)
30 Dec 2004; Mike Frysinger <vapier@gentoo.org> :
Initial import. Ebuild submitted by Micheal Marineau #70732.

View File

@ -1 +1,30 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX libnfsidmap-0.19-getgrouplist.patch 3408 RMD160 1757c16fc8f2358f4bb046495b9a48604a9dbf4c SHA1 394b34f80ba545120643da48e9fd7477bb5e09e4 SHA256 45589d101fb83cda293cbe8f76b6b39ae074a7e56729a9f7f513df3ff1c4927b
AUX libnfsidmap-0.21-headers.patch 438 RMD160 441fd6de0b6221f7826fcaa30f4f5da26437b6d6 SHA1 eebf96785aee0d114f2ef0d4937b12e1f915ea2d SHA256 755314afbbdc82d2cb2e5f0114a3d6eae0d0978da859f215bb858e44a11296ff
DIST libnfsidmap-0.21.tar.gz 343954 RMD160 56dc494c2d21b2051ea979888052a925c62cb4ea SHA1 576e3775517c34fbddf62ae99f4122c2d84c8715 SHA256 92f55c3e89784e2cc4230cdf49d99360cf1e2279bc81fd0174225571dc857771
DIST libnfsidmap-0.23.tar.gz 358990 RMD160 343657b4208cef38bc5ab22782278822f9b2e05e SHA1 bd9647582f7d863a483460815f0a0b1450884c3d SHA256 69d20cfc6be6bf7ede2a55da687dc6853f2db6c8ef826a0b5e3235e7d46f4051
DIST libnfsidmap-0.24.tar.gz 328720 RMD160 c1d61b31cc63a8c6c46709b1dfc4e94d22e0eaba SHA1 3ced887b642d33ecabdd751ec7c4fb536347fba1 SHA256 59501432e683336d7a290da13767e92afb5b86f42ea4254041225fe218e8dd47
EBUILD libnfsidmap-0.21-r1.ebuild 1021 RMD160 46ce087f46a85effb4bb8bd9636aa358669bf8e1 SHA1 3be3bbdb94bad86dc4f83799e4d3587fd44acdf5 SHA256 f3c537613da75af6d0b25e5dd4b05e3c983ad53e51528e726d57e350749fca66
EBUILD libnfsidmap-0.23-r1.ebuild 1112 RMD160 f442341143adb6b79bd40ffe63012bc54c783118 SHA1 3c3e147a8796d22858d22c8415b45c4eeaffcb64 SHA256 62a59feaf63c3f463076edf1701e97209b74b4703ad34000f5650f112f147e87
EBUILD libnfsidmap-0.24.ebuild 1189 RMD160 6b537c222875865934d28b936e4a8e3a8d6c6bd6 SHA1 283c507b0e1207a79aab8d321c3144d1cc9fc12a SHA256 295bb5b2045a36a574c4dda04a6f71c918ba81b616ef6d3aced5d7af323255d0
MISC ChangeLog 6006 RMD160 7a4206e30da6ebb623d385af4d20a9ac295eb189 SHA1 d47781a086655eb3f3bbf8cb98677e385bc8e7f0 SHA256 c9521845ebd6516551f2544f9ae771a6aebe459749cab30dd250fa1cbd71c567
MISC metadata.xml 159 RMD160 8e0977b9abd90afe9e1d5c1326823a5726f6e2a4 SHA1 33f35324ce730e28838be228d9ee4e4dd1bab1e5 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQIcBAEBCAAGBQJPupPdAAoJEF0huFKJUZL5PLUP/3NPeB2ldgBuRM7fU1kOCkFv
S+s5qjDL+Z1ABuudNicc+cgLMtpojDVHELU5whbk3o3Cw+GVyYvSSbCZjgCUE7nk
BARKfZWcwi+k54fx+57We/lbFeol3R3eybFzUlLG1ZL2xqs6Fz0RfQUozWurDeRC
Ek6DOMSMd3zOmo6e98TPNdHeelyLNWbf/LD+WRsOv721JCtzc5jAxGc7YvLblizR
mW0qH0QBNEwCcn9f/xfzdn+TaqnKDowMl1/LVtGImr8NrksAJidcI9IwTtfrxidz
IjwPs0f5w2ok7rYsa1NSrzcYpbEokXEFYNyfd7sdjYtYfgRV9erf1hQBqJ1gD20L
G2E8lwX09nelU3uiWhYObJDWRxbLOxoHQL3OYbThhHZIS1qqin9K83oOxj7IvKcw
Y19GzAhA7I4/SaWp77YCy4ip3z7GnbPBpw0WMwN9Zrdr0Ny7aGAThqPBElRPltw+
CkVuuc1W0FqEr4JPeZ8ggwpvTb2u4MWVGVlDyEV3BJnzsRL7aTOXzgVOnT3j9G0X
i8CSpuLfFu4veF1EmupDp9eTNjO6BDxCmkCo5XpsKXaHDhf2k7sdFDx1SpX4ureS
hqLtKGtyKggPrTpv6PaVfi4F9Hy1QrqDjNKhqU4J1YZZTg41u4Wdfeh/APKrOTxs
5bQ5By1xgGZbPO8/m5UT
=iqba
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,39 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnfsidmap/libnfsidmap-0.21-r1.ebuild,v 1.13 2012/05/21 19:13:27 xarthisius Exp $
inherit autotools eutils
DESCRIPTION="NFSv4 ID <-> name mapping library"
HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
IUSE="ldap"
DEPEND="ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
!<net-fs/nfs-utils-1.1.4
!net-fs/idmapd"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-0.19-getgrouplist.patch #169909
epatch "${FILESDIR}"/${PN}-0.21-headers.patch
eautoreconf
}
src_compile() {
econf $(use_enable ldap) || die
emake || die
}
src_install() {
emake install DESTDIR="${D}" || die
insinto /etc
doins idmapd.conf || die
dodoc AUTHORS ChangeLog NEWS README
}

View File

@ -0,0 +1,44 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libnfsidmap/libnfsidmap-0.23-r1.ebuild,v 1.2 2012/05/21 19:13:27 xarthisius Exp $
EAPI="2"
inherit autotools eutils
DESCRIPTION="NFSv4 ID <-> name mapping library"
HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/"
SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ldap"
DEPEND="ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
!<net-fs/nfs-utils-1.2.2
!net-fs/idmapd"
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.19-getgrouplist.patch #169909
epatch "${FILESDIR}"/${PN}-0.21-headers.patch
eautoreconf
}
src_configure() {
econf \
--disable-dependency-tracking \
$(use_enable ldap)
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README
insinto /etc
doins idmapd.conf || die
# remove useless files
rm "${D}"/usr/lib*/libnfsidmap/*.{a,la} || die
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>net-fs</herd>
</pkgmetadata>

View File

@ -0,0 +1,133 @@
# ChangeLog for net-libs/libtirpc
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/ChangeLog,v 1.30 2013/02/18 21:56:35 vapier Exp $
*libtirpc-0.2.3 (18 Feb 2013)
18 Feb 2013; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.3.ebuild:
Version bump.
09 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> -libtirpc-0.2.2.ebuild:
Remove masked version.
05 May 2012; Jeff Horelick <jdhore@gentoo.org> libtirpc-0.2.1-r1.ebuild,
libtirpc-0.2.2.ebuild, libtirpc-0.2.2-r1.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
02 Mar 2012; Brent Baude <ranger@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Marking libtirpc-0.2.2-r1 ppc64 for bug 394979
15 Feb 2012; Brent Baude <ranger@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Marking libtirpc-0.2.2-r1 ppc for bug 394979
15 Jan 2012; Raúl Porcel <armin76@gentoo.org> libtirpc-0.2.2-r1.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #394979
04 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org>
libtirpc-0.2.2-r1.ebuild:
x86 stable wrt bug #394979
22 Dec 2011; Markus Meier <maekke@gentoo.org> libtirpc-0.2.2-r1.ebuild:
arm stable, bug #394979
20 Dec 2011; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Stable for HPPA (bug #394979).
16 Dec 2011; Agostino Sarubbo <ago@gentoo.org> libtirpc-0.2.2-r1.ebuild:
Stable for AMD64, wrt bug #394979
*libtirpc-0.2.2-r1 (11 Jun 2011)
11 Jun 2011; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.2-r1.ebuild,
+files/libtirpc-0.2.2-rpc-des-prot.patch:
Stub out des_crypt for now #370713 by Nicolas Schlumberger, fix building with
glibc-2.14 #370663 by Diego Elio Pettenò, restore static lib support, and
start installing into / for glibc replacement.
*libtirpc-0.2.2 (07 Jun 2011)
07 Jun 2011; Diego E. Pettenò <flameeyes@gentoo.org> +libtirpc-0.2.2.ebuild:
Version bump, which should hopefully build with glibc-2.14.
20 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org>
libtirpc-0.2.1-r1.ebuild:
ppc64 stable wrt #340189
13 Nov 2010; Raúl Porcel <armin76@gentoo.org> libtirpc-0.2.1-r1.ebuild:
alpha/ia64/s390/sh/sparc stable wrt #340189
26 Oct 2010; Jeroen Roovers <jer@gentoo.org> libtirpc-0.2.1-r1.ebuild:
Stable for HPPA (bug #340189).
16 Oct 2010; Markus Meier <maekke@gentoo.org> libtirpc-0.2.1-r1.ebuild:
arm stable, bug #340189
15 Oct 2010; Brent Baude <ranger@gentoo.org> libtirpc-0.2.1-r1.ebuild:
stable ppc, bug 340189
10 Oct 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
libtirpc-0.2.1-r1.ebuild:
x86 stable wrt bug #340189
10 Oct 2010; Markos Chandras <hwoarang@gentoo.org>
libtirpc-0.2.1-r1.ebuild:
Stable on amd64 wrt bug #340189
12 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org>
files/libtirpc-0.2.1-fortify.patch:
Use an even better patch to avoid overflow on the other senses if
hp_length is less than four.
*libtirpc-0.2.1-r1 (12 Sep 2010)
12 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org>
-libtirpc-0.2.0.ebuild, -files/libtirpc-0.2.0-hppa-float.patch,
-files/libtirpc-0.2.0-no-gss.patch, -libtirpc-0.2.1.ebuild,
+libtirpc-0.2.1-r1.ebuild, +files/libtirpc-0.2.1-fortify.patch:
Add patch to fix a possible overflow (reported by _FORTIFY_SOURCE=2);
thanks to Joshua Kinard (Kumba) for reporting. Cleanup old versions and
patches.
*libtirpc-0.2.1 (23 Jul 2010)
23 Jul 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+libtirpc-0.2.1.ebuild:
Version bump, disable static libraries (it needs gssapi that uses libdl
anyway), remove .la file (helps fixing bug #293593), move to EAPI=2 while
at it.
30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild,
+files/libtirpc-0.2.0-hppa-float.patch:
Fix build failure on hppa and add keywords for all.
30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild:
Restore /etc/netconfig file.
30 May 2009; Mike Frysinger <vapier@gentoo.org> libtirpc-0.2.0.ebuild,
+files/libtirpc-0.2.0-no-gss.patch:
Fix link error when USE=-gss.
*libtirpc-0.2.0 (30 May 2009)
30 May 2009; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.2.0.ebuild:
Version bump.
01 Feb 2009; Markus Meier <maekke@gentoo.org> libtirpc-0.1.10.ebuild:
amd64/x86 stable, bug #256691
*libtirpc-0.1.10 (28 Nov 2008)
28 Nov 2008; Mike Frysinger <vapier@gentoo.org> +libtirpc-0.1.10.ebuild:
Version bump #249151 by Chi-Thanh Christopher Nguyen.
*libtirpc-0.1.7-r1 (11 May 2008)
11 May 2008; Mike Frysinger <vapier@gentoo.org>
+files/libtirpc-0.1.7-CVE-2007-3999.patch, +libtirpc-0.1.7-r1.ebuild:
Add fix for CVE-2007-3999 #214208 by Robert Buchholz.
*libtirpc-0.1.7 (29 Dec 2007)
29 Dec 2007; Mike Frysinger <vapier@gentoo.org> +metadata.xml,
+libtirpc-0.1.7.ebuild:
Initial ebuild by me.

View File

@ -1,2 +1,33 @@
DIST libtirpc-0.1.10.tar.bz2 416468 RMD160 494ae5beb892e47a551cba974b6586cf35af89b2 SHA1 42702d6f40acdf040c421554f36621e68920e702 SHA256 8441ee7b583b964c961e4e2b502063b668bb0b59c405526176e71d071caf0b0a
DIST libtirpc-0.2.0.tar.bz2 436321 RMD160 6a6583e3db021a581b4a6ef078980d186345d44e SHA1 fba25db14518daeaca3ede3e38ef6e18ba1c9a8f SHA256 084c0661773c489df910f24caf915f2cf96ed3e00dea5222e788b754fea4c0db
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX libtirpc-0.2.1-fortify.patch 704 SHA256 e3436a6de8182e51c577000917feffc6428b6907d8bf1b56318acd999d34b056 SHA512 a0d01771c0ca0292bbbb95d77d9369dbf0ebb27693a709e110d3c0924e40b5a1ebdeba39035772269b8f42ddb964eb985778c17b725a7031a5b1c0beb7d582f5 WHIRLPOOL 051b13d4cbc1a4aa454d9782756c5e533add93118f9b5d01de1a77ace2d3eeb7ccc3fb029e1e319cf7887a5182713193ca559d5e8e70508163e77604e1599b06
AUX libtirpc-0.2.2-rpc-des-prot.patch 979 SHA256 f09e866816973c6aac5c6e19d3007440b85ff42fe3c36ad0c3ee02dd657eb90c SHA512 18d2941c682c98f0fe940d08f65493b588274d64691cc2c1b939e1054d2b58a576f04c55f97f0d92d16993854dbde17c031f0429f90ae1ead0f01645f17b6513 WHIRLPOOL 9d009725fc2a95005467b7eb921e5c53f9f256ee85e09f36ed8960347da24041c8ddf4762d6d3175b9816cb210c2a89a8afb15f70162417b85ef222df2db8737
DIST libtirpc-0.1.10.tar.bz2 416468 SHA256 8441ee7b583b964c961e4e2b502063b668bb0b59c405526176e71d071caf0b0a
DIST libtirpc-0.2.1.tar.bz2 413031 SHA256 ea77cadd63941fc4edbee7863d2c7094e6a18263d2a2c8922319aee91352ff41 SHA512 3dec4a12a08493dd61e16356e3f1cdb7c037a04468654b972514529054c4efce6fbb7add218c4ea9f9c56c4106107b80bdaa7b40120f97d4c455f51ec3b1693f WHIRLPOOL 20e14a9f9ae49dedd47bba79064358b347142f6fccc403520b3ba0012a184b9352a69be1f55bbb46a7004fbcb8d8d0882e40bc4d20a93cea402f4680ceaa8dbc
DIST libtirpc-0.2.2.tar.bz2 464094 SHA256 f05eb17c85d62423858b8f74512cfe66a9ae1cedf93f03c2a0a32e04f0a33705 SHA512 5d0f5a50a703580d713c5f3c266dd5d3bebcd641356752c629e6e7b560ce8ceced1bb908d6c93873f3c2734eacc7f3dc018a31dda18c6ae973dd105223b17d87 WHIRLPOOL 0822412ed749f7f75b318a185c19fea6f0e199dc68e51726f3df2bcf89fd3731f0bc275ec0940668998971ab9c696be5059d836f4ab0ff9f79117b0387c4fbfc
DIST libtirpc-0.2.3.tar.bz2 464189 SHA256 4f29ea0491b4ca4c29f95f3c34191b857757873bbbf4b069f9dd4da01a6a923c SHA512 dd480fcb6feda4a2bba7e5a5dc9b1f523697a39ddaa44a5742405f66d202996d99a562a31dbf6daf06e9b7ce5d82dfd1cce7b76a34466b92f84176e77498163d WHIRLPOOL 0e1bb647e9afa871fe250e1355ee7fdf7ac6b8d4ea981a8062459310f5eee3046db61dbb756647c64dc34631625c8f961fa4fa27c7e8cf8b5f29db3a7540594d
DIST libtirpc-glibc-nfs.tar.xz 8948 SHA256 2677cfedf626f3f5a8f6e507aed5bb8f79a7453b589d684dbbc086e755170d83 SHA512 90255bf0a27af16164e0710dd940778609925d473f4343093ff19d98cc4f23023788bf4edf0178eae1961afc0ba8b69b273de95b7d7e2afdb706701d8ba6f7ba WHIRLPOOL 06bcf3fd4e424a86071e5c4ddeb89aa571c862e765aae9382d9f9a55ab72cd1c623490555c1a9bd3380a2d04ecb10fb47a75a7dddf449d4368a1a01617226858
EBUILD libtirpc-0.1.10.ebuild 684 SHA256 b3f164c22c5472b130f60d084fc245a92879014700f1176f564af3841988bfd2 SHA512 44a21ca9ba4c552f25bee5f33dbcbc2166e3fd5c975fac6861780584564323c6d858d951d94ed43cae246ebee7040e93b20cb6fef7c51bae54d577eb48009ad6 WHIRLPOOL adb3df78f8458e4d048f7180d6f2999c566f1881e3815f937cb2194a916d6beb6f793515e312581c4aa8d59b1a8b0441fde11fe330fe96037def43ec5a947ea2
EBUILD libtirpc-0.2.1-r1.ebuild 1066 SHA256 945bbfc848d2407f61922c41a5d472e65424cd6367b60ab2643697a7dca6b01a SHA512 b69c734446d0f37ec1cc04d33337a2e4b3bd819cf7c7b3726a5b1bf558b8782a43aef10ad717725cf7987a896e7f7edeadecbae2da0cadffa15aa2d078d9687d WHIRLPOOL b2ba08752f6abc99c04a2521516a2b408ed2e2a7ff8fa9330ac0a7fd1b5ce12c58f68616f3d70d010ba1c675bf28faf538ce7a517cfb680e84658643d81897e9
EBUILD libtirpc-0.2.2-r1.ebuild 1499 SHA256 5c19d1861b29fc7796b1e1f9b490e9f230f199caf8090fe6d363f9c15ca850f3 SHA512 64f6f1c512723eefd0f40f8c275b699c33958b4944cbdddd8d390d8f94243eef8c690ade36a6442c6d603ab4a9c7cbf70e2dad7d4d1891bab6dfa839039a6d4a WHIRLPOOL c0e80e49223c5647340b06731cbcf78d939221dc6e51a22682610bf0ced50d26572acbd5c03c9bf0cce501308062ff607d173b52068d044f761fb490ad3c44f4
EBUILD libtirpc-0.2.3.ebuild 1263 SHA256 9f95f59a7219da884e46c05cc4d922a0b434cc160754067f2b5975a18dc1a43f SHA512 190f8c3e8026113b3a0f63af4565e1c9bbdb989cc0a4e8f7448d838de151e1ceb80f7406e4deaa44353192c2ddb889716164324a3ef893c82bd7e49c2b5c8440 WHIRLPOOL 857347cfa9cc5aca64fa226eddb9b6e57109378a595c19bdc71e0c84cf295f60fcb5a843b9185751df118d3bc6cf4fbf14e5ab3f8f42a4d71875d540c3624f0c
MISC ChangeLog 4786 SHA256 e6773b720cb95d4868f511187ae5daef60c84157b4e5017bf63fef604019baa6 SHA512 e798de3e091ce2884e2ed69639eade73ff3f1782523485bfba0f6437b2dee014cb46fbf1cf1a081ab7a88612057bb1504a9a880d3230a280398513ff3b75d44e WHIRLPOOL 4225f96f209512e167264b1a756879547712bc6cae05b905388a2646476a762ade175858806ee8d023bfa29d1f674ef8622479849c70e6f97cb93de5134c1cff
MISC metadata.xml 159 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b SHA512 9645bd7d570c2eefd7f14adf726c056a6295d45263f143e365a3fd2e8e6128392eb5fa1103b3a3bb60a622b4595ac7fe3ec19430184210ff63e86d5f03635704 WHIRLPOOL 1d62390192bf65ac30d67f3c0a872536dd8e6a5a0d8d978e5e8f83f09e44907abf16825066c9976e8be482398385737a024837da3c544eaf912ec2710318e289
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQIcBAEBCAAGBQJRIqOZAAoJELEHsLL7fEFWsKAP/jQvdUiGs4dCpys2b9a2KooN
nNFSQwO4GKMyZAeKnGA4eyO0upgBjHJN+tE1N2kcYIpCgOFumS2tFqb7kCywxTI0
TKbwODYO6hZFgNR1+2nxnIq9eCX0PjyUPv4N22GWZzAEfqVPbwYg7eoSBUFVNLV/
XoUCue9u7RzySG6z8qBSbIv3pgIzxx8cqxKJdkD8WzjQy0YGDnZywwe2KUcUO0ee
+X+KjsDKXS0LEkFjG9kS1Kl9P0ZjTZJPygm8Fgm/0+F44l07/d/B2TmK99v0gia5
6+tdu+nDVsikk9GrL+uo+5VgRUUp5hICJwe9GXxs/EP+V5VpU+V8K4e4uP3jKZTc
AqrW+Tv+aYYPHu9DQUDJQjLfeqPeahKAWVxiwE2afDrBMBo1OzqPwwZz1K/NLVfo
jOdNVwk+FIgSeTazSMzjIRqpIBPNAeMaVHrBRBks1WYEL0dzUvf4T+D4k1Qium3n
vuOGbf3XFZzsSVu99isLXPIpPyoX9+fHbWDX2PgLpijTGFL1e5or7FxQssC1xZhT
F0u8DmqjIPlLi1cS+rW/hTcglJkJHgMSqEIb9eyppq462cF7fLfaDZTZYk8xeJX8
tRor/PB87Xejxwb4Ih3rtd2N+fjTm6/hhQ8E8K66mGXwo0+aXTDz2SnwvgSAAnjm
twMhCnVFW7HW0ZRIhVvy
=Jqtu
-----END PGP SIGNATURE-----

View File

@ -1,13 +0,0 @@
fix build failure on hppa
--- src/xdr_float.c
+++ src/xdr_float.c
@@ -59,7 +59,7 @@
defined(__arm32__) || defined(__ppc__) || defined(__ia64__) || \
defined(__arm26__) || defined(__sparc64__) || defined(__amd64__) || \
defined(__powerpc__) || defined(__s390__) || defined(__arm__) || \
- defined(__sh__)
+ defined(__sh__) || defined(__hppa__)
#include <bits/endian.h>
#define IEEEFP
#endif

View File

@ -1,13 +0,0 @@
if gss is disabled, then svc_auth_gss_ops won't be available
--- src/svc.c
+++ src/svc.c
@@ -77,7 +77,7 @@
extern rwlock_t svc_lock;
extern rwlock_t svc_fd_lock;
-extern struct svc_auth_ops svc_auth_gss_ops;
+extern struct svc_auth_ops svc_auth_gss_ops __attribute__((weak));
static struct svc_callout *svc_find (rpcprog_t, rpcvers_t,
struct svc_callout **, char *);

View File

@ -0,0 +1,18 @@
Index: libtirpc-0.2.1/src/getrpcport.c
===================================================================
--- libtirpc-0.2.1.orig/src/getrpcport.c
+++ libtirpc-0.2.1/src/getrpcport.c
@@ -54,11 +54,11 @@ getrpcport(host, prognum, versnum, proto
if ((hp = gethostbyname(host)) == NULL)
return (0);
+ if (hp->h_length != sizeof(addr.sin_addr.s_addr))
+ return (0);
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = 0;
- if (hp->h_length > sizeof(addr))
- hp->h_length = sizeof(addr);
memcpy(&addr.sin_addr.s_addr, hp->h_addr, (size_t)hp->h_length);
/* Inconsistent interfaces need casts! :-( */
return (pmap_getport(&addr, (u_long)prognum, (u_long)versnum,

View File

@ -0,0 +1,36 @@
From f2f43212b33dea42635061c82645287454a70107 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sat, 11 Jun 2011 15:21:55 -0400
Subject: [PATCH] add multiple inclusion protection to rpc/des.h
If you try to include this file multiple times, you get a build failure
due to redefinitions of enums and such.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
tirpc/rpc/des.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tirpc/rpc/des.h b/tirpc/rpc/des.h
index e3d6897..d2881ad 100644
--- a/tirpc/rpc/des.h
+++ b/tirpc/rpc/des.h
@@ -33,6 +33,9 @@
* Copyright (c) 1986 by Sun Microsystems, Inc.
*/
+#ifndef _RPC_DES_H_
+#define _RPC_DES_H_
+
#define DES_MAXLEN 65536 /* maximum # of bytes to encrypt */
#define DES_QUICKLEN 16 /* maximum # of bytes to encrypt quickly */
@@ -80,3 +83,5 @@ struct desparams {
* Software DES.
*/
extern int _des_crypt( char *, int, struct desparams * );
+
+#endif
--
1.7.5.3

View File

@ -1,36 +0,0 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.0.ebuild,v 1.4 2009/05/30 21:28:12 vapier Exp $
inherit eutils
DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
HOMEPAGE="http://libtirpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="kerberos"
DEPEND="kerberos? ( net-libs/libgssglue )"
RDEPEND=${DEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-hppa-float.patch
epatch "${FILESDIR}"/${P}-no-gss.patch
}
src_compile() {
econf $(use_enable kerberos gss) || die
emake || die
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
insinto /etc
newins doc/etc_netconfig netconfig || die
}

View File

@ -0,0 +1,39 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.1-r1.ebuild,v 1.9 2012/05/05 02:54:24 jdhore Exp $
EAPI="2"
inherit eutils
DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
HOMEPAGE="http://libtirpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="kerberos"
RDEPEND="kerberos? ( net-libs/libgssglue )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${P}-fortify.patch
}
src_configure() {
econf $(use_enable kerberos gss) --disable-static
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
insinto /etc
newins doc/etc_netconfig netconfig || die
# makes sure that the linking order for nfs-utils is proper, as
# libtool would inject a libgssglue dependency in the list.
find "${D}" -name '*.la' -delete
}

View File

@ -0,0 +1,56 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.2-r1.ebuild,v 1.9 2012/05/05 02:54:24 jdhore Exp $
EAPI="3"
inherit eutils toolchain-funcs
DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
HOMEPAGE="http://libtirpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
mirror://gentoo/${PN}-glibc-nfs.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="kerberos static-libs"
RDEPEND="kerberos? ( net-libs/libgssglue )"
DEPEND="${RDEPEND}
app-arch/xz-utils
virtual/pkgconfig"
src_unpack() {
unpack ${A}
cp -r tirpc "${S}"/ || die
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.2.1-fortify.patch
epatch "${FILESDIR}"/${PN}-0.2.2-rpc-des-prot.patch
> src/des_crypt.c #370713
}
src_configure() {
econf \
$(use_enable kerberos gss) \
$(use_enable static-libs static)
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
insinto /etc
newins doc/etc_netconfig netconfig || die
insinto /usr/include/tirpc
doins -r "${WORKDIR}"/tirpc/* || die
# libtirpc replaces rpc support in glibc, so we need it in /
gen_usr_ldscript -a tirpc
# makes sure that the linking order for nfs-utils is proper, as
# libtool would inject a libgssglue dependency in the list.
use static-libs || find "${D}" -name '*.la' -delete
}

View File

@ -0,0 +1,49 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libtirpc/libtirpc-0.2.3.ebuild,v 1.1 2013/02/18 21:56:35 vapier Exp $
EAPI="4"
inherit toolchain-funcs
DESCRIPTION="Transport Independent RPC library (SunRPC replacement)"
HOMEPAGE="http://libtirpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
mirror://gentoo/${PN}-glibc-nfs.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="kerberos static-libs"
RDEPEND="kerberos? ( net-libs/libgssglue )"
DEPEND="${RDEPEND}
app-arch/xz-utils
virtual/pkgconfig"
src_unpack() {
unpack ${A}
cp -r tirpc "${S}"/ || die
}
src_configure() {
econf \
$(use_enable kerberos gss) \
$(use_enable static-libs static)
}
src_install() {
default
insinto /etc
newins doc/etc_netconfig netconfig
insinto /usr/include/tirpc
doins -r "${WORKDIR}"/tirpc/*
# libtirpc replaces rpc support in glibc, so we need it in /
gen_usr_ldscript -a tirpc
# makes sure that the linking order for nfs-utils is proper, as
# libtool would inject a libgssglue dependency in the list.
use static-libs || find "${ED}" -name '*.la' -delete
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>net-fs</herd>
</pkgmetadata>

View File

@ -0,0 +1,93 @@
# ChangeLog for net-nds/rpcbind
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/ChangeLog,v 1.23 2013/07/13 12:39:16 pacho Exp $
*rpcbind-0.2.0-r1 (13 Jul 2013)
13 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/rpcbind.service,
+rpcbind-0.2.0-r1.ebuild:
Install unit file (#475866)
27 Apr 2013; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild:
Fix build with automake-1.13 (fix is already upstream) #467018 by Alphat-PC.
18 Feb 2013; Mike Frysinger <vapier@gentoo.org>
+files/rpcbind-0.2.0-no-nss.patch, rpcbind-0.2.0.ebuild:
Fix building on non-glibc systems #458024 by Mark Reiche.
21 May 2012; Kacper Kowalik <xarthisius@gentoo.org> rpcbind-0.2.0.ebuild:
Add missing inheritance of eutils.eclass
03 May 2012; Jeff Horelick <jdhore@gentoo.org> rpcbind-0.2.0.ebuild,
rpcbind-9999.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
26 Jan 2012; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild,
rpcbind-9999.ebuild:
Add USE=tcpd support #400607 by Tor.
28 Dec 2011; <swift@gentoo.org> rpcbind-0.2.0.ebuild:
Add selinux dependency for selinux-rpcbind
21 Sep 2011; Michał Górny <mgorny@gentoo.org> rpcbind-9999.ebuild:
Migrate to git-2.
02 Sep 2011; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild:
Oops, lost some KEYWORDS there ... back to stable.
02 Sep 2011; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild,
+files/rpcbind-0.2.0-pkgconfig.patch, rpcbind-9999.ebuild:
Add pkg-config patch from upstream.
02 Sep 2011; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild,
rpcbind-9999.ebuild:
Migrate to EAPI=2 for fun.
24 Apr 2011; Raúl Porcel <armin76@gentoo.org> rpcbind-0.2.0.ebuild:
sparc stable wrt #358509
24 Mar 2011; Thomas Kahle <tomka@gentoo.org> rpcbind-0.2.0.ebuild:
x86 stable per bug 317517
18 Mar 2011; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild:
Mark alpha/arm/hppa/ia64/s390/sh stable #317517.
14 Mar 2011; Markos Chandras <hwoarang@gentoo.org> rpcbind-0.2.0.ebuild:
Stable on amd64 wrt bug #317517
13 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org> rpcbind-0.2.0.ebuild:
ppc/ppc64 stable wrt #317517
22 Nov 2009; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild,
rpcbind-9999.ebuild:
Update LICENSE field #271921 by Chí-Thanh Christopher Nguyễn.
30 May 2009; Mike Frysinger <vapier@gentoo.org> rpcbind-0.2.0.ebuild,
rpcbind-9999.ebuild:
Add keywords for all.
*rpcbind-0.2.0 (30 May 2009)
30 May 2009; Mike Frysinger <vapier@gentoo.org> +rpcbind-0.2.0.ebuild:
Version bump.
*rpcbind-9999 (17 Jan 2009)
17 Jan 2009; Mike Frysinger <vapier@gentoo.org> +rpcbind-9999.ebuild:
Add live git ebuild #255201 by Chi-Thanh Christopher Nguyen.
*rpcbind-0.1.7 (17 Jan 2009)
17 Jan 2009; Mike Frysinger <vapier@gentoo.org> +rpcbind-0.1.7.ebuild:
Version bump #255199 by Chi-Thanh Christopher Nguyen.
*rpcbind-0.1.5.1 (06 Dec 2008)
06 Dec 2008; <ssuominen@gentoo.org> +rpcbind-0.1.5.1.ebuild:
Version bump for bug 249811, thanks to Chi-Thanh Christopher Nguyen.
*rpcbind-0.1.4 (29 Dec 2007)
29 Dec 2007; Mike Frysinger <vapier@gentoo.org> +files/rpcbind.confd,
+files/rpcbind.initd, +metadata.xml, +rpcbind-0.1.4.ebuild:
Initial ebuild by me.

View File

@ -1 +1,21 @@
DIST rpcbind-0.2.0.tar.bz2 271018 RMD160 596ab1cbc37b17c09dafaa4cd9e86e21f8d62f12 SHA1 02f077372a76a8f9adfa696004aa437212c28617 SHA256 c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX rpcbind-0.2.0-no-nss.patch 901 SHA256 be144a4e4c4a4ab771b9ccd1a81da886613aca9f376cdbe535dab6bfdd210fb1 SHA512 87754fb845baebeaa515b5d95a76cc4a98be052c389df9bd537dfa697a240f95f7fa8f4d44c41960a093041c01455a16c6762176e8b14965a09530750e642868 WHIRLPOOL ef95a9ef139c513bb9e4821e04ec3bf8b73c430e5eec808a2d75c005f71671a4d12cc2e7b6859e63ef94be9a7377fb7024f8dbf1332d83aa8051ed90e7e6a766
AUX rpcbind-0.2.0-pkgconfig.patch 2193 SHA256 8cf1f8dc8a6d75e081ecd50d2b09c51e69d85f54038f7cf09c00121c56917c90 SHA512 50883bd656da48e52cf01254fd5f7d8953681ce57eb6c129981c98b6243c54c7cf42f7a12645543e37dca96d42af8aebde41b9c1ee54fb020d6f8edf631852ed WHIRLPOOL 5a06dc4a72f5bd4d4d4d58625a81d4bc68b7c68dd1f1f2e9d52123a50fb034b0626c806cce6b7a6941c1a8139f833f68472890d0ad79e779d384091afa256f49
AUX rpcbind.confd 68 SHA256 38bb95aefc38d843d0890d9c15affd28f19f2133c17f463396c62970e7e2dffc SHA512 f11f6785708bde3ace7b55c1585e283ed07078faf310077c3d26e8e584baec6152d3f86f3d99d7a34fd10f22a7de4d8d70568c9e7f914a82eeb786b08b379044 WHIRLPOOL c9ce4d7d02c7573c96ceaa1a07732e9c8966d79e9266a8767cdd7fa56725b7757d25c31c47821e1ff858983955e3d278ba09da377d40efb6499e9830aaefeb3a
AUX rpcbind.initd 523 SHA256 6561ae40c5899a9f7a12f1f0867bec47d47c7cc3c583574ffcecbbf6f8d8afbb SHA512 d23354d4825bb3a492a08ef5bc25e4f8d3ca6d8ea95f4c50e550c832efa7c88e3614d48112232e223fd244efe708962fceb58d1f0c99317cc85b75e81aefad9a WHIRLPOOL 66e93967240fda37be67c00ab545f262baff249e395da9810364fa36c1e6f114f6c0ef3a54430c0a02056623382f75b29d6ee2f6a113a05a5e6cb284e2fce1d7
AUX rpcbind.service 193 SHA256 a7a648529f9480b50dd8e8e5906fa7d97320e7eba25875dba23189ce5e75aa67 SHA512 7ec717ebd69cdf3230d09c51c9b3f926a0860967baccbc2345bf8214a2251441b528bbceaa571c84bdcca17c272d43697567885b517501515d15d42f913f3f49 WHIRLPOOL 23f35d918152baa46278334e8a0fea6540adf96eec70dd7619dbe7a1ffb2975d1146e134ba2b6d2f4b00a9e1cd41ca7bc551ee2cde00413ae5eb07b4d50e6cd0
DIST rpcbind-0.2.0.tar.bz2 271018 SHA256 c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3 SHA512 99e56c1877521c4df8288e88b88d9bb4d42c4e99d479fe61dc6e3f067f255dfc96ad894b2ddd425703b0d01ff1c9b362991507130dbd745a8088e6a2c7f29605 WHIRLPOOL 07e86090c6cab6761f1aa4f2f4d56cdc8f86475cb1bf8c0d0aa29bff9c9c3343ea289c147c96fce90d00da120521e34a7427b75fab7ecd6412a10af78bb72d0e
EBUILD rpcbind-0.2.0-r1.ebuild 1476 SHA256 9502ca6f5c0267fd52663e406f7cd39a1da9dbd45c26d5973dcd8374d1dc07e2 SHA512 db1dc7a4ed113951c1589cfebc98cebe764be406a75219501503ba9b523238b7753de904dcb54debdbb537148511fdb709b75d89a385d2559709497bcafee98e WHIRLPOOL dc4623747e4a47307be7cb10c545d7cd542e99820fd20703d2031fb8d6dee3cbaa058fe5f4bea6233c08069369385ffa88b7e9cf2f7667351e1c4efbda4c416f
EBUILD rpcbind-0.2.0.ebuild 1410 SHA256 de39ea5fba4b016dd20d7be52acb7689cfd6110762f339063ddb9880e0049250 SHA512 83fe5b304c39c859bd635e3b129b06df5230d0573800bbd8d619f379fbfc27447cfdf2ee6751e77943da29017f51359a0554e1959bb12778d73e0aa7ad7220a6 WHIRLPOOL 3c563f3e61111d13a9c5744412bcc151a9fd296412ad4a224b1aca73527adb41d5d17d2f47ab4464da5350243ec9c264a73728aa86546cc9974ea61ef290db79
EBUILD rpcbind-9999.ebuild 1283 SHA256 aaea15516d342e89066dcc0e972b896c83b10e6ce0704fd7bcfff75bf0e6ffb3 SHA512 e5b26cb7ccb553dae68ea86c24370adc7e5d20ff9d52c629dacc7dd11163fb3f3ca72b2851b3be067eb974c7e882e333913421a36a53ae51845c068097c14016 WHIRLPOOL 5fc849443aa9da0955abeec61c8d53a211337cfeb0370e61e48b4e7266cba19ed350303c4b906b5137f2e6beffbd4e85bfd3043db2b517590e67c1a89e2b6873
MISC ChangeLog 3318 SHA256 97f9feb972d49d28d10b97334a07452e0cf425502a3040c1042e8b75e56b6784 SHA512 e5ef1293b1bf4a9a5f050197bc038cf59386fb8bdc5517f056ecaea2922be7edabcc6e94d7984949ee45f069fba12c10e681a1bb6a58d02a1988d269a1ebf583 WHIRLPOOL 2ea7cbb16206a90b359baf229498cc4575de4b80ef75b51cf71539beeb5ef0e48f961c250995255590aa48e17ed1ed822766ff87fb297e4dffbbeab70b8908fb
MISC metadata.xml 159 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b SHA512 9645bd7d570c2eefd7f14adf726c056a6295d45263f143e365a3fd2e8e6128392eb5fa1103b3a3bb60a622b4595ac7fe3ec19430184210ff63e86d5f03635704 WHIRLPOOL 1d62390192bf65ac30d67f3c0a872536dd8e6a5a0d8d978e5e8f83f09e44907abf16825066c9976e8be482398385737a024837da3c544eaf912ec2710318e289
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
iEYEAREIAAYFAlHhSnYACgkQCaWpQKGI+9RkbQCfTRIHvX5xIWemgLuBEkAi/OjF
dzcAn018N3dzdIGo1GqpVA6TVdz7T3Wk
=/Jp+
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,34 @@
From 112d0028cd2f4e0a3fafc83a4b2f1cb38bdbd6d4 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Mon, 18 Feb 2013 17:00:13 -0500
Subject: [PATCH] fix building one systems w/out nss.h
The nss.h header is glibc-specific, so use the existing HAVE_NSS_H define
to avoid including/using it when it is not available.
URL: http://bugs.gentoo.org/458024
Reported-by: Mark Reiche <porphyr@gmx.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
src/rpcbind.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/rpcbind.c b/src/rpcbind.c
index 9a0504d..83dbe93 100644
--- a/src/rpcbind.c
+++ b/src/rpcbind.c
@@ -67,7 +67,11 @@
#include <pwd.h>
#include <string.h>
#include <errno.h>
+#ifdef HAVE_NSS_H
#include <nss.h>
+#else
+static inline void __nss_configure_lookup(const char *db, const char *s) {}
+#endif
#include "config.h"
#include "rpcbind.h"
--
1.8.1.2

View File

@ -0,0 +1,13 @@
[Unit]
Description=RPC Bind
After=network.target
Wants=rpcbind.target
Before=rpcbind.target
[Service]
Type=forking
ExecStart=/sbin/rpcbind
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>net-fs</herd>
</pkgmetadata>

View File

@ -0,0 +1,56 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-0.2.0-r1.ebuild,v 1.1 2013/07/13 12:39:16 pacho Exp $
EAPI="2"
inherit autotools eutils systemd
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.infradead.org/~steved/rpcbind.git"
inherit autotools eutils git-2
SRC_URI=""
#KEYWORDS=""
else
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
fi
DESCRIPTION="portmap replacement which supports RPC over various protocols"
HOMEPAGE="http://sourceforge.net/projects/rpcbind/"
LICENSE="BSD"
SLOT="0"
IUSE="selinux tcpd"
RDEPEND="net-libs/libtirpc
selinux? ( sec-policy/selinux-rpcbind )
tcpd? ( sys-apps/tcp-wrappers )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
eautoreconf
else
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #467018
epatch "${FILESDIR}"/${P}-pkgconfig.patch
epatch "${FILESDIR}"/${P}-no-nss.patch
eautoreconf
fi
}
src_configure() {
econf \
--bindir=/sbin \
$(use_enable tcpd libwrap)
}
src_install() {
emake DESTDIR="${D}" install || die
doman man/rpc{bind,info}.8
dodoc AUTHORS ChangeLog NEWS README
newinitd "${FILESDIR}"/rpcbind.initd rpcbind || die
newconfd "${FILESDIR}"/rpcbind.confd rpcbind || die
systemd_dounit "${FILESDIR}"/rpcbind.service
}

View File

@ -1,13 +1,14 @@
# Copyright 1999-2011 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-0.2.0.ebuild,v 1.11 2011/09/02 20:10:55 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-0.2.0.ebuild,v 1.17 2013/04/27 04:15:22 vapier Exp $
EAPI="2"
inherit autotools
inherit autotools eutils
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.infradead.org/~steved/rpcbind.git"
inherit autotools git
inherit autotools eutils git-2
SRC_URI=""
#KEYWORDS=""
else
@ -20,23 +21,29 @@ HOMEPAGE="http://sourceforge.net/projects/rpcbind/"
LICENSE="BSD"
SLOT="0"
IUSE=""
IUSE="selinux tcpd"
RDEPEND="net-libs/libtirpc"
RDEPEND="net-libs/libtirpc
selinux? ( sec-policy/selinux-rpcbind )
tcpd? ( sys-apps/tcp-wrappers )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
virtual/pkgconfig"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
eautoreconf
else
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die #467018
epatch "${FILESDIR}"/${P}-pkgconfig.patch
epatch "${FILESDIR}"/${P}-no-nss.patch
eautoreconf
fi
}
src_configure() {
econf --bindir=/sbin
econf \
--bindir=/sbin \
$(use_enable tcpd libwrap)
}
src_install() {

View File

@ -0,0 +1,51 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/rpcbind-9999.ebuild,v 1.8 2012/05/03 04:24:37 jdhore Exp $
EAPI="2"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.infradead.org/~steved/rpcbind.git"
inherit autotools git-2
SRC_URI=""
#KEYWORDS=""
else
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
fi
DESCRIPTION="portmap replacement which supports RPC over various protocols"
HOMEPAGE="http://sourceforge.net/projects/rpcbind/"
LICENSE="BSD"
SLOT="0"
IUSE="selinux tcpd"
RDEPEND="net-libs/libtirpc
selinux? ( sec-policy/selinux-rpcbind )
tcpd? ( sys-apps/tcp-wrappers )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
eautoreconf
else
# fix busted timestamps
find . -type f -print0 | xargs -0 touch -r .
fi
}
src_configure() {
econf \
--bindir=/sbin \
$(use_enable tcpd libwrap)
}
src_install() {
emake DESTDIR="${D}" install || die
doman man/rpc{bind,info}.8
dodoc AUTHORS ChangeLog NEWS README
newinitd "${FILESDIR}"/rpcbind.initd rpcbind || die
newconfd "${FILESDIR}"/rpcbind.confd rpcbind || die
}