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
|
2014-10-02 17:44:03 +02:00
|
|
|
PORTVERSION= 0.99.23.1
|
2015-02-17 16:28:14 +01:00
|
|
|
PORTREVISION= 4
|
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
|
|
|
|
|
2014-09-14 14:21:39 +02:00
|
|
|
BUILD_DEPENDS= gawk:${PORTSDIR}/lang/gawk
|
|
|
|
|
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-01-26 14:51:51 +01:00
|
|
|
USES= gmake libtool makeinfo perl5 readline compiler:c11
|
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
|
|
|
|
2012-06-11 13:07:47 +02:00
|
|
|
OPTIONS_DEFINE= ISISD PAM OSPF_OPAQUE_LSA RTADV SNMP TCPSOCKETS DLMALLOC \
|
2012-11-02 14:06:15 +01:00
|
|
|
NO_BGP_ANNOUNCE OSPF_NEXTHOP
|
2014-10-02 17:44:03 +02:00
|
|
|
OPTIONS_SUB= yes
|
2012-06-11 13:07:47 +02:00
|
|
|
|
|
|
|
ISISD_DESC= Enable experimental ISIS daemon
|
|
|
|
PAM_DESC= PAM authentication for vtysh
|
|
|
|
OSPF_OPAQUE_LSA_DESC= OSPF Opaque-LSA support (RFC2370)
|
|
|
|
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
|
|
|
|
PAM_CONFIGURE_WITH= libpam
|
|
|
|
OSPF_OPAQUE_LSA_CONFIGURE_ENABLE= opaque-lsa
|
|
|
|
RTADV_CONFIGURE_ENABLE= rtadv
|
|
|
|
SNMP_CONFIGURE_ENABLE= snmp
|
|
|
|
SNMP_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
|
|
|
|
TCPSOCKETS_CONFIGURE_ENABLE= tcp-zebra
|
|
|
|
DLMALLOC_LIB_DEPENDS= libdlmalloc.so:${PORTSDIR}/devel/libdlmalloc
|
|
|
|
DLMALLOC_LIBS= -L${LOCALBASE}/lib -ldlmalloc
|
|
|
|
NO_BGP_ANNOUNCE_CONFIGURE_ARGS+=--disable-bgp-announce
|
|
|
|
OSPF_NEXTHOP_EXTRA_PATCH= ${PATCHDIR}/extra-patch-ospf-nexthop
|
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}
|
|
|
|
@${MV} ${STAGEDIR}${ETCDIR}/* ${STAGEDIR}${EXAMPLESDIR}
|
2003-09-28 01:40:56 +02:00
|
|
|
|
2014-09-14 14:21:39 +02:00
|
|
|
.include <bsd.port.mk>
|