aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-02-21 18:47:20 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-02-21 18:47:20 +0800
commit6c6e95548ec2ed4b3d00dafbf3447c4492192d9a (patch)
treee04b997ff508e35ab0c8f9cb8d1da929b157ff9f /net-mgmt
parent9241651d268ff07011b04e681994e4d9b6e2a958 (diff)
downloadfreebsd-ports-gnome-6c6e95548ec2ed4b3d00dafbf3447c4492192d9a.tar.gz
freebsd-ports-gnome-6c6e95548ec2ed4b3d00dafbf3447c4492192d9a.tar.zst
freebsd-ports-gnome-6c6e95548ec2ed4b3d00dafbf3447c4492192d9a.zip
- Properly handle p5-CGI dependency, the module was unbundled from perl in 5.21
- While here, minor style fixes PR: 217167 Submitted by: fullermd@over-yonder.net
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/cricket/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/net-mgmt/cricket/Makefile b/net-mgmt/cricket/Makefile
index 2a32f28c93be..c47db8d71b70 100644
--- a/net-mgmt/cricket/Makefile
+++ b/net-mgmt/cricket/Makefile
@@ -19,7 +19,7 @@ USES= perl5 shebangfix
SHEBANG_FILES= util/metaQuery.pl
HAS_CONFIGURE= yes
NO_BUILD= yes
-PLIST_SUB+= VERSION=${PORTVERSION}
+PLIST_SUB= VERSION=${PORTVERSION}
SUB_FILES= pkg-message
# UID and username comes from ports/UIDs.
@@ -29,13 +29,13 @@ GROUPS= www
CRICKETBASE= ${STAGEDIR}${PREFIX}/cricket
post-patch:
- ${REINPLACE_CMD} -e 's,/home/cricket,${PREFIX},g' \
+ @${REINPLACE_CMD} -e 's,/home/cricket,${PREFIX},g' \
${WRKSRC}/cricket-conf.pl.sample
- ${REINPLACE_CMD} -e 's,/usr/local/net/bin/ssh,/usr/bin/ssh,g' \
+ @${REINPLACE_CMD} -e 's,/usr/local/net/bin/ssh,/usr/bin/ssh,g' \
${WRKSRC}/sample-config/news-server/Defaults
do-install:
- ${MKDIR} -m 755 ${CRICKETBASE}/cricket-${PORTVERSION}
+ @${MKDIR} ${CRICKETBASE}/cricket-${PORTVERSION}
${CP} -R ${WRKSRC}/* ${CRICKETBASE}/cricket-${PORTVERSION}
${FIND} ${CRICKETBASE}/cricket-${PORTVERSION} -name \*.orig -or \
-name \*.bak | ${XARGS} ${RM}
@@ -48,4 +48,10 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/cricket-conf.pl.sample \
${STAGEDIR}${PREFIX}/etc/cricket-conf.pl.dist
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 502200
+RUN_DEPENDS+= p5-CGI>0:www/p5-CGI
+.endif
+
+.include <bsd.port.post.mk>