mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
- Add LICENSE_FILE
- Add NO_ARCH - Switch to options helpers - Switch to @sample Approved by: portmgr blanket
This commit is contained in:
parent
3a4b2353ed
commit
11badad381
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395663
@ -11,6 +11,7 @@ MAINTAINER= zi@FreeBSD.org
|
||||
COMMENT= BGP engine and route injector
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= Exa-Networks
|
||||
@ -19,14 +20,13 @@ SUB_FILES= pkg-message exabgp.sh
|
||||
SUB_LIST= PYTHON_LIBDIR=${PYTHON_LIBDIR} PYTHON_CMD=${PYTHON_CMD} \
|
||||
PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
|
||||
USE_RC_SUBR= ${PORTNAME}
|
||||
NO_ARCH= yes
|
||||
|
||||
USERS= _bgpd
|
||||
GROUPS= _bgpd
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-extract:
|
||||
@${MV} -f ${WRKSRC}/etc/systemd ${WRKSRC}
|
||||
|
||||
@ -38,10 +38,10 @@ do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/man/${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}
|
||||
${INSTALL_DATA} ${FILESDIR}/exabgp.env ${STAGEDIR}${ETCDIR}/exabgp.env.sample
|
||||
|
||||
do-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/etc && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
||||
.endif
|
||||
${CP} ${FILESDIR}/exabgp.env ${STAGEDIR}${ETCDIR}/exabgp.env.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,4 @@
|
||||
@unexec if cmp -s %D/etc/exabgp/exabgp.env %D/etc/exabgp/exabgp.env.sample ; then rm -f %D/etc/exabgp/exabgp.env ; fi
|
||||
etc/exabgp/exabgp.env.sample
|
||||
@exec if [ ! -f %D/etc/exabgp/exabgp.env ]; then cp -p %D/%F %B/exabgp.env; fi
|
||||
@sample etc/exabgp/exabgp.env.sample
|
||||
man/man1/exabgp.1.gz
|
||||
sbin/exabgp
|
||||
%%PYTHON_SITELIBDIR%%/exabgp/__init__.py
|
||||
|
Loading…
Reference in New Issue
Block a user