/[gentoo-x86]/sys-auth/nss-mdns/nss-mdns-0.10-r2.ebuild
Gentoo

Contents of /sys-auth/nss-mdns/nss-mdns-0.10-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jun 18 20:45:39 2014 UTC (11 months ago) by mgorny
Branch: MAIN
Changes since 1.1: +2 -2 lines
Update dependencies to require guaranteed EAPI=5 or multilib ebuilds, bug #513718.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-mdns/nss-mdns-0.10-r2.ebuild,v 1.1 2014/05/30 14:31:51 mgorny Exp $
4
5 EAPI="5"
6 inherit autotools eutils multilib-minimal
7
8 DESCRIPTION="Name Service Switch module for Multicast DNS"
9 HOMEPAGE="http://0pointer.de/lennart/projects/nss-mdns/"
10 SRC_URI="http://0pointer.de/lennart/projects/nss-mdns/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~x86"
15 IUSE="search-domains"
16
17 RDEPEND=">=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}]"
18 DEPEND="${RDEPEND}"
19 RDEPEND="${RDEPEND}
20 abi_x86_32? (
21 !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
22 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
23 )"
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${PN}-0.10-avahi-socket.patch
27 epatch_user
28 eautoreconf
29 }
30
31 multilib_src_configure() {
32 ECONF_SOURCE=${S} \
33 econf \
34 $(use_enable search-domains) \
35 --enable-avahi
36 }
37
38 multilib_src_install_all() {
39 dodoc README
40
41 insinto /etc
42 doins "${FILESDIR}"/mdns.allow
43 }
44
45 pkg_postinst() {
46 ewarn
47 ewarn "You must modify your name service switch look up file to enable"
48 ewarn "multicast DNS lookups. If you wish to resolve only IPv6 addresses"
49 ewarn "use mdns6. For IPv4 addresses only, use mdns4. To resolve both"
50 ewarn "use mdns. Keep in mind that mdns will be slower if there are no"
51 ewarn "IPv6 addresses published via mDNS on the network. There are also"
52 ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts"
53 ewarn "and 169.254.x.x addresses."
54 ewarn
55 ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf"
56 ewarn "An example line looks like:"
57 ewarn "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4"
58 ewarn
59 ewarn "If you want to perform mDNS lookups for domains other than the ones"
60 ewarn "ending in .local, add them to /etc/mdns.allow"
61 ewarn
62 }

  ViewVC Help
Powered by ViewVC 1.1.20