diff options
author | demon <demon@FreeBSD.org> | 2016-01-23 20:46:58 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2016-01-23 20:46:58 +0800 |
commit | c7fc1d5d1da173070ada64d52d66f8bbbabeecb8 (patch) | |
tree | 48b3215a3dbc6eeb9899a0cf4895ef3352a79ccf /databases/mongodb32/Makefile | |
parent | 0fc2bcac28119b21ce2daede9738583cb0d215ae (diff) | |
download | freebsd-ports-gnome-c7fc1d5d1da173070ada64d52d66f8bbbabeecb8.tar.gz freebsd-ports-gnome-c7fc1d5d1da173070ada64d52d66f8bbbabeecb8.tar.zst freebsd-ports-gnome-c7fc1d5d1da173070ada64d52d66f8bbbabeecb8.zip |
Add a port for mongodb version 3.2.
PR: 205510
Submitted by: Brendan Molloy <brendan+freebsd@bbqsrc.net>
Maintainer of databases/mongodb port timeout (3 weeks)
I bumped version to 3.2.1.
mongodb32-tools port coming soon.
Diffstat (limited to 'databases/mongodb32/Makefile')
-rw-r--r-- | databases/mongodb32/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/databases/mongodb32/Makefile b/databases/mongodb32/Makefile new file mode 100644 index 000000000000..fa1307f92e4c --- /dev/null +++ b/databases/mongodb32/Makefile @@ -0,0 +1,65 @@ +# Created by: Brendan Molloy <brendan+freebsd@bbqsrc.net> +# $FreeBSD$ + +PORTNAME= mongodb32 +PORTVERSION= 3.2.1 +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 +COMMENT= NOSQL distributed document-oriented database + +# mongodb is AGPLv3, C++ driver is APACHE20 +LICENSE= AGPLv3 APACHE20 +LICENSE_COMB= multi + +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 + +ONLY_FOR_ARCHS= i386 amd64 +ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64" + +OPTIONS_DEFINE= SASL SSL +OPTIONS_DEFAULT=SSL + +SASL_LIB_DEPENDS= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2 +SASL_MAKE_ARGS= --use-sasl-client + +SSL_USE= openssl=yes +SSL_MAKE_ARGS= --ssl + +USES= cpe execinfo python:build scons +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 + +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 + +.include <bsd.port.mk> |