diff options
| author | Dennis Schridde <devurandom@gmx.net> | 2011-02-09 22:02:41 +0100 |
|---|---|---|
| committer | Dennis Schridde <devurandom@gmx.net> | 2011-02-09 22:02:41 +0100 |
| commit | 3efd7d2fbb0be5be7fac199e8fac5f6df68a6bb6 (patch) | |
| tree | 037bf4fa1dac656b34d86ffe2ba9702ef3346fe3 /sys-auth/nss-mdns/nss-mdns-0.10-r1.ebuild | |
| parent | 945e74c5d53c045d480e3e1015a4f164bec6f6a7 (diff) | |
| download | kde-3efd7d2fbb0be5be7fac199e8fac5f6df68a6bb6.tar.gz kde-3efd7d2fbb0be5be7fac199e8fac5f6df68a6bb6.tar.bz2 kde-3efd7d2fbb0be5be7fac199e8fac5f6df68a6bb6.zip | |
[nss-mdns/nss-mdns-0.10-r1] Handle search-domains (resolv.conf) better
* Add custom patch that disables search-domains for mdns*_minimal.
* Add search-domains useflag. Disable it to follow upstream recommendations
Not disabled by default because current ebuild enforces this behaviour
without providing a useflag.
Bug: 201948
(Portage version: 2.2.0_alpha23/git/Linux x86_64, signed Manifest commit with key 50ED256E)
Diffstat (limited to 'sys-auth/nss-mdns/nss-mdns-0.10-r1.ebuild')
| -rw-r--r-- | sys-auth/nss-mdns/nss-mdns-0.10-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-auth/nss-mdns/nss-mdns-0.10-r1.ebuild b/sys-auth/nss-mdns/nss-mdns-0.10-r1.ebuild new file mode 100644 index 00000000000..ef73a27af4a --- /dev/null +++ b/sys-auth/nss-mdns/nss-mdns-0.10-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit eutils + +DESCRIPTION="Name Service Switch module for Multicast DNS" +HOMEPAGE="http://0pointer.de/lennart/projects/nss-mdns/" +SRC_URI="http://0pointer.de/lennart/projects/nss-mdns/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~mips ~ppc ~x86" +IUSE="+search-domains" + +DEPEND="net-dns/avahi" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.8-avahi-socket.patch + epatch "${FILESDIR}"/${P}-no-minimal-search-domains.patch +} + +src_configure() { + econf $(use_enable search-domains) --enable-avahi || die "configure failed" +} + +src_compile() { + emake || die "compile failed" +} + +src_install() { + make DESTDIR="${D}" install || die "install failed" + + insinto /etc + doins "${FILESDIR}"/mdns.allow + + dodoc README +} + +pkg_postinst() { + ewarn + ewarn "You must 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" + ewarn + ebeep 5 + epause 10 +} |
