2018-10-22 09:06:29 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= frr
|
|
|
|
PORTVERSION= 6.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 01:35:33 +00:00
|
|
|
PORTREVISION= 2
|
2018-10-22 09:06:29 +00:00
|
|
|
DISTVERSIONPREFIX= frr-
|
|
|
|
CATEGORIES= net ipv6
|
|
|
|
PKGNAMESUFFIX= 6
|
|
|
|
|
|
|
|
MAINTAINER= olivier@FreeBSD.org
|
|
|
|
COMMENT= IP routing protocol suite including BGP, IS-IS, OSPF and RIP
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
|
|
|
BUILD_DEPENDS= gawk:lang/gawk
|
|
|
|
LIB_DEPENDS= libjson-c.so:devel/json-c
|
|
|
|
|
|
|
|
CONFLICTS= openbgpd openospfd zebra quagga frr3 frr4 frr5
|
|
|
|
|
|
|
|
USES= autoreconf bison compiler:c++11-lang gmake pkgconfig libtool \
|
|
|
|
makeinfo python:2.7,build readline
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= FRRouting
|
|
|
|
|
|
|
|
INFO= frr
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= FPM LDPD PAM SHELLACCESS TCPSOCKETS VTYSH MANPAGES \
|
|
|
|
MULTIPATH TCMALLOC RPKI SNMP
|
|
|
|
OPTIONS_DEFAULT= VTYSH RPKI FPM MANPAGES
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
FPM_DESC= Enable Forwarding Plane Manager support
|
|
|
|
LDPD_DESC= Build ldpd
|
|
|
|
MULTIPATH_DESC= Enable multipath function
|
|
|
|
PAM_DESC= Use libpam for PAM support in vtysh
|
|
|
|
RPKI_DESC= Add BGP RPKI (RFC 6810) support
|
|
|
|
SHELLACCESS_DESC= Allow users to access shell/telnet/ssh
|
|
|
|
SNMP_DESC= SNMP support
|
|
|
|
TCMALLOC_DESC= Use tcmalloc
|
|
|
|
TCPSOCKETS_DESC= Use TCP/IP sockets for protocol daemons
|
|
|
|
VTYSH_DESC= Build integrated vty shell
|
|
|
|
|
|
|
|
USERS= frr
|
|
|
|
GROUPS= frr frrvty
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
|
|
|
# PIM compile but didn't work on FreeBSD
|
|
|
|
CONFIGURE_ARGS= --enable-user=frr \
|
|
|
|
--enable-group=frr \
|
|
|
|
--enable-vty-group=frrvty \
|
|
|
|
--sysconfdir=${ETCDIR} \
|
|
|
|
--localstatedir=/var/run/frr \
|
|
|
|
--disable-nhrpd \
|
|
|
|
--disable-pimd
|
|
|
|
|
|
|
|
MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
|
|
|
|
MANPAGES_CONFIGURE_OFF= --disable-doc
|
|
|
|
SHELLACCESS_CONFIGURE_ENABLE= shell-access
|
|
|
|
FPM_CONFIGURE_ENABLE= fpm
|
|
|
|
PAM_CONFIGURE_WITH= libpam
|
|
|
|
LDPD_CONFIGURE_ENABLE= ldpd
|
|
|
|
MULTIPATH_CONFIGURE_ON= --enable-multipath=64
|
|
|
|
RPKI_CONFIGURE_ENABLE= rpki
|
|
|
|
RPKI_LIB_DEPENDS= librtr.so:net-mgmt/rtrlib \
|
|
|
|
libssh.so:security/libssh
|
|
|
|
TCMALLOC_CONFIGURE_ENABLE= tcmalloc
|
|
|
|
TCMALLOC_LIB_DEPENDS= libtcmalloc.so:devel/google-perftools
|
|
|
|
SNMP_CONFIGURE_ENABLE= snmp
|
|
|
|
SNMP_CFLAGS= "-std=gnu99"
|
|
|
|
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
|
|
|
|
TCPSOCKETS_CONFIGURE_ENABLE= tcp-zebra
|
|
|
|
VTYSH_CONFIGURE_ENABLE= vtysh
|
|
|
|
|
|
|
|
USE_RC_SUBR= frr watchfrr
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${STAGEDIR}/var/run/frr
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|