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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Aug 15 11:54:25 2012 UTC (2 years, 11 months ago) by blueness
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable ppc, bug #429206

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 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-r1.ebuild,v 1.3 2012/08/10 14:27:02 johu Exp $
4
5 EAPI="4"
6 inherit autotools eutils
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 DEPEND="net-dns/avahi"
18 RDEPEND="${DEPEND}"
19
20 src_prepare() {
21 epatch "${FILESDIR}"/${PN}-0.10-avahi-socket.patch
22 eautoreconf
23 }
24
25 src_configure() {
26 econf $(use_enable search-domains) --enable-avahi
27 }
28
29 src_install() {
30 emake DESTDIR="${D}" install
31
32 insinto /etc
33 doins "${FILESDIR}"/mdns.allow
34 dodoc README
35 }
36
37 pkg_postinst() {
38 ewarn
39 ewarn "You must modify your name service switch look up file to enable"
40 ewarn "multicast DNS lookups. If you wish to resolve only IPv6 addresses"
41 ewarn "use mdns6. For IPv4 addresses only, use mdns4. To resolve both"
42 ewarn "use mdns. Keep in mind that mdns will be slower if there are no"
43 ewarn "IPv6 addresses published via mDNS on the network. There are also"
44 ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts"
45 ewarn "and 169.254.x.x addresses."
46 ewarn
47 ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf"
48 ewarn "An example line looks like:"
49 ewarn "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4"
50 ewarn
51 ewarn "If you want to perform mDNS lookups for domains other than the ones"
52 ewarn "ending in .local, add them to /etc/mdns.allow"
53 ewarn
54 }

  ViewVC Help
Powered by ViewVC 1.1.20