summaryrefslogtreecommitdiff
path: root/net/openbgpd/Makefile
blob: 14ee0a5bec75fc12faec4f51851b60cc60735049 (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

PORTNAME=	openbgpd
PORTVERSION=	5.2.20121209
PORTREVISION=	4
PORTEPOCH=	1
CATEGORIES=	net
MASTER_SITES=	OPENBSD/OpenBGPD
DISTNAME=	${PORTNAME}-4.6
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	Free implementation of the Border Gateway Protocol, Version 4

LICENSE=	ISCL
LICENSE_FILE=	${FILESDIR}/COPYING

USES=		tar:tgz uidfix
USE_RC_SUBR=	${PORTNAME}

CONFLICTS=	zebra-[0-9]* quagga-[0-9]*

NO_WRKSUBDIR=	yes
PLIST_FILES=	sbin/bgpctl sbin/bgpd man/man5/bgpd.conf.5.gz \
		man/man8/bgpctl.8.gz man/man8/bgpd.8.gz
SUB_FILES=	pkg-message
USERS=		_bgpd
GROUPS=		_bgpd

CFLAGS=		-fcommon

OPTIONS_DEFINE=	IPV6LLPEER
OPTIONS_DEFAULT=IPV6LLPEER
IPV6LLPEER_DESC=Support nexthop using IPv6 link-local address
IPV6LLPEER_MAKE_ARGS=	-DIPV6_LINKLOCAL_PEER

post-patch:
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g"	\
	    ${WRKSRC}/bgpd/bgpd.8			\
	    ${WRKSRC}/bgpd/bgpd.conf.5			\
	    ${WRKSRC}/bgpctl/bgpctl.8

.include <bsd.port.mk>