diff options
author | Dustin Polke <dustin.polke@uni-siegen.de> | 2010-05-26 09:53:37 +0200 |
---|---|---|
committer | Dustin Polke <dustin.polke@uni-siegen.de> | 2010-05-26 13:28:39 +0200 |
commit | 69e4d718e4da808aee6f7a806e8e63d0886493fd (patch) | |
tree | 783d18ae2d94d04a63cc7c32646d1e02a22419f0 | |
parent | [www-client/midori] Remove empty dirs. (diff) | |
download | DuPol-69e4d718e4da808aee6f7a806e8e63d0886493fd.tar.gz DuPol-69e4d718e4da808aee6f7a806e8e63d0886493fd.tar.bz2 DuPol-69e4d718e4da808aee6f7a806e8e63d0886493fd.zip |
[net-fs/autofs] Import everything from portage to take over maintainership proxied by pva.
38 files changed, 4080 insertions, 0 deletions
diff --git a/net-fs/autofs/ChangeLog b/net-fs/autofs/ChangeLog new file mode 100644 index 0000000..a88edb3 --- /dev/null +++ b/net-fs/autofs/ChangeLog @@ -0,0 +1,401 @@ +# ChangeLog for net-fs/autofs +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/ChangeLog,v 1.90 2009/09/23 18:35:30 patrick Exp $ + + 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> autofs-4.1.3-r7.ebuild, + autofs-4.1.3-r9.ebuild, autofs-5.0.3-r6.ebuild, autofs-5.0.4.ebuild, + autofs-5.0.4-r2.ebuild, autofs-5.0.4-r3.ebuild, autofs-5.0.4-r4.ebuild, + autofs-5.0.4-r5.ebuild: + Remove virtual/libc + +*autofs-5.0.4-r5 (14 Jun 2009) + + 14 Jun 2009; Stefaan De Roeck <stefaan@gentoo.org> + +autofs-5.0.4-r5.ebuild: + Revision bump - include latest upstream patches, probably fixes #269004 + + 11 Jun 2009; Stefaan De Roeck <stefaan@gentoo.org> + -autofs-3.1.7-r3.ebuild, -autofs-3.1.7-r4.ebuild, -autofs-4.0.0.ebuild, + -autofs-4.1.3.ebuild, -autofs-4.1.3-r1.ebuild, -autofs-4.1.3-r2.ebuild, + -autofs-4.1.3-r3.ebuild, -autofs-4.1.3-r4.ebuild, -autofs-4.1.3-r8.ebuild, + -autofs-5.0.3.ebuild, -autofs-5.0.3-r1.ebuild, -autofs-5.0.3-r2.ebuild, + -autofs-5.0.3-r4.ebuild, -autofs-5.0.3-r5.ebuild: + remove obsolete versions + +*autofs-5.0.4-r4 (11 Jun 2009) + + 11 Jun 2009; Stefaan De Roeck <stefaan@gentoo.org> + +autofs-5.0.4-r4.ebuild: + Revision bump - include latest upstream patches + + 08 Jun 2009; Jeroen Roovers <jer@gentoo.org> autofs-5.0.3-r6.ebuild: + Stable for HPPA (bug #257097). + + 01 Jun 2009; nixnut <nixnut@gentoo.org> autofs-5.0.3-r6.ebuild: + ppc stable #257097 + +*autofs-5.0.4-r3 (27 Apr 2009) + + 27 Apr 2009; Stefaan De Roeck <stefaan@gentoo.org> + +files/autofs-5.0.4-user-ldflags-and-as-needed-v2.patch, + +autofs-5.0.4-r3.ebuild: + Update patch set, probably fixing bugs #253806 and #255369 + + 08 Apr 2009; Raúl Porcel <armin76@gentoo.org> autofs-5.0.3-r6.ebuild: + arm/ia64/sparc stable wrt #257097 + + 15 Mar 2009; Brent Baude <ranger@gentoo.org> autofs-5.0.3-r6.ebuild: + Marking autofs-5.0.3-r6 ppc64 for bug 257097 + + 01 Feb 2009; Markus Meier <maekke@gentoo.org> autofs-5.0.3-r6.ebuild: + amd64/x86 stable, bug #257097 + + 01 Feb 2009; Tobias Klausmann <klausman@gentoo.org> + autofs-5.0.3-r6.ebuild: + Stable on alpha, bug #257097 + +*autofs-5.0.4-r2 (31 Jan 2009) + + 31 Jan 2009; Stefaan De Roeck <stefaan@gentoo.org> + -autofs-5.0.4-r1.ebuild, +autofs-5.0.4-r2.ebuild: + Update upstream patch set + +*autofs-5.0.4-r1 (20 Jan 2009) + + 20 Jan 2009; Stefaan De Roeck <stefaan@gentoo.org> + +autofs-5.0.4-r1.ebuild: + Introducing new patches from upstream, in an attempt to fix bugs #253806 + and #255369 + +*autofs-5.0.4 (04 Jan 2009) + + 04 Jan 2009; Stefaan De Roeck <stefaan@gentoo.org> + +files/autofs-5.0.4-user-ldflags-and-as-needed.patch, + +autofs-5.0.4.ebuild: + Version bump to 5.0.4 + fix bugs #247969 and #253412 concerning LDFLAGS + and --as-needed + + 29 Aug 2008; Robin H. Johnson <robbat2@gentoo.org> Manifest: + Bug #236051, I had a download failure during digesting, with a zero-byte + file ending up in the Manifest wrongly. + +*autofs-5.0.3-r6 (27 Aug 2008) + + 27 Aug 2008; Robin H. Johnson <robbat2@gentoo.org> + +autofs-5.0.3-r6.ebuild: + Bump to include more patches from upstream, fixes LDAP functionality in + large deployments. + + 12 May 2008; <solar@gentoo.org> autofs-5.0.3-r5.ebuild: + - Keyworded ~arm per request. Builds native but fails at cross-compiles. + + 05 May 2008; Stefaan De Roeck <stefaan@gentoo.org> autofs-5.0.3-r5.ebuild: + Patch patches in temporary directory (fixes bug #220315) + +*autofs-5.0.3-r5 (03 May 2008) + + 03 May 2008; Stefaan De Roeck <stefaan@gentoo.org> + +files/autofs-5.0.3-heimdal.patch, autofs-5.0.3-r4.ebuild, + +autofs-5.0.3-r5.ebuild: + Support also heimdal's krb5 implementation (fixes bug #210762) + some QA + +*autofs-5.0.3-r4 (28 Apr 2008) + + 28 Apr 2008; Stefaan De Roeck <stefaan@gentoo.org> + +files/autofs-5.0.3-map-patch-fix.patch, -autofs-5.0.3-r3.ebuild, + +autofs-5.0.3-r4.ebuild: + Fix error introduced by autofs-5.0.3-map-type-in-map-name.patch (patch + taken from redhat rawhide autofs-5.0.3-11), also fix bug #219607 + +*autofs-5.0.3-r3 (28 Apr 2008) + + 28 Apr 2008; Stefaan De Roeck <stefaan@gentoo.org> + +autofs-5.0.3-r3.ebuild: + Revision bump to include the most recent patches + to fix bugs #157968 and + #154797 + +*autofs-5.0.3-r2 (18 Feb 2008) + + 18 Feb 2008; Stefaan De Roeck <stefaan@gentoo.org> + +autofs-5.0.3-r2.ebuild: + Update patch list + +*autofs-4.1.3-r9 (05 Feb 2008) + + 05 Feb 2008; Stefaan De Roeck <stefaan@gentoo.org> +files/autofs.rc14, + +autofs-4.1.3-r9.ebuild: + Fix bug #91104 + + 05 Feb 2008; Stefaan De Roeck <stefaan@gentoo.org> +files/autofs5.rc1, + -files/autofs.rc14, metadata.xml, autofs-5.0.3.ebuild, + autofs-5.0.3-r1.ebuild: + Rename file in the tree, specify name in metadata + +*autofs-5.0.3-r1 (01 Feb 2008) + + 01 Feb 2008; Stefaan De Roeck <stefaan@gentoo.org> + +autofs-5.0.3-r1.ebuild: + Add use flag for sasl, force dependency on krb5 when using sasl (bug #208393) + +*autofs-5.0.3 (31 Jan 2008) + + 31 Jan 2008; Stefaan De Roeck <stefaan@gentoo.org> +files/autofs.rc14, + metadata.xml, +autofs-5.0.3.ebuild: + Big version bump to 5.0.3, probably fixes many open bugs + +*autofs-4.1.3-r8 (24 Jan 2008) + + 24 Jan 2008; Stefaan De Roeck <stefaan@gentoo.org> +files/autofs.rc13, + +autofs-4.1.3-r8.ebuild: + Fix bug #110887, + avoid segfault on amd64 + + 06 May 2007; Marius Mauch <genone@gentoo.org> autofs-3.1.7-r4.ebuild, + autofs-3.1.7-r5.ebuild, autofs-3.1.7-r6.ebuild, autofs-4.0.0.ebuild, + autofs-4.1.3.ebuild, autofs-4.1.3-r1.ebuild, autofs-4.1.3-r2.ebuild, + autofs-4.1.3-r3.ebuild, autofs-4.1.3-r4.ebuild, autofs-4.1.3-r7.ebuild: + Replacing einfo with elog + + 29 Apr 2007; Torsten Veller <tove@gentoo.org> autofs-4.1.3-r7.ebuild: + Fix *initd, *confd and *envd calls (#173884, #174266) + + 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: + Transition to Manifest2. + + 25 Nov 2006; Guy Martin <gmsoft@gentoo.org> autofs-4.1.3-r7.ebuild: + Stable on hppa. + + 15 Jul 2006; Bryan Østergaard <kloeri@gentoo.org> metadata.xml: + Remove rphillips from metadata.xml as he's retired. + + 02 Jun 2006; Robin H. Johnson <robbat2@gentoo.org> autofs-4.1.3-r7.ebuild: + Bug #135023, fix a parallel make bug. + +*autofs-4.1.3-r7 (30 May 2006) + + 30 May 2006; Alec Warner <antarus@gentoo.org> -autofs-4.1.3-r6.ebuild, + +autofs-4.1.3-r7.ebuild: + revbump for sort fix + + 30 May 2006; Alec Warner <antarus@gentoo.org> files/auto.net: + s/+/-/ for bug #120403, completely my fault :( + +*autofs-4.1.3-r6 (28 May 2006) + + 28 May 2006; Alec Warner <antarus@gentoo.org> + -files/autofs-4.1.3-fix-sort-opts.patch, files/auto.net, + -autofs-4.1.3-r5.ebuild, +autofs-4.1.3-r6.ebuild: + Refix bug #120403 with permission from robbat2 + +*autofs-4.1.3-r5 (20 May 2006) + + 20 May 2006; Mark Loeser <halcy0n@gentoo.org> + +files/autofs-4.1.3-fix-sort-opts.patch, +autofs-4.1.3-r5.ebuild: + Add patch to to fix sort options; bug #120403 + + 19 Feb 2006; Joshua Kinard <kumba@gentoo.org> autofs-4.1.3-r4.ebuild: + Added ~mips to KEYWORDS. + + 06 Jul 2005; Robin H. Johnson <robbat2@gentoo.org> -files/auto.home, + -files/ldap.diff, -files/open_max.diff: + These FILESDIR items are not used anymore. Bump. + + 06 Jun 2005; Markus Rothe <corsair@gentoo.org> autofs-4.1.3-r4.ebuild: + Stable on ppc64 + + 17 May 2005; Stephanie Lockwood-Childs <wormo@gentoo.org> + autofs-4.1.3-r4.ebuild: + marked stable on ppc, closes bug #92808 + + 17 Apr 2005; Aron Griffis <agriffis@gentoo.org> autofs-4.1.3-r4.ebuild: + Stable on alpha amd64 ia64 + + 12 Apr 2005; Gustavo Zacarias <gustavoz@gentoo.org> + autofs-4.1.3-r4.ebuild: + Stable on sparc + + 11 Apr 2005; Robin H. Johnson <robbat2@gentoo.org> autofs-4.1.3-r4.ebuild: + Stable on x86. + + 09 Apr 2005; Markus Rothe <corsair@gentoo.org> autofs-4.1.3-r2.ebuild: + Stable on ppc64 + + 09 Apr 2005; Simon Stelling <blubb@gentoo.org> autofs-4.1.3-r4.ebuild: + fixed multilib-strict issues + + 01 Apr 2005; Aron Griffis <agriffis@gentoo.org> autofs-4.1.3-r2.ebuild: + stable on ia64 + + 23 Mar 2005; <agriffis@gentoo.org> autofs-4.1.3-r2.ebuild: + Stable on amd64 + + 19 Mar 2005; Bryan Østergaard <kloeri@gentoo.org> autofs-4.1.3-r2.ebuild: + Stable on alpha. + +*autofs-4.1.3-r4 (14 Mar 2005) + + 14 Mar 2005; Robin H. Johnson <robbat2@gentoo.org> +files/autofs.rc10, + +files/autofs.rc11, +files/autofs.rc12, files/autofs.rc9, + +autofs-4.1.3-r4.ebuild: + Bug #82086 - totally revamp the init script, now supports all daemon + options. Also cleanup all usage of unsafe sub-shells. + + 05 Feb 2005; Maurice van der Pot <griffon26@gentoo.org> + +files/autofs-4.1.3-signal-race-fix.patch, autofs-4.1.3-r3.ebuild: + Added hopefully corrected version of signal-race-fix patch for bug #77077. + +*autofs-4.1.3-r3 (05 Feb 2005) + + 05 Feb 2005; Robin H. Johnson <robbat2@gentoo.org> +autofs-4.1.3-r3.ebuild: + Try to fix bug #77077, by removing signal-race-fix.patch. + + 10 Jan 2005; Gustavo Zacarias <gustavoz@gentoo.org> autofs-4.1.3-r2.ebuild: + Stable on sparc + + 07 Jan 2005; Robin H. Johnson <robbat2@gentoo.org> autofs-4.1.3-r2.ebuild: + 4.1.3-r2 Stable on x86. + + 16 Dec 2004; Robin H. Johnson <robbat2@gentoo.org> files/autofs.rc8, + files/autofs.rc9: + Bug #74662, add use portmap again. + +*autofs-4.1.3-r2 (09 Dec 2004) + + 09 Dec 2004; Robin H. Johnson <robbat2@gentoo.org> files/auto.master, + files/auto.net, files/autofs.rc9, +autofs-4.1.3-r2.ebuild: + Added some of the debian patches that fix up LDAP and Hesiod in 4.1.3. + +*autofs-4.1.3-r1 (08 Dec 2004) + + 08 Dec 2004; Robin H. Johnson <robbat2@gentoo.org> files/auto.master, + +files/auto.net, +files/autofs.confd9, +files/autofs.rc9, + +autofs-4.1.3-r1.ebuild: + Fixed bugs 16320,49477,58292,62819,65626,69309,70827. Apply upstream patches. + + 02 Sep 2004; Sven Wegener <swegener@gentoo.org> -files/autofs, + files/autofs.rc6, files/autofs.rc7, files/autofs.rc8: + tail +2 -> tail -n +2 to be compatible with latest coreutils. Closes bug + #62606. + + 27 Jul 2004; <agriffis@gentoo.org> autofs-3.1.7-r5.ebuild: + stable on ia64 + + 17 Jul 2004; Tom Gall <tgall@gentoo.org> autofs-4.1.3.ebuild: + stable on ppc64, bug #56994 + +*autofs-4.1.3 (26 May 2004) + + 26 May 2004; Michael Imhof <tantive@gentoo.org> autofs-4.1.3.ebuild: + Version bumped. + + 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> autofs-3.1.7-r6.ebuild, + autofs-4.0.0.ebuild: + Add inherit eutils + + 20 Apr 2004; <agriffis@gentoo.org> autofs-4.0.0.ebuild: + Add ~ia64 + + 02 Mar 2004; <augustus@gentoo.org> autofs-4.0.0.ebuild: + Added ~amd64 keyword. + + 16 Jan 2004; <rphillips@gentoo.org> autofs-4.0.0.ebuild: + changed configuration file paths in man files + + 05 Jan 2004; zhen <zhen@gentoo.org> metadata.xml: + changed herd to net-fs + + 21 Nov 2003; <rphillips@gentoo.org> autofs-4.0.0.ebuild: + added Ervin Nemeth's sed entry to allow for portage controlled CFLAGS. + +*autofs-4.0.0 (27 Oct 2003) + + 27 Oct 2003; Ryan Phillips <rphillips@gentoo.org> autofs-4.0.0.ebuild: + version bump. added as unstable. Thanks to Gregory Shimansky + +*autofs-3.1.7-r6 (25 Sep 2003) + + 25 Sep 2003; Martin Holzer <mholzer@gentoo.org> autofs-3.1.7-r6.ebuild: + Added autoconf for ldap. Closes #27369. + + 26 Jul 2003; Stefan Jones <cretin@gentoo.org> files/autofs.rc8 + files/autofs.confd: + Fixed the --timeout options, can be specified in daemonoptions in + autofs.confd or via the last option in the misc.master file. + + 25 May 2003; Martin Holzer <mholzer@gentoo.org> autofs-3.1.7-r3.ebuild, + autofs-3.1.7-r4.ebuild, autofs-3.1.7-r5.ebuild: + now uses mirror://kernel + + 12 May 2003; Jason Wever <weeve@gentoo.org> autofs-3.1.7-r5.ebuild: + Changed ~sparc keyword to sparc. + + 05 May 2003; Jason Wever <weeve@gentoo.org> autofs-3.1.7-r5.ebuild: + Added ~sparc to keywords. + + 09 Jan 2003; Kain <kain@kain.org> autofs-3.1.7-r5.ebuild: + Add ppc to KEYWORDS + + 07 Jan 2003; Aron Griffis <agriffis@gentoo.org> autofs-3.1.7-r5.ebuild: + Add alpha to KEYWORDS + +*autofs-3.1.7-r5 (17 Nov 2002) + + 17 Nov 2002; Brad Cowan <bcowan@gebtoo.org> autofs-3.1.7-r5.ebuild, + files/digest-autofs-3.1.7-r5, files/ldap_config.patch, files/autofs.rc8 : + + More ldap fixes, init script still needs some tweaking. + +*autofs-3.1.7-r4 (27 Oct 2002) + + 20 Sep 2002; Brad Cowan <bradlyatc@cowancomputers.com> autofs-3.1.7-r4.ebuild : + files/digest-autofs-3.1.7-r4, files/nisyp.patch, files/autofs1.confd, + files/autofs.rc7, files/automount.diff. + + Added net-nds/portmap and net-nds/ypbind as RDEPEND, updated init scripts + remove old files, and Updated ChangeLog. Init script now has a working + stats option to display current autofs state (as status seems to be a + predefined function that only displays the whether the daemon is running or + stopped). Added einfo to ebuild noting to start portmap for NFS support without + NFS started on current setup. Hopefully fixed some library compile problems. + +*autofs-3.1.7-r3 (16 Apr 2002) + + 16 Jul 2002; Ben Lutgens <lamer@gentoo.org> files/autofs.rc6 : + + made the initscript depend on ypbind + + 30 Apr 2002; William McArthur <sandymac@gentoo.org> autofs-3.1.7-r3.ebuild : + + Added HOMEPAGE, LICENSE and made the DESCRIPTION a little more so. + + + 21 Jun 2002; Ryan Phillips <rphillips@gentoo.org> files/autofs.rc6 : + + added a /g to the pidfile variable + + 16 Apr 2002; Seemant Kulleen <seemant@gentoo.org> autofs-3.1.7-r3.ebuild + files/digest-autofs-3.1.7-r3 : + + I did not bump the revision number up last time. That would have been a good + idea to do. + +*autofs-3.1.7-r2 (11 Apr 2002) + + 11 Apr 2002; Seemant Kulleen <seemant@gentoo.org> files/autofs : + + xevol@newtonave.net (David Snopek) in bug #1432 gave us a more modern + gentoofied script. + + 2 Feb 2002; Donny Davies <woodchip@gentoo.org> files/autofs.rc6 : + + Added patch, contributed through bugzilla (Bug #444), which supposedly fixes + problem with timeouts. Hope everything is OK now. + +*autofs-3.1.7-r2 (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. diff --git a/net-fs/autofs/Manifest b/net-fs/autofs/Manifest new file mode 100644 index 0000000..54e78eb --- /dev/null +++ b/net-fs/autofs/Manifest @@ -0,0 +1,154 @@ +AUX auto.master 267 RMD160 4e8e79ef65122f4a1c6227298c8c4e39f3dd5846 SHA1 88da29f5d82a1073471eed654c99ff1fc3c064f3 SHA256 47df928601dc31bc8c23781bd0475b7ecb5bd09525c92a8772d51e0dc660b414 +AUX auto.misc 319 RMD160 363c7b0be2d0d79c93b3b74968ae197df49962b4 SHA1 17a5e54accde91da5130599c4375ff3beda99f52 SHA256 7fa3f3cee3d8b0e859316b89fa3fcbad9da03f757de2d3d1a317af94b700e078 +AUX auto.net 1134 RMD160 6396a1d4faac5e9a2bf0f83d53fa7e3c578840f9 SHA1 7a6c88657d22630f688ca80cc5ca782a93eb33f0 SHA256 5ff54fb5e8588b7e7503fca90cad179acec1dbe85a4b81f9c2320151f6b34602 +AUX autofs-4.1.3-signal-race-fix.patch 426 RMD160 1cd4bdc099d29e75d5b6833ffbd2c93f22bf4a3d SHA1 31d20235bd414e8a74de19d951e3f7cf3b61c035 SHA256 1f7f25ce97546c038b71cb9a4ba7dd1fe88e9cd66f0fc34c8411fd76bd7b60de +AUX autofs-5.0.3-heimdal.patch 1380 RMD160 ed40e452a7648aec1b25e1002c99929be97b8bf9 SHA1 3f7d05c14e52a9a8160a43a38a7b736bb81bb68b SHA256 ca62546abf6b6ae2ed95f53d439d25770f20e70651fdaf5a0edf9d69920b108a +AUX autofs-5.0.3-map-patch-fix.patch 2543 RMD160 3be39a53ddc5125b9ca09f636f3099c02b15de20 SHA1 4d0613ba4c9f51b1bdfdc2f854f02b0acc2681fa SHA256 7a905f5784b9ecddb757cc998033827b58c2c3f4ea514fd746d1d99d8f0f1d5b +AUX autofs-5.0.4-user-ldflags-and-as-needed-v2.patch 1520 RMD160 ab22c45f92eca01abeaaba9546263340de8e5c9b SHA1 c91af03a8b61458127a9a37c8bab3941fff3942c SHA256 6a772377a5e37e1056ca337d22dcbdeb3fd5667947d5e728288eaa8fed86912f +AUX autofs-5.0.4-user-ldflags-and-as-needed.patch 1692 RMD160 7309a7461484b9fb1fc9791d7fae75e415853964 SHA1 96ccf835dfb966180dd472b320bce5ecf72eb823 SHA256 dd2f8e449e99d3445c4c7ddb6b68938bbdc982dfbbcbcd6dfbd1ef1a680af6dd +AUX autofs.confd 186 RMD160 812709be1af1cfc35fa313907496bfb4e9490386 SHA1 51cfe6ffa36ee5bc02f61a3d500469d73e3aa266 SHA256 d32c102ae6bab4958d230366cd42c1a67fab4f38e0d6abdf0c4a94cd71dffa45 +AUX autofs.confd9 799 RMD160 ef61372f9f804dc5b9f662d3810b8a8c80b635de SHA1 80612d8fa46c2b9b7ffdd8d3e711e6d14f0af19f SHA256 c19db9095a5b21bcc0da40adad7141800ddb43db09548adf4c91fd813d9b5e1f +AUX autofs.rc10 6373 RMD160 bbff8d48111f33a36afd4bf1628d7366a87478fd SHA1 957f37f6e61c89ab0cb452f7a1e7e55e4d0f9070 SHA256 e8ddf8aac8ae593be10ad9640f739f2ddc4d23566bdaeb9b1ac70a3d5c4f31ec +AUX autofs.rc11 7469 RMD160 e8472a75e3804a83cdb31fb1a9e293a87492ba0b SHA1 be29dc822d5216bd40edf1067df04eb5b56455a1 SHA256 a050aff19d249598d789859fbfd01ac72d73a68f83d9edb96661aae76a5f5481 +AUX autofs.rc12 7807 RMD160 bdd91c47ee5c223ca6eb7b395a4f82f36abd26f6 SHA1 a5efe6948c9674c4d2019db5e81de9d0a64ffaca SHA256 dc08949c2d47614be7fcea8be9988de52715b8072753ee3df77a87c19962975c +AUX autofs.rc13 7876 RMD160 feb761b16f10e90ca55fc25a75b1ada9e79a83e2 SHA1 dadfdea84cf741ede50f5131433f88b09dd05f40 SHA256 d477a63305db5d0cc78e9f538cea745f733ae46305f71986c8a5abce1d2f0c56 +AUX autofs.rc14 7881 RMD160 f801010b880dca90ea76926880af928889b2fe38 SHA1 3d1cb7d1bd9b34035932452ea47dcd291ff7b0b4 SHA256 6d233d75882e93f2139b706df58eb4172dbac1ffe55dd1b4792492db97ab457d +AUX autofs.rc6 3717 RMD160 9124279f8c70b0f4f9c4729a71469b178bd2395a SHA1 b17efbf35768395ea25c9ea4037d49c3eb61d4a2 SHA256 96ecff3e66a4364aaea5bdce7a33454b3315a04745cc5897208c33e749692016 +AUX autofs.rc7 3624 RMD160 898c771eedbf52cbf856449370640873db7c4fd2 SHA1 f72e598317ba58fe6c9598547876e8dd60b9e007 SHA256 406a9025829c8485ef73400a76f678a6c1c87694241936db1dfae5241e751e5e +AUX autofs.rc8 5186 RMD160 7a97786ecbca979a1b3aa754b6a638b580a9836d SHA1 f1f5b9837d176085c5e81bfe2321bdec15f90e74 SHA256 e9c094b03fec0a184800f750d79bf73ee6daf614c312b5c927110d8f2b0d1511 +AUX autofs.rc9 5617 RMD160 2822212b6717504aecc29cab029e5247bddecca9 SHA1 2b159ab25f390cdc230b20046ce8b4adcc8e99fb SHA256 6534a2c96f915132d7834478bf8913a8f00bf97ae91c5df55bf5e612f403735b +AUX autofs1.confd 137 RMD160 35c5171eb57db792830e94f28058b1b50534c236 SHA1 d5e415b4bb74b1fd91f9ad4ce863cd70ca5460d1 SHA256 d4be4500623e3ba986ad124b273c9119da78b12eb94c6d39e358ed9d623a1a8a +AUX autofs5.rc1 920 RMD160 9adb413578fba86eeabefb2c25b4bf6e27bd8efe SHA1 44db5523bc7d07c949e71bf0fda6499b0c6578d1 SHA256 94c956da80446f391df3a8f89794754c0e42ea9d1fca47f2abe57eecadbc3ffa +AUX automount.diff 322 RMD160 7fdfa7bd519451b47cbb9795e2ae482ddd45ff59 SHA1 c6bf3d6b2433cafe122d821142f44eee1a8b6ad7 SHA256 eef2d99787fc8967f10c5c308e3a271532013225bdfe28578d0ecb5e3c0c16c1 +AUX ldap_config.patch 785 RMD160 47b296b3dcb005fd65a8b707dbc0ace319d3ace7 SHA1 b81701d25b583d0382b41059be11e2e9ef6a523b SHA256 5f0eb87ea8e20fc4fac46afde8d50fe9307a1835979c279855d36d323e8ff57d +AUX nisyp.patch 419 RMD160 338ad78c60e048aad661b98c008b8f7cafd7ba8b SHA1 079f558edc12ed022b6f843026aedcf2c6f290c1 SHA256 e85a998ed1f40d41c32b15e1184fcd0b96a9d86f42cf10ebd76c3e553eea19f0 +DIST autofs-3.1.7.tar.bz2 57000 RMD160 c2369e5667fd3315cd06d2168fc3eab075339b49 SHA1 ed1b21ed841ff87dba659693c8b511f0a9c760f7 SHA256 838c6e92c39827b54a37559a02c9b409a4f7ec3124cc6d20845aabfaabe2dd18 +DIST autofs-4.1.3-bad_chdir.patch 6343 RMD160 a406cdaa048c7b44cf93bb05df35bf2f790c6cfb SHA1 4e186624b0faaef1a15632d42615463427142dcb SHA256 ba89a372971daa3d689366f7708ec24034c294e485a88d921fb2eac573f95b0f +DIST autofs-4.1.3-miscfixes.patch.gz 3058 RMD160 ad3d831ac3dd60eba633f976bf0cd38c4f05c6a6 SHA1 29603180ca0ddb185ae4d8540e9c99f97659fd63 SHA256 630f9ee90d23b02ffaa5fe379c4f1bca7db61b8f24f9cd5a2764a0c99a7eddfc +DIST autofs-4.1.3-mtab_lock.patch 551 RMD160 f34aeb1e29d8ddc06259c51fcc1bccd48e2b7efc SHA1 a217b7bb26456738bd04c20b83647096e7942cb6 SHA256 13494713f698c29281bc5d27a7b4b2dbb7692b6d18f770fada71ab3b28c33fca +DIST autofs-4.1.3-non_block_ping.patch 7934 RMD160 6df2da01f032d8d33ef56db62964b68e14b16ca8 SHA1 2a62494702d12dde93bd8fe366701efd3ea11646 SHA256 882a8ddb30b30232bed1afe9b891721ebbaec54c7122e625df3382e6099e8460 +DIST autofs-4.1.3-replicated_server_select.patch 962 RMD160 52f13fed9e443e0810d3e29408b06e797344e8c1 SHA1 1e3452898192d8729f4632ff46bc01497f7e0511 SHA256 95e2f7d1ca19c67b8116a8d5f382a7bb116255fbd507dc6689faea7da9a67dad +DIST autofs-4.1.3-sock-leak-fix.patch 1236 RMD160 09ca250b5711d04336f61fb7a227d99ae2b4d053 SHA1 995838278a74211eb537202f4c918302bd38fa38 SHA256 6aaa548688e7d48eb735dfa9acb1c097b82f8ef68a3ca30aab70a92b9b36453b +DIST autofs-4.1.3-strict.patch 1626 RMD160 8527db5b40eb7d0bf7fcc6f47a5be5beb22905d3 SHA1 fa51323f0546a8b493bf3daebe7d5e40fd43b288 SHA256 518a7930cb6bad18f045dfc493ce39816e6fbce0f80c444dd75a33d722a8caff +DIST autofs-4.1.3.tar.bz2 125234 RMD160 7df2839fce00222609bd7977a9d6275276e232b4 SHA1 ad7727e15c0ce35f3ad3a7cd2984197cf951f44f SHA256 9257a603815ee8c8d0f2935ff3c254b23f8007eee5fa8c9bf2e3661fdc171035 +DIST autofs-5.0.2-init-cb-on-load.patch 4410 RMD160 972aa738759b0fe924fb69096d25477829e604fd SHA1 4b9518cfe8efb54750e92cf9fb0458d15885072b SHA256 9054b6da6bba5659ac3c41a17cd7f50706af454083b6f3ed5ad602ee0fff9966 +DIST autofs-5.0.3-add-replicated-debug-logging.patch 5894 RMD160 add99af19fdcba2b8d1056fec74035682d327490 SHA1 04af2063ccdc85cc275a0487b6a55c862f03a87b SHA256 0b75df6b121fabf24b7eadf572961dc22c4bd55116293a974000682d1470e194 +DIST autofs-5.0.3-add-umount_wait-parameter.patch 4384 RMD160 0f3f3bc65fd0117986bd9b6f72b8256842455f67 SHA1 69ad8aa0081870dc3d3dbe38aa0c0189d9fa30db SHA256 a2aec14d52f32cfd4a5e491717862675b9da5d7a21dcfa5cb8a694461640273f +DIST autofs-5.0.3-allow-dir-create-on-nfs-root.patch 1570 RMD160 66c1de4eb63e7864db136f83d6adf1abfa09d6e6 SHA1 d8903cea66ac5046b8b148f6cfbd823826755114 SHA256 062f365f74359fad9c42ed13f64c43f790654cebebcfb4fe19053d3b6326ec16 +DIST autofs-5.0.3-basedn-with-spaces-fix-3.patch 739 RMD160 2066a516afd9efe781b16b41c16dbd46677f4acc SHA1 53fd7c2aa390ca5ec0022b49f3865ff91a9beb24 SHA256 2483d04553a3a235f5a4695db12bbf2d1f3cc5dca3658804b4c3dc229b2bda9b +DIST autofs-5.0.3-check-direct-path-len.patch 2958 RMD160 df968a7107fe4fc62cd4cddbe53b5732c5cc7e5d SHA1 ecfc8e3f691c97fa6a662d141bfa3072a91c2812 SHA256 54d2647f6ba68b99c1aadf145570d00b2076381924e000f2aa7d25fb12220d7e +DIST autofs-5.0.3-check-for-kernel-automount.patch 6935 RMD160 c5475d83d689bc192401da3178a4944920b8f920 SHA1 92efe4f31e644eb0464a873f0a2a6f77c421d149 SHA256 024cc6768380a52380d11a29375bd1474136a078b1859c118ccc65fb1f572c2c +DIST autofs-5.0.3-check-replicated-list-after-probe.patch 903 RMD160 0f2ff0224161b4c28bba2bfc845128bbcbfa6634 SHA1 42562ded0968930a805ecab31cce977b0887e8b0 SHA256 c4be19f2b166fdd93bfc366a870d8411756372d7ab0b4fdb34c55eac11f94a5d +DIST autofs-5.0.3-clear-stale-on-map-read.patch 921 RMD160 468f4356c2e6c939d3289e58ceda2341de5f98b8 SHA1 39e3a51713def927c54572829d77929ee48399ac SHA256 2e73c93ef123b5e2012acc02720a2fb48ead39bef228dc840b5cf73249fe4841 +DIST autofs-5.0.3-correct-ldap-lib.patch 2600 RMD160 851be5c9d26a05a09a067c46493daa13519dddcc SHA1 fb08814da414608e55e6b41f689eb304e3cdd443 SHA256 2f9ca7f1d35c9408b99a6839d3f5250d470b0c81291887698528cd5814878a25 +DIST autofs-5.0.3-dont-abuse-ap-ghost-field.patch 2694 RMD160 46dfc15e186767dcb6280287eda5c92d3c1f6cc8 SHA1 47c9d642a8f6f1029e19ed343e5287c03970b0e0 SHA256 6f368f921393b32303b02d10e8fe1a0545c372d920e595095d9a94778bffe321 +DIST autofs-5.0.3-dont-block-on-expire.patch 14856 RMD160 55d6f3117c9cd036d29efdf6718e856365dd07da SHA1 9fad18c36eb6df56d57317392b3e896c926993f2 SHA256 4bf10c77149519a2dbd1172ec1f3b3ffa6b2d9c4da194e060416506cb1603c89 +DIST autofs-5.0.3-dont-fail-on-empty-master-fix-2.patch 1481 RMD160 700c5b9826a364960ce122453b19985deb54393e SHA1 ff847ebe81e7ea01c782d1fc13762300f5e7e352 SHA256 f13ca5576b6e5dd76d4a22fa747ed55b31f27fa76010fc9d66b7ffe1deb542ec +DIST autofs-5.0.3-dont-use-proc-for-is-running-check.patch 15555 RMD160 298241d58c2601ba97197e80343471ac8c1e6a0c SHA1 7fdc92778fe0b1c7befed9f150c002d3da332744 SHA256 fd393f49f79d7f4b1643cd6b1637c9b2ff4195705e799315b4cebb1aad083528 +DIST autofs-5.0.3-expire-works-too-hard-update-2.patch 407 RMD160 ee13e72ec49287b8b4840e8f795940444321e98d SHA1 426e12de37a8a378c7067bd48773bb33479daded SHA256 a80a638d8eb8e26ff8aecacd59cf6be6d3ea7b5e10814121c23c5b837c79370b +DIST autofs-5.0.3-expire-works-too-hard-update.patch 1503 RMD160 ac0e450db1a733c4eaad1fc412b56fd87df10faf SHA1 0f1790bb69ea6f4cd26a2025db9b3033c34007f9 SHA256 a427bac82b8213afa8a93c5ba960fbcf231a0d8d3c56f3ab2fe893c56e543ba4 +DIST autofs-5.0.3-expire-works-too-hard.patch 1630 RMD160 f17fa04bc0cb68063a29af00f49721dfa4987eba SHA1 31e9d823d8b8ef43ef5ed832f09eed3615fd0b6c SHA256 8843838d12503e72cbfdafc372f4f07709d8851fe43e942042eba79b69a1986f +DIST autofs-5.0.3-fix-couple-of-memory-leaks.patch 1753 RMD160 2b75652c8c6750ba780b9153a3c37ea45665f846 SHA1 8805deaa0a7dbbe33c1f5fd9ac1880d75ff0d43c SHA256 c635567c985f7ad00f6050059ee488caf7bf6b1fafa501bb0a0938bc5224f7e1 +DIST autofs-5.0.3-fix-get-user-info-check.patch 1000 RMD160 47695977c066c4e2b2880063c48de84b69b99c09 SHA1 5ef0b4adeccb0a746b569e73e7f451dcf0c4970c SHA256 016431bfc52553334e6a4bb54c5e0e67ba63ee403acf8009397279fccd71d9a8 +DIST autofs-5.0.3-fix-ifc-buff-size-fix.patch 582 RMD160 6522bdc1fb7add1e3273e2881b4c370e587e5fba SHA1 1c501fe0b112cc6506ef4a4bba4d22d0f89b9778 SHA256 b1ce60a4a4886de8a4d6bd2369b04e0d3a4d7634fe18f22e5d88b95281e906b0 +DIST autofs-5.0.3-fix-ifc-buff-size.patch 3908 RMD160 3a6ae12dccde5411a091be2205a6b788fac157c2 SHA1 5499832f90b549b78b11deab36e6e66252a2bbf3 SHA256 2c1a3ee1c95c5ada4c9ec666c7bfce3e107191af3eb7a6e808da286e38bd55a6 +DIST autofs-5.0.3-fix-included-browse-map-not-found.patch 665 RMD160 65ed3add211742a8aece68919903afcaced06026 SHA1 b9df30c8b8f68a0b007f1887cc58ce4100390825 SHA256 a432f44cd5fcb82d66694a4445008eebfe5d7cbd8915ccb6301c2844689fe10c +DIST autofs-5.0.3-fix-multi-mount-race.patch 49086 RMD160 3e093fe885dfc5ce6bb7e99e9119498e5aede211 SHA1 bf59d219052bf57b0c9d8456409d9aaccadb0db5 SHA256 a2150acf8d7a8fa002adc4c25731f9e1c83955763062db1bb7c0c7306cc1706d +DIST autofs-5.0.3-fix-multi-source-messages.patch 5045 RMD160 a72b6ffab8ab84dc26e16aab8a5d082aff98e931 SHA1 bf1d01dfc3391000ae796154821f639a9a9c2e8e SHA256 2b3a05910cc7dae775bab88d5b6abb719e2a5171607b9aaa1d19d0e0b1cc24bd +DIST autofs-5.0.3-fix-nfs4-colon-escape.patch 930 RMD160 09834a6bdc64f86b2675ce9b1d616d39fa168586 SHA1 05dbba893f2fea9064367fc915d2449de490be53 SHA256 2e652c324d1020ead967c3cc3c501fdf80fb89a125502dc4c9a5882c765b06e4 +DIST autofs-5.0.3-fix-percent-hack.patch 7910 RMD160 e322e33191f615664bca30beb264389fcfeaff67 SHA1 ac625ea4f4ccfb977deb7839541a23e7c2535c60 SHA256 dbf90e8c8b61ce57c07f2957b79b0c2fa9696e7ef62e9c6603166e43d7d792b3 +DIST autofs-5.0.3-fix-proximity-other-timeout.patch 1163 RMD160 bea099986f9845ae9c6fe3c0face1d319824798a SHA1 cb20f071b28c16f63a039bc0e33aa1be637fc09f SHA256 219d970576450c2394ac5d191d3323ed19cfd4acef9e2daebfea621918a8078c +DIST autofs-5.0.3-handle-zero-length-nis-key.patch 1114 RMD160 bc31560fa3ed8e37b779de5e4d15f4020359b8d5 SHA1 999f524d4bb9ea2b08a2f5e281530da7168eafab SHA256 76cf5b2748312e66f0ccc9cb528871cedaf9aad568c93405d8277acbc997026d +DIST autofs-5.0.3-ldap-page-control-configure-fix.patch 11870 RMD160 bf76a1457569f5dad1b5088496090820ee92ad05 SHA1 b821d576dc0c084db27b8da127a00707e83cbc86 SHA256 badd953d702f716266b5819c2001f1e29f1d70775aad92e835f2a46ee6375c5f +DIST autofs-5.0.3-lookup-next-soucre-stale-entry.patch 4640 RMD160 22675bad89b5250f211ec309e865a01dda012d3f SHA1 f0ac57dd5b72139f86e9515ce49f315e2dd36c4e SHA256 c5c824d8291d28e295f7a0e7b57b85de820b45b11716c1a248e1b9d339dc236b +DIST autofs-5.0.3-make-handle_mounts-startup-cond-distinct.patch 8460 RMD160 06eb746fede77d1b397f015be1791f4aa467d04c SHA1 37e106fe2392f06ea448743b45c3319171cac8c6 SHA256 cf97988e5404677225f73555f32de2f0c2ac3ee7cfaa3168494f38c25ef8422c +DIST autofs-5.0.3-map-type-in-map-name.patch 1664 RMD160 6b4599b47ee4da6870a217ef0e37c32a280ce157 SHA1 c1f253d98684855c0c9505166dfc7efb50720992 SHA256 a2616b70613e0b4922bb94ee474b377df10015ce5fd27e33a7c0d44b5ed03bd9 +DIST autofs-5.0.3-mount-thread-create-cond-handling-fix.patch 6624 RMD160 7242b1ed1c6c1a06e1efbefde81bed60849fb20c SHA1 64ca57d39407f26c6841cc508b2fad56b6fdf828 SHA256 7626f4d42a96cd5bd6e20c79112562b564128ed02caf822498691aa7368a28c1 +DIST autofs-5.0.3-mount-thread-create-cond-handling.patch 9284 RMD160 78f2d0bc970cc8f958117e0b3f88216147d79257 SHA1 ea8b6fa4246b720a6f284986553c5695027c9b95 SHA256 9ce5a15157ebee4e68e03f04777bac5d436e4e6233690f6bcf8d76fb281cbb01 +DIST autofs-5.0.3-mtab-as-proc-mounts-fix.patch 722 RMD160 4da51382d7916c6dedcbed846753a76053927639 SHA1 e1269f14384d5f02b8016e54550687f565d7d83f SHA256 5300cf8c6709e1425e20db478010eee2c7ae2cdc30719fc448ffa453b640724d +DIST autofs-5.0.3-mtab-as-proc-mounts.patch 4525 RMD160 3702932823580e79b25b7ed59411129f5e6fa5c4 SHA1 877b0b1cb8d29998d19f4f2204cdd7626273f146 SHA256 d03207946931f0b2b9b6b95c3898d13155a5d949b42c47482ef62374914d961e +DIST autofs-5.0.3-nfs4-tcp-only.patch 810 RMD160 93cc53b149ced66c3a18cf3baa118dacf00aa9fb SHA1 533ca97bbdbdb77c1a0a556f3a927ac16c9a8647 SHA256 2761141b683d29d17e2924149b22238b718d769231bb86029a0d16025fd25bf7 +DIST autofs-5.0.3-nss-source-any.patch 4783 RMD160 e6d933fcd32e3f166a2d7f9065abb5437f8daede SHA1 5f7e87f34997eb9379b4b7880f95ff3a450da968 SHA256 770a4b2910f67d62a3dcf840dcfbdd0a3cc8d5c8ce7893a17d431459def6761a +DIST autofs-5.0.3-override-is-running-check.patch 4078 RMD160 54d9702dbd5c02d039d7895b23fd1504853668f6 SHA1 0f2a85dd81a57a71ae8fdfbbaaa0113778649f4f SHA256 97f8c9f47b52f877ffd18743410b75129492d8aa1a8fa63e606b76844a97045a +DIST autofs-5.0.3-refactor-mount-request-vars.patch 32181 RMD160 b713451492d5018da5d8c37229abfd808672b3f6 SHA1 17c49500e2df6e21992575c78f0f7adc2f904f9c SHA256 83d50ce234854fc42e57951e592da311e0a5f3aae59fcd1e93302bef6868d53e +DIST autofs-5.0.3-remove-redundant-dns-name-lookups.patch 7691 RMD160 715ea6d9ceaec3a8f642f2613c4dc432ad9cc8c0 SHA1 29f7f265a95163f485b05f7c71f7014771f4051c SHA256 f0817ab7ff4ca92f7717cc96392ae9c562e44ea0ffb40f78e2cc4d220b79673c +DIST autofs-5.0.3-submount-shutdown-recovery-12-fix.patch 1015 RMD160 8c329f54c133eefb35f63bc592171da7871269d9 SHA1 93b2d6553c4fa1e8d133ceadf80f6ccf817fe4bb SHA256 033133894efb2ab190a177bbe77860cc00e8e03502ae31de6a634e098498c0f6 +DIST autofs-5.0.3-submount-shutdown-recovery-12.patch 51585 RMD160 d8eb2d2d178e8eff5d065cace507be243ae2c609 SHA1 bb55b7b672ee1a879dbedcfbec2a1c86adea06ad SHA256 c350d6d3c0bf4334682a72f93bb31d7d981c689e366001ca0c3298ddbc2141d2 +DIST autofs-5.0.3-unlink-mount-return-fix.patch 1570 RMD160 e397d2307c129180a50a03789d9fb7d4288c499b SHA1 9ffd8052a610fa8bdbe93db89cf9890aae7d6405 SHA256 599b1eafec53ed2a3fc10870fc729475d5630415b1c5d7df5ec78fbe2d314288 +DIST autofs-5.0.3-update-linux-auto_fs4-h.patch 2312 RMD160 db5ff55c717ebf1a3db96a00285c18c5755c78cf SHA1 0283fc4d05874e0a5a890825103f4353fa041c59 SHA256 806788242051370c4603aefc2ce70568fb49fe19376ac4a32a3b9524c9d6fb4e +DIST autofs-5.0.3-update-replicated-doco.patch 3630 RMD160 f4030e46757359678b5d6d08e76b27d635aee7c3 SHA1 e2b09a8d955f0244abd6218a9e44eac738ca5c7d SHA256 fa71e6b83a000c9507896f6f17818fa04a741cf542599598254ae8c94d08c3b1 +DIST autofs-5.0.3-use-dev-urandom.patch 1087 RMD160 99b7b351fb450f156ae6b7e412107166641c1d9c SHA1 c2ccfb95da23187b0896b23935af8fa210d8b485 SHA256 b43f53b95d4dc4a9473a97288633e3616879d512240bde0e24deb9bdbdad2ba8 +DIST autofs-5.0.3-xfn-not-supported.patch 1753 RMD160 25729dd9fc17f8fbd143ee4670fa9d498473d015 SHA1 8d0e17e1ab721758f932f37efb49541101bfe27a SHA256 fa674ca5e63b01d6a6eee21ef8b1c81c432b7fe353390c60edae7fa0f4c5b67f +DIST autofs-5.0.3.tar.bz2 225298 RMD160 b25fd5f2da4592ec3827de1cd7227d66469fe853 SHA1 3e6c275d8c8752132ffd881ac3ec962dd2926498 SHA256 1598f6849c1bf0ec596e7dad7c7c8176a958e973d55370da1236d8b9bdd4acc9 +DIST autofs-5.0.4-add-lsb-init-script-parameter-block.patch 1846 RMD160 da50db8258b52b932462c24dd352dbbc791e149d SHA1 df09ec580fa128a39698b66123f2f99c3e4d9a16 SHA256 da28e45d96cce36583fe0b9184fc441880b5e9d3e92c856c286067b619684a28 +DIST autofs-5.0.4-add-missing-changelog-entries.patch 758 RMD160 3ec21b4719e302652d4dc7dac36bbe7351191072 SHA1 457a8ac730fbe290c8e539e41bd4364df976f1e6 SHA256 7bce25e718278d4d92052f30536c47beae5410d8daf78149508d71425d1e9b6f +DIST autofs-5.0.4-add-nfs-mount-proto-default-conf-option.patch 6784 RMD160 337299b99c45b7c9f0450f2c1f07f5469844c9c7 SHA1 60c8384a0002f8f76a294645fb1ebbe89962625b SHA256 9e78f56f0b6ec72d403548bb57e79c10ab5f3e0d22b249a4fed57226e0febb24 +DIST autofs-5.0.4-always-read-file-maps-fix.patch 2175 RMD160 72535373fb232571f698039d7d7c9e49840b7bc2 SHA1 a865c5180f9df3d2b3ea0fba0b57b3645504d3e0 SHA256 c1bdc85074d284013ae7e0f5bbc40e0f77ba3100959553cb36073474d0c3c5f0 +DIST autofs-5.0.4-always-read-file-maps-key-lookup-fixes.patch 2275 RMD160 489f40b0afc2fca4bd4840698dd5481444acc8d6 SHA1 642617894b98a2bd2631b469e9bb87483e96495e SHA256 8111d8bcf1076b6bbd6823c8b323cd605381091633062039689279dbacc60392 +DIST autofs-5.0.4-always-read-file-maps-multi-map-fix.patch 4509 RMD160 9d0cba56d5013873c987449c7ee8e6b46345110b SHA1 3d45dfc0d86c044027c4541c74dcf4e2e8819eef SHA256 b297364047b211cfb35116213546ec4b632e03e4d429d5c748b36d9010e8ba29 +DIST autofs-5.0.4-always-read-file-maps.patch 6680 RMD160 09d8282b9b71638c154a261faf78d63e850d43f9 SHA1 5240db2d89f9f45feac55e0d3729ae7e6b283dec SHA256 0e2ef89ce7d8ad061cc9196829b7db41dc26970107ac500cf64e0fd89c6bf537 +DIST autofs-5.0.4-another-easy-alloca-replacements-fix.patch 976 RMD160 3ab9cd21595f240c22a75fe36121b17a287e932e SHA1 983b9d4688f266fd9704f50360b1da978f248b72 SHA256 355163b4a71a6681e454a4cd016b2d197689c88ba523b3885dab04d2e198b1a5 +DIST autofs-5.0.4-clear-rpc-client-on-lookup-fail.patch 1392 RMD160 8fa1ffcff7f88cc00caadb183cf3a6164faedce7 SHA1 9a14840644118aa8f8d11cc341d0ef1ec96bb6b8 SHA256 695d8f95cadd4e5c622013b3fea759b9d829cf61169de469224cdb12531fc19c +DIST autofs-5.0.4-code-analysis-corrections.patch 16459 RMD160 3e3683992c64670b0c588e085be887378e73f393 SHA1 60fe2dc851e11267ab60b5785e67705c25850b48 SHA256 b3b24b438a46a53d45b40153f9485dfb0064bc66ca3c65a6d5c0cedea234f72a +DIST autofs-5.0.4-configure-libtirpc-fix.patch 188984 RMD160 8ffc8f5add62d4156810943384d30ce582267b92 SHA1 397f5620f5bab053ed78994e5cabd5f83c21f8a8 SHA256 ae70f56bf0b37159c45f6871e4bc53be25baa351e5a28cdf24e90d676629ced2 +DIST autofs-5.0.4-configure-libtirpc.patch 45852 RMD160 3f148e3fd0d25afe3fb4e5465f6391bca0f36946 SHA1 80b5b740e5fe937a71db91ba45c7dfaa8bb7a720 SHA256 58517c08b58f3a8046b8321d2a5c8d89682eb364589eced5f095b28d2a15b293 +DIST autofs-5.0.4-dont-fail-on-ipv6-address-adding-host.patch 2059 RMD160 844163f4afabb6b6b6fb8f020a2b17fe2c96652b SHA1 b0afbe4b8f045a3e55f6f1b794cd6d4d63edeaf6 SHA256 74ee63c0c2c75434d60435436aff88726b63c0c85892f2ad30360615a9089ca6 +DIST autofs-5.0.4-dont-umount-existing-direct-mount-on-reread.patch 10846 RMD160 eba46f225439b38246230e72621dbc8b76586714 SHA1 e045c213fe60aa84e47e68c1cbd856524a41411b SHA256 ffafa2ab464a71d02cce42f1baf758a9f7ac83409166ea9716f16e45c7007ed8 +DIST autofs-5.0.4-easy-alloca-replacements-fix.patch 6310 RMD160 737318d7ceb9ddc2b281870407fc658f2a275f28 SHA1 353e2f49bbd7bd348bc9d570121d5da568fbb0c0 SHA256 2211c0c514b874bf2a10215100b4c5eafe39ea38304637205cc89807e2786e33 +DIST autofs-5.0.4-easy-alloca-replacements.patch 34981 RMD160 25c8d563daa402a4fb9a7bdea448f2ade3bc3f54 SHA1 b001a37a2cf67ffb827633ac600212b478b252b5 SHA256 c2f580ca8b06514f948a568b534d9e9441bd0f7d4b1fc5e2f08d1744c3af3618 +DIST autofs-5.0.4-expire-specific-submount-only.patch 2461 RMD160 003862536a66c75579a8e1de99473fcaf177bcc2 SHA1 68316db81acb7d6ccceb16a77a700b439db91898 SHA256 03751bbeb7eac53151124a83dac9970b747a7d38b00d4471d2a5d1f9aab0a157 +DIST autofs-5.0.4-fix-bad-token-declare.patch 1085 RMD160 f32aa420dd15fdcb9c3401b8cda4a8efbc1231b8 SHA1 1e6f3d1b1ee6d609e22b3ad3983dbf8201f9e077 SHA256 2ee71883581ce6c28c381dbe633fd310bc3d763f7e4db92db18d0e05cca7e2b8 +DIST autofs-5.0.4-fix-double-free-in-do_sasl_bind.patch 1196 RMD160 c9715d288f1977fa792b0f413424ad4543ce2a2d SHA1 975ee0ba07eefb5484ad1328e527408e66fcea9e SHA256 80dbd7e532d727ab032e46faccc339b8ea6351715dc2d1edf551355654f7e3d0 +DIST autofs-5.0.4-fix-double-free-in-expire_proc.patch 1078 RMD160 89c61467d2f48ee39e9964b2172c8f3e0c3db19c SHA1 f00605d825aba19925c242c315392e63d6553b9c SHA256 5316540f9944ae563f3db9563f7f2cd7a09fe692f10ad4163bd4ca8c06ac7e84 +DIST autofs-5.0.4-fix-dumb-libxml2-check.patch 2462 RMD160 3a7ece1593cff78d253ae79bfd5bf87ca372063b SHA1 4d97b3fe0c1b0097e182be01bb61308b3538193f SHA256 4dc61fc8d05d5ce268447b1f3ff92aafad3956a24ae80d44a4be64b666efcd99 +DIST autofs-5.0.4-fix-hosts-map-use-after-free.patch 1357 RMD160 64cbd8cc207a79ad61f591bd09146db7c9ff7f83 SHA1 291e42618ef04cebefc15d236135e9468ee3c88c SHA256 81742146f6d31ade103acace3e410675342490d2608833523249a3c81016ee65 +DIST autofs-5.0.4-fix-incorrect-dclist-free.patch 874 RMD160 c0268396963a678004ee23bfe5b9b62b2110fc5c SHA1 4f79965fcfb5b4d012bf7a27bc5eb77b197a117a SHA256 6384fc2ef250978127c953db821dd7dd98d7c12ac8de5d91cf6b1de4c1d32454 +DIST autofs-5.0.4-fix-kernel-includes.patch 2689 RMD160 202ad11af683b7fbab7cd29e708fb753d6d31c36 SHA1 e7ba25235a42442c4c60e74061164b4a67cd5a6c SHA256 ca8198fab9dc597f19c431d7c66ff25a1c88a5ef3b503697f0eb2721a21796d3 +DIST autofs-5.0.4-fix-ldap-detection.patch 3546 RMD160 f20b055dbcb267a105a76a49d5bd24ac18ffc063 SHA1 915e6db1d43de4ad1c246d8b63c6fbb1adfa1a30 SHA256 046a8fc50a0033efe50d165544b9a9e16f8b726c34ae267992f17c0307e54cfb +DIST autofs-5.0.4-fix-lsb-init-script-header.patch 1623 RMD160 e5ad71c91bd68a679034a3d67e6acc0cad7cd6e1 SHA1 d09cdc5a7547af4812946029fca7106d61eedc98 SHA256 1c5ce9740e77d6ae3ab8fe92b8270a78e91d7a3ffd9aec73fde79477bfd22194 +DIST autofs-5.0.4-fix-map-type-info-parse-error.patch 1265 RMD160 2f6df4f3aee67658efbc01d086ffc7c3a98f5742 SHA1 024f3cefed7e09c7c50cb18b10662acd67baae0b SHA256 44baed37dc36442d881f2f990ae7a5ecdfe190a645587ec6dd997962b7d79f9b +DIST autofs-5.0.4-fix-memory-leak-reading-ldap-master.patch 1062 RMD160 11702551c7873ce0cf5be0b900a9ce7a6dbb26e5 SHA1 a7751bdf373fce33089f170e8edd406f69964ca1 SHA256 a38bb91a716c73010b8b310222877c94f0fbf85a6f3fca2264020047801a8180 +DIST autofs-5.0.4-fix-negative-cache-non-existent-key.patch 9852 RMD160 3e9cf52fc6bdca447d5164eac0c93819fa1303f5 SHA1 cab61d77fb8729765fbb81e76e4e6f99f5c61eb5 SHA256 7a9a438899c422b74283399587fa2037a67425aaebe4e952fb485088e3ae9f4c +DIST autofs-5.0.4-fix-notify-mount-message-path.patch 1974 RMD160 dc03c84d448d4a5c4f67871809b15fa5351ee5b1 SHA1 6743c78698409fa70c614ad9b8da4a796e7e3eef SHA256 e816084f9b61d04caa335c53dc4dd105b6a227f3cb6fb5d1540bffcd03d5e44f +DIST autofs-5.0.4-fix-quoted-mess.patch 1049 RMD160 7091cb2dff02845d3a5f3ded056a760f06adb07b SHA1 59e9ba917cb5cd370f3d37e9390cc40b94b05bd0 SHA256 e8fec6ecd6fc3e7867aa5c3e2eeed40d6c8068008a83cac6e1ad4dc7251a0e95 +DIST autofs-5.0.4-fix-restorecon.patch 1437 RMD160 a8c839781eede4ea999aa85479e1d6c6154817c8 SHA1 34365e6b7b3337ffdae717dc6742bca277986b57 SHA256 0d09fe5b22cf6c915addf30664221dc0ea95a6da9194ee890da2a83b555f6b6a +DIST autofs-5.0.4-fix-return-start-status-on-fail.patch 5080 RMD160 dc38afb301e1931cd03824753449ce6896ece995 SHA1 aa34994a80e606bb9f826b6ab9c79e26cb6f2793 SHA256 3af14f7d48a80bbe52d252b6053ea1adc5cef0a9668c81e76aff028802b53f2a +DIST autofs-5.0.4-fix-select-fd-limit.patch 6912 RMD160 5571c1a0bffa74d7d2be7479aa48a8250f012b73 SHA1 530fe6e3d3ce177640ebed482b5d60993c9ce680 SHA256 2678fd5b1d4c184f2d30b06b8854a1d6ea5f1b4dfc3933a5588ed75e845cec5e +DIST autofs-5.0.4-fix-st_remove_tasks-locking.patch 1598 RMD160 f505a51579577a95ddccbbbdff0d4c1f200bc894 SHA1 980f0162941b4e1ee50db6a06e996c79ddd7a273 SHA256 c3d4120e3287017ea1970ebf2db5c8a65a055cbbce7e19d7e6b85a3439268d97 +DIST autofs-5.0.4-force-unlink-umount.patch 7167 RMD160 707f9f60804ce89d0afbd04f50fc0f86f3ea6537 SHA1 e2200b442513b8949674df8fa6f36e3942a64349 SHA256 bb463a988dfd09859577505f45275f2ea7718657a1a496c76ca0b5aa86b3a2d3 +DIST autofs-5.0.4-improve-manual-umount-recovery.patch 4902 RMD160 5fa902624d95f7d554611ce44683ff33c2b7d8b7 SHA1 298d3b1e27356cf42c0c111d4fbe62b6eb72ff49 SHA256 9d9944c9cb073ee8f0858785597d732b340041afee4317d323dc83f8a3fcdf03 +DIST autofs-5.0.4-ipv6-name-and-address-support.patch 25149 RMD160 f765d186657b35f572aa401ab016bef1e8c9681f SHA1 fd860b4e8ab43a8e7f34c3b32240036b5ba0c7d9 SHA256 f6de85f29a56afb1116065c2db81097a0b42eb5fd25449c6e0ace6ce01417e2f +DIST autofs-5.0.4-ipv6-parse.patch 12264 RMD160 58aa234c25d32896e6884e4060bc2b5a9eb70037 SHA1 4667a992f82941c36c734cbc07a47c0a71329660 SHA256 94f562284bfcb060e3908b2caf34b5370b27e12af3fb8df28b796b09f4821ce7 +DIST autofs-5.0.4-library-reload-fix-update-fix-2.patch 1446 RMD160 eb0a9e89d8eccd6f5b91455147979c1797424681 SHA1 d71d4a06ed090d247b389b058a9bb2d287cdd0eb SHA256 0cc2994a1c1b7a4ff704b8eebf1808a24158c4616531a82ca8707e16228c2d56 +DIST autofs-5.0.4-library-reload-fix-update-fix.patch 2292 RMD160 695f2ade1ad219ee651079a1e05c0c6b07c7ace8 SHA1 24e61ac07828d9245813c1ba243404c2b6f9e1a0 SHA256 c9696ea233424490e2a34c14804be861f1a20b970e9f47352f56fc6f11c22d6b +DIST autofs-5.0.4-library-reload-fix-update.patch 11309 RMD160 cd9b096518a611c8d03edd963d1715ae148dbd89 SHA1 75b7acf167f23e07391babea786dd8001a9558ee SHA256 c5198bab85aab40694e4018b5e1bbc096c656d2e9a6ebb16ce81da59252a7f64 +DIST autofs-5.0.4-libxml2-workaround-fix.patch 1062 RMD160 4fa0f5c12fd3ba327a7c323297eb393c06df574c SHA1 b0933205f2c6c8c0c9dc785717b5e3d87b77530b SHA256 879b1868d6f386a3c1f62e8e90f89524c9595cd7d70918b21d97e7d04f3fd021 +DIST autofs-5.0.4-make-MAX_ERR_BUF-and-PARSE_MAX_BUF-use-easier-to-audit.patch 7876 RMD160 524d5309c5afd2879779004b58d6d0d985bfc1f9 SHA1 06c094765f759a9b0df52e122c7854e2c33ee21d SHA256 0e34aaa4e6cf2be0188aebabb0c4c796ecd7b33b06b21dda1773b696b15a7978 +DIST autofs-5.0.4-make-hash-table-scale-to-thousands-of-entries.patch 9173 RMD160 62b26be1d1d0b5900ed7b7bf8926e9653e835603 SHA1 b501c112bbfa9f2bf666673ba9b1864769abbbef SHA256 24a288f5928812315821c70f7e98d760b1fcdb8e4d85478eae1197cfdb239ad3 +DIST autofs-5.0.4-manual-umount-recovery-fixes.patch 2992 RMD160 42cd85191ca2c31582370893d7ea9f9a2907a081 SHA1 a40f2c8c360ff5cf156321d3b545dee0aaf18023 SHA256 d6716f842bcb17e2c6df017f76835dc29a8c40bc001e3dcce098761b48b18d2e +DIST autofs-5.0.4-remount-we-created-mount-point-fix.patch 1644 RMD160 1234da36147f153eeb9366d3209349d22e7ad4e3 SHA1 010323d1a4e9c9b863f823cb30c99a0cb4a85efa SHA256 0c52953447ff9ef063d5256f46b3fd8bf3854f6e1a64960d54a594dc7edce51f +DIST autofs-5.0.4-renew-sasl-creds-upon-reconnect-fail.patch 1785 RMD160 d2bf66403147403644320af74b0f3d61cf90bf23 SHA1 38bb5c5c8b3c31911e1c38066119cc24b962d6f3 SHA256 6cca5a02838d4875ac593e0a54905ff884e820ef3270269ece6d42355dcc4fb0 +DIST autofs-5.0.4-reset-flex-scanner-when-setting-buffer.patch 1471 RMD160 982c558e344a0684e9e2859932fedf6ee7229994 SHA1 47ff5772e09489c13ebef4ca0cdcd9a84e1b8013 SHA256 83d57377f2cb23024c59bb3517fde6553ccf658d12cd20a7f38691f8451cb1d9 +DIST autofs-5.0.4-srv-lookup-handle-endian.patch 907 RMD160 2a07e8c79bfd2af22b764333a9c3f1fb1dfa8f3c SHA1 4e24dcf836eb87026f2aff7dae92ab4eeaf23017 SHA256 e0a0b7b1fd1306b55af041212c709b3fbba0bde52454a7b7132d0ecf1ca65951 +DIST autofs-5.0.4-uris-list-locking-fix.patch 6981 RMD160 b5bdbfd87a711347084875d7470887a42776cae0 SHA1 a623b73f2fb89b778b20d21f1ef8a69e3cdec5c8 SHA256 d3d0c6529428fc1fe37bcd880c5075f51d4e8eb06b89a133aa584e9a177bf043 +DIST autofs-5.0.4-use-CLOEXEC-flag-setmntent-include-fix.patch 1137 RMD160 d78fe68805a9036b44daab5bc6552b962a44266b SHA1 1e02590c61baa12e9efec02543dac805e38c5226 SHA256 0e156f3505e7ef2b69c29c8af00a6c69799d740f154963dd047a2cd310490085 +DIST autofs-5.0.4-use-CLOEXEC-flag-setmntent.patch 2636 RMD160 6c3f2d300930e2a67ebf4d031ed79a6bf04e8a3d SHA1 e4651099faf2453dee1bda393cc84930e87d1073 SHA256 b5fdbaa54bd95a93e83c773522f64c0bd4c7eea735f97dc89472f2fbefe0846f +DIST autofs-5.0.4-use-CLOEXEC-flag.patch 30508 RMD160 eb01b3ef5fb3473381471fc653ca829c5fc960a1 SHA1 0b835638924098b6305c38aa6372064e5b72d2e2 SHA256 741ed2bf9b7a0b40c974c71a7e26d14dc9aac2273c78a8df258eb3edad7da07c +DIST autofs-5.0.4-use-intr-as-hosts-mount-default.patch 2754 RMD160 be2192fc634c0f76949050b80b9b84e2c04ec9df SHA1 3b00dcaf8f4d83fd05596734a682fad2779b01e4 SHA256 c7540c823332d4d6194033cbeb8e520f11e1d444e885e8ac99cfc8b2802a11eb +DIST autofs-5.0.4-use-misc-device.patch 1607 RMD160 0711837aad8ebb9bf80f95c7414cb2f061946727 SHA1 d6e1df291559649091cd0d4899816bbe4c6dc3d7 SHA256 7e065f514e9e44da875426a715f0d61059e81832b221247a88c91f1aff29eea1 +DIST autofs-5.0.4-use-percent-hack-for-master.patch 3850 RMD160 66f2437ae2c32e9b949070183d8cf3af7b82ab10 SHA1 0d9821fe81a36e931245c17bbb5afd6a0f8e9f67 SHA256 6d003fa293c01b093c3bb6035268d8e8741c1d82c20158f89174bac6a0d14ede +DIST autofs-5.0.4-use-srv-query-for-domain-dn.patch 27460 RMD160 0d83fd04659043126a174dec65ac4e5b0df9fb45 SHA1 d33be13150dfb49e28766c671e8a3faa0e7f9701 SHA256 3b9139f8654358156064d6338d4ded813b011f7aee20635e362b16602fd00aad +DIST autofs-5.0.4-zero-s_magic-is-valid.patch 1320 RMD160 17b727128f589c744ece5cc6c8b3fccf0926fefb SHA1 4cc9d2213aa83b5e829c563c055cf6782782c4d1 SHA256 dc126f69203c6c486fecf42508b2c995ee4a8e0a26b01b97112dc5c2dfe9f547 +DIST autofs-5.0.4.tar.bz2 303863 RMD160 00708143c56b440fa0c7589c2d0d9170334e7c3e SHA1 0a50408ba2c1f6d27f3a448edc70f2395b6566b5 SHA256 631fe1a3cdc11c66aaf356fc6c0b8e41dff45897c43bb536a29b432e89d8da1b +EBUILD autofs-3.1.7-r5.ebuild 1739 RMD160 2aba32bed55900477131d080beb301b1271be1aa SHA1 8a6b81324f6f893dac00324432b1bcfbb321856a SHA256 4e5c9f0981fb87311e452be843f6426a694c03a613f7eb05c7360c6e43f147ae +EBUILD autofs-3.1.7-r6.ebuild 1774 RMD160 9054304132c27b09695f97457d257d0099b018a3 SHA1 394c17d7905c79dc37a6abc0cb9801854e82c067 SHA256 c3f954cba4d42f40b3a4d40dc81d3d74976c4bb5b16cf0be7da0c3e11e4cdccb +EBUILD autofs-4.1.3-r7.ebuild 2989 RMD160 30122862e83e133f7ca817b4e708bb1c25308afb SHA1 2019f28e7b27d5ba1fee9174adad26217f88c952 SHA256 68c70c48c90956dd80442eee04f9339a97f21abfa92ea960e5fa115baf742983 +EBUILD autofs-4.1.3-r9.ebuild 3101 RMD160 29c754ba5407258028cc372ee0d88193224f2ff9 SHA1 4fd3ec05fc46d05148c7ef32f97ee402bf2cb23f SHA256 a895a29abf8ee920cfa87764a30052f2d014d3003fc0421d430d0c2300e233bd +EBUILD autofs-5.0.3-r6.ebuild 4263 RMD160 3738a7d4e17bb2b3e8c402f7f0ef902ce3393847 SHA1 0d4fcee144a2440beba778c1b8a33a1103239521 SHA256 3b02a6593ca7a3d3f9da690e3328f6565da8081cdffaa3ea744fcbb159f2f7c2 +EBUILD autofs-5.0.4-r2.ebuild 2690 RMD160 2e06b0d476013352a24d317003bec8a72c8a0543 SHA1 c79ec2594cc6b9d27b40573383bcca7395dc35bc SHA256 a9ca5432abef194969d40ea041c506c345b21203d283130b166a14dc577c3602 +EBUILD autofs-5.0.4-r3.ebuild 4193 RMD160 820198e5016743bc58993274a8eb6216391391d5 SHA1 456a9c922ce2294f1e6fac4157f7452340ca6d08 SHA256 e6dff9174bb10ca08d15f2deb101298e3fca09926f973ceb01e42850b3c5b944 +EBUILD autofs-5.0.4-r4.ebuild 4467 RMD160 fd8b8bf519bd585154c0216e387e2ffdef5c6e58 SHA1 de127e4e8946b9636ff0a51fab4c71a2fc940b92 SHA256 a3ebf1697a3bd3271f4c3186748d35b12389a94519418fdd310ae225c82e29b7 +EBUILD autofs-5.0.4-r5.ebuild 4802 RMD160 c4ba05c6d80421294f8d4d246e263709346898f8 SHA1 508696cabb8afd9e976ff4e5226f207d287e8267 SHA256 678b2ff4967e4f08d02475047e1a1c08f11176f5c0dbf0e8aea8672551632428 +EBUILD autofs-5.0.4.ebuild 2520 RMD160 101142f25740c5c9c07178615834abdb9c0d36db SHA1 d965e8186c3d6d4075afab86cfb5500ca5295a0c SHA256 ae46e201d50517bbbbe3cf45dd6555a09d3c18a94ff041a89b5bd5d75a749826 +MISC ChangeLog 14180 RMD160 03246464428b6c2688f7feb79bc0300a234845b2 SHA1 3f6e132a087ec1d4ae0baf97b5f9b236aa4f4d69 SHA256 32ff7a686b37f33c61ded09ffaf1e24f49c6346bf706bede75c8302295a2b5b5 +MISC metadata.xml 258 RMD160 3e5f58364805d3e42d35bb18afabc84771edc6e3 SHA1 f889879c2dfdef80624ebebd791c1b944ff859ae SHA256 3a3251d51801f0288687f235aed354e0f68cb6f90775941ba03b83bfd71e5dae diff --git a/net-fs/autofs/autofs-3.1.7-r5.ebuild b/net-fs/autofs/autofs-3.1.7-r5.ebuild new file mode 100644 index 0000000..f8cbc5c --- /dev/null +++ b/net-fs/autofs/autofs-3.1.7-r5.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-3.1.7-r5.ebuild,v 1.17 2007/05/06 10:07:34 genone Exp $ + +IUSE="ldap" + +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI="mirror://kernel/linux/daemons/autofs/${P}.tar.bz2" + +DEPEND="ldap? ( >=net-nds/openldap-1.2 )" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="alpha ia64 ppc sparc x86" + +src_unpack() { + unpack ${A} + cd ${S} + patch -p0 < ${FILESDIR}/ldap_config.patch || die + + cd ${S}/include + patch -p0 < ${FILESDIR}/automount.diff || die + + cd ${S}/daemon + mv Makefile Makefile.orig + sed -e 's/LIBS \= \-ldl/LIBS \= \-ldl \-lnsl \$\{LIBLDAP\}/' Makefile.orig > Makefile +} + +src_compile() { + local myconf + use ldap || myconf="--without-openldap" + + ./configure \ + --host=${HOST} \ + --prefix=/usr \ + ${myconf} || die + make || die +} + +src_install() { + into /usr + dosbin daemon/automount + insinto /usr/lib/autofs + insopts -m 755 + doins modules/*.so + + dodoc COPYING COPYRIGHT NEWS README* TODO + cd man + doman auto.master.5 autofs.5 autofs.8 automount.8 + + cd ../samples + dodir /etc/autofs + cp ${FILESDIR}/auto.master ${D}/etc/autofs + cp ${FILESDIR}/auto.misc ${D}/etc/autofs + + exeinto /etc/init.d ; newexe ${FILESDIR}/autofs.rc8 autofs + insinto /etc/conf.d ; newins ${FILESDIR}/autofs.confd autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." + elog + elog "Also the normal autofs status has been renamed stats" + elog "as there is already a predefined Gentoo status" +} diff --git a/net-fs/autofs/autofs-3.1.7-r6.ebuild b/net-fs/autofs/autofs-3.1.7-r6.ebuild new file mode 100644 index 0000000..4222212 --- /dev/null +++ b/net-fs/autofs/autofs-3.1.7-r6.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-3.1.7-r6.ebuild,v 1.7 2007/05/06 10:07:34 genone Exp $ + +inherit eutils + +IUSE="ldap" + +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI="mirror://kernel/linux/daemons/${PN}/${P}.tar.bz2" + +DEPEND="ldap? ( >=net-nds/openldap-1.2 )" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~ppc ~sparc ~x86" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/ldap_config.patch || die "ldap patch died" + + cd ${S}/include + epatch ${FILESDIR}/automount.diff || die "automount patch died" + + cd ${S} + autoconf + + cd ${S}/daemon + sed -i 's/LIBS \= \-ldl/LIBS \= \-ldl \-lnsl \$\{LIBLDAP\}/' Makefile +} + +src_compile() { + local myconf + use ldap || myconf="--without-openldap" + + ./configure \ + --host=${HOST} \ + --prefix=/usr \ + ${myconf} || die + make || die "make failed" +} + +src_install() { + into /usr + dosbin daemon/automount + insinto /usr/lib/autofs + insopts -m 755 + doins modules/*.so + + dodoc COPYING COPYRIGHT NEWS README* TODO + cd man + doman auto.master.5 autofs.5 autofs.8 automount.8 + + cd ../samples + dodir /etc/autofs + cp ${FILESDIR}/auto.master ${D}/etc/autofs + cp ${FILESDIR}/auto.misc ${D}/etc/autofs + + exeinto /etc/init.d ; newexe ${FILESDIR}/autofs.rc8 autofs + insinto /etc/conf.d ; newins ${FILESDIR}/autofs.confd autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." + elog + elog "Also the normal autofs status has been renamed stats" + elog "as there is already a predefined Gentoo status" +} diff --git a/net-fs/autofs/autofs-4.1.3-r7.ebuild b/net-fs/autofs/autofs-4.1.3-r7.ebuild new file mode 100644 index 0000000..92c57df --- /dev/null +++ b/net-fs/autofs/autofs-4.1.3-r7.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-4.1.3-r7.ebuild,v 1.6 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib + +IUSE="ldap" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v4" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2 + ${SRC_URI_BASE}/${P}-strict.patch + ${SRC_URI_BASE}/${P}-mtab_lock.patch + ${SRC_URI_BASE}/${P}-bad_chdir.patch + ${SRC_URI_BASE}/${P}-non_block_ping.patch + ${SRC_URI_BASE}/${P}-sock-leak-fix.patch + ${SRC_URI_BASE}/${P}-replicated_server_select.patch + mirror://gentoo/${P}-miscfixes.patch.gz" +DEPEND="ldap? ( >=net-nds/openldap-2.0 )" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86" + +src_unpack() { + unpack ${P}.tar.bz2 + PATCH_LIST="${P}-strict.patch ${P}-mtab_lock.patch ${P}-bad_chdir.patch ${P}-non_block_ping.patch ${P}-sock-leak-fix.patch ${P}-replicated_server_select.patch ${P}-miscfixes.patch.gz" + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch ${DISTDIR}/${i} + done + + # Upstream version of this patch is incorrect + epatch "${FILESDIR}"/${P}-signal-race-fix.patch + + cd ${S} + autoconf || die "Autoconf failed" + + cd ${S}/daemon + sed -i 's/LIBS \= \-ldl/LIBS \= \-ldl \-lnsl \$\{LIBLDAP\}/' Makefile \ + || die "LIBLDAP change failed" + + cd ${S}/lib + sed -i '/^listmount.o:/s,$, mount.h,g' Makefile \ + || die "Failed to fix dependancies" +} + +src_compile() { + local myconf + use ldap || myconf="--without-openldap" + + econf ${myconf} || die + sed -i -e '/^\(CFLAGS\|CXXFLAGS\|LDFLAGS\)[[:space:]]*=/d' Makefile.rules || die "Failed to remove (C|CXX|LD)FLAGS" + emake || die "make failed" +} + +src_install() { + into /usr + dosbin daemon/automount + exeinto /usr/$(get_libdir)/autofs + doexe modules/*.so + + dodoc COPYING COPYRIGHT NEWS README* TODO CHANGELOG CREDITS + cd ${S}/samples + docinto samples ; dodoc auto.misc auto.master + cd ${S}/man + sed -i 's:\/etc\/:\/etc\/autofs\/:g' *.8 *.5 *.in || die "Failed to update path in manpages" + doman auto.master.5 autofs.5 autofs.8 automount.8 + + insinto /etc/autofs ; doins ${FILESDIR}/auto.master + insinto /etc/autofs ; doins ${FILESDIR}/auto.misc + exeinto /etc/autofs ; doexe ${FILESDIR}/auto.net # chmod 755 is important! + + newinitd ${FILESDIR}/autofs.rc11 autofs + newconfd ${FILESDIR}/autofs.confd9 autofs + if use ldap; then + cd ${S}/samples + docinto samples ; dodoc ldap* auto.master.ldap + insinto /etc/openldap/schema ; doins autofs.schema + exeinto /usr/$(get_libdir)/autofs ; doexe autofs-ldap-auto-master + fi +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." + elog + elog "Also the normal autofs status has been renamed stats" + elog "as there is already a predefined Gentoo status" +} diff --git a/net-fs/autofs/autofs-4.1.3-r9.ebuild b/net-fs/autofs/autofs-4.1.3-r9.ebuild new file mode 100644 index 0000000..d02e2b3 --- /dev/null +++ b/net-fs/autofs/autofs-4.1.3-r9.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-4.1.3-r9.ebuild,v 1.2 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib + +IUSE="ldap" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v4" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2 + ${SRC_URI_BASE}/${P}-strict.patch + ${SRC_URI_BASE}/${P}-mtab_lock.patch + ${SRC_URI_BASE}/${P}-bad_chdir.patch + ${SRC_URI_BASE}/${P}-non_block_ping.patch + ${SRC_URI_BASE}/${P}-sock-leak-fix.patch + ${SRC_URI_BASE}/${P}-replicated_server_select.patch + mirror://gentoo/${P}-miscfixes.patch.gz" +DEPEND="ldap? ( >=net-nds/openldap-2.0 )" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +src_unpack() { + unpack ${P}.tar.bz2 + PATCH_LIST="${P}-strict.patch ${P}-mtab_lock.patch ${P}-bad_chdir.patch ${P}-non_block_ping.patch ${P}-sock-leak-fix.patch ${P}-replicated_server_select.patch ${P}-miscfixes.patch.gz" + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch ${DISTDIR}/${i} + done + + # Upstream version of this patch is incorrect + epatch "${FILESDIR}"/${P}-signal-race-fix.patch + + cd "${S}" + autoconf || die "Autoconf failed" + + cd "${S}"/daemon + sed -i 's/LIBS \= \-ldl/LIBS \= \-ldl \-lnsl \$\{LIBLDAP\}/' Makefile \ + || die "LIBLDAP change failed" + + cd "${S}"/lib + sed -i '/^listmount.o:/s,$, mount.h,g' Makefile \ + || die "Failed to fix dependancies" +} + +src_compile() { + local myconf + use ldap || myconf="--without-openldap" + + econf ${myconf} || die + sed -i -e '/^\(CFLAGS\|CXXFLAGS\|LDFLAGS\)[[:space:]]*=/d' Makefile.rules || die "Failed to remove (C|CXX|LD)FLAGS" + # fixes segfaults on startup on amd64 + use amd64 && CFLAGS="${CFLAGS} -DLDAP_DEPRECATED" + emake || die "make failed" +} + +src_install() { + into /usr + dosbin daemon/automount + exeinto /usr/$(get_libdir)/autofs + doexe modules/*.so + + dodoc COPYRIGHT NEWS README* TODO CHANGELOG CREDITS + cd "${S}"/samples + docinto samples ; dodoc auto.misc auto.master + cd "${S}"/man + sed -i 's:\/etc\/:\/etc\/autofs\/:g' *.8 *.5 *.in || die "Failed to update path in manpages" + doman auto.master.5 autofs.5 autofs.8 automount.8 + + insinto /etc/autofs ; doins "${FILESDIR}"/auto.master + insinto /etc/autofs ; doins "${FILESDIR}"/auto.misc + exeinto /etc/autofs ; doexe "${FILESDIR}"/auto.net # chmod 755 is important! + + newinitd "${FILESDIR}"/autofs.rc14 autofs + newconfd "${FILESDIR}"/autofs.confd9 autofs + if use ldap; then + cd "${S}"/samples + docinto samples ; dodoc ldap* auto.master.ldap + insinto /etc/openldap/schema ; doins autofs.schema + exeinto /usr/$(get_libdir)/autofs ; doexe autofs-ldap-auto-master + fi +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." + elog + elog "Also the normal autofs status has been renamed stats" + elog "as there is already a predefined Gentoo status" +} diff --git a/net-fs/autofs/autofs-5.0.3-r6.ebuild b/net-fs/autofs/autofs-5.0.3-r6.ebuild new file mode 100644 index 0000000..2e3d67e --- /dev/null +++ b/net-fs/autofs/autofs-5.0.3-r6.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.3-r6.ebuild,v 1.8 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib autotools + +IUSE="ldap sasl" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v5" +# This list is taken directly from http://kernel.org/pub/linux/daemons/autofs/v5/patch_order-5.0.3 +# Please do not modify the order +PATCH_LIST=" + ${P}-ldap-page-control-configure-fix.patch + ${P}-xfn-not-supported.patch + ${P}-basedn-with-spaces-fix-3.patch + ${P}-nfs4-tcp-only.patch + ${P}-correct-ldap-lib.patch + ${P}-dont-fail-on-empty-master-fix-2.patch + ${P}-expire-works-too-hard.patch + ${P}-unlink-mount-return-fix.patch + ${P}-update-linux-auto_fs4-h.patch + ${P}-expire-works-too-hard-update.patch + ${P}-expire-works-too-hard-update-2.patch + ${P}-handle-zero-length-nis-key.patch + ${PN}-5.0.2-init-cb-on-load.patch + ${P}-map-type-in-map-name.patch + ${P}-mount-thread-create-cond-handling.patch + ${P}-check-for-kernel-automount.patch + ${P}-nss-source-any.patch + ${P}-dont-abuse-ap-ghost-field.patch + ${P}-lookup-next-soucre-stale-entry.patch + ${P}-remove-redundant-dns-name-lookups.patch + ${P}-mount-thread-create-cond-handling-fix.patch + ${P}-allow-dir-create-on-nfs-root.patch + ${P}-check-direct-path-len.patch + ${P}-fix-get-user-info-check.patch + ${P}-fix-couple-of-memory-leaks.patch + ${P}-override-is-running-check.patch + ${P}-dont-use-proc-for-is-running-check.patch + ${P}-fix-included-browse-map-not-found.patch + ${P}-fix-multi-source-messages.patch + ${P}-clear-stale-on-map-read.patch + ${P}-fix-proximity-other-timeout.patch + ${P}-refactor-mount-request-vars.patch + ${P}-make-handle_mounts-startup-cond-distinct.patch + ${P}-submount-shutdown-recovery-12.patch + ${P}-dont-block-on-expire.patch + ${P}-add-umount_wait-parameter.patch + ${P}-fix-multi-mount-race.patch + ${P}-submount-shutdown-recovery-12-fix.patch + ${P}-fix-nfs4-colon-escape.patch + ${P}-check-replicated-list-after-probe.patch + ${P}-add-replicated-debug-logging.patch + ${P}-update-replicated-doco.patch + ${P}-use-dev-urandom.patch + ${P}-mtab-as-proc-mounts.patch + ${P}-fix-ifc-buff-size.patch + ${P}-fix-percent-hack.patch + ${P}-fix-ifc-buff-size-fix.patch + ${P}-mtab-as-proc-mounts-fix.patch" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2" +for i in ${PATCH_LIST} ; do + SRC_URI="${SRC_URI} ${SRC_URI_BASE}/${i}" +done ; +DEPEND="ldap? ( >=net-nds/openldap-2.0 ) + sasl? ( virtual/krb5 )" + # currently, sasl code assumes the presence of kerberosV +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86" + +src_unpack() { + unpack ${P}.tar.bz2 + for i in ${PATCH_LIST}; do + cp ${DISTDIR}/${i} ${T} + done + patch "${T}"/${P}-map-type-in-map-name.patch \ + < "${FILESDIR}"/${P}-map-patch-fix.patch || die "failed to patch" + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch ${T}/${i} + rm -f ${T}/${i} + done + + # fixes bug #210762 + epatch "${FILESDIR}"/${P}-heimdal.patch + + cd "${S}" + + # # use CC and CFLAGS from environment (bug #154797) + # write these values in Makefile.conf + (echo "# Use the compiler and cflags determined by configure"; + echo "CC := @CC@"; echo "CFLAGS := @CFLAGS@") >> Makefile.conf.in + # make sure Makefile.conf is parsed after Makefile.rules + sed -ni '/include Makefile.conf/{x; n; G}; p' Makefile + sed -i 's/^\(CC\|CXX\).*//' Makefile.rules + sed -i 's/^CFLAGS=-fPIE.*//' configure.in + + # do not include <nfs/nfs.h>, rather <linux/nfs.h>, + # as the former is a lame header for the latter (bug #157968) + sed -i 's@nfs/nfs.h@linux/nfs.h@' include/rpc_subs.h + + eautoreconf || die "Autoconf failed" +} + +src_compile() { + CFLAGS="${CFLAGS}" \ + econf \ + $(use_with ldap openldap) \ + $(use_with sasl) \ + --enable-ignore-busy \ + || die "configure failed" + + emake DONTSTRIP=1 || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + newinitd "${FILESDIR}"/autofs5.rc1 autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." +} diff --git a/net-fs/autofs/autofs-5.0.4-r2.ebuild b/net-fs/autofs/autofs-5.0.4-r2.ebuild new file mode 100644 index 0000000..489d62d --- /dev/null +++ b/net-fs/autofs/autofs-5.0.4-r2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.4-r2.ebuild,v 1.2 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib autotools + +IUSE="ldap sasl" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v5" +# This list is taken directly from http://kernel.org/pub/linux/daemons/autofs/v5/patch_order-5.0.3 +# Please do not modify the order +PATCH_LIST=" + ${P}-fix-dumb-libxml2-check.patch + ${P}-expire-specific-submount-only.patch + ${P}-fix-negative-cache-non-existent-key.patch + ${P}-fix-ldap-detection.patch + ${P}-use-CLOEXEC-flag.patch + ${P}-fix-select-fd-limit.patch + ${P}-make-hash-table-scale-to-thousands-of-entries.patch + ${P}-fix-quoted-mess.patch" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2" +for i in ${PATCH_LIST} ; do + SRC_URI="${SRC_URI} ${SRC_URI_BASE}/${i}" +done ; +DEPEND="ldap? ( >=net-nds/openldap-2.0 ) + sasl? ( virtual/krb5 )" + # currently, sasl code assumes the presence of kerberosV +RDEPEND="${DEPEND}" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +src_unpack() { + unpack ${P}.tar.bz2 + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch "${DISTDIR}"/${i} + done + + cd "${S}" + + # fixes bug #210762 + epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch + + # fixes bugs #253412 and #247969 + epatch "${FILESDIR}"/${P}-user-ldflags-and-as-needed.patch + + # # use CC and CFLAGS from environment (bug #154797) + # write these values in Makefile.conf + (echo "# Use the compiler and cflags determined by configure"; + echo "CC := @CC@"; echo "CFLAGS := @CFLAGS@") >> Makefile.conf.in + # make sure Makefile.conf is parsed after Makefile.rules + sed -ni '/include Makefile.conf/{x; n; G}; p' Makefile + sed -i 's/^\(CC\|CXX\).*//' Makefile.rules + sed -i 's/^CFLAGS=-fPIE.*//' configure.in + + # do not include <nfs/nfs.h>, rather <linux/nfs.h>, + # as the former is a lame header for the latter (bug #157968) + sed -i 's@nfs/nfs.h@linux/nfs.h@' include/rpc_subs.h + + eautoreconf || die "Autoconf failed" +} + +src_compile() { + CFLAGS="${CFLAGS}" \ + econf \ + $(use_with ldap openldap) \ + $(use_with sasl) \ + --enable-ignore-busy \ + || die "configure failed" + + emake DONTSTRIP=1 || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + newinitd "${FILESDIR}"/autofs5.rc1 autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." +} diff --git a/net-fs/autofs/autofs-5.0.4-r3.ebuild b/net-fs/autofs/autofs-5.0.4-r3.ebuild new file mode 100644 index 0000000..f9cd4f9 --- /dev/null +++ b/net-fs/autofs/autofs-5.0.4-r3.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.4-r3.ebuild,v 1.2 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib autotools + +IUSE="ldap sasl" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v5" +# This list is taken directly from http://kernel.org/pub/linux/daemons/autofs/v5/patch_order-5.0.3 +# Please do not modify the order +PATCH_LIST=" + ${P}-fix-dumb-libxml2-check.patch + ${P}-expire-specific-submount-only.patch + ${P}-fix-negative-cache-non-existent-key.patch + ${P}-fix-ldap-detection.patch + ${P}-use-CLOEXEC-flag.patch + ${P}-fix-select-fd-limit.patch + ${P}-make-hash-table-scale-to-thousands-of-entries.patch + ${P}-fix-quoted-mess.patch + ${P}-use-CLOEXEC-flag-setmntent.patch + ${P}-fix-hosts-map-use-after-free.patch + ${P}-uris-list-locking-fix.patch + ${P}-renew-sasl-creds-upon-reconnect-fail.patch + ${P}-library-reload-fix-update.patch + ${P}-force-unlink-umount.patch + ${P}-always-read-file-maps.patch + ${P}-code-analysis-corrections.patch + ${P}-make-MAX_ERR_BUF-and-PARSE_MAX_BUF-use-easier-to-audit.patch + ${P}-easy-alloca-replacements.patch + ${P}-configure-libtirpc.patch + ${P}-ipv6-name-and-address-support.patch + ${P}-ipv6-parse.patch + ${P}-add-missing-changelog-entries.patch + ${P}-use-CLOEXEC-flag-setmntent-include-fix.patch + ${P}-easy-alloca-replacements-fix.patch + ${P}-libxml2-workaround-fix.patch + ${P}-configure-libtirpc-fix.patch + ${P}-add-nfs-mount-proto-default-conf-option.patch + ${P}-fix-bad-token-declare.patch + ${P}-fix-return-start-status-on-fail.patch + ${P}-fix-double-free-in-expire_proc.patch + ${P}-another-easy-alloca-replacements-fix.patch + ${P}-add-lsb-init-script-parameter-block.patch + ${P}-always-read-file-maps-fix.patch + ${P}-use-misc-device.patch + ${P}-fix-restorecon.patch + ${P}-clear-rpc-client-on-lookup-fail.patch + ${P}-fix-lsb-init-script-header.patch + ${P}-fix-memory-leak-reading-ldap-master.patch + ${P}-fix-st_remove_tasks-locking.patch + ${P}-reset-flex-scanner-when-setting-buffer.patch + ${P}-zero-s_magic-is-valid.patch + ${P}-use-percent-hack-for-master.patch + ${P}-use-intr-as-hosts-mount-default.patch + ${P}-fix-kernel-includes.patch + ${P}-dont-umount-existing-direct-mount-on-reread.patch" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2" +for i in ${PATCH_LIST} ; do + SRC_URI="${SRC_URI} ${SRC_URI_BASE}/${i}" +done ; +DEPEND="ldap? ( >=net-nds/openldap-2.0 ) + sasl? ( virtual/krb5 )" + # currently, sasl code assumes the presence of kerberosV +RDEPEND="${DEPEND}" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +src_unpack() { + unpack ${P}.tar.bz2 + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch "${DISTDIR}"/${i} + done + + cd "${S}" + + # fixes bug #210762 + epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch + + # fixes bugs #253412 and #247969 + epatch "${FILESDIR}"/${P}-user-ldflags-and-as-needed-v2.patch + + # # use CC and CFLAGS from environment (bug #154797) + # write these values in Makefile.conf + (echo "# Use the compiler and cflags determined by configure"; + echo "CC := @CC@"; echo "CFLAGS := @CFLAGS@") >> Makefile.conf.in + # make sure Makefile.conf is parsed after Makefile.rules + sed -ni '/include Makefile.conf/{x; n; G}; p' Makefile + sed -i 's/^\(CC\|CXX\).*//' Makefile.rules + sed -i 's/^CFLAGS=-fPIE.*//' configure.in + + # do not include <nfs/nfs.h>, rather <linux/nfs.h>, + # as the former is a lame header for the latter (bug #157968) + sed -i 's@nfs/nfs.h@linux/nfs.h@' include/rpc_subs.h + + eautoreconf || die "Autoconf failed" +} + +src_compile() { + CFLAGS="${CFLAGS}" \ + econf \ + $(use_with ldap openldap) \ + $(use_with sasl) \ + --enable-ignore-busy \ + || die "configure failed" + + emake DONTSTRIP=1 || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + newinitd "${FILESDIR}"/autofs5.rc1 autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." +} diff --git a/net-fs/autofs/autofs-5.0.4-r4.ebuild b/net-fs/autofs/autofs-5.0.4-r4.ebuild new file mode 100644 index 0000000..1039f52 --- /dev/null +++ b/net-fs/autofs/autofs-5.0.4-r4.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.4-r4.ebuild,v 1.2 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib autotools + +IUSE="ldap sasl" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v5" +# This list is taken directly from http://kernel.org/pub/linux/daemons/autofs/v5/patch_order-5.0.3 +# Please do not modify the order +PATCH_LIST=" + ${P}-fix-dumb-libxml2-check.patch + ${P}-expire-specific-submount-only.patch + ${P}-fix-negative-cache-non-existent-key.patch + ${P}-fix-ldap-detection.patch + ${P}-use-CLOEXEC-flag.patch + ${P}-fix-select-fd-limit.patch + ${P}-make-hash-table-scale-to-thousands-of-entries.patch + ${P}-fix-quoted-mess.patch + ${P}-use-CLOEXEC-flag-setmntent.patch + ${P}-fix-hosts-map-use-after-free.patch + ${P}-uris-list-locking-fix.patch + ${P}-renew-sasl-creds-upon-reconnect-fail.patch + ${P}-library-reload-fix-update.patch + ${P}-force-unlink-umount.patch + ${P}-always-read-file-maps.patch + ${P}-code-analysis-corrections.patch + ${P}-make-MAX_ERR_BUF-and-PARSE_MAX_BUF-use-easier-to-audit.patch + ${P}-easy-alloca-replacements.patch + ${P}-configure-libtirpc.patch + ${P}-ipv6-name-and-address-support.patch + ${P}-ipv6-parse.patch + ${P}-add-missing-changelog-entries.patch + ${P}-use-CLOEXEC-flag-setmntent-include-fix.patch + ${P}-easy-alloca-replacements-fix.patch + ${P}-libxml2-workaround-fix.patch + ${P}-configure-libtirpc-fix.patch + ${P}-add-nfs-mount-proto-default-conf-option.patch + ${P}-fix-bad-token-declare.patch + ${P}-fix-return-start-status-on-fail.patch + ${P}-fix-double-free-in-expire_proc.patch + ${P}-another-easy-alloca-replacements-fix.patch + ${P}-add-lsb-init-script-parameter-block.patch + ${P}-always-read-file-maps-fix.patch + ${P}-use-misc-device.patch + ${P}-fix-restorecon.patch + ${P}-clear-rpc-client-on-lookup-fail.patch + ${P}-fix-lsb-init-script-header.patch + ${P}-fix-memory-leak-reading-ldap-master.patch + ${P}-fix-st_remove_tasks-locking.patch + ${P}-reset-flex-scanner-when-setting-buffer.patch + ${P}-zero-s_magic-is-valid.patch + ${P}-use-percent-hack-for-master.patch + ${P}-use-intr-as-hosts-mount-default.patch + ${P}-fix-kernel-includes.patch + ${P}-dont-umount-existing-direct-mount-on-reread.patch + ${P}-library-reload-fix-update-fix.patch + ${P}-improve-manual-umount-recovery.patch + ${P}-dont-fail-on-ipv6-address-adding-host.patch + ${P}-always-read-file-maps-multi-map-fix.patch + ${P}-always-read-file-maps-key-lookup-fixes.patch + ${P}-use-srv-query-for-domain-dn.patch" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2" +for i in ${PATCH_LIST} ; do + SRC_URI="${SRC_URI} ${SRC_URI_BASE}/${i}" +done ; +DEPEND="ldap? ( >=net-nds/openldap-2.0 ) + sasl? ( virtual/krb5 )" + # currently, sasl code assumes the presence of kerberosV +RDEPEND="${DEPEND}" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +src_unpack() { + unpack ${P}.tar.bz2 + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch "${DISTDIR}"/${i} + done + + cd "${S}" + + # fixes bug #210762 + epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch + + # fixes bugs #253412 and #247969 + epatch "${FILESDIR}"/${P}-user-ldflags-and-as-needed-v2.patch + + # # use CC and CFLAGS from environment (bug #154797) + # write these values in Makefile.conf + (echo "# Use the compiler and cflags determined by configure"; + echo "CC := @CC@"; echo "CFLAGS := @CFLAGS@") >> Makefile.conf.in + # make sure Makefile.conf is parsed after Makefile.rules + sed -ni '/include Makefile.conf/{x; n; G}; p' Makefile + sed -i 's/^\(CC\|CXX\).*//' Makefile.rules + sed -i 's/^CFLAGS=-fPIE.*//' configure.in + + # do not include <nfs/nfs.h>, rather <linux/nfs.h>, + # as the former is a lame header for the latter (bug #157968) + sed -i 's@nfs/nfs.h@linux/nfs.h@' include/rpc_subs.h + + eautoreconf || die "Autoconf failed" +} + +src_compile() { + CFLAGS="${CFLAGS}" \ + econf \ + $(use_with ldap openldap) \ + $(use_with sasl) \ + --enable-ignore-busy \ + || die "configure failed" + + emake DONTSTRIP=1 || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + newinitd "${FILESDIR}"/autofs5.rc1 autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." +} diff --git a/net-fs/autofs/autofs-5.0.4-r5.ebuild b/net-fs/autofs/autofs-5.0.4-r5.ebuild new file mode 100644 index 0000000..f960905 --- /dev/null +++ b/net-fs/autofs/autofs-5.0.4-r5.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.4-r5.ebuild,v 1.2 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib autotools + +IUSE="ldap sasl" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v5" +# This list is taken directly from http://kernel.org/pub/linux/daemons/autofs/v5/patch_order-${PV} +# Please do not modify the order +PATCH_LIST=" + ${P}-fix-dumb-libxml2-check.patch + ${P}-expire-specific-submount-only.patch + ${P}-fix-negative-cache-non-existent-key.patch + ${P}-fix-ldap-detection.patch + ${P}-use-CLOEXEC-flag.patch + ${P}-fix-select-fd-limit.patch + ${P}-make-hash-table-scale-to-thousands-of-entries.patch + ${P}-fix-quoted-mess.patch + ${P}-use-CLOEXEC-flag-setmntent.patch + ${P}-fix-hosts-map-use-after-free.patch + ${P}-uris-list-locking-fix.patch + ${P}-renew-sasl-creds-upon-reconnect-fail.patch + ${P}-library-reload-fix-update.patch + ${P}-force-unlink-umount.patch + ${P}-always-read-file-maps.patch + ${P}-code-analysis-corrections.patch + ${P}-make-MAX_ERR_BUF-and-PARSE_MAX_BUF-use-easier-to-audit.patch + ${P}-easy-alloca-replacements.patch + ${P}-configure-libtirpc.patch + ${P}-ipv6-name-and-address-support.patch + ${P}-ipv6-parse.patch + ${P}-add-missing-changelog-entries.patch + ${P}-use-CLOEXEC-flag-setmntent-include-fix.patch + ${P}-easy-alloca-replacements-fix.patch + ${P}-libxml2-workaround-fix.patch + ${P}-configure-libtirpc-fix.patch + ${P}-add-nfs-mount-proto-default-conf-option.patch + ${P}-fix-bad-token-declare.patch + ${P}-fix-return-start-status-on-fail.patch + ${P}-fix-double-free-in-expire_proc.patch + ${P}-another-easy-alloca-replacements-fix.patch + ${P}-add-lsb-init-script-parameter-block.patch + ${P}-always-read-file-maps-fix.patch + ${P}-use-misc-device.patch + ${P}-fix-restorecon.patch + ${P}-clear-rpc-client-on-lookup-fail.patch + ${P}-fix-lsb-init-script-header.patch + ${P}-fix-memory-leak-reading-ldap-master.patch + ${P}-fix-st_remove_tasks-locking.patch + ${P}-reset-flex-scanner-when-setting-buffer.patch + ${P}-zero-s_magic-is-valid.patch + ${P}-use-percent-hack-for-master.patch + ${P}-use-intr-as-hosts-mount-default.patch + ${P}-fix-kernel-includes.patch + ${P}-dont-umount-existing-direct-mount-on-reread.patch + ${P}-library-reload-fix-update-fix.patch + ${P}-improve-manual-umount-recovery.patch + ${P}-dont-fail-on-ipv6-address-adding-host.patch + ${P}-always-read-file-maps-multi-map-fix.patch + ${P}-always-read-file-maps-key-lookup-fixes.patch + ${P}-use-srv-query-for-domain-dn.patch + ${P}-fix-incorrect-dclist-free.patch + ${P}-srv-lookup-handle-endian.patch + ${P}-library-reload-fix-update-fix-2.patch + ${P}-fix-notify-mount-message-path.patch + ${P}-remount-we-created-mount-point-fix.patch + ${P}-fix-double-free-in-do_sasl_bind.patch + ${P}-manual-umount-recovery-fixes.patch + ${P}-fix-map-type-info-parse-error.patch" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2" +for i in ${PATCH_LIST} ; do + SRC_URI="${SRC_URI} ${SRC_URI_BASE}/${i}" +done ; +DEPEND="ldap? ( >=net-nds/openldap-2.0 ) + sasl? ( virtual/krb5 )" + # currently, sasl code assumes the presence of kerberosV +RDEPEND="${DEPEND}" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +src_unpack() { + unpack ${P}.tar.bz2 + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch "${DISTDIR}"/${i} + done + + cd "${S}" + + # fixes bug #210762 + epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch + + # fixes bugs #253412 and #247969 + epatch "${FILESDIR}"/${P}-user-ldflags-and-as-needed-v2.patch + + # # use CC and CFLAGS from environment (bug #154797) + # write these values in Makefile.conf + (echo "# Use the compiler and cflags determined by configure"; + echo "CC := @CC@"; echo "CFLAGS := @CFLAGS@") >> Makefile.conf.in + # make sure Makefile.conf is parsed after Makefile.rules + sed -ni '/include Makefile.conf/{x; n; G}; p' Makefile + sed -i 's/^\(CC\|CXX\).*//' Makefile.rules + sed -i 's/^CFLAGS=-fPIE.*//' configure.in + + # do not include <nfs/nfs.h>, rather <linux/nfs.h>, + # as the former is a lame header for the latter (bug #157968) + sed -i 's@nfs/nfs.h@linux/nfs.h@' include/rpc_subs.h + + eautoreconf || die "Autoconf failed" +} + +src_compile() { + CFLAGS="${CFLAGS}" \ + econf \ + $(use_with ldap openldap) \ + $(use_with sasl) \ + --enable-ignore-busy \ + || die "configure failed" + + emake DONTSTRIP=1 || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + newinitd "${FILESDIR}"/autofs5.rc1 autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." +} diff --git a/net-fs/autofs/autofs-5.0.4.ebuild b/net-fs/autofs/autofs-5.0.4.ebuild new file mode 100644 index 0000000..6c19d6e --- /dev/null +++ b/net-fs/autofs/autofs-5.0.4.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/autofs-5.0.4.ebuild,v 1.2 2009/09/23 18:35:30 patrick Exp $ + +inherit eutils multilib autotools + +IUSE="ldap sasl" +DESCRIPTION="Kernel based automounter" +HOMEPAGE="http://www.linux-consulting.com/Amd_AutoFS/autofs.html" +SRC_URI_BASE="mirror://kernel/linux/daemons/${PN}/v5" +# This list is taken directly from http://kernel.org/pub/linux/daemons/autofs/v5/patch_order-5.0.3 +# Please do not modify the order +PATCH_LIST=" + ${P}-fix-dumb-libxml2-check.patch + ${P}-expire-specific-submount-only.patch + ${P}-fix-negative-cache-non-existent-key.patch + ${P}-fix-ldap-detection.patch" +SRC_URI="${SRC_URI_BASE}/${P}.tar.bz2" +for i in ${PATCH_LIST} ; do + SRC_URI="${SRC_URI} ${SRC_URI_BASE}/${i}" +done ; +DEPEND="ldap? ( >=net-nds/openldap-2.0 ) + sasl? ( virtual/krb5 )" + # currently, sasl code assumes the presence of kerberosV +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +src_unpack() { + unpack ${P}.tar.bz2 + for i in ${PATCH_LIST}; do + EPATCH_OPTS="-p1 -d ${S}" epatch "${DISTDIR}"/${i} + done + + cd "${S}" + + # fixes bug #210762 + epatch "${FILESDIR}"/${PN}-5.0.3-heimdal.patch + + # fixes bugs #253412 and #247969 + epatch "${FILESDIR}"/${P}-user-ldflags-and-as-needed.patch + + # # use CC and CFLAGS from environment (bug #154797) + # write these values in Makefile.conf + (echo "# Use the compiler and cflags determined by configure"; + echo "CC := @CC@"; echo "CFLAGS := @CFLAGS@") >> Makefile.conf.in + # make sure Makefile.conf is parsed after Makefile.rules + sed -ni '/include Makefile.conf/{x; n; G}; p' Makefile + sed -i 's/^\(CC\|CXX\).*//' Makefile.rules + sed -i 's/^CFLAGS=-fPIE.*//' configure.in + + # do not include <nfs/nfs.h>, rather <linux/nfs.h>, + # as the former is a lame header for the latter (bug #157968) + sed -i 's@nfs/nfs.h@linux/nfs.h@' include/rpc_subs.h + + eautoreconf || die "Autoconf failed" +} + +src_compile() { + CFLAGS="${CFLAGS}" \ + econf \ + $(use_with ldap openldap) \ + $(use_with sasl) \ + --enable-ignore-busy \ + || die "configure failed" + + emake DONTSTRIP=1 || die "make failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + newinitd "${FILESDIR}"/autofs5.rc1 autofs +} + +pkg_postinst() { + elog "Note: If you plan on using autofs for automounting" + elog "remote NFS mounts without having the NFS daemon running" + elog "please add portmap to your default run-level." +} diff --git a/net-fs/autofs/files/auto.master b/net-fs/autofs/files/auto.master new file mode 100644 index 0000000..fdabf5d --- /dev/null +++ b/net-fs/autofs/files/auto.master @@ -0,0 +1,9 @@ +# $Id: auto.master,v 1.3 2004/12/09 08:25:48 robbat2 Exp $ +# Sample auto.master file +# Format of this file: +# mountpoint map options +# For details of the format look at autofs(8). +#/net /etc/autofs/auto.net +#/misc /etc/autofs/auto.misc +#/home /etc/autofs/auto.home + diff --git a/net-fs/autofs/files/auto.misc b/net-fs/autofs/files/auto.misc new file mode 100644 index 0000000..254fa6b --- /dev/null +++ b/net-fs/autofs/files/auto.misc @@ -0,0 +1,7 @@ +# $Id: auto.misc,v 1.2 2002/10/27 05:21:15 bcowan Exp $ +# This is an automounter map and it has the following format +# key [ -mount-options-separated-by-comma ] location +# Details may be found in the autofs(5) manpage +#boot -fstype=ext2 :/dev/hda1 +#cd -fstype=iso9660,ro :/dev/cdrom +#floppy -fstype=auto :/dev/fd0 diff --git a/net-fs/autofs/files/auto.net b/net-fs/autofs/files/auto.net new file mode 100644 index 0000000..70e7f11 --- /dev/null +++ b/net-fs/autofs/files/auto.net @@ -0,0 +1,30 @@ +#!/bin/sh +# $Id: auto.net,v 1.4 2006/05/30 15:00:50 antarus Exp $ + +# This file must be executable to work! chmod 755! + +# Look at what a host is exporting to determine what we can mount. +# This is very simple, but it appears to work surprisingly well + +key="$1" + +# add "nosymlink" here if you want to suppress symlinking local filesystems +# add "nonstrict" to make it OK for some filesystems to not mount +opts="-fstype=nfs,hard,intr,nodev,nosuid,nonstrict" + +# Showmount comes in a number of names and varieties. "showmount" is +# typically an older version which accepts the '--no-headers' flag +# but ignores it. "kshowmount" is the newer version installed with knfsd, +# which both accepts and acts on the '--no-headers' flag. +#SHOWMOUNT="kshowmount --no-headers -e $key" +#SHOWMOUNT="showmount -e $key | tail -n +2" + +# Newer distributions get this right +SHOWMOUNT="/usr/sbin/showmount --no-headers -e $key" + +$SHOWMOUNT | LC_ALL=C sort -k 1 | \ + awk -v key="$key" -v opts="$opts" -- ' + BEGIN { ORS=""; first=1 } + { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 } + END { if (!first) print "\n"; else exit 1 } + ' diff --git a/net-fs/autofs/files/autofs-4.1.3-signal-race-fix.patch b/net-fs/autofs/files/autofs-4.1.3-signal-race-fix.patch new file mode 100644 index 0000000..217b9b1 --- /dev/null +++ b/net-fs/autofs/files/autofs-4.1.3-signal-race-fix.patch @@ -0,0 +1,15 @@ +--- autofs-4.1.3/daemon/automount.c.orig 2004-08-18 11:23:49.430470256 -0400 ++++ autofs-4.1.3/daemon/automount.c 2004-08-18 11:24:45.047015256 -0400 +@@ -848,10 +848,10 @@ static int st_prepare_shutdown(void) + alarm(0); + + /* Prevent any new mounts */ +- ap.state = ST_SHUTDOWN_PENDING; +- + sigprocmask(SIG_SETMASK, &lock_sigs, NULL); + ++ ap.state = ST_SHUTDOWN_PENDING; ++ + /* Unmount everything */ + exp = expire_proc(1); + diff --git a/net-fs/autofs/files/autofs-5.0.3-heimdal.patch b/net-fs/autofs/files/autofs-5.0.3-heimdal.patch new file mode 100644 index 0000000..707364d --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.3-heimdal.patch @@ -0,0 +1,35 @@ +--- autofs-5.0.3.orig/modules/cyrus-sasl.c 2008-04-28 16:17:03.000000000 +0200 ++++ autofs-5.0.3/modules/cyrus-sasl.c 2008-04-28 16:41:58.000000000 +0200 +@@ -66,6 +66,15 @@ + #endif + #endif + ++/** ++ * The type of a principal is different for MIT Krb5 and Heimdal. ++ * These macros are provided by Heimdal, and introduced here for MIT. ++ */ ++#ifndef krb5_realm_length ++#define krb5_realm_length(r) ((r).length) ++#define krb5_realm_data(r) ((r).data) ++#endif ++ + /* + * Once a krb5 credentials cache is setup, we need to set the KRB5CCNAME + * environment variable so that the library knows where to find it. +@@ -452,11 +461,11 @@ + + /* setup a principal for the ticket granting service */ + ret = krb5_build_principal_ext(ctxt->krb5ctxt, &tgs_princ, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->length, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->data, ++ krb5_realm_length(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), ++ krb5_realm_data(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), + strlen(KRB5_TGS_NAME), KRB5_TGS_NAME, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->length, +- krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)->data, ++ krb5_realm_length(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), ++ krb5_realm_data(*krb5_princ_realm(ctxt->krb5ctxt, krb5_client_princ)), + 0); + if (ret) { + error(logopt, + diff --git a/net-fs/autofs/files/autofs-5.0.3-map-patch-fix.patch b/net-fs/autofs/files/autofs-5.0.3-map-patch-fix.patch new file mode 100644 index 0000000..4336c8d --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.3-map-patch-fix.patch @@ -0,0 +1,71 @@ +--- autofs-5.0.3-map-type-in-map-name.patch.old 2008-04-28 17:47:07.000000000 +0200 ++++ autofs-5.0.3-map-type-in-map-name.patch 2008-04-01 05:57:45.000000000 +0200 +@@ -1,19 +1,6 @@ +-diff --git a/CHANGELOG b/CHANGELOG +-index af5a1b0..76f2477 100644 +---- a/CHANGELOG +-+++ b/CHANGELOG +-@@ -12,6 +12,7 @@ +- - update fix expire working harder than needed. +- - add missing check for zero length NIS key (Wengang Wang). +- - init SASL callbacks on every ldap lookup library load. +-+- fix incorrect match of map type name when included in map name. +- +- 14/01/2008 autofs-5.0.3 +- ----------------------- +-diff --git a/lib/master_tok.l b/lib/master_tok.l +-index b379940..4bbe033 100644 +---- a/lib/master_tok.l +-+++ b/lib/master_tok.l ++diff -up autofs-5.0.3/lib/master_tok.l.map-type-in-map-name autofs-5.0.3/lib/master_tok.l ++--- autofs-5.0.3/lib/master_tok.l.map-type-in-map-name 2008-04-01 11:14:00.000000000 +0800 +++++ autofs-5.0.3/lib/master_tok.l 2008-04-01 11:14:00.000000000 +0800 + @@ -77,6 +77,7 @@ int my_yyinput(char *, int); + char buff[1024]; + char *bptr; +@@ -22,7 +9,7 @@ + + %} + +-@@ -190,13 +191,27 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo ++@@ -190,13 +191,27 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|-- + {OPTWS}\\\n{OPTWS} {} + + {MULTI} { +@@ -39,9 +26,10 @@ + + } + } + +- {MTYPE} { ++- {MTYPE} { + - strcpy(master_lval.strtype, master_text); + - return(MAPTYPE); +++ {MTYPE}/({DNSERVERSTR}|{DNATTRSTR}=)? { + + tlen = master_leng - 1; + + if (bptr != buff && isblank(master_text[tlen])) { + + strncat(buff, master_text, tlen); +@@ -54,7 +42,7 @@ + } + + {MULTISEP} { return(DDASH); } +-@@ -226,7 +241,7 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo ++@@ -226,7 +241,7 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|-- + yyless(0); + } + +@@ -63,3 +51,15 @@ + BEGIN(DNSTR); + yyless(0); + } ++diff -up autofs-5.0.3/lib/master_parse.y.map-type-in-map-name autofs-5.0.3/lib/master_parse.y ++diff -up autofs-5.0.3/CHANGELOG.map-type-in-map-name autofs-5.0.3/CHANGELOG ++--- autofs-5.0.3/CHANGELOG.map-type-in-map-name 2008-04-01 11:14:00.000000000 +0800 +++++ autofs-5.0.3/CHANGELOG 2008-04-01 11:14:00.000000000 +0800 ++@@ -10,6 +10,7 @@ ++ - fix unlink of mount tree incorrectly causing autofs mount fail. ++ - add missing check for zero length NIS key (Wengang Wang). ++ - init SASL callbacks on every ldap lookup library load. +++- fix incorrect match of map type name when included in map name. ++ ++ 14/01/2008 autofs-5.0.3 ++ ----------------------- diff --git a/net-fs/autofs/files/autofs-5.0.4-user-ldflags-and-as-needed-v2.patch b/net-fs/autofs/files/autofs-5.0.4-user-ldflags-and-as-needed-v2.patch new file mode 100644 index 0000000..931ebf4 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.4-user-ldflags-and-as-needed-v2.patch @@ -0,0 +1,59 @@ +diff -ur autofs-5.0.4-old/Makefile.rules autofs-5.0.4/Makefile.rules +--- autofs-5.0.4-old/Makefile.rules 2009-04-27 10:54:19.000000000 +0200 ++++ autofs-5.0.4/Makefile.rules 2009-04-27 10:55:55.000000000 +0200 +@@ -24,16 +24,16 @@ + + ifdef DEBUG + CFLAGS ?= -g -Wall -DDEBUG +-LDFLAGS = -g ++AUTOFS_LDFLAGS = -g + STRIP = : + else + ifdef DONTSTRIP + CFLAGS ?= -O2 -g +-LDFLAGS = -g ++AUTOFS_LDFLAGS = -g + STRIP = : + else + CFLAGS ?= -O2 -Wall +-LDFLAGS = -s ++AUTOFS_LDFLAGS = -s + STRIP = strip --strip-debug + endif + endif +@@ -45,15 +45,14 @@ + SOLDFLAGS = -shared + + CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 +-LDFLAGS += -lpthread + + ifdef TIRPCLIB + CFLAGS += -I/usr/include/tirpc +-LDFLAGS += $(TIRPCLIB) ++AUTOFS_LDFLAGS += $(TIRPCLIB) + endif + + ifdef DMALLOCLIB +-LDFLAGS += $(DMALLOCLIB) ++AUTOFS_LDFLAGS += $(DMALLOCLIB) + endif + + # Standard rules +diff -ur autofs-5.0.4-old/daemon/Makefile autofs-5.0.4/daemon/Makefile +--- autofs-5.0.4-old/daemon/Makefile 2009-04-27 10:54:19.000000000 +0200 ++++ autofs-5.0.4/daemon/Makefile 2009-04-27 10:54:37.000000000 +0200 +@@ -20,12 +20,12 @@ + CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\" + CFLAGS += -DVERSION_STRING=\"$(version)\" + LDFLAGS += -rdynamic +-LIBS = -ldl ++LIBS = -ldl -lpthread + + all: automount + + automount: $(OBJS) $(AUTOFS_LIB) +- $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) ++ $(CC) $(AUTOFS_LDFLAGS) $(DAEMON_LDFLAGS) $(LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) + $(STRIP) automount + + clean: diff --git a/net-fs/autofs/files/autofs-5.0.4-user-ldflags-and-as-needed.patch b/net-fs/autofs/files/autofs-5.0.4-user-ldflags-and-as-needed.patch new file mode 100644 index 0000000..ba65059 --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.4-user-ldflags-and-as-needed.patch @@ -0,0 +1,66 @@ +1/2) Patch 177057 to bug #253412: use user ldflags, don't add pthreads through ldflags + +diff -ru a/Makefile.rules b/Makefile.rules +--- a/Makefile.rules 2009-01-01 21:54:02.000000000 -0600 ++++ b/Makefile.rules 2009-01-01 22:17:41.000000000 -0600 +@@ -24,16 +24,16 @@ + + ifdef DEBUG + CFLAGS ?= -g -Wall -DDEBUG +-LDFLAGS = -g ++AUTOFS_LDFLAGS = -g + STRIP = : + else + ifdef DONTSTRIP + CFLAGS ?= -O2 -g +-LDFLAGS = -g ++AUTOFS_LDFLAGS = -g + STRIP = : + else + CFLAGS ?= -O2 -Wall +-LDFLAGS = -s ++AUTOFS_LDFLAGS = -s + STRIP = strip --strip-debug + endif + endif +@@ -45,10 +45,9 @@ + SOLDFLAGS = -shared + + CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64 +-LDFLAGS += -lpthread + + ifdef DMALLOCLIB +-LDFLAGS += $(DMALLOCLIB) ++AUTOFS_LDFLAGS += $(DMALLOCLIB) + endif + + # Standard rules +diff -ru a/daemon/Makefile b/daemon/Makefile +--- a/daemon/Makefile 2009-01-01 22:14:10.000000000 -0600 ++++ b/daemon/Makefile 2009-01-01 22:24:03.000000000 -0600 +@@ -25,7 +25,7 @@ + all: automount + + automount: $(OBJS) $(AUTOFS_LIB) +- $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) ++ $(CC) $(AUTOFS_LDFLAGS) $(DAEMON_LDFLAGS) $(LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) + $(STRIP) automount + + clean: + + + +2/2) Patch 177056 to bug #247969: add -lpthread the correct way (removed from LDFLAGS in above patch) + +diff -ru a/daemon/Makefile b/daemon/Makefile +--- a/daemon/Makefile 2009-01-01 22:14:10.000000000 -0600 ++++ b/daemon/Makefile 2009-01-01 22:21:16.000000000 -0600 +@@ -20,7 +20,7 @@ + CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\" + CFLAGS += -DVERSION_STRING=\"$(version)\" + LDFLAGS += -rdynamic +-LIBS = -ldl ++LIBS = -ldl -lpthread + + all: automount + diff --git a/net-fs/autofs/files/autofs.confd b/net-fs/autofs/files/autofs.confd new file mode 100644 index 0000000..33a3d07 --- /dev/null +++ b/net-fs/autofs/files/autofs.confd @@ -0,0 +1,12 @@ +# Config file for /etc/init.d/autofs + +# +# e.g. localoptions='rsize=8192,wsize=8192' +# +localoptions='' + +# +# additional options for automount, ie. timeout +# +daemonoptions='--timeout 60' + diff --git a/net-fs/autofs/files/autofs.confd9 b/net-fs/autofs/files/autofs.confd9 new file mode 100644 index 0000000..51dcde4 --- /dev/null +++ b/net-fs/autofs/files/autofs.confd9 @@ -0,0 +1,29 @@ +# Config file for /etc/init.d/autofs + +# e.g. localoptions='rsize=8192,wsize=8192' +localoptions='' + +# additional options for automount, ie. timeout +daemonoptions='--timeout 60' + +# NIS +nis_mapname='auto.master' + +# LDAP +# By default autofs-ldap-auto-master will check the old style structure defined +# here, and if that fails, it will check the new style structure before +# failing. If this generates too much traffic for you, just change to use the +# new style here. +ldap_mapname='auto.master' +# This is the classic style: +ldap_map_oc='nisMap' +ldap_entry_oc='nisObject' +ldap_map_key='nisMapName' +ldap_entry_key='cn' +ldap_value='nisMapEntry' +# This is the new style: +##ldap_map_oc='automountMap' +##ldap_entry_oc='automount' +##ldap_map_key='ou' +##ldap_entry_key='cn' +##ldap_value='automountInformation' diff --git a/net-fs/autofs/files/autofs.rc10 b/net-fs/autofs/files/autofs.rc10 new file mode 100644 index 0000000..9e6b167 --- /dev/null +++ b/net-fs/autofs/files/autofs.rc10 @@ -0,0 +1,236 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc10,v 1.1 2005/03/15 04:18:38 robbat2 Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/autofs/auto.master, then a YP +# map with that name + +DAEMON=/usr/sbin/automount + +depend() { + need localmount + use ypbind nfs slapd portmap net +} + +opts="start stop status stats reload restart" + +# +# Check for all maps that are to be loaded +# +function getschemes() +{ + awk '/^automount:/{ $1="" ; gsub("\\[.*\\]","") ; print $0 }' /etc/nsswitch.conf +} + +function getfilemounts() +{ + if [ -f /etc/autofs/auto.master ] ; then + sed -e '/^#/d' -e '/^$/d' < /etc/autofs/auto.master + fi +} + +function getnismounts() +{ + /usr/bin/ypcat -k ${nis_mapname} 2> /dev/null | sed -e '/^#/d' -e '/^$/d' +} + +function getldapmounts() +{ + if [ -x /usr/lib/autofs/autofs-ldap-auto-master ]; then + /usr/lib/autofs/autofs-ldap-auto-master \ + -m ${ldap_map_oc} -e ${ldap_entry_oc} \ + -n ${ldap_map_key} -k ${ldap_entry_key} \ + -v ${ldap_value} 2> /dev/null + fi +} + +function getrawmounts() +{ + for scheme in `getschemes` ; do + case "$scheme" in + files) + getfilemounts + ;; + nis*) + getnismounts + ;; + ldap*) + getldapmounts + ;; + esac + done +} + + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +function getmounts() +{ + knownmaps=" " + getrawmounts | ( + while read dir map options + do + # These checks screen out duplicates and skip over directories + # where the map is '-'. + if [ ! -z "$dir" -a ! -z "$map" \ + -a x`echo "$map" | cut -c1` != 'x-' \ + -a "`echo "$knownmaps" | grep -w $dir/`" = "" ] + then + # If the options include a -t or --timeout parameter, then + # pull those particular options out. + # echo DAEMONOPTIONS OPTIONS $daemonoptions $options + allopts="$daemonoptions $options" + startupoptions= + + # there is no way to get all of these out in a single sed call that I'm aware of :-( + opt_timeout="$(echo ${allopts} | sed -n -e '/-t/s/.*--*t\(imeout\)*[[:space:]=]*\([0-9][0-9]*\).*$/--timeout \2/gp')" + opt_pidfile="$(echo ${allopts} | sed -n -e '/-p/s/.*--*p\(id-file\)*[[:space:]=]*\([^[:space:]]*\).*$/--pid-file \2/gp')" + opt_verbose="$(echo ${allopts} | sed -n -e '/-v/s/.*--*v\(erbose\)*.*$/--verbose/gp')" + opt_debug="$(echo ${allopts} | sed -n -e '/-d/s/.*--*d\(ebug\)*.*$/--debug/gp')" + opt_ghost="$(echo ${allopts} | sed -n -e '/-g/s/.*--*g\(host\)*.*$/--ghost/gp')" + + startupoptions="${opt_timeout} ${opt_pidfile} ${opt_verbose} ${opt_debug} ${opt_ghost}" + + + # Other option flags are intended for maps. + mapoptions="$(echo ${allopts} | sed \ + -e '/-t/{s/--*t\(imeout\)*[[:space:]=]*\([0-9][0-9]*\)//g }' \ + -e '/-p/{s/--*p\(id-file\)*[[:space:]=]*\([^[:space:]]*\)//g }' \ + -e '/-v/{s/--*v\(erbose\)*//g }' \ + -e '/-d/{s/--*d\(ebug\)*//g }' \ + -e '/-g/{s/--*g\(host\)*//g }' \ + -e 's/^[[:space:]]*//g' \ + -e 's/[[:space:]]*$//g')" + + # Break up the maptype and map, if the map type is specified + maptype="${map/:*}" + # Handle degenerate map specifiers + if [ "$maptype" = "$map" ] ; then + if [ -x "$map" ]; then + maptype="program" + elif [ -x "/etc/$map" ]; then + maptype="program" + map=`echo /etc/$map | sed 's^//^/^g'` + elif [ -f "$map" ]; then + maptype="file" + elif [ -f "/etc/$map" ]; then + maptype="file" + map=`echo /etc/$map | sed 's^//^/^g'` + elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then + maptype="$map" + map= + elif [ "$map" = "multi" ] ; then + maptype="$map" + map= + else + maptype=yp + map=`basename $map | sed -e s/^auto_home/auto.home/ -e s/^auto_mnt/auto.mnt/` + fi + fi + map="${map#*:}" + + #echo STARTUPOPTIONS $startupoptions > /tmp/debug + #echo DIR $dir >> /tmp/debug + #echo MAPTYPE $maptype >> /tmp/debug + #echo MAP $map >> /tmp/debug + #echo MAPOPTIONS $mapoptions >> /tmp/debug + #echo LOCALOPTIONS $localoptions >> /tmp/debug + + echo "$DAEMON $startupoptions $dir $maptype $map $mapoptions $localoptions" | sed -e 's/ / /g' -e 's/ / /g' + + # echo ------------------------ + fi + knownmaps=" $dir/ $knownmaps" + done + ) +} + + +start() { + ebegin "Starting automounter" + # Check that maps exist + if [ -z "$(getmounts)" ]; then + eend 1 "No automount maps defined" + exit 1 + fi + # ensure autofs support is loaded + grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs + if [ $? -ne 0 ]; then + eend 1 "No autofs support available" + exit 1 + fi + # Now go + getmounts | while read cmd timeout time mnt rest + do + #FIXME: this works but it really sucks + if echo $timeout|grep -v -- '--timeout' >/dev/null ; then + rest="$time $mnt $rest" + mnt="$timeout" + time="" + timeout="" + fi + + echo -n " $mnt" + pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec /usr/sbin/automount -- $timeout $time $mnt $rest + # + # Automount needs a '--pidfile' or '-p' option. + # For now we look for the pid ourself. + # + ps ax | grep "[0-9]:[0-9][0-9] /usr/sbin/automount $timeout $time \?$mnt" | ( + read pid rest + echo $pid > $pidfile + echo "$mnt $rest" >> $pidfile + ) + done + echo + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal 12 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + TMP=/var/run/autofs.tmp + getmounts >$TMP + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ "$pid" = "" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMP + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMP + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc11 b/net-fs/autofs/files/autofs.rc11 new file mode 100644 index 0000000..ad85f5b --- /dev/null +++ b/net-fs/autofs/files/autofs.rc11 @@ -0,0 +1,279 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc11,v 1.1 2005/03/15 04:18:38 robbat2 Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/autofs/auto.master, then a YP +# map with that name + +DAEMON=/usr/sbin/automount + +depend() { + need localmount + use ypbind nfs slapd portmap net +} + +opts="start stop status stats reload restart" + +# this file is used to avoid the subshell-die problem +TMPSRC=/var/run/autofs.tmp + +# +# Check for all maps that are to be loaded +# +function getschemes() +{ + awk '/^automount:/{ $1="" ; gsub("\\[.*\\]","") ; print $0 }' /etc/nsswitch.conf +} + +function getfilemounts() +{ + if [ -f /etc/autofs/auto.master ] ; then + sed -e '/^#/d' -e '/^$/d' < /etc/autofs/auto.master + fi +} + +function getnismounts() +{ + /usr/bin/ypcat -k ${nis_mapname} 2> /dev/null | sed -e '/^#/d' -e '/^$/d' +} + +function getldapmounts() +{ + autofs_lam=/usr/lib/autofs/autofs-ldap-auto-master + if [ -f $autofs_lam -a -x $autofs_lam ]; then + ${autofs_lam} \ + -m ${ldap_map_oc} -e ${ldap_entry_oc} \ + -n ${ldap_map_key} -k ${ldap_entry_key} \ + -v ${ldap_value} 2> /dev/null + fi +} + +function getrawmounts() +{ + for scheme in `getschemes` ; do + case "$scheme" in + files) + getfilemounts + ;; + nis*) + getnismounts + ;; + ldap*) + getldapmounts + ;; + esac + done +} + + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +function getmounts() +{ + knownmaps=" " + # seperate storage variable to avoid clobbering the other $TMPSRC + TMPSRC_mounts="$TMPSRC.mounts" + getrawmounts >$TMPSRC_mounts + while read dir map options + do + # These checks screen out duplicates and skip over directories + # where the map is '-'. + if [ ! -z "$dir" -a ! -z "$map" \ + -a "x${map:0:1}" != "x-" \ + -a "`echo "$knownmaps" | grep -w $dir/`" = "" ]; then + # If the options include a -t or --timeout parameter, then + # pull those particular options out. + # echo DAEMONOPTIONS OPTIONS $daemonoptions $options + startupoptions="" + opt_timeout="" + opt_pidfile="" + opt_verbose="" + opt_debug="" + opt_ghost="" + + # use getopt to parse all of it + #getopteval="$(getopt -q -o -t:p:vdg --long timeout:,pid-file:,verbose,debug,ghost -- "$daemonoptions $options") " + getopt_input="$daemonoptions $options" + getopt_eval="$(getopt -q -o -t:vdg --long timeout:,verbose,debug,ghost -- $getopt_input) " + eval set -- "${getopt_eval}" + while [ -n "$1" ]; do + #-p|--pid-file) opt_pidfile="$2" ; shift 2 ;; + case $1 in + -t|--timeout) opt_timeout="$2" ; shift 2 ;; + -v|--verbose) opt_verbose="--verbose" ; shift ;; + -d|--debug) opt_debug="--debug" ; shift ;; + -g|--ghost) opt_ghost="--ghost" ; shift ;; + --) shift ; break ;; + *) shift ;; # just ignore other params for now + esac + done + # build the parameters + [ -n "${opt_timeout}" ] && startupoptions="${startupoptions} --timeout ${opt_timeout}" + #[ -n "${opt_pidfile}" ] && startupoptions="${startupoptions} --pid-file ${opt_pidfile}" + startupoptions="${startupoptions} ${opt_ghost} ${opt_verbose} ${opt_debug}" + + # Other option flags are intended for maps. + # unfortuntely this can't be integrated with the above getopt(1) + mapoptions="$(echo $daemonoptions $options | sed \ + -e '/-t/{s/--*t\(imeout\)*[[:space:]=]*\([0-9][0-9]*\)//g }' \ + -e '/-v/{s/--*v\(erbose\)*//g }' \ + -e '/-d/{s/--*d\(ebug\)*//g }' \ + -e '/-g/{s/--*g\(host\)*//g }' \ + -e 's/^[[:space:]]*//g' \ + -e 's/[[:space:]]*$//g')" + #-e '/-p/{s/--*p\(id-file\)*[[:space:]=]*\([^[:space:]]*\)//g }' \ + + # Break up the maptype and map, if the map type is specified + maptype="${map/:*}" + # Handle degenerate map specifiers + if [ "$maptype" = "$map" ] ; then + if [ -x "$map" ]; then + maptype="program" + elif [ -x "/etc/$map" ]; then + maptype="program" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ -f "$map" ]; then + maptype="file" + elif [ -f "/etc/$map" ]; then + maptype="file" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then + maptype="$map" + map= + elif [ "$map" = "multi" ] ; then + maptype="$map" + map= + else + maptype=yp + map="${map/*\/}" # same as "basename $map" + map="${map/#auto_/auto.}" # echo $map | sed -e 's/^auto_home/auto.home/' -e 's/^auto_mnt/auto.mnt/' + fi + fi + map="${map#*:}" + + #echo >>/tmp/debug + #date >>/tmp/debug + #echo STARTUPOPTIONS $startupoptions >> /tmp/debug + #echo DIR $dir >> /tmp/debug + #echo MAPTYPE $maptype >> /tmp/debug + #echo MAP $map >> /tmp/debug + #echo MAPOPTIONS $mapoptions >> /tmp/debug + #echo LOCALOPTIONS $localoptions >> /tmp/debug + #echo OPTIONS $options >>/tmp/debug + #echo GETOPT_INPUT $getopt_input >>/tmp/debug + + [ -z "${startupoptions}" ] && startupoptions=" " # to make life easier later + # protect startupoptions with _X_ to use it later + cmdline="$DAEMON ${startupoptions// /_X_} $dir $maptype $map ${mapoptions} ${localoptions}" + # leave out the " so that white space gets compressed + echo ${cmdline} + + # echo ------------------------ + fi + knownmaps=" $dir/ $knownmaps" + done <$TMPSRC_mounts + rm -f $TMPSRC_mounts +} + + +start() { + ebegin "Starting automounter" + # ensure autofs support is loaded + grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs + if [ $? -ne 0 ]; then + eend 1 "No autofs support available" + return 1 + fi + + getmounts >$TMPSRC + + # Check that maps exist + if [ ! -s $TMPSRC ]; then + eend 1 "No automount maps defined" + return 1 + fi + + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + bin="/usr/sbin/automount" + params="$(echo $startupopts $mnt $rest)" + + echo -n " $mnt" + #echo " $mnt ($params)" + + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec ${bin} -- ${params} + #ps ax | grep "[0-9]:[0-9][0-9] ${bin} ${params}" | ( + # read pid rest + # echo $pid > $pidfile + # echo "$mnt $rest" >> $pidfile + #) + if [ $? -ne 0 ]; then + eerror "Failure on $mnt" + else + echo "${params}" >> $pidfile + fi + done < $TMPSRC + # clean up + rm -f $TMPSRC + + echo + + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal USR2 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts >$TMPSRC + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + params="$(echo $startupopts $mnt $rest)" + echo $cmd $params + done <$TMPSRC + rm -f $TMPSRC + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + getmounts >$TMPSRC + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ -z "$pid" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMPSRC + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMPSRC + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc12 b/net-fs/autofs/files/autofs.rc12 new file mode 100644 index 0000000..9fdfc20 --- /dev/null +++ b/net-fs/autofs/files/autofs.rc12 @@ -0,0 +1,288 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc12,v 1.1 2005/03/15 04:18:38 robbat2 Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/autofs/auto.master, then a YP +# map with that name + +DAEMON=/usr/sbin/automount +SYSCONFDIR=/etc/autofs + +depend() { + need localmount + use ypbind nfs slapd portmap net +} + +opts="start stop status stats reload restart" + +# this file is used to avoid the subshell-die problem +TMPSRC=/var/run/autofs.tmp + +# +# Check for all maps that are to be loaded +# +function getschemes() { + schemes="$(awk '/^automount:/{ $1="" ; gsub("\\[.*\\]","") ; print $0 }' /etc/nsswitch.conf)" + # have a default entry + [ -z "$schemes" ] && echo 'files' || echo $schemes +} + +function getfilemounts() { + if [ -f /etc/autofs/auto.master ] ; then + sed -e '/^#/d' -e '/^$/d' < /etc/autofs/auto.master + fi +} + +function catnismap() { + [ -z "$1" ] && map="auto_master" || map="$1" + /usr/bin/ypcat -k ${map} 2> /dev/null | sed -e '/^#/d' -e '/^$/d' +} + +function getnismounts() { + YPMAP="$(catnismap auto.master)" + if [ -z "$YPMAP" ]; then + catnismap + else + catnismap auto.master + fi +} + +function getldapmounts() { + autofs_lam=/usr/lib/autofs/autofs-ldap-auto-master + if [ -f $autofs_lam -a -x $autofs_lam ]; then + ${autofs_lam} \ + -m ${ldap_map_oc} -e ${ldap_entry_oc} \ + -n ${ldap_map_key} -k ${ldap_entry_key} \ + -v ${ldap_value} 2> /dev/null + fi +} + +function getrawmounts() +{ + for scheme in `getschemes` ; do + case "$scheme" in + files) + getfilemounts + ;; + nis*) + getnismounts + ;; + ldap*) + getldapmounts + ;; + esac + done +} + + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +function getmounts() +{ + knownmaps=" " + # seperate storage variable to avoid clobbering the other $TMPSRC + TMPSRC_mounts="$TMPSRC.mounts" + getrawmounts >$TMPSRC_mounts + while read dir map options + do + # These checks screen out duplicates and skip over directories + # where the map is '-'. + if [ ! -z "$dir" -a ! -z "$map" \ + -a "x${map:0:1}" != "x-" \ + -a "`echo "$knownmaps" | grep -w $dir/`" = "" ]; then + # If the options include a -t or --timeout parameter, then + # pull those particular options out. + # echo DAEMONOPTIONS OPTIONS $daemonoptions $options + startupoptions="" + opt_timeout="" + opt_pidfile="" + opt_verbose="" + opt_debug="" + opt_ghost="" + + # use getopt to parse all of it + #getopteval="$(getopt -q -o -t:p:vdg --long timeout:,pid-file:,verbose,debug,ghost -- "$daemonoptions $options") " + getopt_input="$daemonoptions $options" + getopt_eval="$(getopt -q -o -t:vdg --long timeout:,verbose,debug,ghost -- $getopt_input) " + eval set -- "${getopt_eval}" + while [ -n "$1" ]; do + #-p|--pid-file) opt_pidfile="$2" ; shift 2 ;; + case $1 in + -t|--timeout) opt_timeout="$2" ; shift 2 ;; + -v|--verbose) opt_verbose="--verbose" ; shift ;; + -d|--debug) opt_debug="--debug" ; shift ;; + -g|--ghost) opt_ghost="--ghost" ; shift ;; + --) shift ; break ;; + *) shift ;; # just ignore other params for now + esac + done + # build the parameters + [ -n "${opt_timeout}" ] && startupoptions="${startupoptions} --timeout ${opt_timeout}" + #[ -n "${opt_pidfile}" ] && startupoptions="${startupoptions} --pid-file ${opt_pidfile}" + startupoptions="${startupoptions} ${opt_ghost} ${opt_verbose} ${opt_debug}" + + # Other option flags are intended for maps. + # unfortuntely this can't be integrated with the above getopt(1) + mapoptions="$(echo $daemonoptions $options | sed \ + -e '/-t/{s/--*t\(imeout\)*[[:space:]=]*\([0-9][0-9]*\)//g }' \ + -e '/-v/{s/--*v\(erbose\)*//g }' \ + -e '/-d/{s/--*d\(ebug\)*//g }' \ + -e '/-g/{s/--*g\(host\)*//g }' \ + -e 's/^[[:space:]]*//g' \ + -e 's/[[:space:]]*$//g')" + #-e '/-p/{s/--*p\(id-file\)*[[:space:]=]*\([^[:space:]]*\)//g }' \ + + # Break up the maptype and map, if the map type is specified + maptype="${map/:*}" + # Handle degenerate map specifiers + if [ "$maptype" = "$map" ] ; then + if [ -x "$map" ]; then + maptype="program" + elif [ -x "/etc/$map" ]; then + maptype="program" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ -f "$map" ]; then + maptype="file" + elif [ -f "/etc/$map" ]; then + maptype="file" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then + maptype="$map" + map= + elif [ "$map" = "multi" ] ; then + maptype="$map" + map= + else + maptype=yp + map="${map/*\/}" # same as "basename $map" + map="${map/#auto_/auto.}" # echo $map | sed -e 's/^auto_home/auto.home/' -e 's/^auto_mnt/auto.mnt/' + fi + fi + map="${map#*:}" + + #echo >>/tmp/debug + #date >>/tmp/debug + #echo STARTUPOPTIONS $startupoptions >> /tmp/debug + #echo DIR $dir >> /tmp/debug + #echo MAPTYPE $maptype >> /tmp/debug + #echo MAP $map >> /tmp/debug + #echo MAPOPTIONS $mapoptions >> /tmp/debug + #echo LOCALOPTIONS $localoptions >> /tmp/debug + #echo OPTIONS $options >>/tmp/debug + #echo GETOPT_INPUT $getopt_input >>/tmp/debug + + [ -z "${startupoptions}" ] && startupoptions=" " # to make life easier later + # protect startupoptions with _X_ to use it later + cmdline="$DAEMON ${startupoptions// /_X_} $dir $maptype $map ${mapoptions} ${localoptions}" + # leave out the " so that white space gets compressed + echo ${cmdline} + + # echo ------------------------ + fi + knownmaps=" $dir/ $knownmaps" + done <$TMPSRC_mounts + rm -f $TMPSRC_mounts +} + + +start() { + ebegin "Starting automounter" + # ensure autofs support is loaded + grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs + if [ $? -ne 0 ]; then + eend 1 "No autofs support available" + return 1 + fi + + getmounts >$TMPSRC + + # Check that maps exist + if [ ! -s $TMPSRC ]; then + eend 1 "No automount maps defined" + return 1 + fi + + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + bin="/usr/sbin/automount" + params="$(echo $startupopts $mnt $rest)" + + echo -n " $mnt" + #echo " $mnt ($params)" + + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec ${bin} -- ${params} + #ps ax | grep "[0-9]:[0-9][0-9] ${bin} ${params}" | ( + # read pid rest + # echo $pid > $pidfile + # echo "$mnt $rest" >> $pidfile + #) + if [ $? -ne 0 ]; then + eerror "Failure on $mnt" + else + echo "${params}" >> $pidfile + fi + done < $TMPSRC + # clean up + rm -f $TMPSRC + + echo + + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal USR2 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts >$TMPSRC + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + params="$(echo $startupopts $mnt $rest)" + echo $cmd $params + done <$TMPSRC + rm -f $TMPSRC + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + getmounts >$TMPSRC + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ -z "$pid" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMPSRC + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMPSRC + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc13 b/net-fs/autofs/files/autofs.rc13 new file mode 100644 index 0000000..6d2a0d7 --- /dev/null +++ b/net-fs/autofs/files/autofs.rc13 @@ -0,0 +1,289 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc13,v 1.1 2008/01/24 10:09:19 stefaan Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/autofs/auto.master, then a YP +# map with that name + +DAEMON=/usr/sbin/automount +SYSCONFDIR=/etc/autofs + +depend() { + need localmount + use ypbind nfs slapd portmap net +} + +opts="start stop status stats reload restart" + +# this file is used to avoid the subshell-die problem +TMPSRC=/var/run/autofs.tmp + +# +# Check for all maps that are to be loaded +# +function getschemes() { + schemes="$(awk '/^automount:/{ $1="" ; gsub("\\[.*\\]","") ; print $0 }' /etc/nsswitch.conf)" + # have a default entry + [ -z "$schemes" ] && echo 'files' || echo $schemes +} + +function getfilemounts() { + if [ -f /etc/autofs/auto.master ] ; then + sed -e '/^#/d' -e '/^$/d' < /etc/autofs/auto.master + fi +} + +function catnismap() { + [ -z "$1" ] && map="auto_master" || map="$1" + /usr/bin/ypcat -k ${map} 2> /dev/null | sed -e '/^#/d' -e '/^$/d' +} + +function getnismounts() { + YPMAP="$(catnismap auto.master)" + if [ -z "$YPMAP" ]; then + catnismap + else + catnismap auto.master + fi +} + +function getldapmounts() { + autofs_lam=/usr/lib/autofs/autofs-ldap-auto-master + if [ -f $autofs_lam -a -x $autofs_lam ]; then + ${autofs_lam} \ + -m ${ldap_map_oc} -e ${ldap_entry_oc} \ + -n ${ldap_map_key} -k ${ldap_entry_key} \ + -v ${ldap_value} 2> /dev/null + fi +} + +function getrawmounts() +{ + for scheme in `getschemes` ; do + case "$scheme" in + files) + getfilemounts + ;; + nis*) + getnismounts + ;; + ldap*) + getldapmounts + ;; + esac + done +} + + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +function getmounts() +{ + knownmaps=" " + # seperate storage variable to avoid clobbering the other $TMPSRC + TMPSRC_mounts="$TMPSRC.mounts" + getrawmounts >$TMPSRC_mounts + while read dir map options + do + # These checks screen out duplicates and skip over directories + # where the map is '-'. + if [ ! -z "$dir" -a ! -z "$map" \ + -a "x${map:0:1}" != "x-" \ + -a "`echo "$knownmaps" | grep -w $dir/`" = "" ]; then + # If the options include a -t or --timeout parameter, then + # pull those particular options out. + # echo DAEMONOPTIONS OPTIONS $daemonoptions $options + startupoptions="" + opt_timeout="" + opt_pidfile="" + opt_verbose="" + opt_debug="" + opt_ghost="" + + # use getopt to parse all of it + #getopteval="$(getopt -q -o -t:p:vdg --long timeout:,pid-file:,verbose,debug,ghost -- "$daemonoptions $options") " + getopt_input="$daemonoptions $options" + getopt_eval="$(getopt -q -o -t:vdg --long timeout:,verbose,debug,ghost -- $getopt_input) " + eval set -- "${getopt_eval}" + while [ -n "$1" ]; do + #-p|--pid-file) opt_pidfile="$2" ; shift 2 ;; + case $1 in + -t|--timeout) opt_timeout="$2" ; shift 2 ;; + -v|--verbose) opt_verbose="--verbose" ; shift ;; + -d|--debug) opt_debug="--debug" ; shift ;; + -g|--ghost) opt_ghost="--ghost" ; shift ;; + --) shift ; break ;; + *) shift ;; # just ignore other params for now + esac + done + # build the parameters + [ -n "${opt_timeout}" ] && startupoptions="${startupoptions} --timeout ${opt_timeout}" + #[ -n "${opt_pidfile}" ] && startupoptions="${startupoptions} --pid-file ${opt_pidfile}" + startupoptions="${startupoptions} ${opt_ghost} ${opt_verbose} ${opt_debug}" + + # Other option flags are intended for maps. + # unfortuntely this can't be integrated with the above getopt(1) + mapoptions="$(echo $daemonoptions $options | sed \ + -e '/-t/{s/--*t\(imeout\)*[[:space:]=]*\([0-9][0-9]*\)//g }' \ + -e '/-v/{s/--*v\(erbose\)*//g }' \ + -e '/-d/{s/--*d\(ebug\)*//g }' \ + -e '/-g/{s/--*g\(host\)*//g }' \ + -e 's/^[[:space:]]*//g' \ + -e 's/[[:space:]]*$//g')" + #-e '/-p/{s/--*p\(id-file\)*[[:space:]=]*\([^[:space:]]*\)//g }' \ + + # Break up the maptype and map, if the map type is specified + maptype="${map/:*}" + # Handle degenerate map specifiers + if [ "$maptype" = "$map" ] ; then + if [ -x "$map" ]; then + maptype="program" + elif [ -x "/etc/$map" ]; then + maptype="program" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ -f "$map" ]; then + maptype="file" + elif [ -f "/etc/$map" ]; then + maptype="file" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then + maptype="$map" + map= + elif [ "$map" = "multi" ] ; then + maptype="$map" + map= + else + maptype=yp + map="${map/*\/}" # same as "basename $map" + map="${map/#auto_/auto.}" # echo $map | sed -e 's/^auto_home/auto.home/' -e 's/^auto_mnt/auto.mnt/' + fi + fi + map="${map#*:}" + + #echo >>/tmp/debug + #date >>/tmp/debug + #echo STARTUPOPTIONS $startupoptions >> /tmp/debug + #echo DIR $dir >> /tmp/debug + #echo MAPTYPE $maptype >> /tmp/debug + #echo MAP $map >> /tmp/debug + #echo MAPOPTIONS $mapoptions >> /tmp/debug + #echo LOCALOPTIONS $localoptions >> /tmp/debug + #echo OPTIONS $options >>/tmp/debug + #echo GETOPT_INPUT $getopt_input >>/tmp/debug + + [ -z "${startupoptions}" ] && startupoptions=" " # to make life easier later + # protect startupoptions with _X_ to use it later + cmdline="$DAEMON ${startupoptions// /_X_} $dir $maptype $map ${mapoptions} ${localoptions}" + # leave out the " so that white space gets compressed + echo ${cmdline} + + # echo ------------------------ + fi + knownmaps=" $dir/ $knownmaps" + done <$TMPSRC_mounts + rm -f $TMPSRC_mounts +} + + +start() { + ebegin "Starting automounter" + # ensure autofs support is loaded + grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs + if [ $? -ne 0 ]; then + eend 1 "No autofs support available" + return 1 + fi + + getmounts >$TMPSRC + + # Check that maps exist + if [ ! -s $TMPSRC ]; then + eend 1 "No automount maps defined" + return 1 + fi + + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + bin="/usr/sbin/automount" + params="$(echo $startupopts $mnt $rest)" + + echo -n " $mnt" + #echo " $mnt ($params)" + + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec ${bin} -- ${params} + #ps ax | grep "[0-9]:[0-9][0-9] ${bin} ${params}" | ( + # read pid rest + # echo $pid > $pidfile + # echo "$mnt $rest" >> $pidfile + #) + # Omitted these five lines, see http://bugs.gentoo.org/110887 + #if [ $? -ne 0 ]; then + # eerror "Failure on $mnt" + #else + # echo "${params}" >> $pidfile + #fi + done < $TMPSRC + # clean up + rm -f $TMPSRC + + echo + + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal USR2 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts >$TMPSRC + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + params="$(echo $startupopts $mnt $rest)" + echo $cmd $params + done <$TMPSRC + rm -f $TMPSRC + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + getmounts >$TMPSRC + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ -z "$pid" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMPSRC + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMPSRC + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc14 b/net-fs/autofs/files/autofs.rc14 new file mode 100644 index 0000000..37942c2 --- /dev/null +++ b/net-fs/autofs/files/autofs.rc14 @@ -0,0 +1,289 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc14,v 1.3 2008/02/05 12:37:17 stefaan Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/autofs/auto.master, then a YP +# map with that name + +DAEMON=/usr/sbin/automount +SYSCONFDIR=/etc/autofs + +depend() { + need localmount + use ypbind nfs slapd portmap net +} + +opts="start stop status stats reload restart" + +# this file is used to avoid the subshell-die problem +TMPSRC=/var/run/autofs.tmp + +# +# Check for all maps that are to be loaded +# +function getschemes() { + schemes="$(awk '/^automount:/{ $1="" ; gsub("\\[.*\\]","") ; print $0 }' /etc/nsswitch.conf)" + # have a default entry + [ -z "$schemes" ] && echo 'files' || echo $schemes +} + +function getfilemounts() { + if [ -f /etc/autofs/auto.master ] ; then + sed -e '/^#/d' -e '/^$/d' < /etc/autofs/auto.master + fi +} + +function catnismap() { + [ -z "$1" ] && map="auto_master" || map="$1" + /usr/bin/ypcat -k ${map} 2> /dev/null | sed -e '/^#/d' -e '/^$/d' +} + +function getnismounts() { + YPMAP="$(catnismap auto.master)" + if [ -z "$YPMAP" ]; then + catnismap + else + catnismap auto.master + fi +} + +function getldapmounts() { + autofs_lam=/usr/lib/autofs/autofs-ldap-auto-master + if [ -f $autofs_lam -a -x $autofs_lam ]; then + ${autofs_lam} \ + -m ${ldap_map_oc} -e ${ldap_entry_oc} \ + -n ${ldap_map_key} -k ${ldap_entry_key} \ + -v ${ldap_value} 2> /dev/null + fi +} + +function getrawmounts() +{ + for scheme in `getschemes` ; do + case "$scheme" in + files) + getfilemounts + ;; + nis*) + getnismounts + ;; + ldap*) + getldapmounts + ;; + esac + done +} + + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +function getmounts() +{ + knownmaps=" " + # seperate storage variable to avoid clobbering the other $TMPSRC + TMPSRC_mounts="$TMPSRC.mounts" + getrawmounts >$TMPSRC_mounts + while read dir map options + do + # These checks screen out duplicates and skip over directories + # where the map is '-'. + if [ ! -z "$dir" -a ! -z "$map" \ + -a "x${map:0:1}" != "x-" \ + -a "`echo "$knownmaps" | grep -w $dir/`" = "" ]; then + # If the options include a -t or --timeout parameter, then + # pull those particular options out. + # echo DAEMONOPTIONS OPTIONS $daemonoptions $options + startupoptions="" + opt_timeout="" + opt_pidfile="" + opt_verbose="" + opt_debug="" + opt_ghost="" + + # use getopt to parse all of it + #getopteval="$(getopt -q -o -t:p:vdg --long timeout:,pid-file:,verbose,debug,ghost -- "$daemonoptions $options") " + getopt_input="$daemonoptions ${options/-/}" + getopt_eval="$(getopt -q -o -t:vdg --long timeout:,verbose,debug,ghost -- $getopt_input) " + eval set -- "${getopt_eval}" + while [ -n "$1" ]; do + #-p|--pid-file) opt_pidfile="$2" ; shift 2 ;; + case $1 in + -t|--timeout) opt_timeout="$2" ; shift 2 ;; + -v|--verbose) opt_verbose="--verbose" ; shift ;; + -d|--debug) opt_debug="--debug" ; shift ;; + -g|--ghost) opt_ghost="--ghost" ; shift ;; + --) shift ; break ;; + *) shift ;; # just ignore other params for now + esac + done + # build the parameters + [ -n "${opt_timeout}" ] && startupoptions="${startupoptions} --timeout ${opt_timeout}" + #[ -n "${opt_pidfile}" ] && startupoptions="${startupoptions} --pid-file ${opt_pidfile}" + startupoptions="${startupoptions} ${opt_ghost} ${opt_verbose} ${opt_debug}" + + # Other option flags are intended for maps. + # unfortuntely this can't be integrated with the above getopt(1) + mapoptions="$(echo $daemonoptions $options | sed \ + -e '/-t/{s/--*t\(imeout\)*[[:space:]=]*\([0-9][0-9]*\)//g }' \ + -e '/-v/{s/--*v\(erbose\)*//g }' \ + -e '/-d/{s/--*d\(ebug\)*//g }' \ + -e '/-g/{s/--*g\(host\)*//g }' \ + -e 's/^[[:space:]]*//g' \ + -e 's/[[:space:]]*$//g')" + #-e '/-p/{s/--*p\(id-file\)*[[:space:]=]*\([^[:space:]]*\)//g }' \ + + # Break up the maptype and map, if the map type is specified + maptype="${map/:*}" + # Handle degenerate map specifiers + if [ "$maptype" = "$map" ] ; then + if [ -x "$map" ]; then + maptype="program" + elif [ -x "/etc/$map" ]; then + maptype="program" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ -f "$map" ]; then + maptype="file" + elif [ -f "/etc/$map" ]; then + maptype="file" + map="/etc/$map" + map="${map//\/\//\/}" # strip doubles + elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then + maptype="$map" + map= + elif [ "$map" = "multi" ] ; then + maptype="$map" + map= + else + maptype=yp + map="${map/*\/}" # same as "basename $map" + map="${map/#auto_/auto.}" # echo $map | sed -e 's/^auto_home/auto.home/' -e 's/^auto_mnt/auto.mnt/' + fi + fi + map="${map#*:}" + + #echo >>/tmp/debug + #date >>/tmp/debug + #echo STARTUPOPTIONS $startupoptions >> /tmp/debug + #echo DIR $dir >> /tmp/debug + #echo MAPTYPE $maptype >> /tmp/debug + #echo MAP $map >> /tmp/debug + #echo MAPOPTIONS $mapoptions >> /tmp/debug + #echo LOCALOPTIONS $localoptions >> /tmp/debug + #echo OPTIONS $options >>/tmp/debug + #echo GETOPT_INPUT $getopt_input >>/tmp/debug + + [ -z "${startupoptions}" ] && startupoptions=" " # to make life easier later + # protect startupoptions with _X_ to use it later + cmdline="$DAEMON ${startupoptions// /_X_} $dir $maptype $map ${mapoptions} ${localoptions}" + # leave out the " so that white space gets compressed + echo ${cmdline} + + # echo ------------------------ + fi + knownmaps=" $dir/ $knownmaps" + done <$TMPSRC_mounts + rm -f $TMPSRC_mounts +} + + +start() { + ebegin "Starting automounter" + # ensure autofs support is loaded + grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs + if [ $? -ne 0 ]; then + eend 1 "No autofs support available" + return 1 + fi + + getmounts >$TMPSRC + + # Check that maps exist + if [ ! -s $TMPSRC ]; then + eend 1 "No automount maps defined" + return 1 + fi + + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + bin="/usr/sbin/automount" + params="$(echo $startupopts $mnt $rest)" + + echo -n " $mnt" + #echo " $mnt ($params)" + + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec ${bin} -- ${params} + #ps ax | grep "[0-9]:[0-9][0-9] ${bin} ${params}" | ( + # read pid rest + # echo $pid > $pidfile + # echo "$mnt $rest" >> $pidfile + #) + # Omitted these five lines, see http://bugs.gentoo.org/110887 + #if [ $? -ne 0 ]; then + # eerror "Failure on $mnt" + #else + # echo "${params}" >> $pidfile + #fi + done < $TMPSRC + # clean up + rm -f $TMPSRC + + echo + + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal USR2 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts >$TMPSRC + while read cmd startupopts mnt rest ; do + pidfile=/var/run/autofs${mnt//\//.}.pid + startupopts="$(echo ${startupopts//_X_/ } --pid-file ${pidfile} )" + params="$(echo $startupopts $mnt $rest)" + echo $cmd $params + done <$TMPSRC + rm -f $TMPSRC + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + getmounts >$TMPSRC + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ -z "$pid" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMPSRC + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMPSRC + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc6 b/net-fs/autofs/files/autofs.rc6 new file mode 100755 index 0000000..d482c27 --- /dev/null +++ b/net-fs/autofs/files/autofs.rc6 @@ -0,0 +1,138 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc6,v 1.9 2004/09/02 17:56:05 swegener Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/auto.master, then a YP +# map with that name + +depend() { + need ypbind + need net +} + +opts="start stop status reload" + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +getmounts() { +# +# Check for local maps to be loaded +# +if [ -f /etc/autofs/auto.master ] +then + cat /etc/autofs/auto.master | sed -e '/^ *[^# ]/!d'| ( + while read dir map options + do + if [ ! -z "$dir" -a ! -z "$map" \ + -a x`echo "$map" | cut -c1` != 'x-' ] + then + map=`echo "/etc/$map" | sed -e 's:^/etc//:/:'` + timeout=`echo $options | sed --silent -e 's/\(.*\)\(--timeout=[0-9]\+\)\(.*\)/\2/g ; /--timeout=[0-9]\+/ p'` + options=`echo $options | sed -e 's/\(.*\)\(--timeout=[0-9]\+\)\(.*\)/\1\3/g ; s/\(^\|[ \t]\)-/\1/g'` + if [ -x $map ]; then + echo "/usr/sbin/automount $timeout $dir program $map $options $localoptions" + elif [ -f $map ]; then + echo "/usr/sbin/automount $timeout $dir file $map $options $localoptions" + else + echo "/usr/sbin/automount $timeout $dir `basename $map` $options $localoptions" + fi + fi + done + ) +fi + +# +# Check for YellowPage maps to be loaded +# +if [ -e /usr/bin/ypcat ] && [ `ypcat -k auto.master 2>/dev/null | wc -l` -gt 0 ] +then + ypcat -k auto.master | ( + while read dir map options + do + if [ ! -z "$dir" -a ! -z "$map" \ + -a x`echo "$map" | cut -c1` != 'x-' ] + then + map=`echo "$map" | sed -e 's/^auto_/auto./'` + if echo $options | grep -- '-t' >/dev/null 2>&1 ; then + mountoptions="--timeout $(echo $options | \ + sed 's/^.*-t\(imeout\)*[ \t]*\([0-9][0-9]*\).*$/\2/g')" + fi + options=`echo "$options" | sed -e ' + s/--*t\(imeout\)*[ \t]*[0-9][0-9]*//g + s/\(^\|[ \t]\)-/\1/g'` + echo "/usr/sbin/automount $mountoptions $dir yp $map $options $localoptions" + fi + done + ) +fi +} + +start() { + ebegin "Starting automounter" + getmounts | while read cmd timeout mnt rest + do + #FIXME: this works but it really sucks + if echo $timeout|grep -v -- '--timeout' >/dev/null ; then + rest="$mnt $rest" + mnt="$timeout" + timeout="" + fi + + echo -n " $mnt" + pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec /usr/sbin/automount -- $timeout $mnt $rest + # + # Automount needs a '--pidfile' or '-p' option. + # For now we look for the pid ourself. + # + ps ax | grep "[0-9]:[0-9][0-9] /usr/sbin/automount $timeout \?$mnt" | ( + read pid rest + echo $pid > $pidfile + echo "$mnt $rest" >> $pidfile + ) + done + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal 12 --exec /usr/sbin/automount + eend $? +} + +status() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + TMP=/var/run/autofs.tmp + getmounts >$TMP + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ "$pid" = "" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMP + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMP + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc7 b/net-fs/autofs/files/autofs.rc7 new file mode 100755 index 0000000..ef525bd --- /dev/null +++ b/net-fs/autofs/files/autofs.rc7 @@ -0,0 +1,136 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc7,v 1.5 2004/09/02 17:56:05 swegener Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/auto.master, then a YP +# map with that name + +depend() { + need net + use portmap ypbind +} + +opts="start stop status stats reload restart" + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +getmounts() { +# +# Check for local maps to be loaded +# +if [ -f /etc/autofs/auto.master ] +then + cat /etc/autofs/auto.master | sed -e '/^ *[^# ]/!d'| ( + while read dir map options + do + if [ ! -z "$dir" -a ! -z "$map" \ + -a x`echo "$map" | cut -c1` != 'x-' ] + then + map=`echo "/etc/$map" | sed -e 's:^/etc//:/:'` + timeout=`echo $options | sed --silent -e 's/\(.*\)\(--timeout=[0-9]\+\)\(.*\)/\2/g ; /--timeout=[0-9]\+/ p'` + options=`echo $options | sed -e 's/\(.*\)\(--timeout=[0-9]\+\)\(.*\)/\1\3/g ; s/\(^\|[ \t]\)-/\1/g'` + if [ -x $map ]; then + echo "/usr/sbin/automount $timeout $dir program $map $options $localoptions" + elif [ -f $map ]; then + echo "/usr/sbin/automount $timeout $dir file $map $options $localoptions" + else + echo "/usr/sbin/automount $timeout $dir `basename $map` $options $localoptions" + fi + fi + done + ) +fi + +# +# Check for YellowPage maps to be loaded +# +if [ -e /usr/bin/ypcat ] && [ `ypcat -k auto.master 2>/dev/null | wc -l` -gt 0 ] +then + ypcat -k auto.master | ( + while read dir map options + do + if [ ! -z "$dir" -a ! -z "$map" \ + -a x`echo "$map" | cut -c1` != 'x-' ] + then + map=`echo "$map" | sed -e 's/^auto_/auto./'` + if echo $options | grep -- '-t' >/dev/null 2>&1 ; then + mountoptions="--timeout $(echo $options | \ + sed 's/^.*-t\(imeout\)*[ \t]*\([0-9][0-9]*\).*$/\2/g')" + fi + options=`echo "$options" | sed -e ' + s/--*t\(imeout\)*[ \t]*[0-9][0-9]*//g + s/\(^\|[ \t]\)-/\1/g'` + echo "/usr/sbin/automount $mountoptions $dir yp $map $options $localoptions" + fi + done + ) +fi +} + +start() { + ebegin "Starting automounter" + getmounts | while read cmd timeout mnt rest + do + echo -n " $mnt" + pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec /usr/sbin/automount -- $timeout $mnt $rest + # + # Automount needs a '--pidfile' or '-p' option. + # For now we look for the pid ourself. + # + ps ax | grep "[0-9]:[0-9][0-9] /usr/sbin/automount $timeout \?$mnt" | ( + read pid rest + echo $pid > $pidfile + echo "$mnt $rest" >> $pidfile + ) + done + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal 12 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps awx | grep automount | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + TMP=/var/run/autofs.tmp + getmounts >$TMP + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ "$pid" = "" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMP + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMP + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc8 b/net-fs/autofs/files/autofs.rc8 new file mode 100644 index 0000000..ed3fc8d --- /dev/null +++ b/net-fs/autofs/files/autofs.rc8 @@ -0,0 +1,206 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc8,v 1.10 2004/12/16 23:42:57 robbat2 Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/auto.master, then a YP +# map with that name + +DAEMON=/usr/sbin/automount + +depend() { + need localmount + use ypbind nfs portmap +} + +opts="start stop status stats reload restart" + +# +# Check for all maps that are to be loaded +# +function getschemes() +{ + grep ^automount: /etc/nsswitch.conf | sed -e 's/^.*://' -e 's/\[.*\]/ /g' +} + +function getfilemounts() +{ + if [ -f /etc/autofs/auto.master ] ; then + cat /etc/autofs/auto.master | sed -e '/^#/d' -e '/^$/d' + fi +} + +function getnismounts() +{ + /usr/bin/ypcat -k auto.master 2> /dev/null | sed -e '/^#/d' -e '/^$/d' +} + +function getldapmounts() +{ + if [ -x /usr/lib/autofs/autofs-ldap-auto-master ]; then + /usr/lib/autofs/autofs-ldap-auto-master 2> /dev/null + fi +} + +function getrawmounts() +{ + for scheme in `getschemes` ; do + case "$scheme" in + files) + getfilemounts + ;; + nis*) + getnismounts + ;; + ldap*) + getldapmounts + ;; + esac + done +} + + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +function getmounts() +{ + knownmaps=" " + getrawmounts | ( + while read dir map options + do + # These checks screen out duplicates and skip over directories + # where the map is '-'. + if [ ! -z "$dir" -a ! -z "$map" \ + -a x`echo "$map" | cut -c1` != 'x-' \ + -a "`echo "$knownmaps" | grep $dir/`" = "" ] + then + # If the options include a -t or --timeout parameter, then + # pull those particular options out. + # echo DAEMONOPTIONS OPTIONS $daemonoptions $options + startupoptions= + if echo $options $daemonoptions | grep -q -- '-t' ; then + startupoptions="--timeout $(echo $daemonoptions $options | \ + sed 's/.*--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\).*$/\2/g')" + fi + # Other option flags are intended for maps. + mapoptions="$(echo "$daemonoptions $options" |\ + sed 's/--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\)//g')" + # Break up the maptype and map, if the map type is specified + maptype=`echo $map | cut -f1 -d:` + # Handle degenerate map specifiers + if [ "$maptype" = "$map" ] ; then + if [ -x "$map" ]; then + maptype=program + elif [ -x "/etc/$map" ]; then + maptype=program + map=`echo /etc/$map | sed 's^//^/^g'` + elif [ -f "$map" ]; then + maptype=file + elif [ -f "/etc/$map" ]; then + maptype=file + map=`echo /etc/$map | sed 's^//^/^g'` + elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then + maptype=$map + map= + elif [ "$map" = "multi" ] ; then + maptype=$map + map= + else + maptype=yp + map=`basename $map | sed -e s/^auto_home/auto.home/ -e s/^auto_mnt/auto.mnt/` + fi + fi + map=`echo $map | cut -f2- -d:` + + #echo STARTUPOPTIONS $startupoptions > /tmp/debug + #echo DIR $dir >> /tmp/debug + #echo MAPTYPE $maptype >> /tmp/debug + #echo MAP $map >> /tmp/debug + #echo MAPOPTIONS $mapoptions >> /tmp/debug + #echo LOCALOPTIONS $localoptions >> /tmp/debug + + echo "$DAEMON $startupoptions $dir $maptype $map $mapoptions $localoptions" | sed -e 's/ / /g' -e 's/ / /g' + + # echo ------------------------ + fi + knownmaps=" $dir/ $knownmaps" + done + ) +} + + +start() { + ebegin "Starting automounter" + getmounts | while read cmd timeout time mnt rest + do + #FIXME: this works but it really sucks + if echo $timeout|grep -v -- '--timeout' >/dev/null ; then + rest="$time $mnt $rest" + mnt="$timeout" + time="" + timeout="" + fi + + echo -n " $mnt" + pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec /usr/sbin/automount -- $timeout $time $mnt $rest + # + # Automount needs a '--pidfile' or '-p' option. + # For now we look for the pid ourself. + # + ps ax | grep "[0-9]:[0-9][0-9] /usr/sbin/automount $timeout $time \?$mnt" | ( + read pid rest + echo $pid > $pidfile + echo "$mnt $rest" >> $pidfile + ) + done + echo + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal 12 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + TMP=/var/run/autofs.tmp + getmounts >$TMP + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ "$pid" = "" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMP + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMP + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs.rc9 b/net-fs/autofs/files/autofs.rc9 new file mode 100644 index 0000000..837138a --- /dev/null +++ b/net-fs/autofs/files/autofs.rc9 @@ -0,0 +1,221 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs.rc9,v 1.4 2005/03/15 04:18:38 robbat2 Exp $ + +# rc file for automount using a Sun-style "master map". +# We first look for a local /etc/autofs/auto.master, then a YP +# map with that name + +DAEMON=/usr/sbin/automount + +depend() { + need localmount + use ypbind nfs slapd portmap net +} + +opts="start stop status stats reload restart" + +# +# Check for all maps that are to be loaded +# +function getschemes() +{ + awk '/^automount:/{ $1="" ; gsub("\\[.*\\]","") ; print $0 }' /etc/nsswitch.conf +} + +function getfilemounts() +{ + if [ -f /etc/autofs/auto.master ] ; then + sed -e '/^#/d' -e '/^$/d' < /etc/autofs/auto.master + fi +} + +function getnismounts() +{ + /usr/bin/ypcat -k ${nis_mapname} 2> /dev/null | sed -e '/^#/d' -e '/^$/d' +} + +function getldapmounts() +{ + if [ -x /usr/lib/autofs/autofs-ldap-auto-master ]; then + /usr/lib/autofs/autofs-ldap-auto-master \ + -m ${ldap_map_oc} -e ${ldap_entry_oc} \ + -n ${ldap_map_key} -k ${ldap_entry_key} \ + -v ${ldap_value} 2> /dev/null + fi +} + +function getrawmounts() +{ + for scheme in `getschemes` ; do + case "$scheme" in + files) + getfilemounts + ;; + nis*) + getnismounts + ;; + ldap*) + getldapmounts + ;; + esac + done +} + + +# +# This function will build a list of automount commands to execute in +# order to activate all the mount points. It is used to figure out +# the difference of automount points in case of a reload +# +function getmounts() +{ + knownmaps=" " + getrawmounts | ( + while read dir map options + do + # These checks screen out duplicates and skip over directories + # where the map is '-'. + if [ ! -z "$dir" -a ! -z "$map" \ + -a x`echo "$map" | cut -c1` != 'x-' \ + -a "`echo "$knownmaps" | grep -w $dir/`" = "" ] + then + # If the options include a -t or --timeout parameter, then + # pull those particular options out. + # echo DAEMONOPTIONS OPTIONS $daemonoptions $options + startupoptions= + if echo $options $daemonoptions | grep -q -- '-t' ; then + startupoptions="--timeout $(echo $daemonoptions $options | \ + sed 's/.*--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\).*$/\2/g')" + fi + # Other option flags are intended for maps. + mapoptions="$(echo "$daemonoptions $options" |\ + sed 's/--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\)//g')" + # Break up the maptype and map, if the map type is specified + maptype="${map/:*}" + # Handle degenerate map specifiers + if [ "$maptype" = "$map" ] ; then + if [ -x "$map" ]; then + maptype="program" + elif [ -x "/etc/$map" ]; then + maptype="program" + map=`echo /etc/$map | sed 's^//^/^g'` + elif [ -f "$map" ]; then + maptype="file" + elif [ -f "/etc/$map" ]; then + maptype="file" + map=`echo /etc/$map | sed 's^//^/^g'` + elif [ "$map" = "hesiod" -o "$map" = "userhome" ] ; then + maptype="$map" + map= + elif [ "$map" = "multi" ] ; then + maptype="$map" + map= + else + maptype=yp + map=`basename $map | sed -e s/^auto_home/auto.home/ -e s/^auto_mnt/auto.mnt/` + fi + fi + map="${map#*:}" + + #echo STARTUPOPTIONS $startupoptions > /tmp/debug + #echo DIR $dir >> /tmp/debug + #echo MAPTYPE $maptype >> /tmp/debug + #echo MAP $map >> /tmp/debug + #echo MAPOPTIONS $mapoptions >> /tmp/debug + #echo LOCALOPTIONS $localoptions >> /tmp/debug + + echo "$DAEMON $startupoptions $dir $maptype $map $mapoptions $localoptions" | sed -e 's/ / /g' -e 's/ / /g' + + # echo ------------------------ + fi + knownmaps=" $dir/ $knownmaps" + done + ) +} + + +start() { + ebegin "Starting automounter" + # Check that maps exist + if [ -z "$(getmounts)" ]; then + eend 1 "No automount maps defined" + exit 1 + fi + # ensure autofs support is loaded + grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs + if [ $? -ne 0 ]; then + eend 1 "No autofs support available" + exit 1 + fi + # Now go + getmounts | while read cmd timeout time mnt rest + do + #FIXME: this works but it really sucks + if echo $timeout|grep -v -- '--timeout' >/dev/null ; then + rest="$time $mnt $rest" + mnt="$timeout" + time="" + timeout="" + fi + + echo -n " $mnt" + pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid + start-stop-daemon --start --pidfile $pidfile --quiet \ + --exec /usr/sbin/automount -- $timeout $time $mnt $rest + # + # Automount needs a '--pidfile' or '-p' option. + # For now we look for the pid ourself. + # + ps ax | grep "[0-9]:[0-9][0-9] /usr/sbin/automount $timeout $time \?$mnt" | ( + read pid rest + echo $pid > $pidfile + echo "$mnt $rest" >> $pidfile + ) + done + echo + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal 12 --exec /usr/sbin/automount + eend $? +} + +stats() { + echo "Configured Mount Points:" + echo "------------------------" + getmounts + echo "" + echo "Active Mount Points:" + echo "--------------------" + ps ax|grep "[0-9]:[0-9][0-9] /usr/sbin/automount " | ( + while read pid tt stat time command; do echo $command; done + ) +} + +reload() { + echo "Reloading automounter: checking for changes ... " + TMP=/var/run/autofs.tmp + getmounts >$TMP + for i in /var/run/autofs.*.pid + do + pid=`head -n 1 $i 2>/dev/null` + [ "$pid" = "" ] && continue + command=`tail -n +2 $i` + if ! grep -q "^$command" $TMP + then + echo "Stopping automounter: $command" + kill -USR2 $pid + fi + done + rm -f $TMP + svc_start +} + +restart() { + svc_stop + svc_start +} diff --git a/net-fs/autofs/files/autofs1.confd b/net-fs/autofs/files/autofs1.confd new file mode 100644 index 0000000..0d1c855 --- /dev/null +++ b/net-fs/autofs/files/autofs1.confd @@ -0,0 +1,9 @@ +# Config file for /etc/init.d/autofs + +FLAGS="defaults 21" + +# +# e.g. localoptions='rsize=8192,wsize=8192' +# +localoptions='--timeout=60' + diff --git a/net-fs/autofs/files/autofs5.rc1 b/net-fs/autofs/files/autofs5.rc1 new file mode 100644 index 0000000..9e4252a --- /dev/null +++ b/net-fs/autofs/files/autofs5.rc1 @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/autofs/files/autofs5.rc1,v 1.1 2008/02/05 12:32:20 stefaan Exp $ + +DAEMON=/usr/sbin/automount +PIDFILE=/var/run/autofs.pid + +depend() { + need localmount + use ypbind nfs slapd portmap net +} + +opts="start stop restart status reload" + +start() { + ebegin "Starting automounter" + + # ensure autofs support is loaded + grep -q autofs /proc/filesystems || modprobe -q autofs4 || modprobe -q autofs + if [ $? -ne 0 ]; then + eend 1 "No autofs support available" + return 1 + fi + + start-stop-daemon --start --exec ${DAEMON} -- -p ${PIDFILE} ${daemonoptions} + + eend $? +} + +stop() { + ebegin "Stopping automounter" + start-stop-daemon --stop --quiet --signal TERM -p ${PIDFILE} + eend $? +} + +reload() { + ebegin "Reloading automounter" + kill -HUP $(cat ${PIDFILE}) + eend $? +} + diff --git a/net-fs/autofs/files/automount.diff b/net-fs/autofs/files/automount.diff new file mode 100644 index 0000000..7065478 --- /dev/null +++ b/net-fs/autofs/files/automount.diff @@ -0,0 +1,14 @@ +--- automount.h~ Sat Nov 4 08:05:18 2000 ++++ automount.h Mon Jan 15 02:04:14 2001 +@@ -12,6 +12,11 @@ + #include <paths.h> + #include "config.h" + ++/* OPEN_MAX */ ++#ifndef OPEN_MAX ++#define OPEN_MAX 255 ++#endif ++ + /* We MUST have the paths to mount(8) and umount(8) */ + #ifndef HAVE_MOUNT + #error Failed to locate mount(8)! diff --git a/net-fs/autofs/files/ldap_config.patch b/net-fs/autofs/files/ldap_config.patch new file mode 100644 index 0000000..02e27b4 --- /dev/null +++ b/net-fs/autofs/files/ldap_config.patch @@ -0,0 +1,25 @@ +--- configure.in.orig 2002-11-09 15:10:55.000000000 +0000 ++++ configure.in 2002-11-09 15:46:01.000000000 +0000 +@@ -104,17 +104,19 @@ + elif test -z "$withval" -o "$withval" = 'yes' + then + : Search for LDAP in normal directory path ++ HAVE_LDAP=1 ++ LIBLDAP="-lldap -lresolv -llber" + else + : Search for LDAP in specific directory + LDFLAGS="$LDFLAGS -L${withval}/lib" +- LIBLDAP="-L${withval}/lib" ++ LIBLDAP="-L${withval}/lib -lldap -llber -lresolv" + LDAP_FLAGS="-I${withval}/include" + fi + ) + if test -z "$HAVE_LDAP"; then + HAVE_LDAP=0 +- AC_CHECK_LIB(ldap, ldap_init, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap -llber", , +- -llber) ++ AC_CHECK_LIB(ldap, ldap_init, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap -llber -lresolv", , ++ -llber -lresolv) + fi + + AC_SUBST(LDAP_FLAGS) diff --git a/net-fs/autofs/files/nisyp.patch b/net-fs/autofs/files/nisyp.patch new file mode 100644 index 0000000..6e53909 --- /dev/null +++ b/net-fs/autofs/files/nisyp.patch @@ -0,0 +1,12 @@ +diff -ruN autofs-3.1.7/daemon/Makefile autofs-3.1.7-patched/daemon/Makefile +--- autofs-3.1.7/daemon/Makefile 2000-11-03 23:05:17.000000000 -0800 ++++ autofs-3.1.7-patched/daemon/Makefile 2002-07-19 13:00:10.000000000 -0700 +@@ -13,7 +13,7 @@ + + CFLAGS += -rdynamic -DAUTOFS_LIB_DIR=\"$(autofslibdir)\" -DVERSION_STRING=\"$(version)\" -I../include + LDFLAGS += -rdynamic +-LIBS = -ldl ++LIBS = -ldl -lnsl + + all: automount + diff --git a/net-fs/autofs/metadata.xml b/net-fs/autofs/metadata.xml new file mode 100644 index 0000000..b3cc033 --- /dev/null +++ b/net-fs/autofs/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>net-fs</herd> +<maintainer> + <email>stefaan@gentoo.org</email> + <name>Stefaan De Roeck</name> +</maintainer> +</pkgmetadata> diff --git a/profiles/categories b/profiles/categories index 8f3241e..7506c3e 100644 --- a/profiles/categories +++ b/profiles/categories @@ -6,6 +6,7 @@ dev-scheme dev-tex dev-util media-video +net-fs sys-fs sys-process x11-misc |