/[gentoo-x86]/net-misc/bird/bird-1.3.2.ebuild
Gentoo

Contents of /net-misc/bird/bird-1.3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Nov 7 10:57:30 2011 UTC (2 years, 11 months ago) by chainsaw
Branch: MAIN
Version bump, as requested by Moyaze Shivji of the LINX engineering department.

(Portage version: 2.1.10.32/cvs/Linux x86_64)

1 chainsaw 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/net-misc/bird/bird-1.3.1.ebuild,v 1.1 2011/05/02 12:05:38 chainsaw Exp $
4    
5     EAPI=1
6    
7     inherit base autotools
8    
9     DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6"
10     HOMEPAGE="http://bird.network.cz"
11     SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz"
12     LICENSE="GPL-2"
13    
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE="debug ipv6"
17    
18     RDEPEND="sys-libs/ncurses
19     sys-libs/readline
20     ${DEPEND}"
21     DEPEND="sys-devel/flex
22     sys-devel/bison
23     sys-devel/m4"
24    
25     PATCHES=(
26     "${FILESDIR}/${PV}-v4-v6-build.patch"
27     )
28    
29     src_prepare() {
30     base_src_prepare
31     eautoreconf
32     }
33    
34     src_compile() {
35     econf \
36     --enable-client \
37     --enable-ipv4 \
38     --disable-ipv6 \
39     --localstatedir=/var \
40     $(use_enable debug) \
41     || die "V4 configuration stage failed"
42     emake || die "V4 compilation stage failed"
43     if use ipv6; then
44     emake almost-clean
45     econf \
46     --enable-client \
47     --enable-ipv6 \
48     --disable-ipv4 \
49     --localstatedir=/var \
50     $(use_enable debug) \
51     || die "V6 configuration stage failed"
52     emake || die "V6 compilation stage failed"
53     fi
54     }
55    
56     src_install() {
57     if use ipv6; then
58     dobin birdc6
59     dosbin bird6
60     newinitd "${FILESDIR}/initd-v6-${P}" bird6 || die "V6 init script installation failed"
61     fi
62     dobin birdc
63     dosbin bird
64     newinitd "${FILESDIR}/initd-v4-${P}" bird || die "V4 init script installation failed"
65     dodoc doc/bird.conf.example || die "configuration example installation failed"
66     }

  ViewVC Help
Powered by ViewVC 1.1.20