diff options
Diffstat (limited to 'net/exabgp/Makefile')
-rw-r--r-- | net/exabgp/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net/exabgp/Makefile b/net/exabgp/Makefile new file mode 100644 index 000000000000..f7ebf43fc45d --- /dev/null +++ b/net/exabgp/Makefile @@ -0,0 +1,48 @@ +# Created by: Ryan Steinmetz <zi@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= exabgp +PORTVERSION= 3.0.10 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +EXTRACT_SUFX= .tgz + +MAINTAINER= zi@FreeBSD.org +COMMENT= A BGP engine and route injector + +LICENSE= BSD + +USE_PYTHON= yes +SUB_FILES= pkg-message exabgp.sh +SUB_LIST= PYTHON_LIBDIR=${PYTHON_LIBDIR} PYTHON_CMD=${PYTHON_CMD} \ + PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} +USE_RC_SUBR= ${PORTNAME} + +USERS= _bgpd +GROUPS= _bgpd + +MAN1= ${PORTNAME}.1 + +.include <bsd.port.options.mk> + +post-extract: + @${MV} -f ${WRKSRC}/etc/systemd ${WRKSRC} + @${MV} -f ${WRKSRC}/lib/forwarding ${WRKSRC} + +do-build: + ${PYTHON_CMD} -m compileall ${WRKSRC}/lib + +do-install: + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/sbin/${PORTNAME} + ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 ${PREFIX}/man/man1 + @${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME} ${ETCDIR} + (cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${PYTHON_SITELIBDIR}) +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} + (cd ${WRKSRC}/etc && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) +.endif + @if [ ! -f ${ETCDIR}/exabgp.env ]; then \ + ${CP} ${FILESDIR}/exabgp.env ${ETCDIR} ; \ + fi + +.include <bsd.port.mk> |