Mon Jul 3 12:53:32 2023 UTC ()
unifi: restrict DEPENDS so proper binary package is pulled in


(wiz)
diff -r1.1 -r1.2 pkgsrc/net/unifi/options.mk

cvs diff -r1.1 -r1.2 pkgsrc/net/unifi/options.mk (expand / switch to unified diff)

--- pkgsrc/net/unifi/options.mk 2021/12/06 15:33:27 1.1
+++ pkgsrc/net/unifi/options.mk 2023/07/03 12:53:32 1.2
@@ -1,20 +1,20 @@ @@ -1,20 +1,20 @@
1# $NetBSD: options.mk,v 1.1 2021/12/06 15:33:27 abs Exp $ 1# $NetBSD: options.mk,v 1.2 2023/07/03 12:53:32 wiz Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.unifi 3PKG_OPTIONS_VAR= PKG_OPTIONS.unifi
4PKG_OPTIONS_GROUP.mongodb= mongodb3 mongodb4 4PKG_OPTIONS_GROUP.mongodb= mongodb3 mongodb4
5PKG_OPTIONS_REQUIRED_GROUPS= mongodb 5PKG_OPTIONS_REQUIRED_GROUPS= mongodb
6PKG_SUGGESTED_OPTIONS= mongodb3 6PKG_SUGGESTED_OPTIONS= mongodb3
7 7
8.include "../../mk/bsd.options.mk" 8.include "../../mk/bsd.options.mk"
9 9
10# Upstream recommends 3.6, but 3.4.4 is the last version before the 10# Upstream recommends 3.6, but 3.4.4 is the last version before the
11# switch to server-side-public-license, and works fine 11# switch to server-side-public-license, and works fine
12.if !empty(PKG_OPTIONS:Mmongodb3) 12.if !empty(PKG_OPTIONS:Mmongodb3)
13DEPENDS+= mongodb>=3.4.4:../../databases/mongodb3 13DEPENDS+= mongodb>=3.4.4<4:../../databases/mongodb3
14.endif 14.endif
15 15
16# For those happy with server-side-public-license 16# For those happy with server-side-public-license
17# Note a backup/restore is required when switching versions 17# Note a backup/restore is required when switching versions
18.if !empty(PKG_OPTIONS:Mmongodb4) 18.if !empty(PKG_OPTIONS:Mmongodb4)
19DEPENDS+= mongodb>=4.0:../../databases/mongodb 19DEPENDS+= mongodb>=4.0:../../databases/mongodb
20.endif 20.endif