git: 4eae6b8f3973 - main - net-mgmt/unifi8: Update to 8.5.6

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Mon, 14 Oct 2024 21:10:35 UTC
The branch main has been updated by otis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4eae6b8f39731edc4f7effb8aaec5001af514cd1

commit 4eae6b8f39731edc4f7effb8aaec5001af514cd1
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2024-10-14 21:09:43 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2024-10-14 21:10:22 +0000

    net-mgmt/unifi8: Update to 8.5.6
    
    Release notes:  https://community.ui.com/releases/r/network/8.5.6
---
 net-mgmt/unifi8/Makefile |  8 +++++---
 net-mgmt/unifi8/distinfo | 10 +++++-----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/net-mgmt/unifi8/Makefile b/net-mgmt/unifi8/Makefile
index 63b6824e7db5..633cc5c90502 100644
--- a/net-mgmt/unifi8/Makefile
+++ b/net-mgmt/unifi8/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	unifi8
-PORTVERSION=	8.4.62
+PORTVERSION=	8.5.6
 CATEGORIES=	net-mgmt java
 MASTER_SITES=	http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \
 		https://repo1.maven.org/maven2/%SUBDIR%/:jax
@@ -64,14 +64,16 @@ EXTERNALDB_VARS_OFF=	RUN_DEPENDS+=mongodb60>0:databases/mongodb60
 _DIR_LIST=	conf data logs run work
 _JAX_DISTNAME=	javax.activation-api
 _JAX_VERSION=	1.2.0
+_SNAPPY_VERSION=	1.1.10.5
 
 post-extract:
 	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${_JAX_DISTNAME}-${_JAX_VERSION}.jar \
 		${WRKSRC}/usr/lib/unifi/lib/
 
 post-patch:
-	(cd ${WRKSRC}/usr/lib/unifi/lib && \
-		${LN} -f -s ${JAVAJARDIR}/snappy-java.jar snappy-java-*.jar)
+	(cd ${WRKSRC}/usr/lib/unifi/lib/local && \
+		${RM} snappy-java-${_SNAPPY_VERSION}.jar && \
+		${LN} -f -s ${JAVAJARDIR}/snappy-java.jar snappy-java-${_SNAPPY_VERSION}.jar)
 	${RM} -r ${WRKSRC}/usr/lib/unifi/lib/native
 
 do-install:
diff --git a/net-mgmt/unifi8/distinfo b/net-mgmt/unifi8/distinfo
index 83341ddd1044..df5f31d9f9ae 100644
--- a/net-mgmt/unifi8/distinfo
+++ b/net-mgmt/unifi8/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1726501915
-SHA256 (unifi8-8.4.62/unifi_sysvinit_all.deb) = eea124eb3a628497e0c42a156bc7d548c64df3bb071b95e15a9b99a01bc1e505
-SIZE (unifi8-8.4.62/unifi_sysvinit_all.deb) = 149561770
-SHA256 (unifi8-8.4.62/javax.activation-api-1.2.0.jar) = 43fdef0b5b6ceb31b0424b208b930c74ab58fac2ceeb7b3f6fd3aeb8b5ca4393
-SIZE (unifi8-8.4.62/javax.activation-api-1.2.0.jar) = 56674
+TIMESTAMP = 1728934764
+SHA256 (unifi8-8.5.6/unifi_sysvinit_all.deb) = 6690a813c38f6f715c2b37fb36eadff6afa0d81a5b8d9729d4bbd63ac57fb690
+SIZE (unifi8-8.5.6/unifi_sysvinit_all.deb) = 149444098
+SHA256 (unifi8-8.5.6/javax.activation-api-1.2.0.jar) = 43fdef0b5b6ceb31b0424b208b930c74ab58fac2ceeb7b3f6fd3aeb8b5ca4393
+SIZE (unifi8-8.5.6/javax.activation-api-1.2.0.jar) = 56674