blob: 427a3276c8fae53e32d7ebe587bde1b342eb8a44 (
plain) (
blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= exabgp
PORTVERSION= 3.2.18
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= GH GHC \
http://mirrors.rit.edu/zi/
EXTRACT_SUFX= .tgz
MAINTAINER= zi@FreeBSD.org
COMMENT= A BGP engine and route injector
LICENSE= BSD
USE_GITHUB= yes
GH_ACCOUNT= Exa-Networks
GH_TAGNAME= ${PORTVERSION}
GH_COMMIT= 51d6b56
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
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
post-extract:
@${MV} -f ${WRKSRC}/etc/systemd ${WRKSRC}
do-build:
${PYTHON_CMD} -m compileall ${WRKSRC}/lib
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} ${STAGEDIR}${ETCDIR}
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR})
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/etc && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.endif
@if [ ! -f ${ETCDIR}/exabgp.env ]; then \
${CP} ${FILESDIR}/exabgp.env ${STAGEDIR}${ETCDIR} ; \
fi
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|