mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 19:16:39 -04:00
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.
31 lines
606 B
Bash
Executable file
31 lines
606 B
Bash
Executable file
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
usage() {
|
|
echo "Usage: $0 <path>"
|
|
echo "<path> path to the executables"
|
|
}
|
|
|
|
test "$#" -eq 1 || ( usage && exit 1 )
|
|
|
|
set -x
|
|
|
|
PATH="$1:$PATH"
|
|
|
|
DBDIR=$( mktemp -d -t tmp.mongodb )
|
|
|
|
trap 'rm -rf "$DBDIR"' EXIT
|
|
|
|
# Trivial check if the binaries execute at all.
|
|
mongod --version
|
|
mongos --version
|
|
|
|
# Check if an empty database can be created.
|
|
mkdir "$DBDIR/db"
|
|
tail -F "$DBDIR/log" | ( grep -qFe "Waiting for connections" && kill $(cat "$DBDIR/pid") ) &
|
|
script -eF "$DBDIR/log" \
|
|
timeout -s TERM -k 30s 60s \
|
|
mongod --dbpath "$DBDIR/db" --pidfilepath "$DBDIR/pid"
|
|
|
|
echo "Test successful"
|