2013-03-29 06:19:51 +01:00
|
|
|
# Created by: Bruce M Simpson <bms@FreeBSD.org>
|
2003-09-28 01:40:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= quagga
|
2016-03-17 17:20:07 +01:00
|
|
|
PORTVERSION= 1.0.20160315
|
2003-09-28 01:40:56 +02:00
|
|
|
CATEGORIES= net ipv6
|
2013-03-29 06:19:51 +01:00
|
|
|
MASTER_SITES= SAVANNAH
|
2003-11-05 17:02:03 +01:00
|
|
|
|
2014-10-02 11:56:35 +02:00
|
|
|
MAINTAINER= mat@FreeBSD.org
|
2005-01-15 04:01:27 +01:00
|
|
|
COMMENT= Free RIPv1, RIPv2, OSPFv2, BGP4, IS-IS route software
|
2003-09-28 01:40:56 +02:00
|
|
|
|
2012-03-24 18:31:00 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= gawk:lang/gawk
|
2014-09-14 14:21:39 +02:00
|
|
|
|
2012-06-04 16:15:22 +02:00
|
|
|
CONFLICTS= openbgpd-[0-9]* openospfd-[0-9]* zebra-0* quagga-re-[0-9]*
|
2003-09-28 01:40:56 +02:00
|
|
|
|
2014-09-14 14:21:39 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-exampledir=${PREFIX}/share/examples/quagga
|
|
|
|
INSTALL_TARGET= install-strip
|
2015-03-18 14:52:54 +01:00
|
|
|
USES= gmake libtool makeinfo perl5 readline compiler:c11 tar:xz autoreconf cpe
|
2012-03-24 18:31:00 +01:00
|
|
|
USE_LDCONFIG= yes
|
2013-09-16 08:30:31 +02:00
|
|
|
USE_PERL5= build
|
2003-09-28 01:40:56 +02:00
|
|
|
|
2007-02-28 16:17:40 +01:00
|
|
|
INFO= quagga
|
2003-09-28 01:40:56 +02:00
|
|
|
|
2016-07-19 16:16:15 +02:00
|
|
|
OPTIONS_DEFINE= ISISD PIMD PAM RTADV SNMP TCPSOCKETS DLMALLOC \
|
2015-03-03 14:57:33 +01:00
|
|
|
NO_BGP_ANNOUNCE OSPF_NEXTHOP IRDP ISIS_TOPOLOGY
|
2016-07-19 16:16:15 +02:00
|
|
|
OPTIONS_DEFAULT= ISISD PIMD RTADV
|
2014-10-02 17:44:03 +02:00
|
|
|
OPTIONS_SUB= yes
|
2012-06-11 13:07:47 +02:00
|
|
|
|
2015-03-03 14:57:33 +01:00
|
|
|
PIMD_DESC= PIM-SSM multicast routing
|
|
|
|
IRDP_DESC= Enable IRDP server support
|
|
|
|
ISISD_DESC= Enable ISIS daemon (beta)
|
|
|
|
ISIS_TOPOLOGY_DESC= Enable IS-IS topology generator
|
2012-06-11 13:07:47 +02:00
|
|
|
PAM_DESC= PAM authentication for vtysh
|
|
|
|
RTADV_DESC= IPv6 Router Advertisements
|
|
|
|
TCPSOCKETS_DESC= Use TCP/IP sockets for protocol daemons
|
|
|
|
DLMALLOC_DESC= Use dlmalloc (makes bgpd much faster)
|
|
|
|
NO_BGP_ANNOUNCE_DESC= Turn off BGP route announcement
|
2012-11-02 14:06:15 +01:00
|
|
|
OSPF_NEXTHOP_DESC= Set ip next-hop in OSPF route maps
|
2012-06-11 13:07:47 +02:00
|
|
|
|
2012-03-24 18:31:00 +01:00
|
|
|
ENABLE_USER?= quagga
|
|
|
|
ENABLE_GROUP?= quagga
|
|
|
|
|
|
|
|
USERS= ${ENABLE_USER}
|
|
|
|
GROUPS= ${ENABLE_GROUP}
|
2005-02-07 11:39:44 +01:00
|
|
|
|
2012-03-24 18:31:00 +01:00
|
|
|
SYSCONF_DIR?= ${ETCDIR}
|
|
|
|
LOCALSTATE_DIR?=/var/run/quagga
|
2005-02-07 11:39:44 +01:00
|
|
|
|
2014-10-02 17:44:03 +02:00
|
|
|
CONFIGURE_ARGS= --enable-user=${ENABLE_USER} \
|
|
|
|
--enable-group=${ENABLE_GROUP} \
|
|
|
|
--sysconfdir=${SYSCONF_DIR} \
|
|
|
|
--localstatedir=${LOCALSTATE_DIR} \
|
|
|
|
--enable-vtysh
|
2005-02-07 11:39:44 +01:00
|
|
|
|
|
|
|
.if defined(ENABLE_VTY_GROUP)
|
|
|
|
CONFIGURE_ARGS+=--enable-vty-group=${ENABLE_VTY_GROUP}
|
|
|
|
.endif
|
|
|
|
|
2014-10-02 17:44:03 +02:00
|
|
|
ISISD_CONFIGURE_ENABLE= isisd
|
2015-03-03 14:57:33 +01:00
|
|
|
ISIS_TOPOLOGY_CONFIGURE_ENABLE= isis-topology
|
|
|
|
PIMD_CONFIGURE_ENABLE= pimd
|
|
|
|
IRDP_CONFIGURE_ENABLE= irdb
|
2014-10-02 17:44:03 +02:00
|
|
|
PAM_CONFIGURE_WITH= libpam
|
|
|
|
RTADV_CONFIGURE_ENABLE= rtadv
|
|
|
|
SNMP_CONFIGURE_ENABLE= snmp
|
2016-04-01 16:16:16 +02:00
|
|
|
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
|
2014-10-02 17:44:03 +02:00
|
|
|
TCPSOCKETS_CONFIGURE_ENABLE= tcp-zebra
|
2016-04-01 16:16:16 +02:00
|
|
|
DLMALLOC_LIB_DEPENDS= libdlmalloc.so:devel/libdlmalloc
|
2014-10-02 17:44:03 +02:00
|
|
|
DLMALLOC_LIBS= -L${LOCALBASE}/lib -ldlmalloc
|
2015-03-03 14:57:33 +01:00
|
|
|
OSPF_NEXTHOP_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ospf-nexthop
|
2015-03-10 12:30:44 +01:00
|
|
|
# inverse option.
|
|
|
|
NO_BGP_ANNOUNCE_CONFIGURE_ON= --disable-bgp-announce
|
|
|
|
NO_BGP_ANNOUNCE_CONFIGURE_OFF= --enable-bgp-announce
|
2012-11-02 14:06:15 +01:00
|
|
|
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= quagga watchquagga
|
2003-11-21 12:02:22 +01:00
|
|
|
|
2005-03-09 17:58:31 +01:00
|
|
|
SUB_LIST+= LOCALSTATE_DIR=${LOCALSTATE_DIR} \
|
|
|
|
SYSCONF_DIR=${SYSCONF_DIR}
|
2003-11-21 12:02:22 +01:00
|
|
|
|
2005-03-09 17:58:31 +01:00
|
|
|
PLIST_SUB+= LOCALSTATE_DIR=${LOCALSTATE_DIR} \
|
|
|
|
SYSCONF_DIR=${SYSCONF_DIR} \
|
2003-11-21 12:02:22 +01:00
|
|
|
ENABLE_USER=${ENABLE_USER} \
|
2005-03-09 17:58:31 +01:00
|
|
|
ENABLE_GROUP=${ENABLE_GROUP}
|
2003-11-21 12:02:22 +01:00
|
|
|
|
2003-09-28 01:40:56 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO} "============================================================="
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You can build ${PORTNAME} with the following options:"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "ENABLE_USER Specify user to run Quagga suite as"
|
|
|
|
@${ECHO} "ENABLE_GROUP Specify group to run Quagga suite as"
|
|
|
|
@${ECHO} "ENABLE_VTY_GROUP Specify group for vty socket ownership"
|
2003-11-05 16:19:55 +01:00
|
|
|
@${ECHO} "SYSCONF_DIR Specify directory for Quagga configuration files"
|
|
|
|
@${ECHO} "LOCALSTATE_DIR Specify directory for Quagga runtime files"
|
2003-09-28 01:40:56 +02:00
|
|
|
|
2014-09-14 14:21:39 +02:00
|
|
|
post-install:
|
2014-10-02 17:44:03 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${LOCALSTATE_DIR} ${STAGEDIR}${SYSCONF_DIR} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}
|
2015-07-20 15:03:15 +02:00
|
|
|
@${MV} ${STAGEDIR}${SYSCONF_DIR}/* ${STAGEDIR}${EXAMPLESDIR}
|
2003-09-28 01:40:56 +02:00
|
|
|
|
2014-09-14 14:21:39 +02:00
|
|
|
.include <bsd.port.mk>
|