From a5956e0a0daddcad648e0d8d8e5cb3e49e09bda7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 18 Nov 2017 18:38:22 +0000 Subject: gentoo resync : 18.11.2017 --- sys-auth/consolekit/Manifest | 2 +- sys-auth/consolekit/consolekit-1.2.0.ebuild | 2 +- sys-auth/libnss-nis/Manifest | 4 + sys-auth/libnss-nis/files/map_v4v6_address.patch | 112 +++++++++++++++++++++++ sys-auth/libnss-nis/libnss-nis-1.3.ebuild | 48 ++++++++++ sys-auth/libnss-nis/metadata.xml | 7 ++ 6 files changed, 173 insertions(+), 2 deletions(-) create mode 100644 sys-auth/libnss-nis/Manifest create mode 100644 sys-auth/libnss-nis/files/map_v4v6_address.patch create mode 100644 sys-auth/libnss-nis/libnss-nis-1.3.ebuild create mode 100644 sys-auth/libnss-nis/metadata.xml (limited to 'sys-auth') diff --git a/sys-auth/consolekit/Manifest b/sys-auth/consolekit/Manifest index 06f3e9dde010..fd2741e618f2 100644 --- a/sys-auth/consolekit/Manifest +++ b/sys-auth/consolekit/Manifest @@ -16,7 +16,7 @@ DIST consolekit_0.4.6-4.debian.tar.gz 12192 SHA256 6d4dd5e13a76454b4bab27ab6b407 EBUILD consolekit-0.4.6.ebuild 3396 SHA256 69aee2e526d17e7be61d82199e0b9ae1d6d52431ec0c97bcb06b842966d3d69c SHA512 2a0acd029eb9db8d3035d0fbdc52e5c0cf6a84779dfd41d7175970b8c4ff8600292302740d375eacf8fa0939714d82c3c602f285abf811fa36e29c3e41eb7e3a WHIRLPOOL 1789b31faffc8d565650562fa2e1f0ab7e07b49c689a45bf1b5d54447f890161dc97d08da6662644b1affc0b6eb4fe61d915c766465644d8001226d7093efb13 EBUILD consolekit-1.1.0-r1.ebuild 3238 SHA256 bb02ece53c8df44c4e9231c69858668ee1c62bcbd0cfe9ef8d67921ac1d806f7 SHA512 d124ec42562ab4bb87e34344dd165a70f5fb0116f016d901dd6f2cfa3123540f72ec1466c0c40406f9b1a7629c4a2854c8905ba24984851cf4acfdcd1a3226b8 WHIRLPOOL 85796ca9fc312ee227ab6b47eb71d861354030f7621feab62d723335df034b02da369acc1b40cfe8661981120733d68abf5e3d195a861576583062c8228b8212 EBUILD consolekit-1.1.2.ebuild 3507 SHA256 50cb27aa721430efaae6a0fc128432c36dc5049709b1bb7085925d50b505b16a SHA512 e42f804f32026ca15fa13a38535e4808c1552864d952924a4f1922af8a6cc638b4bdd79f52479fd8d81afca9b8b0ab0a4c6e3f503646595573a52668198741df WHIRLPOOL 14004e62be9ad1752c74d644c423dd629859e5992ee4d23de374acb13068fbf6d20e9d0f60b78b0cbb04c2265f7d1801d45a2a70c667a439e4f1b57cdfb1e88c -EBUILD consolekit-1.2.0.ebuild 3538 SHA256 284a08f875f9425cf82a1eed01a87587479cb44502c4d4aef5c5539be8519f89 SHA512 300b8c47fc3caedbeb3e63c6880473fed51c9bd852ab7882d759f8284b6901089e18d38a2fdb6d01be74970901738bc2419e1ac066bc3e2767db24507328492a WHIRLPOOL ab0e2d4d797b02ae8283e278440786534ef821b3d78ef05270579a05478b3230222d8d46d49a3735e6705ce0daf850b1ca4e8223e81510c0ee4ad4a5846c6ade +EBUILD consolekit-1.2.0.ebuild 3537 SHA256 930d966ea6d097187662016eb399c65e520171c0883450deee9f4b6761d39dd8 SHA512 55d97dc93baa40415c91ec047506dafe3a98c148ea121f64d5f3f2191ecd2aea5cb253bbc1189042525faff39e3123a990fdb764b65689fbae71aeee32eec67a WHIRLPOOL 0cbe65c0142f22b73e1b9751aa5597e1cb67be78ce4b019ae065a507ecb5cb51dd7dfc7a81f8393095d23e9f5a2b521692bc8a670cc2d807a16e959d7c5b808f EBUILD consolekit-9999.ebuild 3311 SHA256 2197dd7144686db2715b99f7b718f5089629c8dbe7757d355eea3fc5446e7a77 SHA512 d28c3a5da5ece93cf7e9f22746ffcbd53beee19b9106258c210b4ff937713cff650771cdfd4d2919d4122517f2e534d5e7861d3a8392d4fc4e691e92a25e4b69 WHIRLPOOL 605e200b25ccc2a93b16339d861e9c860708c216f64d1dfd98218ae952d6be4d1e9c768cffe438d3838f42cf4fa2429976493a2fba9d37b5680d1c0b475efe3f MISC ChangeLog 11611 SHA256 f404a21305473e08a34ed4cf11635b310df9225f7371b32a614df4d6b78e3ead SHA512 d5ec5fa0ac8691acd134e4bbce34b3ffa762a5a78f6b9354c9388a892277984a986585fea415691437beec2f1bc4f004420cbab5a94c0f4111a3766dcb56bc38 WHIRLPOOL 6d205c944d8926186ce6e1c1824474d79ea8251b25a9dfd3ea8825259c10cd2e8f08fe062dfbe44f95ad0176c175fbb092a0549f5499f75f52821e64c518da6b MISC ChangeLog-2015 27717 SHA256 bb12cd6e6784f6f87a420e8cf1dea2e5000c0f87f9ca652702492eb14f116b34 SHA512 e01c42a85818919e57aeb58c7713f3fae740094a743f83f41b6b70cc9b3b537add09b0b7ab3f935bdd033f65efc084113db3f510c69c9009f31f308ce26795b5 WHIRLPOOL 802c7719cb7361cc6c3b9e8640371a389ed3cc250cd3868cf26d078e0022065408c5b3ac69de5f6a71a63ac3e4fee1a39e626eb55df5b3e2412d35bc11335ef5 diff --git a/sys-auth/consolekit/consolekit-1.2.0.ebuild b/sys-auth/consolekit/consolekit-1.2.0.ebuild index cfc737bd2691..4c16532eb8d7 100644 --- a/sys-auth/consolekit/consolekit-1.2.0.ebuild +++ b/sys-auth/consolekit/consolekit-1.2.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/${PV}/${MY_P}.ta LICENSE="GPL-2" SLOT="0" -KEYWORDS="alpha amd64 ~arm ~arm64 ~hppa ia64 ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ppc ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" IUSE="acl cgroups debug doc evdev kernel_linux pam pm-utils policykit selinux test udev" COMMON_DEPEND=">=dev-libs/glib-2.40:2=[dbus] diff --git a/sys-auth/libnss-nis/Manifest b/sys-auth/libnss-nis/Manifest new file mode 100644 index 000000000000..fca0d008ec0f --- /dev/null +++ b/sys-auth/libnss-nis/Manifest @@ -0,0 +1,4 @@ +AUX map_v4v6_address.patch 4715 SHA256 034ffcd174338a0aa1b6dcdb31d66315caa2e6eed0435437b293b70bb348f402 SHA512 c562e8e7145cb53ede19eed092fa8c547577c8c49bab52ca749a869a49a5d4c010b48b8dcbe09d8184ce8cb8276c6dfcba0ca2969719f9115d367574046b1540 WHIRLPOOL 81c45ad9bdad5966213168a5e36ce1f5534c7a94899659d4d1977cce340ee9a47d88e7028cf3afd56f4a27a89ceb3758e27ec582fc999b0ea1d01963b1b88b1c +DIST libnss-nis-1.3.tar.gz 208580 SHA256 ddf49c60b2eb944929d5b7ffe74d6c95f9df0843e68d450cf5ba0f35b59c906d SHA512 d5af3223da2202f2f3168f127980bb6b3f3c5939e2efe4d68fe3d13b6068898be7a64494f2c80a31afa77fb411c8d360519e5d26709d6aebca2bfb2d0c09cd26 WHIRLPOOL a181277f93183fa33abb07c838a03b3e1373d8471577f85083d0e07cb7a9865c383a073df9d5f9700d56d483c1409cb5b4dfaa2194a8d0db3f7fc78620b348ea +EBUILD libnss-nis-1.3.ebuild 914 SHA256 24b39d75cf612564ee2d0488845c4c219b7af84a13d1fa7a1f5dd2bb87fe8d9e SHA512 f35fb504684920fbdc93b01689b51605cd5e132d77d85334a384783e2bd5b5761144e66ea09d650d421a441b68642e813361912b43b26d04a8068feb04d3bfe8 WHIRLPOOL 37ede184f3d6382e17e5b6a4298c50b7f630da2442371eaeff431bf6de1a825b67cb467c07917e175754b1e84920811f0e4ffa9fb17b7aee8c98fda03e91589f +MISC metadata.xml 221 SHA256 5f1067fecbad0f03b8f0bda76aa6aeb2334bd0194f44f741df6eb94065fcc34a SHA512 edb14bd2dae6ad57f77c07fc601cf2782589165c7e48e1e123eff7e47044febfdb1e19d18cd0b240fd2ca494e3401b5aa1f1243480769e0faf5dbfa377d20a3b WHIRLPOOL 8d9477151de9fa0453a07cbba0f7e48d800a6a59c62ceb663d89869d0e94c8e92fe8148425d3fe4281fd12a5de40355f2e33ec357efdc4daf282664907370846 diff --git a/sys-auth/libnss-nis/files/map_v4v6_address.patch b/sys-auth/libnss-nis/files/map_v4v6_address.patch new file mode 100644 index 000000000000..85a69d71c5bc --- /dev/null +++ b/sys-auth/libnss-nis/files/map_v4v6_address.patch @@ -0,0 +1,112 @@ +From df903b621d4010c94129455a3f8d91d66f0fcd1f Mon Sep 17 00:00:00 2001 +From: Mike Gilbert +Date: Fri, 17 Nov 2017 13:44:10 -0500 +Subject: [PATCH] Copy the map_v4v6_address function from glibc + +Fixes: https://github.com/thkukuk/libnss_nis/issues/1 +--- + src/Makefile.am | 3 ++- + src/map_v4v6_address.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ + src/nis-hosts.c | 3 +-- + 3 files changed, 71 insertions(+), 3 deletions(-) + create mode 100644 src/map_v4v6_address.h + +diff --git a/src/Makefile.am b/src/Makefile.am +index 9eb3d35..56108aa 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -27,4 +27,5 @@ libnss_nis_la_LIBADD = @LIBNSL_LIBS@ + libnss_nis_la_SOURCES = nis-alias.c nis-ethers.c nis-grp.c nis-hosts.c \ + nis-initgroups.c nis-netgrp.c nis-network.c \ + nis-proto.c nis-publickey.c nis-pwd.c nis-rpc.c \ +- nis-service.c nis-spwd.c nss-nis.c nss-default.c ++ nis-service.c nis-spwd.c nss-nis.c nss-default.c \ ++ map_v4v6_address.h +diff --git a/src/map_v4v6_address.h b/src/map_v4v6_address.h +new file mode 100644 +index 0000000..d9a46c9 +--- /dev/null ++++ b/src/map_v4v6_address.h +@@ -0,0 +1,68 @@ ++/* ++ * ++Copyright++ 1985, 1988, 1993 ++ * - ++ * Copyright (c) 1985, 1988, 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. ++ * - ++ * Portions Copyright (c) 1993 by Digital Equipment Corporation. ++ * ++ * Permission to use, copy, modify, and distribute this software for any ++ * purpose with or without fee is hereby granted, provided that the above ++ * copyright notice and this permission notice appear in all copies, and that ++ * the name of Digital Equipment Corporation not be used in advertising or ++ * publicity pertaining to distribution of the document or software without ++ * specific, written prior permission. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL ++ * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT ++ * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL ++ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR ++ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ++ * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ++ * SOFTWARE. ++ * - ++ * --Copyright-- ++ */ ++ ++static void ++map_v4v6_address (const char *src, char *dst) ++{ ++ u_char *p = (u_char *)dst; ++ char tmp[INADDRSZ]; ++ int i; ++ ++ /* Stash a temporary copy so our caller can update in place. */ ++ memcpy(tmp, src, INADDRSZ); ++ /* Mark this ipv6 addr as a mapped ipv4. */ ++ for (i = 0; i < 10; i++) ++ *p++ = 0x00; ++ *p++ = 0xff; ++ *p++ = 0xff; ++ /* Retrieve the saved copy and we're done. */ ++ memcpy((void*)p, tmp, INADDRSZ); ++} +diff --git a/src/nis-hosts.c b/src/nis-hosts.c +index ef6bb47..53ab965 100644 +--- a/src/nis-hosts.c ++++ b/src/nis-hosts.c +@@ -35,8 +35,7 @@ + #include "libc-lock.h" + #include "nss-nis.h" + +-/* Get implementation for some internal functions. */ +-#include ++#include "map_v4v6_address.h" + + #define ENTNAME hostent + #define DATABASE "hosts" diff --git a/sys-auth/libnss-nis/libnss-nis-1.3.ebuild b/sys-auth/libnss-nis/libnss-nis-1.3.ebuild new file mode 100644 index 000000000000..a11029475e38 --- /dev/null +++ b/sys-auth/libnss-nis/libnss-nis-1.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multilib-minimal + +DESCRIPTION="NSS module to provide NIS support" +HOMEPAGE="https://github.com/thkukuk/libnss_nis" +SRC_URI="https://github.com/thkukuk/libnss_nis/archive/libnss_nis-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1+ BSD ISC" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND=" + net-libs/libnsl:0=[${MULTILIB_USEDEP}] + net-libs/libtirpc:0=[${MULTILIB_USEDEP}] + ! + + + + toolchain@gentoo.org + + -- cgit v1.2.3