aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-08-31 20:10:22 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-08-31 20:10:22 +0800
commit4ed3786f4cac7eb7abbfee5586e9cf2bcc5ab5ca (patch)
tree712193f9e8047cce95fa574b0c7c8ad3875e732e /net
parenta75379da6c0a9134f61c11c4aa05c79bda149a4e (diff)
downloadfreebsd-ports-gnome-4ed3786f4cac7eb7abbfee5586e9cf2bcc5ab5ca.tar.gz
freebsd-ports-gnome-4ed3786f4cac7eb7abbfee5586e9cf2bcc5ab5ca.tar.zst
freebsd-ports-gnome-4ed3786f4cac7eb7abbfee5586e9cf2bcc5ab5ca.zip
- Add LICENSE_FILE
- Add NO_ARCH - Switch to options helpers - Switch to @sample Approved by: portmgr blanket
Diffstat (limited to 'net')
-rw-r--r--net/exabgp/Makefile10
-rw-r--r--net/exabgp/pkg-plist4
2 files changed, 6 insertions, 8 deletions
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 <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>
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