aboutsummaryrefslogtreecommitdiffstats
path: root/net/bird-devel/Makefile
blob: b9405c297c8ec9f474a92538727cda3b7569a2dd (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Alexander V. Chernikov <melifaro@FreeBSD.org>
# $FreeBSD$

PORTNAME=   bird
DISTVERSION=    2.0.2
CATEGORIES= net
MASTER_SITES=   ftp://bird.network.cz/pub/bird/
PKGNAMESUFFIX=  -devel

MAINTAINER= olivier@FreeBSD.org
COMMENT=    Dynamic IP routing daemon (devel version)

LICENSE=    GPLv2

LIB_DEPENDS=    libssh.so:security/libssh

CONFLICTS=  bird-[0-9]*
CONFLICTS+= bird6-[0-9]*

USES=       bison gmake ncurses readline
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --localstatedir=/var
USE_RC_SUBR=    bird
SUB_FILES=  pkg-message

MAKE_JOBS_UNSAFE=   yes

OPTIONS_MULTI=  RP
RP_DESC=    Routing Protocols
OPTIONS_MULTI_RP=   BFD BABEL BGP OSPF PIPE RADV RIP STATIC
OPTIONS_DEFAULT=    ${OPTIONS_MULTI_RP}

BFD_DESC=   Bidirectional Forwarding Detection
BABEL_DESC= Babel routing protocol
BGP_DESC=   Border Gateway Protocol
OSPF_DESC=  Open Short Path First
PIPE_DESC=  PIPE routing
RADV_DESC=  Router Advertisement
RIP_DESC=   Routing Information Protocol
STATIC_DESC=    Static routing

BFD_VARS=   rt_prot+=bfd
BABEL_VARS= rt_prot+=babel
BGP_VARS=   rt_prot+=bgp
OSPF_VARS=  rt_prot+=ospf
PIPE_VARS=  rt_prot+=pipe
RADV_VARS=  rt_prot+=radv
RIP_VARS=   rt_prot+=rip
STATIC_VARS=    rt_prot+=static

CONFIGURE_ARGS+=--with-protocols="${RT_PROT}"

post-patch:
    ${REINPLACE_CMD} -e 's|\.example|\.sample|g' ${WRKSRC}/Makefile.in
    ${MV} ${WRKSRC}/doc/bird.conf.example ${WRKSRC}/doc/bird.conf.sample

.include <bsd.port.mk>