pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add support for mongodb5
Module Name: pkgsrc-wip
Committed By: David Brownlee <abs%absd.org@localhost>
Pushed By: abs
Date: Mon Oct 5 14:22:10 2026 +0100
Changeset: ad486828e5b20114e6b8b5703d6d22ce42f9112a
Modified Files:
unifi/options.mk
Log Message:
Add support for mongodb5
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ad486828e5b20114e6b8b5703d6d22ce42f9112a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
unifi/options.mk | 32 ++++++++++++++++++++++++++++----
1 file changed, 28 insertions(+), 4 deletions(-)
diffs:
diff --git a/unifi/options.mk b/unifi/options.mk
index 6c3fe4757d..ca45a58402 100644
--- a/unifi/options.mk
+++ b/unifi/options.mk
@@ -1,18 +1,42 @@
# $NetBSD: options.mk,v 1.4 2024/06/07 15:33:17 abs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.unifi
-PKG_OPTIONS_GROUP.mongodb= mongodb4 mongodb6
+PKG_OPTIONS_GROUP.mongodb= mongodb4 mongodb5 mongodb6
PKG_OPTIONS_REQUIRED_GROUPS= mongodb
PKG_SUGGESTED_OPTIONS= mongodb4
.include "../../mk/bsd.options.mk"
-# Note a backup/restore is required when switching versions
+# Mongodb can upgrade *one* major version 4.4 -> 5, 5 -> 6 etc
+# otherwise a backup/restore is needed
+
.if !empty(PKG_OPTIONS:Mmongodb4)
-DEPENDS+= mongodb>=4.0<6:../../databases/mongodb4
+DEPENDS+= mongodb>=4.0<5:../../databases/mongodb4
+.endif
+
+# If upgrading from 4.4 check featureCompatibilityVersion has been set, e.g.:
+# - [Ensure unifi is running, and take a database backup from the UI]
+# - [If the system started with 4.2 or an earlier version, set FCV]
+# mongo 127.0.0.1:27117
+# db.adminCommand( { setFeatureCompatibilityVersion: "4.4" } )
+# exit
+# - /etc/rc.d/unifi stop
+# - mongo 127.0.0.1:27117
+# db.adminCommand( { shutdown: 1 });
+# exit
+# - [Upgrade mongdb package from 4.4 to 5]
+# - /etc/rc.d/unifi start
+# [Verify unifi is running without issues]
+# - mongo 127.0.0.1:27117
+# db.adminCommand( { setFeatureCompatibilityVersion: "5.0" } )
+# exit
+#
+# https://www.mongodb.com/docs/v5.0/release-notes/5.0-upgrade-standalone/
+#
+.if !empty(PKG_OPTIONS:Mmongodb5)
+DEPENDS+= mongodb>=5.0<6:../../databases/mongodb5
.endif
-# Note a backup/restore is required when switching versions
.if !empty(PKG_OPTIONS:Mmongodb6)
DEPENDS+= mongodb>=6.0:../../databases/mongodb
.endif
Home |
Main Index |
Thread Index |
Old Index