summaryrefslogtreecommitdiff
blob: 5147ce398b98e20d8277b5c9a9b2a7495ee0eac3 (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
42
43
44
45
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/mrouted/mrouted-3.9_beta3.ebuild,v 1.12 2006/09/30 01:31:37 robbat2 Exp $

inherit eutils

MY_P="${P/_}+IOS12"
DEB_PVER=3
DESCRIPTION="IP multicast routing daemon"
HOMEPAGE="http://freshmeat.net/projects/mrouted/?topic_id=87%2C150"
SRC_URI="ftp://ftp.research.att.com/dist/fenner/mrouted/${MY_P}.tar.gz
	http://debian/pool/non-free/m/mrouted/mrouted_${PV/_/-}-${DEB_PVER}.diff.gz"

LICENSE="Stanford"
SLOT="0"
KEYWORDS="x86 ppc ~amd64"
IUSE=""

# this does NOT compile with 2.4 or earlier headers
# and probably some early 2.6 headers as well
DEPEND="kernel_linux? ( >=sys-kernel/linux-headers-2.6 )
		!kernel_linux? ( virtual/os-headers )
		dev-util/yacc"
RDEPEND=""

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch "${WORKDIR}"/"mrouted_${PV/_/-}-${DEB_PVER}.diff"
	sed -i "/^CFLAGS/s:-O:${CFLAGS}:" Makefile
}

src_compile() {
	emake || die
}

src_install() {
	dobin mrouted || die
	doman mrouted.8 || die

	insinto /etc ; doins mrouted.conf || die
	newinitd ${FILESDIR}/mrouted.rc mrouted || die
}