git: 477f5c526367 - main - net-mgmt/unifi9: update MongoDB dependency from 6.0 to 7.0.

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Fri, 06 Jun 2025 13:53:06 UTC
The branch main has been updated by ronald:

URL: https://cgit.FreeBSD.org/ports/commit/?id=477f5c5263676c6c7c475a01a7be3c0564fa77d3

commit 477f5c5263676c6c7c475a01a7be3c0564fa77d3
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-06-03 12:08:24 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-06-06 13:52:30 +0000

    net-mgmt/unifi9: update MongoDB dependency from 6.0 to 7.0.
    
    - MongoDB 6.0 is deprecated and going EOL in a few months.
    - Add flavor -armv80a which uses mongodb70-armv80a for non-LSE ARM64 systems.
    - See UPDATING for instructions.
    
    PR:     286943
    Approved by:    maintainer timeout
---
 UPDATING                 | 20 ++++++++++++++++++++
 net-mgmt/unifi9/Makefile | 10 +++++++---
 2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/UPDATING b/UPDATING
index b437184dfad5..13e6da53db10 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,26 @@ they are unavoidable.
 You should get into the habit of checking this file for changes each time
 you update your ports collection, before attempting any port upgrades.
 
+20250606:
+  AFFECTS: users of net-mgmt/unifi9
+  AUTHOR: ronald@FreeBSD.org
+
+  The MongoDB dependency updates from 6.0 to 7.0.
+  Please read 20250520 about the upgrade instructions of
+  databases/mongodb60. Mind that the mongodb portnr for Unifi is 27117.
+  The 20240606 instructions for net-mgmt/unifi8 can also be
+  informative.
+
+  Always backup/snapshot before upgrading.
+  Turn off Unifi and MongoDB during the upgrade. (service unifi stop)
+
+  MongoDB 7.0 does not formally support ARM systems without Large System
+  Extensions (LSE) support.
+  Please use the unifi9-armv80a package when running on RPI4 or similar
+  systems.
+  Running the non-armv80a package will result in an "illegal instruction"
+  on these systems.
+
 20250520:
   AFFECTS: users of databases/mongodb60
   AUTHOR: ronald@FreeBSD.org
diff --git a/net-mgmt/unifi9/Makefile b/net-mgmt/unifi9/Makefile
index f8ee98de52c2..e1f41251767d 100644
--- a/net-mgmt/unifi9/Makefile
+++ b/net-mgmt/unifi9/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	unifi9
 PORTVERSION=	9.1.120
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES=	net-mgmt java
 MASTER_SITES=	http://dl.ubnt.com/unifi/%SUBDIR%/:unifi \
 		https://repo1.maven.org/maven2/%SUBDIR%/:jax
@@ -17,9 +17,10 @@ WWW=		https://help.ui.com/hc/en-us/categories/200320654-UniFi-Wireless
 
 RUN_DEPENDS=	snappyjava>0:archivers/snappy-java
 
-FLAVORS=	default externaldb
+FLAVORS=	default armv80a externaldb
 FLAVOR?=	${FLAVORS:[1]}
 
+armv80a_PKGNAMESUFFIX=		-armv80a
 externaldb_PKGNAMESUFFIX=	-externaldb
 
 USES=		cpe java
@@ -50,6 +51,9 @@ GROUPS=		unifi
 
 OPTIONS_DEFINE=	EXTERNALDB
 
+.if ${FLAVOR:U} == armv80a
+MONGODB_PKGNAMESUFFIX=	-${FLAVOR}
+.endif
 .if ${FLAVOR:U} == externaldb
 OPTIONS_DEFAULT+=	EXTERNALDB
 .endif
@@ -57,7 +61,7 @@ OPTIONS_DEFAULT+=	EXTERNALDB
 EXTERNALDB_DESC=	Use external MongoDB server
 EXTERNALDB_VARS=	PKGMESSAGE+=${WRKSRC}/pkg-message.extdb \
 			SUB_FILES+=pkg-message.extdb
-EXTERNALDB_VARS_OFF=	RUN_DEPENDS+=mongodb60>0:databases/mongodb60
+EXTERNALDB_VARS_OFF=	RUN_DEPENDS+=mongodb70${MONGODB_PKGNAMESUFFIX}>0:databases/mongodb70@${FLAVOR}
 
 _DIR_LIST=	conf data logs run work
 _JAX_DISTNAME=	javax.activation-api