diff --git a/net/exabgp/Makefile b/net/exabgp/Makefile index a261c0095b0a..98754879dfa7 100644 --- a/net/exabgp/Makefile +++ b/net/exabgp/Makefile @@ -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 - 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 diff --git a/net/exabgp/pkg-plist b/net/exabgp/pkg-plist index 78050cb9943e..f9dae47d8178 100644 --- a/net/exabgp/pkg-plist +++ b/net/exabgp/pkg-plist @@ -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