From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-libs/libnfsidmap/Manifest | 10 ++ .../files/libnfsidmap-0.19-getgrouplist.patch | 115 +++++++++++++++++++++ .../files/libnfsidmap-0.21-headers.patch | 22 ++++ net-libs/libnfsidmap/libnfsidmap-0.24.ebuild | 45 ++++++++ net-libs/libnfsidmap/libnfsidmap-0.25-r1.ebuild | 48 +++++++++ net-libs/libnfsidmap/libnfsidmap-0.25.ebuild | 44 ++++++++ net-libs/libnfsidmap/metadata.xml | 8 ++ 7 files changed, 292 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..7033b9af63ef --- /dev/null +++ b/net-libs/libnfsidmap/Manifest @@ -0,0 +1,10 @@ +AUX libnfsidmap-0.19-getgrouplist.patch 3459 SHA256 214f347663610a63f56659da0f50eac95e0c59257c18f09edcdc37984fdc8596 SHA512 a778620b51158b07b7224ca010ba199feba85af7fc087bde65cfb8d2660bd7646c08d303a39d2af525b3a449694a60c3c35fe3b696cb0354b5d74423240a9e8d WHIRLPOOL d44d8f9272884d99f838483742cabbb2d0353b4d45f03988a6addcad54b6ad91059179697618595f7833df47d2e9f17747fc86ce4e94b725c497e19c9238cb2c +AUX libnfsidmap-0.21-headers.patch 438 SHA256 755314afbbdc82d2cb2e5f0114a3d6eae0d0978da859f215bb858e44a11296ff SHA512 55cc2dce6df5c215d2ba270324a2dabdd7c798d88dfe1f6ac01a7bfcddc1b9a23bc031fac2006682596f3984f0ce9782c8584e3b8e02a1b491ac978a69aca926 WHIRLPOOL 0ea374b911ba5209b621a363eff287647fdb8d3d98106276f143cb9fd03578c8c477482195876d8f751dcf59b9c1ecf8121f405caae4e0134f23a48cbcc86861 +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 +EBUILD libnfsidmap-0.24.ebuild 1072 SHA256 f67a543d9a9e2dc42b3bb07e8bd3207c994866a218ca4a080123ace0ec7cb79d SHA512 1de6d7598472c57587b95c46c0b2093438227efdc85800d340c85f32f05b2f4fe91b30c46c04fa735c8a222c47f2a0f0342624a296fad0f0abccdaaaf3d0432e WHIRLPOOL afa989bb022a610f59e6e4b449898ca4115ce1322957aa882f47a282956eca6351a872aafdc06359fc2543b539bbd55acf00d9943ecadcf7f60368d0b5f54d70 +EBUILD libnfsidmap-0.25-r1.ebuild 1235 SHA256 b381fe2b36cf6f6051e5776e42acbb19da4f89553a03e7b98b7ee48a95db1796 SHA512 92cf0726f5694b326bee3aa1cb4f51fe14904f34cd8f2e559d1d1918291fc4c34fb6e48942771113a839bd99798b2930d8e847dd4e134f2c057155b49222a0fe WHIRLPOOL faadccb2d9aef0c3d366430a8e27f46b9501f4157ed6d244f8963c7783612ebbc0e3b52163173edf5d772aa082061d53c13b439442749736c072eebfb1207fdf +EBUILD libnfsidmap-0.25.ebuild 1041 SHA256 d0438ca76d03080031d1c4a522f97364b2761bbe076143aeec90da74984a3c15 SHA512 b4729a00a7552f9643cfeda532564ee206820c1ea59f54c938117c5b70eed67918fa96224693c277dff3c09cff7e4a2250af0f23e4d3338df77036c8549cf234 WHIRLPOOL 42fba0fc8d540c3f08046fb041f5049615e7a42192d4f980a847a6a3dc8abc31b90fbbaa3093f15d40ab057cf111f843ef47b092878552c700e6a2de5a4fa42f +MISC ChangeLog 2786 SHA256 491cc37ba1eea4df2fcfe8487b13a07e11d621fbaa3a6d1e430244c148c0c148 SHA512 4f69c597806a97e5bdbcf14049239b9ebbbfb60bb0887a0afaaaf3832006515ccf8099935af83001fb13d5c082fac46998d71f6e8af985d4bf210ec9f1bb161e WHIRLPOOL 431ad3a93d250f052552c1c90f086f82cbd5d7e6b43ca0fa8f717e9cdb88de05e194f35176bbfede2e360da3a8cfc7f78057302ea34e216a0b42b4003f6f54b8 +MISC ChangeLog-2015 6783 SHA256 783cb293646c6cd96015732009c3d6c0a0d55368fdbaccf3c1f122c6e15ed757 SHA512 845a62b23b103eeab26645f45adac95b5ff5ab9f2915b955cbb1cfb38d40414a7889bed6ae45e5a626dcb96142bde8b77c6bead1ea0fa854ffd59625cea53a00 WHIRLPOOL d677bfbe7da6f6d6cf3550fd60dc91341221cc9b78e0c9fac023b73e2fb15f95457f74b5fbd9cc4e1baf2a2bda7a7866e1ad0d6f65e328b1fffa880c23838d9d +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 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..6cf4e36fb64a --- /dev/null +++ b/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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} + ! + + + + base-system@gentoo.org + Gentoo Base System + + -- cgit v1.2.3