blob: f26a2e53260bb2d978f6599f0cd51a4a36febd63 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/bird-1.0.11.ebuild,v 1.1 2006/07/10 09:20:42 chainsaw Exp $
inherit eutils
DESCRIPTION="A routing daemon implementing OSPF, RIP/v2, BGP for IPv4 and IPv6"
HOMEPAGE="http://bird.network.cz"
SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="ipv6only client"
DEPEND="sys-devel/flex
sys-devel/bison
sys-devel/m4
client? ( sys-libs/ncurses sys-libs/readline )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-destdir.patch
epatch ${FILESDIR}/${PV}-flex-args.patch
epatch ${FILESDIR}/${PV}-nostrip.patch
}
src_compile() {
econf \
$(use_enable ipv6only ipv6) \
$(use_enable client) || die "econf failed"
make || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die
newinitd ${FILESDIR}/initrd-${P} bird
}
|