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-libs/libnfsidmap/Manifest | 2 + .../files/libnfsidmap-0.19-getgrouplist.patch | 115 +++++++++++++++++++++ .../files/libnfsidmap-0.21-headers.patch | 22 ++++ net-libs/libnfsidmap/libnfsidmap-0.24.ebuild | 46 +++++++++ net-libs/libnfsidmap/libnfsidmap-0.25-r1.ebuild | 49 +++++++++ net-libs/libnfsidmap/libnfsidmap-0.25.ebuild | 45 ++++++++ net-libs/libnfsidmap/metadata.xml | 5 + 7 files changed, 284 insertions(+) create mode 100644 net-libs/libnfsidmap/Manifest create mode 100644 net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch create mode 100644 net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch create mode 100644 net-libs/libnfsidmap/libnfsidmap-0.24.ebuild create mode 100644 net-libs/libnfsidmap/libnfsidmap-0.25-r1.ebuild create mode 100644 net-libs/libnfsidmap/libnfsidmap-0.25.ebuild create mode 100644 net-libs/libnfsidmap/metadata.xml (limited to 'net-libs/libnfsidmap') diff --git a/net-libs/libnfsidmap/Manifest b/net-libs/libnfsidmap/Manifest new file mode 100644 index 000000000000..bdee430b60a5 --- /dev/null +++ b/net-libs/libnfsidmap/Manifest @@ -0,0 +1,2 @@ +DIST libnfsidmap-0.24.tar.gz 328720 SHA256 59501432e683336d7a290da13767e92afb5b86f42ea4254041225fe218e8dd47 SHA512 1283a4af1bcf3c6f941ab294acc0b2b4bd9ca947f2d3c2e866717478ba2e7a2190a5467b71d7e9136c5c83de564c4892f9e3304323ae17e3988af2e40c43982b WHIRLPOOL 7f9e81dec91429c09b24325bdf077d800b608bb87eeeb5d4334fa3dbbd50a4acf482162716c19c5f5175e48bf129dbf4611c1d6be933097753eeaab834192bae +DIST libnfsidmap-0.25.tar.gz 346587 SHA256 656d245d84400e1030f8f40a5a27da76370690c4a932baf249110f047fe7efcf SHA512 8acf30790cdd19341c75cb8a4f7ee4dbc9f688c8514258046e55c8f4245df213709ccb7d5327a11b146b0e3b7266d3d4da018699c6be47fbedcc4cd384b54557 WHIRLPOOL de71282707013a28fb8ad4b32edc90821ebe2f50d832607135383197ae185b6d4040b06feb864fd3ba5ac36efcac1b9c6528c5a13b8c81b5cda551f842bddfd0 diff --git a/net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch b/net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch new file mode 100644 index 000000000000..0d5d367b95b4 --- /dev/null +++ b/net-libs/libnfsidmap/files/libnfsidmap-0.19-getgrouplist.patch @@ -0,0 +1,115 @@ +http://bugs.gentoo.org/169909 + +--- libnfsidmap-0.19/configure.in ++++ libnfsidmap-0.19/configure.in +@@ -38,7 +38,7 @@ + + # Checks for library functions. + AC_FUNC_MALLOC +-AC_CHECK_FUNCS([strchr strdup]) ++AC_CHECK_FUNCS([strchr strdup getgrouplist]) + + AC_CONFIG_FILES([Makefile]) + AC_OUTPUT(libnfsidmap.pc) +--- libnfsidmap-0.19/nss.c ++++ libnfsidmap-0.19/nss.c +@@ -49,6 +49,8 @@ + #include "cfg.h" + #include + ++#include "getgrouplist.c" ++ + /* + * NSS Translation Methods + * +--- libnfsidmap-0.19/getgrouplist.c ++++ libnfsidmap-0.19/getgrouplist.c +@@ -0,0 +1,88 @@ ++/* ++ * getgrouplist.c ++ * ++ * if system does not provide the non-standard getgrouplist, we will emulate ++ * it via POSIX standard functions ++ * ++ * Copyright (c) 1991, 1993 ++ * The Regents of the University of California. All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * 4. Neither the name of the University nor the names of its contributors ++ * may be used to endorse or promote products derived from this software ++ * without specific prior written permission. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#ifdef HAVE_CONFIG_H ++#include "config.h" ++#endif ++#include ++#include ++#include ++#include ++ ++#ifndef HAVE_GETGROUPLIST ++static ++int ++getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt) ++{ ++ const struct group *grp; ++ int i, maxgroups, ngroups, ret; ++ ++ ret = 0; ++ ngroups = 0; ++ maxgroups = *grpcnt; ++ /* ++ * When installing primary group, duplicate it; ++ * the first element of groups is the effective gid ++ * and will be overwritten when a setgid file is executed. ++ */ ++ groups[ngroups++] = agroup; ++ if (maxgroups > 1) ++ groups[ngroups++] = agroup; ++ /* ++ * Scan the group file to find additional groups. ++ */ ++ setgrent(); ++ while ((grp = getgrent()) != NULL) { ++ for (i = 0; i < ngroups; i++) { ++ if (grp->gr_gid == groups[i]) ++ goto skip; ++ } ++ for (i = 0; grp->gr_mem[i]; i++) { ++ if (!strcmp(grp->gr_mem[i], uname)) { ++ if (ngroups >= maxgroups) { ++ ret = -1; ++ break; ++ } ++ groups[ngroups++] = grp->gr_gid; ++ break; ++ } ++ } ++skip: ++ ; ++ } ++ endgrent(); ++ *grpcnt = ngroups; ++ return (ret); ++} ++#endif diff --git a/net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch b/net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch new file mode 100644 index 000000000000..6ef12d44e44f --- /dev/null +++ b/net-libs/libnfsidmap/files/libnfsidmap-0.21-headers.patch @@ -0,0 +1,22 @@ +for toupper and such + +--- a/nss.c ++++ b/nss.c +@@ -34,6 +34,7 @@ + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#include + #include + #include + #include +--- a/libnfsidmap.c ++++ b/libnfsidmap.c +@@ -37,6 +37,7 @@ + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#include + #include + #include + #include diff --git a/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild b/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild new file mode 100644 index 000000000000..6f42eddf5a49 --- /dev/null +++ b/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit autotools eutils + +DESCRIPTION="NFSv4 ID <-> name mapping library" +HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/" +SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="ldap static-libs" + +DEPEND="ldap? ( net-nds/openldap )" +RDEPEND="${DEPEND} + ! + + +net-fs + -- cgit v1.2.3-18-g5258