From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-fs/nfs-utils/Manifest | 3 + net-fs/nfs-utils/files/exports | 1 + .../nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch | 39 +++++ .../files/nfs-utils-1.2.8-cross-build.patch | 48 ++++++ .../nfs-utils/files/nfs-utils-1.3.0-gcc-4.9.patch | 62 ++++++++ .../files/nfs-utils-1.3.2-background-statd.patch | 30 ++++ net-fs/nfs-utils/files/nfs-utils.conf | 3 + net-fs/nfs-utils/files/nfs.confd | 38 +++++ net-fs/nfs-utils/files/nfs.initd | 163 +++++++++++++++++++ net-fs/nfs-utils/files/nfsclient.confd | 18 +++ net-fs/nfs-utils/files/nfsclient.initd | 34 ++++ net-fs/nfs-utils/files/nfsd.service-r1 | 15 ++ net-fs/nfs-utils/files/nfsmount.confd | 7 + net-fs/nfs-utils/files/nfsmount.initd | 48 ++++++ net-fs/nfs-utils/files/nfsmount.initd-1.3.1 | 27 ++++ net-fs/nfs-utils/files/proc-fs-nfsd.mount | 8 + net-fs/nfs-utils/files/rpc-gssd.service | 12 ++ net-fs/nfs-utils/files/rpc-idmapd.service | 11 ++ net-fs/nfs-utils/files/rpc-mountd.service-r1 | 10 ++ net-fs/nfs-utils/files/rpc-statd.service-r2 | 12 ++ net-fs/nfs-utils/files/rpc-svcgssd.service | 13 ++ net-fs/nfs-utils/files/rpc.gssd.initd | 24 +++ net-fs/nfs-utils/files/rpc.idmapd.initd | 26 +++ net-fs/nfs-utils/files/rpc.pipefs.initd | 33 ++++ net-fs/nfs-utils/files/rpc.statd.initd | 33 ++++ net-fs/nfs-utils/files/rpc.svcgssd.initd | 24 +++ .../nfs-utils/files/var-lib-nfs-rpc_pipefs.mount | 7 + net-fs/nfs-utils/metadata.xml | 17 ++ net-fs/nfs-utils/nfs-utils-1.2.9-r3.ebuild | 153 ++++++++++++++++++ net-fs/nfs-utils/nfs-utils-1.3.1-r4.ebuild | 172 ++++++++++++++++++++ net-fs/nfs-utils/nfs-utils-1.3.1-r5.ebuild | 172 ++++++++++++++++++++ net-fs/nfs-utils/nfs-utils-1.3.2-r6.ebuild | 177 +++++++++++++++++++++ 32 files changed, 1440 insertions(+) create mode 100644 net-fs/nfs-utils/Manifest create mode 100644 net-fs/nfs-utils/files/exports create mode 100644 net-fs/nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch create mode 100644 net-fs/nfs-utils/files/nfs-utils-1.2.8-cross-build.patch create mode 100644 net-fs/nfs-utils/files/nfs-utils-1.3.0-gcc-4.9.patch create mode 100644 net-fs/nfs-utils/files/nfs-utils-1.3.2-background-statd.patch create mode 100644 net-fs/nfs-utils/files/nfs-utils.conf create mode 100644 net-fs/nfs-utils/files/nfs.confd create mode 100755 net-fs/nfs-utils/files/nfs.initd create mode 100644 net-fs/nfs-utils/files/nfsclient.confd create mode 100644 net-fs/nfs-utils/files/nfsclient.initd create mode 100644 net-fs/nfs-utils/files/nfsd.service-r1 create mode 100644 net-fs/nfs-utils/files/nfsmount.confd create mode 100755 net-fs/nfs-utils/files/nfsmount.initd create mode 100644 net-fs/nfs-utils/files/nfsmount.initd-1.3.1 create mode 100644 net-fs/nfs-utils/files/proc-fs-nfsd.mount create mode 100644 net-fs/nfs-utils/files/rpc-gssd.service create mode 100644 net-fs/nfs-utils/files/rpc-idmapd.service create mode 100644 net-fs/nfs-utils/files/rpc-mountd.service-r1 create mode 100644 net-fs/nfs-utils/files/rpc-statd.service-r2 create mode 100644 net-fs/nfs-utils/files/rpc-svcgssd.service create mode 100755 net-fs/nfs-utils/files/rpc.gssd.initd create mode 100755 net-fs/nfs-utils/files/rpc.idmapd.initd create mode 100644 net-fs/nfs-utils/files/rpc.pipefs.initd create mode 100755 net-fs/nfs-utils/files/rpc.statd.initd create mode 100755 net-fs/nfs-utils/files/rpc.svcgssd.initd create mode 100644 net-fs/nfs-utils/files/var-lib-nfs-rpc_pipefs.mount create mode 100644 net-fs/nfs-utils/metadata.xml create mode 100644 net-fs/nfs-utils/nfs-utils-1.2.9-r3.ebuild create mode 100644 net-fs/nfs-utils/nfs-utils-1.3.1-r4.ebuild create mode 100644 net-fs/nfs-utils/nfs-utils-1.3.1-r5.ebuild create mode 100644 net-fs/nfs-utils/nfs-utils-1.3.2-r6.ebuild (limited to 'net-fs/nfs-utils') diff --git a/net-fs/nfs-utils/Manifest b/net-fs/nfs-utils/Manifest new file mode 100644 index 000000000000..987134ab8946 --- /dev/null +++ b/net-fs/nfs-utils/Manifest @@ -0,0 +1,3 @@ +DIST nfs-utils-1.2.9.tar.bz2 774112 SHA256 90b76d5692a520b74273e607a4fd69df4cc35f65e242e22e2bc61b58759722f3 SHA512 c71f986a7e8f38492f8411540b32fef904f689b45b831e0e3c193628085d09742c6352dc42d6d374b8ded12e2b54f8fb3c8de66695a36cf038fc4afa5c29879e WHIRLPOOL 22e86859e9bf7a9a298c91f73a8afea63aa1e39753062ff664a17601d311d62f8f0efed8a0c5271751b53bb46cfc91bf721ca852dc1e744e4bb51f321a34c119 +DIST nfs-utils-1.3.1.tar.bz2 785800 SHA256 748c4afbdfd3e92017fe579f1dd3280a10db1306c43228f83cd6b55f0d95aed3 SHA512 304e718aaee1df4decb0711c58c814ac773d55277baca01fd74d275969b9a1cee4bf0c0c20ba3ed72a112bd92b4744d45179f29a2a69a7fc2ca2590762a671c9 WHIRLPOOL 6fe5e9957c4a2775871ede47d1020f1a642e9242501ff3d21b74c4772ae8dfcafba27334e5844a06f9cc3e0fd286d1f90573511c2b198e330cb46c06cdbfc592 +DIST nfs-utils-1.3.2.tar.bz2 789540 SHA256 5b9c72eef260b86a84619771e11bb013b99431e6b7ff0bbdc03fee90dba591f7 SHA512 65633db58bbc5b6bff6acab412dc085affc61e0a6e0aef72d630e67d05a8d08012dced81178a4c7af65c967c25b48161f8d887d261fdf5ce505b719dbdab757c WHIRLPOOL eee615f032987aee71adf04a3ad5f5b8f79dc4487f1be1a7fb87c42918a12ef9397ba990b02d4adb02265706df9f1e3ef409c141491759c65b8037693b9b06c9 diff --git a/net-fs/nfs-utils/files/exports b/net-fs/nfs-utils/files/exports new file mode 100644 index 000000000000..5102ef27c150 --- /dev/null +++ b/net-fs/nfs-utils/files/exports @@ -0,0 +1 @@ +# /etc/exports: NFS file systems being exported. See exports(5). diff --git a/net-fs/nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch b/net-fs/nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch new file mode 100644 index 000000000000..c9e60afc74d2 --- /dev/null +++ b/net-fs/nfs-utils/files/nfs-utils-1.1.4-mtab-sym.patch @@ -0,0 +1,39 @@ +ripped from Debian + +--- nfs-utils-1.1.4/utils/mount/fstab.c ++++ nfs-utils-1.1.4/utils/mount/fstab.c +@@ -57,7 +57,7 @@ mtab_does_not_exist(void) { + return var_mtab_does_not_exist; + } + +-static int ++int + mtab_is_a_symlink(void) { + get_mtab_info(); + return var_mtab_is_a_symlink; +--- nfs-utils-1.1.4/utils/mount/fstab.h ++++ nfs-utils-1.1.4/utils/mount/fstab.h +@@ -7,6 +7,7 @@ + #define _PATH_FSTAB "/etc/fstab" + #endif + ++int mtab_is_a_symlink(void); + int mtab_is_writable(void); + int mtab_does_not_exist(void); + void reset_mtab_info(void); +--- nfs-utils-1.1.4/utils/mount/mount.c ++++ nfs-utils-1.1.4/utils/mount/mount.c +@@ -230,6 +230,13 @@ create_mtab (void) { + int flags; + mntFILE *mfp; + ++ /* Avoid writing if the mtab is a symlink to /proc/mounts, since ++ that would create a file /proc/mounts in case the proc filesystem ++ is not mounted, and the fchmod below would also fail. */ ++ if (mtab_is_a_symlink()) { ++ return EX_SUCCESS; ++ } ++ + lock_mtab(); + + mfp = nfs_setmntent (MOUNTED, "a+"); diff --git a/net-fs/nfs-utils/files/nfs-utils-1.2.8-cross-build.patch b/net-fs/nfs-utils/files/nfs-utils-1.2.8-cross-build.patch new file mode 100644 index 000000000000..7317115a0e18 --- /dev/null +++ b/net-fs/nfs-utils/files/nfs-utils-1.2.8-cross-build.patch @@ -0,0 +1,48 @@ +this is kind of hacky, but automake doesn't make this easy +for us atm, so hack away :( + +(recent autotools will always add $(CFLAGS)/etc... to the compile) + +--- a/tools/locktest/Makefile.am ++++ b/tools/locktest/Makefile.am +@@ -1,12 +1,11 @@ + ## Process this file with automake to produce Makefile.in + + CC=$(CC_FOR_BUILD) +-LIBTOOL = @LIBTOOL@ --tag=CC ++CFLAGS=$(CFLAGS_FOR_BUILD) ++CPPFLAGS=$(CPPFLAGS_FOR_BUILD) ++LDFLAGS=$(LDFLAGS_FOR_BUILD) + + noinst_PROGRAMS = testlk + testlk_SOURCES = testlk.c +-testlk_CFLAGS=$(CFLAGS_FOR_BUILD) +-testlk_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) +-testlk_LDFLAGS=$(LDFLAGS_FOR_BUILD) + + MAINTAINERCLEANFILES = Makefile.in +--- a/tools/rpcgen/Makefile.am ++++ b/tools/rpcgen/Makefile.am +@@ -1,7 +1,9 @@ + ## Process this file with automake to produce Makefile.in + + CC=$(CC_FOR_BUILD) +-LIBTOOL = @LIBTOOL@ --tag=CC ++CFLAGS=$(CFLAGS_FOR_BUILD) ++CPPFLAGS=$(CPPFLAGS_FOR_BUILD) ++LDFLAGS=$(LDFLAGS_FOR_BUILD) + + noinst_PROGRAMS = rpcgen + rpcgen_SOURCES = rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c \ +@@ -9,10 +11,6 @@ + rpc_util.c rpc_sample.c rpc_output.h rpc_parse.h \ + rpc_scan.h rpc_util.h + +-rpcgen_CFLAGS=$(CFLAGS_FOR_BUILD) +-rpcgen_CPPLAGS=$(CPPFLAGS_FOR_BUILD) +-rpcgen_LDFLAGS=$(LDFLAGS_FOR_BUILD) +-rpcgen_LDADD=$(LIBTIRPC) + + MAINTAINERCLEANFILES = Makefile.in + + EXTRA_DIST = rpcgen.new.1 diff --git a/net-fs/nfs-utils/files/nfs-utils-1.3.0-gcc-4.9.patch b/net-fs/nfs-utils/files/nfs-utils-1.3.0-gcc-4.9.patch new file mode 100644 index 000000000000..e2d98b517e32 --- /dev/null +++ b/net-fs/nfs-utils/files/nfs-utils-1.3.0-gcc-4.9.patch @@ -0,0 +1,62 @@ +From 25e83c2270b2d2966c992885faed0b79be09f474 Mon Sep 17 00:00:00 2001 +From: Jeff Layton +Date: Thu, 1 May 2014 11:15:16 -0400 +Subject: [PATCH [nfs-utils]] mountd: fix segfault in add_name with newer gcc + compilers + +I hit a segfault in add_name with a mountd built with gcc-4.9.0. Some +NULL pointer checks got reordered such that a pointer was dereferenced +before checking to see whether it was NULL. The problem was due to +nfs-utils relying on undefined behavior, which tricked gcc into assuming +that the pointer would never be NULL. + +At first I assumed that this was a compiler bug, but Jakub Jelinek and +Jeff Law pointed out: + +"If old is NULL, then: + + strncpy(new, old, cp-old); + +is undefined behavior (even when cp == old == NULL in that case), +therefore gcc assumes that old is never NULL, as otherwise it would be +invalid. + +Just guard + strncpy(new, old, cp-old); + new[cp-old] = 0; +with if (old) { ... }." + +This patch does that. If old is NULL though, then we still need to +ensure that new is NULL terminated, lest the subsequent strcats walk off +the end of it. + +Cc: Jeff Law +Cc: Jakub Jelinek +Signed-off-by: Jeff Layton +Signed-off-by: Steve Dickson +--- + support/export/client.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/support/export/client.c b/support/export/client.c +index dbf47b9..f85e11c 100644 +--- a/support/export/client.c ++++ b/support/export/client.c +@@ -482,8 +482,12 @@ add_name(char *old, const char *add) + else + cp = cp + strlen(cp); + } +- strncpy(new, old, cp-old); +- new[cp-old] = 0; ++ if (old) { ++ strncpy(new, old, cp-old); ++ new[cp-old] = 0; ++ } else { ++ new[0] = 0; ++ } + if (cp != old && !*cp) + strcat(new, ","); + strcat(new, add); +-- +2.0.0 + diff --git a/net-fs/nfs-utils/files/nfs-utils-1.3.2-background-statd.patch b/net-fs/nfs-utils/files/nfs-utils-1.3.2-background-statd.patch new file mode 100644 index 000000000000..393f70b87a99 --- /dev/null +++ b/net-fs/nfs-utils/files/nfs-utils-1.3.2-background-statd.patch @@ -0,0 +1,30 @@ +From 17a3e5bffb7110d46de1bf42b64b90713ff5ea50 Mon Sep 17 00:00:00 2001 +From: Chris Mayo +Date: Sun, 1 Feb 2015 12:03:46 -0500 +Subject: [PATCH] statd: Fix test for foreground mode + +daemon_init parameter has the opposite sense +to code removed in commit 7addf9d + +Signed-off-by: Chris Mayo +Signed-off-by: Steve Dickson +--- + utils/statd/statd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/utils/statd/statd.c b/utils/statd/statd.c +index 60ce6d1..2b7a167 100644 +--- a/utils/statd/statd.c ++++ b/utils/statd/statd.c +@@ -393,7 +393,7 @@ int main (int argc, char **argv) + simulator (--argc, ++argv); /* simulator() does exit() */ + #endif + +- daemon_init(!(run_mode & MODE_NODAEMON)); ++ daemon_init((run_mode & MODE_NODAEMON)); + + if (run_mode & MODE_LOG_STDERR) { + xlog_syslog(0); +-- +2.2.2 + diff --git a/net-fs/nfs-utils/files/nfs-utils.conf b/net-fs/nfs-utils/files/nfs-utils.conf new file mode 100644 index 000000000000..b9b586c2ac07 --- /dev/null +++ b/net-fs/nfs-utils/files/nfs-utils.conf @@ -0,0 +1,3 @@ +d /var/lib/nfs/rpc_pipefs +d /var/lib/nfs/v4recovery +d /var/lib/nfs/v4root diff --git a/net-fs/nfs-utils/files/nfs.confd b/net-fs/nfs-utils/files/nfs.confd new file mode 100644 index 000000000000..9dc14058c1fe --- /dev/null +++ b/net-fs/nfs-utils/files/nfs.confd @@ -0,0 +1,38 @@ +# /etc/conf.d/nfs + +# If you wish to set the port numbers for lockd, +# please see /etc/sysctl.conf + +# Optional services to include in default `/etc/init.d/nfs start` +# For NFSv4 users, you'll want to add "rpc.idmapd" here. +NFS_NEEDED_SERVICES="" + +# Options to pass to rpc.nfsd +OPTS_RPC_NFSD="8" + +# Options to pass to rpc.mountd +# ex. OPTS_RPC_MOUNTD="-p 32767" +OPTS_RPC_MOUNTD="" + +# Options to pass to rpc.statd +# ex. OPTS_RPC_STATD="-p 32765 -o 32766" +OPTS_RPC_STATD="" + +# Options to pass to rpc.idmapd +OPTS_RPC_IDMAPD="" + +# Options to pass to rpc.gssd +OPTS_RPC_GSSD="" + +# Options to pass to rpc.svcgssd +OPTS_RPC_SVCGSSD="" + +# Options to pass to rpc.rquotad (requires sys-fs/quota) +OPTS_RPC_RQUOTAD="" + +# Timeout (in seconds) for exportfs +EXPORTFS_TIMEOUT=30 + +# Options to set in the nfsd filesystem (/proc/fs/nfsd/). +# Format is