aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/unifi5/Makefile
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2018-02-02 09:44:50 +0800
committerfeld <feld@FreeBSD.org>2018-02-02 09:44:50 +0800
commitc53ef70e813de04843d16541551886acb17f7542 (patch)
tree3f058383d32832c93d83039788e6c461961bc331 /net-mgmt/unifi5/Makefile
parent63bbce8eca041178a423784e28c84854d06810c5 (diff)
downloadfreebsd-ports-gnome-c53ef70e813de04843d16541551886acb17f7542.tar.gz
freebsd-ports-gnome-c53ef70e813de04843d16541551886acb17f7542.tar.zst
freebsd-ports-gnome-c53ef70e813de04843d16541551886acb17f7542.zip
net-mgmt/unifi5: Update to 5.6.30
- also automate pkg-plist generation Changelog: https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-5-6-30-Stable-has-been-released/ba-p/2220761
Diffstat (limited to 'net-mgmt/unifi5/Makefile')
-rw-r--r--net-mgmt/unifi5/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/net-mgmt/unifi5/Makefile b/net-mgmt/unifi5/Makefile
index 90895d3e0005..ef718b684548 100644
--- a/net-mgmt/unifi5/Makefile
+++ b/net-mgmt/unifi5/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= unifi5
-PORTVERSION= 5.6.26
+PORTVERSION= 5.6.30
PORTREVISION= 0
CATEGORIES= net-mgmt java
MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/
@@ -16,12 +16,8 @@ COMMENT= UniFi Controller v5
RUN_DEPENDS= mongodb>0:databases/mongodb \
snappyjava>0:archivers/snappy-java
-BUILD= 0
-TOMCATVER= 7.0.82
-
SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} JAVASHAREDIR=${JAVASHAREDIR} \
JAVA=${JAVA}
-PLIST_SUB+= BUILDVERSION="${PORTVERSION}.${BUILD}" BUNDLEDFW="${BUNDLEDFW}" TOMCATVER="${TOMCATVER}"
EXTRACT_CMD= /usr/bin/ar
EXTRACT_BEFORE_ARGS= -p
@@ -48,9 +44,12 @@ NO_WRKSUBDIR= yes
CONFLICTS= unifi2-* unifi3-* unifi4-*
+DIR_LIST= conf data logs run work
+
post-patch:
${RM} ${WRKSRC}/usr/lib/unifi/lib/snappy-java-1.1.2.6.jar ${WRKSRC}/usr/lib/unifi/bin/*
(cd ${WRKSRC}/usr/lib/unifi/lib && ${LN} -s ${JAVAJARDIR}/snappy-java.jar snappy-java-1.1.2.6.jar)
+ ${RM} -r ${WRKSRC}/usr/lib/unifi/lib/native
do-install:
${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/unifi
@@ -61,4 +60,11 @@ do-install:
${MKDIR} ${STAGEDIR}/${JAVASHAREDIR}/unifi/${i}
.endfor
+post-install:
+ @${FIND} -s ${STAGEDIR}${JAVASHAREDIR}/unifi -not -type d | ${SORT} | \
+ ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
+.for dir in ${DIR_LIST}
+ @${ECHO} "@dir(unifi,wheel,) ${JAVASHAREDIR}/unifi/${dir}" >> ${TMPPLIST}
+.endfor
+
.include <bsd.port.mk>