pkgsrc/net/unifi/options.mk
abs dc8a9f9423 Fix mongodb4 option to install v4, and add mongodb6 option
Not bumping PKGREVISION as default build unaffected.

OKed by maintainer
2023-08-28 19:34:24 +00:00

26 lines
876 B
Makefile

# $NetBSD: options.mk,v 1.3 2023/08/28 19:34:24 abs Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.unifi
PKG_OPTIONS_GROUP.mongodb= mongodb3 mongodb4 mongodb6
PKG_OPTIONS_REQUIRED_GROUPS= mongodb
PKG_SUGGESTED_OPTIONS= mongodb3
.include "../../mk/bsd.options.mk"
# Upstream recommends 3.6, but 3.4.4 is the last version before the
# switch to server-side-public-license, and works fine
.if !empty(PKG_OPTIONS:Mmongodb3)
DEPENDS+= mongodb>=3.4.4<4:../../databases/mongodb3
.endif
# For those happy with server-side-public-license
# Note a backup/restore is required when switching versions
.if !empty(PKG_OPTIONS:Mmongodb4)
DEPENDS+= mongodb>=4.0<6:../../databases/mongodb4
.endif
# For those happy with server-side-public-license
# Note a backup/restore is required when switching versions
.if !empty(PKG_OPTIONS:Mmongodb6)
DEPENDS+= mongodb>=6.0:../../databases/mongodb
.endif