mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
databases/mongodb70: update to 7.0.14
Changes: https://www.mongodb.com/docs/manual/release-notes/7.0/#7.0.14---aug-26--2024 NB: 7.0.13 was tagged, but never released. Sync with improvements in mongodb80: from commitb44fe228ca
: Removed SSL from OPTIONS. It was inherited from the first versions of databases/mongodb, long before I became maintainer. Currently disabling the SSL option does not disable ssl as ssl is auto-detected and disabling ssl needs explicit --ssl=off which is not implemented in the port. I never had a request for this in years so I decided to just remove the option and have ssl enabled always. from commit5d8274d264
: Also found some manual pages in the src tree. from commitf2c9ba7c53
: - add pre-configure check if downloaded mozjs version matches get-sources.sh. - change comment to how the upstream project names the open source variant.
This commit is contained in:
parent
9cc3123e51
commit
adc0330691
6 changed files with 26 additions and 18 deletions
|
@ -1,11 +1,11 @@
|
|||
PORTNAME= mongodb
|
||||
DISTVERSIONPREFIX= r
|
||||
DISTVERSION= 7.0.12
|
||||
DISTVERSION= 7.0.14
|
||||
CATEGORIES= databases net
|
||||
PKGNAMESUFFIX= ${DISTVERSION:R:S/.//}
|
||||
|
||||
MAINTAINER= ronald@FreeBSD.org
|
||||
COMMENT= Distributed document-oriented "NoSQL" database (7.0.x Branch)
|
||||
COMMENT= MongoDB Community Edition (7.0.x Branch)
|
||||
WWW= https://www.mongodb.com/docs/v7.0/
|
||||
|
||||
LICENSE= APACHE20 SSPLv1 # mongodb is SSPLv1, C++ driver is APACHE20
|
||||
|
@ -34,7 +34,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
|
|||
libyaml-cpp.so:devel/yaml-cpp \
|
||||
libzstd.so:archivers/zstd
|
||||
|
||||
USES= compiler:c++20-lang cpe python:build scons shebangfix
|
||||
USES= compiler:c++20-lang cpe python:build scons shebangfix ssl
|
||||
# gmake is used while running ${WRKSRC}/src/third_party/mozjs/gen-config.sh
|
||||
USES+= gmake pkgconfig
|
||||
|
||||
|
@ -56,6 +56,7 @@ MAKE_ARGS= --allocator=system \
|
|||
--disable-warnings-as-errors \
|
||||
--libc++ \
|
||||
--runtime-hardening=on \
|
||||
--ssl \
|
||||
--use-system-libunwind \
|
||||
--use-system-pcre2 \
|
||||
--use-system-snappy \
|
||||
|
@ -84,9 +85,9 @@ EXTRACT_AFTER_ARGS= --exclude src/third_party/pcre2 \
|
|||
USERS= mongodb
|
||||
GROUPS= mongodb
|
||||
|
||||
OPTIONS_DEFINE= LTO NOAVX SASL SSL
|
||||
OPTIONS_DEFINE= LTO NOAVX SASL
|
||||
OPTIONS_DEFINE_aarch64= ARMV80A
|
||||
OPTIONS_DEFAULT= NOAVX SASL SSL
|
||||
OPTIONS_DEFAULT= NOAVX SASL
|
||||
|
||||
# MongoDB on non-LSE ARM cpu like Raspberry Pi can work but is unsupported upstream.
|
||||
# Can give corruption on high concurrency.
|
||||
|
@ -103,9 +104,6 @@ NOAVX_MAKE_ARGS= --experimental-optimization="-sandybridge"
|
|||
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
|
||||
SASL_MAKE_ARGS= --use-sasl-client
|
||||
|
||||
SSL_USES= ssl
|
||||
SSL_MAKE_ARGS= --ssl
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
ALL_TARGET= install-core
|
||||
|
@ -131,6 +129,10 @@ post-patch:
|
|||
${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/backend/base.py
|
||||
${REINPLACE_CMD} -e 's#rU#r#g' ${WRKDIR}/spidermonkey-${MOZJS_TAG}/python/mozbuild/mozbuild/action/process_define_files.py
|
||||
|
||||
pre-configure:
|
||||
# Verify we downloaded the proper mozjs git tag.
|
||||
sh -c "test \"X`grep -E '^LIB_GIT_REVISION=' ${WRKSRC}/src/third_party/mozjs/get-sources.sh`\" = \"XLIB_GIT_REVISION=${MOZJS_TAG}\""
|
||||
|
||||
do-configure:
|
||||
# Replacement of ${WRKSRC}/src/third_party/mozjs/get-sources.sh
|
||||
${LN} -sF ${WRKDIR}/spidermonkey-${MOZJS_TAG} ${WRKSRC}/src/third_party/mozjs/mozilla-release
|
||||
|
@ -148,6 +150,9 @@ do-install:
|
|||
.for doc in LICENSE-Community.txt MPL-2 README THIRD-PARTY-NOTICES
|
||||
${MV} ${STAGEDIR}${PREFIX}/${doc} ${STAGEDIR}${DOCSDIR}/
|
||||
.endfor
|
||||
${INSTALL_MAN} ${WRKSRC}/debian/mongod.1 ${STAGEDIR}${PREFIX}/share/man/man1/
|
||||
${INSTALL_MAN} ${WRKSRC}/debian/mongos.1 ${STAGEDIR}${PREFIX}/share/man/man1/
|
||||
${INSTALL_MAN} ${WRKSRC}/debian/mongodb-parameters.5 ${STAGEDIR}${PREFIX}/share/man/man5/
|
||||
${RM} ${STAGEDIR}${PREFIX}/bin/resmoke.py
|
||||
|
||||
do-test:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
TIMESTAMP = 1720045558
|
||||
SHA256 (mongodb-mongo-r7.0.12_GH0.tar.gz) = 267a396bd8ab6a114c932e9cb2c65565d3556852473015c88ffddda3693b25c3
|
||||
SIZE (mongodb-mongo-r7.0.12_GH0.tar.gz) = 86343146
|
||||
TIMESTAMP = 1724225814
|
||||
SHA256 (mongodb-mongo-r7.0.14_GH0.tar.gz) = 94b49d6e52f03aea83d2a7abcd03aca63044f99c1fc393bbccc2a94385869420
|
||||
SIZE (mongodb-mongo-r7.0.14_GH0.tar.gz) = 87128519
|
||||
SHA256 (mongodb-forks-spidermonkey-22954e1ce6bf72c7cf36f3a29ef030fff4ff6d33_GH0.tar.gz) = b0ba41c3cb2f387afaef9fd8771b1250176680cbc7625836e545e0dec436e85d
|
||||
SIZE (mongodb-forks-spidermonkey-22954e1ce6bf72c7cf36f3a29ef030fff4ff6d33_GH0.tar.gz) = 164690006
|
||||
|
|
|
@ -18,8 +18,8 @@ DBDIR=$( mktemp -d -t tmp.mongodb )
|
|||
trap 'rm -rf "$DBDIR"' EXIT
|
||||
|
||||
# Trivial check if the binaries execute at all.
|
||||
mongod -version
|
||||
mongos -version
|
||||
mongod --version
|
||||
mongos --version
|
||||
|
||||
# Check if an empty database can be created.
|
||||
mkdir "$DBDIR/db"
|
||||
|
|
|
@ -29,12 +29,10 @@
|
|||
print(env_vars.GenerateHelpText(env))
|
||||
Exit(0)
|
||||
|
||||
-unknown_vars = env_vars.UnknownVariables()
|
||||
-if unknown_vars:
|
||||
unknown_vars = env_vars.UnknownVariables()
|
||||
if unknown_vars:
|
||||
- env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
|
||||
+#unknown_vars = env_vars.UnknownVariables()
|
||||
+#if unknown_vars:
|
||||
+# env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
|
||||
+ print("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
|
||||
|
||||
install_actions.setup(env, get_option('install-action'))
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
Distributed document-oriented "NoSQL" database.
|
||||
|
||||
Mongo (from "humongous") is a high-performance, open source,
|
||||
schema-free, document-oriented database. A common name in the
|
||||
"NOSQL" community.
|
||||
|
|
|
@ -5,3 +5,6 @@ bin/mongos
|
|||
%%DOCSDIR%%/MPL-2
|
||||
%%DOCSDIR%%/README
|
||||
%%DOCSDIR%%/THIRD-PARTY-NOTICES
|
||||
share/man/man1/mongod.1.gz
|
||||
share/man/man1/mongos.1.gz
|
||||
share/man/man5/mongodb-parameters.5.gz
|
||||
|
|
Loading…
Add table
Reference in a new issue