From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 18A83138361 for ; Tue, 11 May 2021 20:10:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AE4DE0815; Tue, 11 May 2021 20:10:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 45F49E0815 for ; Tue, 11 May 2021 20:10:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1C4CC340DFD for ; Tue, 11 May 2021 20:10:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 676C17D3 for ; Tue, 11 May 2021 07:56:37 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1620719788.1ddb11a28081efc0889a23e24022f270c1181fc1.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/nss-mdns/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/nss-mdns/Manifest sys-auth/nss-mdns/nss-mdns-0.15.ebuild X-VCS-Directories: sys-auth/nss-mdns/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1ddb11a28081efc0889a23e24022f270c1181fc1 X-VCS-Branch: master Date: Tue, 11 May 2021 07:56:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 19990f39-ab8d-4d64-bf3d-b6315a3fba42 X-Archives-Hash: 299429e019bd777829afb5ebe8a0c1f0 commit: 1ddb11a28081efc0889a23e24022f270c1181fc1 Author: Michał Górny gentoo org> AuthorDate: Tue May 11 07:08:21 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue May 11 07:56:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ddb11a2 sys-auth/nss-mdns: Bump to 0.15 Signed-off-by: Michał Górny gentoo.org> sys-auth/nss-mdns/Manifest | 1 + sys-auth/nss-mdns/nss-mdns-0.15.ebuild | 55 ++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/sys-auth/nss-mdns/Manifest b/sys-auth/nss-mdns/Manifest index 349b1652155..12f39cf5698 100644 --- a/sys-auth/nss-mdns/Manifest +++ b/sys-auth/nss-mdns/Manifest @@ -1 +1,2 @@ DIST nss-mdns-0.14.1.tar.gz 369978 BLAKE2B d1539ff5c1830a120d6ed4fafa36aa6effb9bb973b275317f5d8f4515aad7d2f69f095296a6b95ad8cc19d6eeb076b19b7987c5eabf29fd21f54cfe4a652ed3a SHA512 7c06b984443881a6c0a1f850ee33f14780562cc6168fe1cda176303eb799ece510d51d3830928616723bb95250ad6462978cd8b857f2b79d87116da2c1aeaa5e +DIST nss-mdns-0.15.tar.gz 374714 BLAKE2B a85051604bb7ae7661e6f1d08a99327363a4101641f1441d04388c09e67b651f5721ddac592676bd993314835c8da91bb1f8df52ec0cc1545926df433f490595 SHA512 e71b625a1ac9c36cb3db71e599b89b7ac237250cd9c99ae2e392c8fc1309eb7ba2d2c32f0695eb0b7bb993142a8803065de152cf002bea967e9c263aacd4b7ac diff --git a/sys-auth/nss-mdns/nss-mdns-0.15.ebuild b/sys-auth/nss-mdns/nss-mdns-0.15.ebuild new file mode 100644 index 00000000000..3f730ac134f --- /dev/null +++ b/sys-auth/nss-mdns/nss-mdns-0.15.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit multilib-minimal + +DESCRIPTION="Name Service Switch module for Multicast DNS" +HOMEPAGE="https://github.com/lathiat/nss-mdns" +SRC_URI="https://github.com/lathiat/nss-mdns/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=">=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + test? ( >=dev-libs/check-0.11[${MULTILIB_USEDEP}] )" + +multilib_src_configure() { + local myconf=( + # $(localstatedir)/run/... is used to locate avahi-daemon socket + --localstatedir=/var + + $(use_enable test tests) + ) + + ECONF_SOURCE=${S} \ + econf "${myconf[@]}" +} + +multilib_src_install_all() { + dodoc *.md + + insinto /etc + doins "${FILESDIR}"/mdns.allow +} + +pkg_postinst() { + ewarn "You have to modify your name service switch look up file to enable" + ewarn "multicast DNS lookups. If you wish to resolve only IPv6 addresses" + ewarn "use mdns6. For IPv4 addresses only, use mdns4. To resolve both" + ewarn "use mdns. Keep in mind that mdns will be slower if there are no" + ewarn "IPv6 addresses published via mDNS on the network. There are also" + ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts" + ewarn "and 169.254.x.x addresses." + ewarn + ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf." + ewarn "An example line looks like:" + ewarn "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4" + ewarn + ewarn "If you want to perform mDNS lookups for domains other than the ones" + ewarn "ending in .local, add them to /etc/mdns.allow." +}