2016-01-23 13:46:58 +01:00
|
|
|
# Created by: Brendan Molloy <brendan+freebsd@bbqsrc.net>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mongodb32
|
2016-02-27 15:18:16 +01:00
|
|
|
PORTVERSION= 3.2.3
|
2016-01-23 13:46:58 +01:00
|
|
|
DISTVERSIONPREFIX= r
|
|
|
|
CATEGORIES= databases net
|
|
|
|
MASTER_SITES= https://fastdl.mongodb.org/src/ \
|
|
|
|
http://fastdl.mongodb.org/src/ \
|
|
|
|
http://download.mongodb.org/src/
|
|
|
|
DISTNAME= mongodb-src-${DISTVERSIONPREFIX}${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= brendan+freebsd@bbqsrc.net
|
2016-02-10 15:32:11 +01:00
|
|
|
COMMENT= Distributed document-oriented "NoSQL" database
|
2016-01-23 13:46:58 +01:00
|
|
|
|
|
|
|
# mongodb is AGPLv3, C++ driver is APACHE20
|
|
|
|
LICENSE= AGPLv3 APACHE20
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
|
2016-02-27 15:18:16 +01:00
|
|
|
# Bugs when compiled with < Clang 3.7
|
|
|
|
# - https://jira.mongodb.org/browse/SERVER-21217
|
|
|
|
# - https://jira.mongodb.org/browse/SERVER-22740
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/clang37:${PORTSDIR}/lang/clang37
|
2016-01-23 13:46:58 +01:00
|
|
|
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
|
|
|
|
libsnappy.so:${PORTSDIR}/archivers/snappy
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=3.11:${PORTSDIR}/devel/py-yaml \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pymongo>=3.0:${PORTSDIR}/databases/pymongo
|
|
|
|
|
2016-02-27 15:18:16 +01:00
|
|
|
CPP= ${LOCALBASE}/bin/clang-cpp37
|
|
|
|
CC= ${LOCALBASE}/bin/clang37
|
|
|
|
CXX= ${LOCALBASE}/bin/clang++37
|
|
|
|
CHOSEN_COMPILER_TYPE= clang
|
2016-01-23 13:46:58 +01:00
|
|
|
|
2016-02-27 15:18:16 +01:00
|
|
|
ONLY_FOR_ARCHS= amd64
|
|
|
|
ONLY_FOR_ARCHS_REASON= "Only supported on amd64 (i386 deprecated in v3)"
|
2016-02-10 15:32:11 +01:00
|
|
|
|
2016-02-27 15:18:16 +01:00
|
|
|
OPTIONS_DEFINE= SASL SSL
|
|
|
|
OPTIONS_DEFAULT= SASL SSL
|
2016-01-23 13:46:58 +01:00
|
|
|
|
|
|
|
SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
|
2016-02-10 15:32:11 +01:00
|
|
|
SASL_MAKE_ARGS= --use-sasl-client
|
2016-01-23 13:46:58 +01:00
|
|
|
|
|
|
|
SSL_USE= openssl=yes
|
|
|
|
SSL_MAKE_ARGS= --ssl
|
|
|
|
|
|
|
|
USES= cpe execinfo python:build scons
|
2016-02-10 15:32:11 +01:00
|
|
|
|
2016-01-23 13:46:58 +01:00
|
|
|
MAKE_ARGS= --prefix=${STAGEDIR}${PREFIX} \
|
|
|
|
--use-system-pcre --use-system-snappy \
|
|
|
|
--release
|
|
|
|
|
|
|
|
USERS= mongodb
|
|
|
|
GROUPS= mongodb
|
|
|
|
|
|
|
|
USE_RC_SUBR= mongod
|
|
|
|
|
|
|
|
ALL_TARGET= core
|
|
|
|
TEST_TARGET= unittests
|
|
|
|
|
2016-02-10 15:32:11 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 1000000
|
|
|
|
# Cannot be built
|
|
|
|
IGNORE= unsupported on FreeBSD 9 or older
|
|
|
|
.endif
|
|
|
|
|
2016-01-23 13:46:58 +01:00
|
|
|
post-install:
|
|
|
|
.for f in mongo mongod mongoperf mongos mongosniff
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE_CMD} ${_MAKE_JOBS} ${MAKE_ARGS} ${TEST_TARGET} &&\
|
|
|
|
${PYTHON_CMD} ${BUILD_WRKSRC}/buildscripts/resmoke.py\
|
|
|
|
--suites=unittests --jobs=${MAKE_JOBS_NUMBER}
|
|
|
|
|
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
|
|
|
|
CPE_PRODUCT= mongodb
|
|
|
|
|
2016-02-10 15:32:11 +01:00
|
|
|
.include <bsd.port.post.mk>
|