1 |
commit: e1b482efe55f94b4a6a5741ad257349eb2c165c6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 4 15:55:21 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 4 16:08:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1b482ef |
7 |
|
8 |
sys-auth/nss-mdns: Bump to 0.14.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-auth/nss-mdns/Manifest | 1 + |
13 |
sys-auth/nss-mdns/nss-mdns-0.14.1.ebuild | 55 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/sys-auth/nss-mdns/Manifest b/sys-auth/nss-mdns/Manifest |
17 |
index b7a8af7b630..6ca2a4263e7 100644 |
18 |
--- a/sys-auth/nss-mdns/Manifest |
19 |
+++ b/sys-auth/nss-mdns/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST nss-mdns-0.13.tar.gz 380261 BLAKE2B 555b7b9df8ff15da423712fac04ccbc303395d38a07121906cf31871a8684c71e43809b80674a489d87397902a33f4d19b0ae49a4c384290bad227a24880476f SHA512 f1b379111fb758323179ea3e447d754e934308940b11a8402dfb6033264940d831266d15ae1ee0badfecd5cdc7f589b42e4363dfc058f5e62026017d97eb0a3b |
22 |
+DIST nss-mdns-0.14.1.tar.gz 369978 BLAKE2B d1539ff5c1830a120d6ed4fafa36aa6effb9bb973b275317f5d8f4515aad7d2f69f095296a6b95ad8cc19d6eeb076b19b7987c5eabf29fd21f54cfe4a652ed3a SHA512 7c06b984443881a6c0a1f850ee33f14780562cc6168fe1cda176303eb799ece510d51d3830928616723bb95250ad6462978cd8b857f2b79d87116da2c1aeaa5e |
23 |
|
24 |
diff --git a/sys-auth/nss-mdns/nss-mdns-0.14.1.ebuild b/sys-auth/nss-mdns/nss-mdns-0.14.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..4a8a3740c18 |
27 |
--- /dev/null |
28 |
+++ b/sys-auth/nss-mdns/nss-mdns-0.14.1.ebuild |
29 |
@@ -0,0 +1,55 @@ |
30 |
+# Copyright 1999-2019 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+inherit multilib-minimal |
35 |
+ |
36 |
+DESCRIPTION="Name Service Switch module for Multicast DNS" |
37 |
+HOMEPAGE="https://github.com/lathiat/nss-mdns" |
38 |
+SRC_URI="https://github.com/lathiat/nss-mdns/releases/download/v${PV}/${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="GPL-2+" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86" |
43 |
+IUSE="test" |
44 |
+RESTRICT="!test? ( test )" |
45 |
+ |
46 |
+RDEPEND=">=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}]" |
47 |
+DEPEND="${RDEPEND} |
48 |
+ test? ( >=dev-libs/check-0.11[${MULTILIB_USEDEP}] )" |
49 |
+ |
50 |
+multilib_src_configure() { |
51 |
+ local myconf=( |
52 |
+ # $(localstatedir)/run/... is used to locate avahi-daemon socket |
53 |
+ --localstatedir=/var |
54 |
+ |
55 |
+ $(use_enable test tests) |
56 |
+ ) |
57 |
+ |
58 |
+ ECONF_SOURCE=${S} \ |
59 |
+ econf "${myconf[@]}" |
60 |
+} |
61 |
+ |
62 |
+multilib_src_install_all() { |
63 |
+ dodoc *.md |
64 |
+ |
65 |
+ insinto /etc |
66 |
+ doins "${FILESDIR}"/mdns.allow |
67 |
+} |
68 |
+ |
69 |
+pkg_postinst() { |
70 |
+ ewarn "You have to modify your name service switch look up file to enable" |
71 |
+ ewarn "multicast DNS lookups. If you wish to resolve only IPv6 addresses" |
72 |
+ ewarn "use mdns6. For IPv4 addresses only, use mdns4. To resolve both" |
73 |
+ ewarn "use mdns. Keep in mind that mdns will be slower if there are no" |
74 |
+ ewarn "IPv6 addresses published via mDNS on the network. There are also" |
75 |
+ ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts" |
76 |
+ ewarn "and 169.254.x.x addresses." |
77 |
+ ewarn |
78 |
+ ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf." |
79 |
+ ewarn "An example line looks like:" |
80 |
+ ewarn "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4" |
81 |
+ ewarn |
82 |
+ ewarn "If you want to perform mDNS lookups for domains other than the ones" |
83 |
+ ewarn "ending in .local, add them to /etc/mdns.allow." |
84 |
+} |