Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2026 17:53:08 +0000
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b8c78c0e013b - main - net-mgmt/omada5: Fix mongodb configuration
Message-ID:  <6a3c1984.3697a.4c45dd6@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by feld:

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

commit b8c78c0e013b32058307de5c37a9d8d30aa5f4ad
Author:     Mark Felder <feld@FreeBSD.org>
AuthorDate: 2026-06-24 17:45:53 +0000
Commit:     Mark Felder <feld@FreeBSD.org>
CommitDate: 2026-06-24 17:52:55 +0000

    net-mgmt/omada5: Fix mongodb configuration
    
    The omada.properties config file was missing the override to force
    mongodb to be externally managed which caused the daemon to fail to start.
    
    The controller cannot manage mongodb by itself when running on FreeBSD so this
    has always been a requirement that was mistakenly absent from the port.
    
    Also fix ownership of some files and directories served by the controller's
    webserver as an internal process automatically downloads icons for
    newly released TP-Link hardware models and fills the log with errors if
    the directory and files are not writable.
    
    MFH:    2026Q2
---
 net-mgmt/omada5/Makefile                                |  2 +-
 net-mgmt/omada5/files/patch-properties_omada.properties | 13 +++++++++++++
 net-mgmt/omada5/pkg-plist                               |  5 +++++
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/net-mgmt/omada5/Makefile b/net-mgmt/omada5/Makefile
index 907a059bc944..54432992fd88 100644
--- a/net-mgmt/omada5/Makefile
+++ b/net-mgmt/omada5/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	omada5
 PORTVERSION=	5.15.24.19
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	net-mgmt java
 DISTNAME=	Omada_SDN_Controller_v${PORTVERSION}_linux_x64_20250724152611
 MASTER_SITES=	https://static.tp-link.com/upload/software/2025/202508/20250802/
diff --git a/net-mgmt/omada5/files/patch-properties_omada.properties b/net-mgmt/omada5/files/patch-properties_omada.properties
new file mode 100644
index 000000000000..888508d41cd4
--- /dev/null
+++ b/net-mgmt/omada5/files/patch-properties_omada.properties
@@ -0,0 +1,13 @@
+--- properties/omada.properties.orig	2026-06-24 17:16:12 UTC
++++ properties/omada.properties
+@@ -76,4 +76,8 @@ local.cluster.shard.hashAlgorithmStrategy=0
+ #mongo.node.remote.ip=192.168.0.136
+ #mongo.node.remote.port=27217
+ ## Only one node can be true
+-#mongo.node.start.init.enable=true
+\ No newline at end of file
++#mongo.node.start.init.enable=true
++
++# FreeBSD: we must use an external mongodb
++mongo.external=true
++eap.mongod.uri=mongodb://localhost:27017/omada
diff --git a/net-mgmt/omada5/pkg-plist b/net-mgmt/omada5/pkg-plist
index e6def656c64e..9e5bc1069c28 100644
--- a/net-mgmt/omada5/pkg-plist
+++ b/net-mgmt/omada5/pkg-plist
@@ -2,6 +2,7 @@
 %%JAVASHAREDIR%%/omada/data/cluster/omada_distributed_internal_mongo_cluster.properties
 %%JAVASHAREDIR%%/omada/data/html/echarts.min.js
 %%JAVASHAREDIR%%/omada/data/html/logo.png
+@owner omada
 %%JAVASHAREDIR%%/omada/data/static/theme/img/deviceIcon/EAP-Bridge.png
 %%JAVASHAREDIR%%/omada/data/static/theme/img/deviceIcon/EAP603-Outdoor-V1.png
 %%JAVASHAREDIR%%/omada/data/static/theme/img/deviceIcon/EAP603GP-Desktop-V1.png
@@ -29,6 +30,7 @@
 %%JAVASHAREDIR%%/omada/data/static/theme/img/virtualDeviceIcon/IES206G-V1.png
 %%JAVASHAREDIR%%/omada/data/static/theme/img/virtualDeviceIcon/IES206GPP-V1.png
 %%JAVASHAREDIR%%/omada/data/static/theme/img/virtualDeviceIcon/IES208G-V1.png
+@owner
 %%JAVASHAREDIR%%/omada/lib/HdrHistogram-2.1.12.jar
 %%JAVASHAREDIR%%/omada/lib/LatencyUtils-2.0.3.jar
 %%JAVASHAREDIR%%/omada/lib/SparseBitSet-1.2.jar
@@ -567,5 +569,8 @@
 @dir(omada,wheel,) %%JAVASHAREDIR%%/omada/data/db
 @dir(omada,wheel,) %%JAVASHAREDIR%%/omada/data/keystore
 @dir(omada,wheel,) %%JAVASHAREDIR%%/omada/data/pdf
+@dir(omada,wheel,) %%JAVASHAREDIR%%/omada/data/static/theme/img/deviceIcon
+@dir(omada,wheel,) %%JAVASHAREDIR%%/omada/data/static/theme/img/topology/deviceicon
+@dir(omada,wheel,) %%JAVASHAREDIR%%/omada/data/static/theme/img/virtualDeviceIcon
 @dir(omada,wheel,) %%JAVASHAREDIR%%/omada/properties
 @dir(omada,wheel,) %%JAVASHAREDIR%%/omada/logs


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3c1984.3697a.4c45dd6>