summaryrefslogtreecommitdiff
blob: dba2d014c91472a154e0e3a5375ae23fca61a2ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/mDNSResponder-98.ebuild,v 1.19 2008/09/21 13:04:29 jmbsvicetto Exp $

inherit eutils

DESCRIPTION="The mDNSResponder project is a component of Bonjour, Apple's initiative for zero-configuration networking."
HOMEPAGE="http://developer.apple.com/networking/bonjour/index.html"
SRC_URI="http://helios.et.put.poznan.pl/~jstachow/pub/${P}.tar.gz"
LICENSE="APSL-2"

SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86"
IUSE=""

src_unpack() {
	unpack ${A}
	epatch "${FILESDIR}"/${P}-Makefiles.patch
}

src_compile() {
	cd "${S}"/mDNSPosix
	make os=linux
}

src_install() {
	cd "${S}"/mDNSPosix
	dodir /usr/sbin
	dodir /usr/bin
	dodir /usr/lib
	dodir /usr/include
	dodir /lib/
	dodir /etc/
	dodir /usr/share/man/man5/
	dodir /usr/share/man/man8/

	make DESTDIR="${D}" os=linux install

	# Install init scripts
	newinitd "${FILESDIR}"/mdnsd.init.d mdnsd
}