| @@ -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 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.unifi | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.unifi |
4 | PKG_OPTIONS_GROUP.mongodb= mongodb3 mongodb4 | | 4 | PKG_OPTIONS_GROUP.mongodb= mongodb3 mongodb4 |
5 | PKG_OPTIONS_REQUIRED_GROUPS= mongodb | | 5 | PKG_OPTIONS_REQUIRED_GROUPS= mongodb |
6 | PKG_SUGGESTED_OPTIONS= mongodb3 | | 6 | PKG_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) |
13 | DEPENDS+= mongodb>=3.4.4:../../databases/mongodb3 | | 13 | DEPENDS+= 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) |
19 | DEPENDS+= mongodb>=4.0:../../databases/mongodb | | 19 | DEPENDS+= mongodb>=4.0:../../databases/mongodb |
20 | .endif | | 20 | .endif |