From a09d98e42c4f4df38ea3da05f8e2aa9cc15c1dc3 Mon Sep 17 00:00:00 2001 From: Dagg Date: Sat, 10 Jan 2015 14:37:00 +0000 Subject: [PATCH] add musl based libnfsidmap --- net-libs/libnfsidmap/ChangeLog | 198 +++++++++++++++++++++ net-libs/libnfsidmap/Manifest | 7 + .../files/0001-add_missing_header_musl.patch | 12 ++ .../files/libnfsidmap-0.19-getgrouplist.patch | 115 ++++++++++++ .../files/libnfsidmap-0.21-headers.patch | 22 +++ net-libs/libnfsidmap/libnfsidmap-0.24-r99.ebuild | 48 +++++ net-libs/libnfsidmap/metadata.xml | 5 + 7 files changed, 407 insertions(+) create mode 100644 net-libs/libnfsidmap/ChangeLog create mode 100644 net-libs/libnfsidmap/Manifest create mode 100644 net-libs/libnfsidmap/files/0001-add_missing_header_musl.patch 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-r99.ebuild create mode 100644 net-libs/libnfsidmap/metadata.xml diff --git a/net-libs/libnfsidmap/ChangeLog b/net-libs/libnfsidmap/ChangeLog new file mode 100644 index 0000000..6f63e85 --- /dev/null +++ b/net-libs/libnfsidmap/ChangeLog @@ -0,0 +1,198 @@ +# ChangeLog for net-libs/libnfsidmap +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libnfsidmap/ChangeLog,v 1.45 2014/03/15 16:20:45 vapier Exp $ + +*libnfsidmap-0.25-r1 (15 Mar 2014) + + 15 Mar 2014; Mike Frysinger +libnfsidmap-0.25-r1.ebuild: + Set plugins dir to right libdir #504666 by Sergey Popov. + + 18 Jan 2014; Mike Frysinger libnfsidmap-0.24.ebuild, + libnfsidmap-0.25.ebuild: + Add arm64 love. + + 20 Dec 2013; Mike Frysinger + files/libnfsidmap-0.19-getgrouplist.patch: + Fix building with getgrouplist in older versions #494770 by smkbot. + +*libnfsidmap-0.25 (17 Dec 2013) + + 17 Dec 2013; Mike Frysinger +libnfsidmap-0.25.ebuild, + files/libnfsidmap-0.19-getgrouplist.patch: + Version bump #489006 by michal.halenka. + + 21 May 2012; Kacper Kowalik + libnfsidmap-0.21-r1.ebuild, libnfsidmap-0.23-r1.ebuild, + libnfsidmap-0.24.ebuild: + Add missing inheritance of eutils.eclass + + 04 Feb 2012; Raúl Porcel libnfsidmap-0.24.ebuild: + alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #400441 + + 01 Feb 2012; Samuli Suominen libnfsidmap-0.24.ebuild: + ppc/ppc64 stable wrt #400441 + + 31 Jan 2012; Jeroen Roovers libnfsidmap-0.24.ebuild: + Stable for HPPA (bug #400441). + + 28 Jan 2012; Pawel Hajdan jr libnfsidmap-0.24.ebuild: + x86 stable wrt bug #400441 + + 27 Jan 2012; Agostino Sarubbo libnfsidmap-0.24.ebuild: + Stable for amd64, wrt bug #400441 + +*libnfsidmap-0.24 (02 Sep 2011) + + 02 Sep 2011; Mike Frysinger +libnfsidmap-0.24.ebuild: + Version bump and USE=static-libs support. + +*libnfsidmap-0.23-r1 (14 Sep 2010) + + 14 Sep 2010; Mike Frysinger + files/libnfsidmap-0.21-headers.patch, +libnfsidmap-0.23-r1.ebuild: + Fix static lib handling and block newer nfs-utils due to man page collision + #337213 by Robin Johnson. + +*libnfsidmap-0.23 (27 Jul 2010) + + 27 Jul 2010; Diego E. Pettenò + -libnfsidmap-0.19.ebuild, +libnfsidmap-0.23.ebuild: + Remove old version, add a new one that does not build useless static + archives and does not install .la files. + + 25 Mar 2009; Raúl Porcel libnfsidmap-0.21-r1.ebuild: + arm/ia64/s390/sh/sparc stable wrt #261334 + + 18 Mar 2009; Joseph Jezak libnfsidmap-0.21-r1.ebuild: + Marked ppc stable for bug #261334. + + 15 Mar 2009; Markus Meier libnfsidmap-0.21-r1.ebuild: + x86 stable, bug #261334 + + 15 Mar 2009; Brent Baude libnfsidmap-0.21-r1.ebuild: + Marking libnfsidmap-0.21-r1 ppc64 for bug 261334 + + 11 Mar 2009; Tobias Klausmann + libnfsidmap-0.21-r1.ebuild: + Stable on alpha, bug #261334 + + 10 Mar 2009; Dawid Węgliński + libnfsidmap-0.21-r1.ebuild: + Stable on amd64 (bug #261334) + + 06 Mar 2009; Jeroen Roovers libnfsidmap-0.21-r1.ebuild: + Stable for HPPA (bug #261334). + + 02 Feb 2009; Mike Frysinger + +files/libnfsidmap-0.21-headers.patch, libnfsidmap-0.21-r1.ebuild: + Fix prototype warnings. + + 02 Feb 2009; Torsten Veller libnfsidmap-0.21-r1.ebuild: + Back to ~arch until ! libnfsidmap-0.21-r1.ebuild: + amd64/x86 stable, bug #257148 + + 01 Feb 2009; Tobias Klausmann + libnfsidmap-0.21-r1.ebuild: + Stable on alpha, bug #257148 + +*libnfsidmap-0.21-r1 (26 Oct 2008) + + 26 Oct 2008; Mike Frysinger + +libnfsidmap-0.21-r1.ebuild: + Provide idmapd.conf now #243066. + +*libnfsidmap-0.21 (16 Aug 2008) + + 16 Aug 2008; Mike Frysinger +libnfsidmap-0.21.ebuild: + Version bump. + + 13 Oct 2007; Markus Rothe libnfsidmap-0.19.ebuild: + Stable on ppc64; bug #191296 + + 09 Oct 2007; Raúl Porcel libnfsidmap-0.19.ebuild: + sparc stable wrt #191296 + + 23 Sep 2007; Wulf C. Krueger + libnfsidmap-0.19.ebuild: + Marked stable on amd64 as per bug 191296. + + 08 Sep 2007; nixnut libnfsidmap-0.19.ebuild: + Stable on ppc wrt bug 191296 + + 07 Sep 2007; Jeroen Roovers libnfsidmap-0.19.ebuild: + Stable for HPPA (bug #191296). + + 06 Sep 2007; Raúl Porcel libnfsidmap-0.19.ebuild: + alpha/ia64/x86 stable wrt #191296 + +*libnfsidmap-0.20 (04 Sep 2007) + + 04 Sep 2007; Mike Frysinger +libnfsidmap-0.20.ebuild: + Version bump #190586 by Francisco Javier. + + 25 Mar 2007; Mike Frysinger + +files/libnfsidmap-0.19-getgrouplist.patch, libnfsidmap-0.19.ebuild: + Provide getgrouplist() when need be #169909 by Natanael Copa. + + 31 Jan 2007; Tobias Scherbaum + libnfsidmap-0.17.ebuild: + Stable on ppc wrt bug #161640. + + 26 Jan 2007; Alexander H. Færøy + libnfsidmap-0.17.ebuild: + Stable on MIPS; bug #161640 + +*libnfsidmap-0.19 (21 Jan 2007) + + 21 Jan 2007; Mike Frysinger +libnfsidmap-0.19.ebuild: + Version bump #162910 by Erik Logtenberg. + + 16 Jan 2007; Olivier Crête libnfsidmap-0.17.ebuild: + Stable on amd64 per bug #161640 + + 12 Jan 2007; Markus Rothe libnfsidmap-0.17.ebuild: + Stable on ppc64; bug #161640 + + 12 Jan 2007; Christian Faulhammer + libnfsidmap-0.17.ebuild: + stable x86, bug #161640 + + 28 Dec 2006; Gustavo Zacarias + libnfsidmap-0.17.ebuild: + Stable on sparc + + 04 Dec 2006; Jeroen Roovers libnfsidmap-0.17.ebuild: + Stable for HPPA. + + 21 Oct 2006; Aron Griffis libnfsidmap-0.17.ebuild: + Mark 0.17 stable on alpha/ia64 + +*libnfsidmap-0.17 (22 Aug 2006) + + 22 Aug 2006; Mike Frysinger +libnfsidmap-0.17.ebuild: + Version bump #143975 by Erik Logtenberg. + +*libnfsidmap-0.16 (10 Jun 2006) + + 10 Jun 2006; Mike Frysinger : + Version bump / rename. + +*nfsidmap-0.10 (15 Mar 2005) + + 15 Mar 2005; Mike Frysinger +nfsidmap-0.10.ebuild: + Version bump. + +*nfsidmap-0.9 (04 Feb 2005) + + 04 Feb 2005; Aron Griffis +nfsidmap-0.9.ebuild: + Bump to version 0.9 + + 08 Jan 2005; Sven Wegener nfsidmap-0.7.ebuild: + Added inherit flag-o-matic. + +*nfsidmap-0.7 (30 Dec 2004) + + 30 Dec 2004; Mike Frysinger : + Initial import. Ebuild submitted by Micheal Marineau #70732. diff --git a/net-libs/libnfsidmap/Manifest b/net-libs/libnfsidmap/Manifest new file mode 100644 index 0000000..66a1489 --- /dev/null +++ b/net-libs/libnfsidmap/Manifest @@ -0,0 +1,7 @@ +AUX 0001-add_missing_header_musl.patch 278 SHA256 5ad941e71e4523f22da5f30c7855e6657193470917a6ee3b4143f04967b4af09 SHA512 34dd3d7c0723cf95518a6f28b7b522d35a4f653bf6496d3b46fa57602b41f761e60e51ada7334422950fcd8a0cae559caf82bb9c2822c9f688e0d009476c4389 WHIRLPOOL a981aed6d9c84363375c720719a4fa9e87bae5f324bf02b41324ecb107ce4d325e0e0cca9afd0b95994bf97aeea7ab1254ae1610d97ec5e23b6b9505665a2791 +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 +EBUILD libnfsidmap-0.24-r99.ebuild 1218 SHA256 a5b98542269544e1650e85a99412f7fbae1c4e9858479ac430b98d9da29f223d SHA512 125171f6e35bf523175188850edbadf74c5a44d7e26946cf9bce0ffcdc538f4222ce46a50f6c226337718bcbf89c8f844ec0238c13296927c75128fabdd4be6b WHIRLPOOL 451bcb135672d6455a4caedcbaaa07e61d534077d6c0ff773708da013c88a343e366a15299b5adabbf5a336358373c38f04997264cad1ad148a03b6c0b636dec +MISC ChangeLog 6661 SHA256 3d860d955a6294e60878e87f0f757dff1c396d00a3bfacc79189b8ec144c3d08 SHA512 af86d2dec4c28406856e8c60b84082e12e94605040235936367800b2ef0fcec55680e41bd438fd755bc6b1327773c4535238a210ec565137c61103970c051f5e WHIRLPOOL 17d61973cdd0a152c7cde52a77d350250495f4b4c895e940f058f13df2174799d1fd7403e571a9cef5d100b03b26a054e74b0b787ee8543d947b3b754f1427f3 +MISC metadata.xml 159 SHA256 562c59615c028ffa088de789b3a792fd4cbbbfe71628ddd6a55d3b176becbc6b SHA512 9645bd7d570c2eefd7f14adf726c056a6295d45263f143e365a3fd2e8e6128392eb5fa1103b3a3bb60a622b4595ac7fe3ec19430184210ff63e86d5f03635704 WHIRLPOOL 1d62390192bf65ac30d67f3c0a872536dd8e6a5a0d8d978e5e8f83f09e44907abf16825066c9976e8be482398385737a024837da3c544eaf912ec2710318e289 diff --git a/net-libs/libnfsidmap/files/0001-add_missing_header_musl.patch b/net-libs/libnfsidmap/files/0001-add_missing_header_musl.patch new file mode 100644 index 0000000..c94748e --- /dev/null +++ b/net-libs/libnfsidmap/files/0001-add_missing_header_musl.patch @@ -0,0 +1,12 @@ +--- cfg.h 2015-01-10 14:25:50.384148769 +0000 ++++ cfg.h 2015-01-10 14:28:23.062148769 +0000 +@@ -33,6 +33,9 @@ + #ifndef _CONF_H_ + #define _CONF_H_ + ++#if ! defined(__GLIBC__) || ! defined(__UCLIBC__) ++#include ++#endif + #include "queue.h" + + struct conf_list_node { 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 0000000..0d5d367 --- /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 0000000..6ef12d4 --- /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-r99.ebuild b/net-libs/libnfsidmap/libnfsidmap-0.24-r99.ebuild new file mode 100644 index 0000000..4cab199 --- /dev/null +++ b/net-libs/libnfsidmap/libnfsidmap-0.24-r99.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libnfsidmap/libnfsidmap-0.24.ebuild,v 1.8 2014/01/18 04:50:16 vapier Exp $ + +EAPI="2" + +inherit autotools eutils + +DESCRIPTION="NFSv4 ID <-> name mapping library" +HOMEPAGE="http://www.citi.umich.edu/projects/nfsv4/linux/" +SRC_URI="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" +IUSE="ldap static-libs" + +DEPEND="ldap? ( net-nds/openldap )" +RDEPEND="${DEPEND} + ! + + +net-fs + -- 2.0.5