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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Aug 15 10:15:19 2012 UTC (7 years, 3 months ago) by chainsaw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Install IPv6 daemon in sbin, not bin. Remove earlier 1.3.8 ebuilds in favour of the new approach introduced by Tomáš "scarabeus" Chvátal.

(Portage version: 2.1.11.10/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/net-misc/bird/bird-1.3.8.ebuild,v 1.1 2012/08/13 10:54:49 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 --disable-ipv6 \
38 --localstatedir=/var \
39 $(use_enable debug) \
40 || die "V4 configuration stage failed"
41 emake || die "V4 compilation stage failed"
42 if use ipv6; then
43 emake almost-clean
44 econf \
45 --enable-client \
46 --enable-ipv6 \
47 --localstatedir=/var \
48 $(use_enable debug) \
49 || die "V6 configuration stage failed"
50 emake || die "V6 compilation stage failed"
51 fi
52 }
53
54 src_install() {
55 if use ipv6; then
56 dobin birdc6
57 dosbin bird6
58 newinitd "${FILESDIR}/initd-v6-${P}" bird6 || die "V6 init script installation failed"
59 fi
60 dobin birdc
61 dosbin bird
62 newinitd "${FILESDIR}/initd-v4-${P}" bird || die "V4 init script installation failed"
63 dodoc doc/bird.conf.example || die "configuration example installation failed"
64 }

  ViewVC Help
Powered by ViewVC 1.1.20