Files
ports/databases/mongodb36/Makefile
Alexey Dokuchaev 61b6613393 Style: improve ONLY_FOR_ARCHS_REASON (grammar, markup, etc.)
ONLY_FOR_ARCHS_REASON is used as part of the sentence and thus should
start with lower-case letter and not end with a period which is added
by the framework, similar to other knobs like BROKEN, IGNORE, et al.

While here, remove needless quoting, add missing Oxford comma, expand
contractions and jargonisms, use correct spelling for proper names.
2021-10-25 12:58:29 +00:00

75 lines
2.0 KiB
Makefile

PORTNAME= mongodb
DISTVERSIONPREFIX= r
DISTVERSION= 3.6.23
CATEGORIES= databases net
MASTER_SITES= https://fastdl.mongodb.org/src/ \
http://fastdl.mongodb.org/src/
PKGNAMESUFFIX= ${PORTVERSION:R:S/.//}
DISTNAME= mongodb-src-${DISTVERSIONPREFIX}${DISTVERSION}
MAINTAINER= dev@dudu.ro
COMMENT= Distributed document-oriented "NoSQL" database
# mongodb is SSPLv1, C++ driver is APACHE20
LICENSE= SSPLv1 APACHE20
LICENSE_COMB= multi
LICENSE_NAME_SSPLv1= Server Side Public License Version 1
LICENSE_FILE_SSPLv1= ${WRKSRC}/LICENSE-Community.txt
LICENSE_PERMS_SSPLv1= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= only supported on amd64 and aarch64; i386 deprecated in v3
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR}
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libpcre.so:devel/pcre \
libsnappy.so:archivers/snappy
USES= compiler:c++14-lang cpe python:3.5+,build scons shebangfix
USE_RC_SUBR= mongod
CONFLICTS_INSTALL= mongodb4[024]
SHEBANG_FILES= src/mongo/installer/compass/install_compass.in
python_OLD_CMD= @python_interpreter@
MAKE_ARGS= --prefix=${STAGEDIR}${PREFIX} \
--use-system-pcre --use-system-snappy \
--use-system-boost --use-system-zlib \
--cxx-std=14 --libc++ \
--runtime-hardening=on \
--disable-warnings-as-errors \
VERBOSE=on
USERS= mongodb
GROUPS= mongodb
OPTIONS_DEFINE= SASL SSL
OPTIONS_DEFAULT= SASL SSL
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_MAKE_ARGS= --use-sasl-client
SSL_USES= ssl
SSL_MAKE_ARGS= --ssl
.include <bsd.port.options.mk>
.if ${ARCH} == aarch64
EXTRA_PATCHES= ${FILESDIR}/aarch64
.endif
ALL_TARGET= core
PORTSCOUT= limitw:1,even
CPE_PRODUCT= mongodb
post-install:
.for f in mongo mongod mongoperf mongos
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
${CP} ${WRKSRC}/rpm/mongod.conf ${STAGEDIR}${PREFIX}/etc/mongodb.conf.sample
.include <bsd.port.mk>