Update to 2.4.5 release.

Add support for SASL client authentication
Build shared library.
This commit is contained in:
Alex Dupre 2013-08-13 13:17:49 +00:00
parent 5647074878
commit 60efe1a86c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324663
3 changed files with 18 additions and 5 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mongodb
PORTVERSION= 2.4.4
PORTVERSION= 2.4.5
CATEGORIES= databases net
MASTER_SITES= http://downloads.mongodb.org/src/
DISTNAME= ${PORTNAME}-src-r${PORTVERSION}
@ -24,19 +24,23 @@ LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo \
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64"
OPTIONS_DEFINE= SM SSL TEST
OPTIONS_DEFINE= SM SSL SASL TEST
OPTIONS_DEFAULT=SSL
SM_DESC= Use SpiderMonkey instead of V8 for JavaScript
TEST_DESC= Add support for running regression test
USE_SCONS= yes
SCONS_ARGS= --prefix=${PREFIX} --cc=${CC} --cxx=${CXX} --use-system-pcre --use-system-snappy
SCONS_ARGS= --prefix=${PREFIX} --cc=${CC} --cxx=${CXX} \
--use-system-pcre --use-system-snappy \
--full --sharedclient
USERS= mongodb
GROUPS= mongodb
USE_RC_SUBR= mongod
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSM}
@ -52,6 +56,11 @@ USE_OPENSSL= yes
SCONS_ARGS+= --ssl
.endif
.if ${PORT_OPTIONS:MSASL}
SCONS_ARGS+= --use-sasl-client
LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2
.endif
.if ${PORT_OPTIONS:MTEST}
BUILD_DEPENDS= pymongo>=2.5:${PORTSDIR}/databases/pymongo
SCONS_TARGET= all
@ -68,6 +77,8 @@ post-patch:
${WRKSRC}/SConstruct
post-install:
@${LN} -s ${PREFIX}/lib/libmongoclient.so \
${PREFIX}/lib/libmongoclient.so.0
@if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \
${TOUCH} ${PREFIX}/etc/mongodb.conf ; \
fi

View file

@ -1,2 +1,2 @@
SHA256 (mongodb-src-r2.4.4.tar.gz) = ea3db3e730290d030853f7a22cbbc5edfbe33dd538ec67d551a7e88f6d4db240
SIZE (mongodb-src-r2.4.4.tar.gz) = 14119330
SHA256 (mongodb-src-r2.4.5.tar.gz) = b576cbc2c813144b8a8774a7232b78bd0b005e2e6fa7428e7fa1e426c7a28705
SIZE (mongodb-src-r2.4.5.tar.gz) = 14128847

View file

@ -384,6 +384,8 @@ include/mongo/util/unordered_fast_key_table_internal.h
include/mongo/util/version.h
include/mongo/util/winutil.h
lib/libmongoclient.a
lib/libmongoclient.so
lib/libmongoclient.so.0
@dirrm include/mongo/base
@dirrm include/mongo/bson/util
@dirrm include/mongo/bson