1 |
commit: 9b74f7c2f2629d54eb6e371d0ed02f2292ca80cc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 23 23:16:56 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 08:05:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b74f7c2 |
7 |
|
8 |
sys-auth/mdns: Add a live ebuild |
9 |
|
10 |
sys-auth/nss-mdns/nss-mdns-9999.ebuild | 59 ++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 59 insertions(+) |
12 |
|
13 |
diff --git a/sys-auth/nss-mdns/nss-mdns-9999.ebuild b/sys-auth/nss-mdns/nss-mdns-9999.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000..2620307 |
16 |
--- /dev/null |
17 |
+++ b/sys-auth/nss-mdns/nss-mdns-9999.ebuild |
18 |
@@ -0,0 +1,59 @@ |
19 |
+# Copyright 1999-2016 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=6 |
24 |
+ |
25 |
+EGIT_REPO_URI="https://github.com/lathiat/nss-mdns" |
26 |
+inherit autotools git-r3 multilib-minimal |
27 |
+ |
28 |
+DESCRIPTION="Name Service Switch module for Multicast DNS" |
29 |
+HOMEPAGE="https://github.com/lathiat/nss-mdns" |
30 |
+SRC_URI="" |
31 |
+ |
32 |
+LICENSE="GPL-2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="" |
35 |
+IUSE="" |
36 |
+ |
37 |
+RDEPEND=">=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}]" |
38 |
+DEPEND="${RDEPEND}" |
39 |
+ |
40 |
+src_prepare() { |
41 |
+ default |
42 |
+ eautoreconf |
43 |
+} |
44 |
+ |
45 |
+multilib_src_configure() { |
46 |
+ local myconf=( |
47 |
+ # $(localstatedir)/run/... is used to locate avahi-daemon socket |
48 |
+ --localstatedir=/var |
49 |
+ ) |
50 |
+ |
51 |
+ ECONF_SOURCE=${S} \ |
52 |
+ econf "${myconf[@]}" |
53 |
+} |
54 |
+ |
55 |
+multilib_src_install_all() { |
56 |
+ dodoc *.md |
57 |
+ |
58 |
+ insinto /etc |
59 |
+ doins "${FILESDIR}"/mdns.allow |
60 |
+} |
61 |
+ |
62 |
+pkg_postinst() { |
63 |
+ ewarn "You have to modify your name service switch look up file to enable" |
64 |
+ ewarn "multicast DNS lookups. If you wish to resolve only IPv6 addresses" |
65 |
+ ewarn "use mdns6. For IPv4 addresses only, use mdns4. To resolve both" |
66 |
+ ewarn "use mdns. Keep in mind that mdns will be slower if there are no" |
67 |
+ ewarn "IPv6 addresses published via mDNS on the network. There are also" |
68 |
+ ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts" |
69 |
+ ewarn "and 169.254.x.x addresses." |
70 |
+ ewarn |
71 |
+ ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf." |
72 |
+ ewarn "An example line looks like:" |
73 |
+ ewarn "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4" |
74 |
+ ewarn |
75 |
+ ewarn "If you want to perform mDNS lookups for domains other than the ones" |
76 |
+ ewarn "ending in .local, add them to /etc/mdns.allow." |
77 |
+} |