aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2018-01-02 07:00:23 +0800
committerKoop Mast <kwm@rainbow-runner.nl>2018-02-04 06:17:25 +0800
commit3dc266268805b3b818239d5c81f407118c3c0e03 (patch)
tree022bbdadf67b26fd7722ea21e1df0b2431133797 /net-mgmt
parentc23a613bab879945579d589c21de01eb3f44642a (diff)
downloadfreebsd-ports-gnome-3dc266268805b3b818239d5c81f407118c3c0e03.tar.gz
freebsd-ports-gnome-3dc266268805b3b818239d5c81f407118c3c0e03.tar.zst
freebsd-ports-gnome-3dc266268805b3b818239d5c81f407118c3c0e03.zip
net-mgmt/unifi5: Update to 5.6.26
- Switch to the .deb package as the distfile as requested by Ubiquiti - Remove RESTRICTED as firmwares are no longer bundled Changelog: https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-5-6-26-Stable-has-been-released/ba-p/2165432
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/unifi5/Makefile26
-rw-r--r--net-mgmt/unifi5/distinfo6
-rw-r--r--net-mgmt/unifi5/pkg-plist1
3 files changed, 16 insertions, 17 deletions
diff --git a/net-mgmt/unifi5/Makefile b/net-mgmt/unifi5/Makefile
index 11ae41558152..90895d3e0005 100644
--- a/net-mgmt/unifi5/Makefile
+++ b/net-mgmt/unifi5/Makefile
@@ -2,13 +2,12 @@
# $FreeBSD$
PORTNAME= unifi5
-PORTVERSION= 5.6.24
+PORTVERSION= 5.6.26
PORTREVISION= 0
CATEGORIES= net-mgmt java
-MASTER_SITES= https://www.ubnt.com/downloads/unifi/${PORTVERSION}/ \
- https://dl.ubnt.com/unifi/${PORTVERSION}-${UNIFI_TAG}/ \
- LOCAL/feld/${PORTNAME}-${PORTVERSION}/
-DISTNAME= UniFi.unix
+MASTER_SITES= http://dl.ubnt.com/unifi/${PORTVERSION}/
+DISTNAME= unifi_sysvinit_all
+EXTRACT_SUFX= .deb
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= feld@FreeBSD.org
@@ -18,15 +17,17 @@ RUN_DEPENDS= mongodb>0:databases/mongodb \
snappyjava>0:archivers/snappy-java
BUILD= 0
-BUNDLEDFW= 3.8.6.6650
TOMCATVER= 7.0.82
-UNIFI_TAG= e2998a5aab
SUB_LIST+= USERS=${USERS} GROUPS=${GROUPS} JAVASHAREDIR=${JAVASHAREDIR} \
JAVA=${JAVA}
PLIST_SUB+= BUILDVERSION="${PORTVERSION}.${BUILD}" BUNDLEDFW="${BUNDLEDFW}" TOMCATVER="${TOMCATVER}"
-USES= cpe zip
+EXTRACT_CMD= /usr/bin/ar
+EXTRACT_BEFORE_ARGS= -p
+EXTRACT_AFTER_ARGS= data.tar.xz | ${TAR} -xf -
+
+USES= cpe
CPE_VENDOR= ubnt
CPE_PRODUCT= unifi_controller
USE_JAVA= yes
@@ -43,18 +44,17 @@ USE_RC_SUBR= unifi
USERS= unifi
GROUPS= unifi
-WRKSRC= ${WRKDIR}/UniFi
+NO_WRKSUBDIR= yes
-RESTRICTED= Redistribution of bundled firmware images is not permitted
CONFLICTS= unifi2-* unifi3-* unifi4-*
post-patch:
- ${RM} ${WRKSRC}/lib/snappy-java-1.1.2.6.jar
- (cd ${WRKSRC}/lib && ${LN} -s ${JAVAJARDIR}/snappy-java.jar snappy-java-1.1.2.6.jar)
+ ${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)
do-install:
${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/unifi
- (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${JAVASHAREDIR}/unifi/)
+ (cd ${WRKSRC}/usr/lib/unifi && ${COPYTREE_SHARE} \* ${STAGEDIR}${JAVASHAREDIR}/unifi/)
${LN} -sf ${PREFIX}/bin/mongod ${STAGEDIR}${JAVASHAREDIR}/unifi/bin/mongod
# Create directories that will be writable by unifi
.for i in data logs run work
diff --git a/net-mgmt/unifi5/distinfo b/net-mgmt/unifi5/distinfo
index 9307dc6cb4db..1c14281a834d 100644
--- a/net-mgmt/unifi5/distinfo
+++ b/net-mgmt/unifi5/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1511012634
-SHA256 (unifi5-5.6.24/UniFi.unix.zip) = fb587555444910824aa5ce057bc72aa6de082011954c65801a2b3382721537b5
-SIZE (unifi5-5.6.24/UniFi.unix.zip) = 62201696
+TIMESTAMP = 1514773228
+SHA256 (unifi5-5.6.26/unifi_sysvinit_all.deb) = 6ade32913eddbc555c8c1120babe9baf765547aa5944f8554f59f77a0385865b
+SIZE (unifi5-5.6.26/unifi_sysvinit_all.deb) = 50195710
diff --git a/net-mgmt/unifi5/pkg-plist b/net-mgmt/unifi5/pkg-plist
index be6091d3eec4..9358cf7a88d1 100644
--- a/net-mgmt/unifi5/pkg-plist
+++ b/net-mgmt/unifi5/pkg-plist
@@ -62,7 +62,6 @@
%%JAVASHAREDIR%%/unifi/lib/tomcat-embed-logging-juli-%%TOMCATVER%%.jar
%%JAVASHAREDIR%%/unifi/lib/tomcat-embed-logging-log4j-%%TOMCATVER%%.jar
%%JAVASHAREDIR%%/unifi/lib/urlrewritefilter-4.0.4.jar
-%%JAVASHAREDIR%%/unifi/readme.txt
%%JAVASHAREDIR%%/unifi/webapps/ROOT/WEB-INF/resourcerewrite.xml
%%JAVASHAREDIR%%/unifi/webapps/ROOT/WEB-INF/urlrewrite.xml
%%JAVASHAREDIR%%/unifi/webapps/ROOT/WEB-INF/web.xml