Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 2018 01:44:50 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r460661 - head/net-mgmt/unifi5
Message-ID:  <201802020144.w121ioWe017077@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Fri Feb  2 01:44:50 2018
New Revision: 460661
URL: https://svnweb.freebsd.org/changeset/ports/460661

Log:
  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

Deleted:
  head/net-mgmt/unifi5/pkg-plist
Modified:
  head/net-mgmt/unifi5/Makefile
  head/net-mgmt/unifi5/distinfo

Modified: head/net-mgmt/unifi5/Makefile
==============================================================================
--- head/net-mgmt/unifi5/Makefile	Fri Feb  2 01:03:48 2018	(r460660)
+++ head/net-mgmt/unifi5/Makefile	Fri Feb  2 01:44:50 2018	(r460661)
@@ -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
@@ -59,6 +58,13 @@ do-install:
 # Create directories that will be writable by unifi
 .for i in data logs run work
 	${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>

Modified: head/net-mgmt/unifi5/distinfo
==============================================================================
--- head/net-mgmt/unifi5/distinfo	Fri Feb  2 01:03:48 2018	(r460660)
+++ head/net-mgmt/unifi5/distinfo	Fri Feb  2 01:44:50 2018	(r460661)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1514773228
-SHA256 (unifi5-5.6.26/unifi_sysvinit_all.deb) = 6ade32913eddbc555c8c1120babe9baf765547aa5944f8554f59f77a0385865b
-SIZE (unifi5-5.6.26/unifi_sysvinit_all.deb) = 50195710
+TIMESTAMP = 1517534338
+SHA256 (unifi5-5.6.30/unifi_sysvinit_all.deb) = 44facefdca0e3270ccbacdf661a9dd2a2e3fe126a840c3a402f6b61393806b20
+SIZE (unifi5-5.6.30/unifi_sysvinit_all.deb) = 50209900



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802020144.w121ioWe017077>