Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2013 20:57:09 GMT
From:      Waitman Gobble <uzimac@da3m0n8t3r.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175616: New Port: devel/mongo-cxx-driver C++ Driver for MongoDB
Message-ID:  <201301262057.r0QKv9KV026863@red.freebsd.org>
Resent-Message-ID: <201301262100.r0QL008j044868@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175616
>Category:       ports
>Synopsis:       New Port: devel/mongo-cxx-driver C++ Driver for MongoDB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 26 21:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Waitman Gobble
>Release:        FreeBSD 9.1-STABLE
>Organization:
Waitman Gobble
>Environment:
FreeBSD kamira.waitman.net 9.1-STABLE FreeBSD 9.1-STABLE #0 r245772M: Tue Jan 22 06:09:00 PST 2013     root@kamira.waitman.net:/usr/obj/usr/src/sys/BURPLEX  amd64

>Description:
Official 10gen C++ Driver for MongoDB.

Static library only, libmongoclient.a

Builds with base gcc. It is possible (trivial) to modify the SConstruct file to enable a clang build, however due to a current issue with clang and mongodb server clang support will be added at a future date.

Requires: scons and devel/boost-libs

Please note, if you are installing the server from ports, the include headers in the client "overlap" (include headers are installed by server port but not actually used by the server. Despite scons target=all in the server port, it does not seem to install client library.).

This port assumes that the user "also" installed devel/boost-libs in ${PREFIX}, which is used to set the --extrapath argument for scons, otherwise scons will not be able to locate the boost libraries and fail. A typical user will have everything installed in /usr/local and there will not be an issue.

Thank you

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mongo-cxx-driver
#	mongo-cxx-driver/pkg-descr
#	mongo-cxx-driver/pkg-plist
#	mongo-cxx-driver/Makefile
#	mongo-cxx-driver/distinfo
#
echo c - mongo-cxx-driver
mkdir -p mongo-cxx-driver > /dev/null 2>&1
echo x - mongo-cxx-driver/pkg-descr
sed 's/^X//' >mongo-cxx-driver/pkg-descr << 'c4446dae8e4d6852ec038ac15b1a70df'
XOfficial Mongo C++ Driver 
X
XMongo (from "humongous") is a high-performance, open source,
Xschema-free, document-oriented database. A common name in the
X"NOSQL" community.
X
XWWW: http://www.mongodb.org/
c4446dae8e4d6852ec038ac15b1a70df
echo x - mongo-cxx-driver/pkg-plist
sed 's/^X//' >mongo-cxx-driver/pkg-plist << 'ac60910d8a8ab620c653a27c2af94bf6'
Xinclude/mongo/bson/bson-inl.h
Xinclude/mongo/bson/bson.h
Xinclude/mongo/bson/bson_builder_base.h
Xinclude/mongo/bson/bson_db.h
Xinclude/mongo/bson/bsonelement.h
Xinclude/mongo/bson/bsonmisc.h
Xinclude/mongo/bson/bsonobj.h
Xinclude/mongo/bson/bsonobjbuilder.h
Xinclude/mongo/bson/bsonobjiterator.h
Xinclude/mongo/bson/bsontypes.h
Xinclude/mongo/bson/inline_decls.h
Xinclude/mongo/bson/oid.h
Xinclude/mongo/bson/ordering.h
Xinclude/mongo/bson/stringdata.h
Xinclude/mongo/bson/util/atomic_int.h
Xinclude/mongo/bson/util/builder.h
Xinclude/mongo/bson/util/misc.h
Xinclude/mongo/client/authentication_table.h
Xinclude/mongo/client/authlevel.h
Xinclude/mongo/client/clientOnly-private.h
Xinclude/mongo/client/connpool.h
Xinclude/mongo/client/constants.h
Xinclude/mongo/client/dbclient.h
Xinclude/mongo/client/dbclient_rs.h
Xinclude/mongo/client/dbclientcursor.h
Xinclude/mongo/client/dbclientinterface.h
Xinclude/mongo/client/dbclientmockcursor.h
Xinclude/mongo/client/distlock.h
Xinclude/mongo/client/gridfs.h
Xinclude/mongo/client/model.h
Xinclude/mongo/client/parallel.h
Xinclude/mongo/client/redef_macros.h
Xinclude/mongo/client/syncclusterconnection.h
Xinclude/mongo/client/undef_macros.h
Xinclude/mongo/db/background.h
Xinclude/mongo/db/btree.h
Xinclude/mongo/db/btreebuilder.h
Xinclude/mongo/db/client.h
Xinclude/mongo/db/client_common.h
Xinclude/mongo/db/clientcursor.h
Xinclude/mongo/db/cloner.h
Xinclude/mongo/db/cmdline.h
Xinclude/mongo/db/collection.h
Xinclude/mongo/db/commands.h
Xinclude/mongo/db/compact.h
Xinclude/mongo/db/curop-inl.h
Xinclude/mongo/db/curop.h
Xinclude/mongo/db/cursor.h
Xinclude/mongo/db/d_concurrency.h
Xinclude/mongo/db/d_globals.h
Xinclude/mongo/db/database.h
Xinclude/mongo/db/databaseholder.h
Xinclude/mongo/db/db.h
Xinclude/mongo/db/dbhelpers.h
Xinclude/mongo/db/dbmessage.h
Xinclude/mongo/db/dbwebserver.h
Xinclude/mongo/db/diskloc.h
Xinclude/mongo/db/dur.h
Xinclude/mongo/db/dur_commitjob.h
Xinclude/mongo/db/dur_journal.h
Xinclude/mongo/db/dur_journalformat.h
Xinclude/mongo/db/dur_journalimpl.h
Xinclude/mongo/db/dur_recover.h
Xinclude/mongo/db/dur_stats.h
Xinclude/mongo/db/durop.h
Xinclude/mongo/db/explain.h
Xinclude/mongo/db/extsort.h
Xinclude/mongo/db/filever.h
Xinclude/mongo/db/globals.h
Xinclude/mongo/db/hasher.h
Xinclude/mongo/db/hashindex.h
Xinclude/mongo/db/index.h
Xinclude/mongo/db/index_insertion_continuation.h
Xinclude/mongo/db/index_update.h
Xinclude/mongo/db/indexkey.h
Xinclude/mongo/db/instance.h
Xinclude/mongo/db/interrupt_status.h
Xinclude/mongo/db/interrupt_status_mongod.h
Xinclude/mongo/db/introspect.h
Xinclude/mongo/db/jsobj.h
Xinclude/mongo/db/jsobjmanipulator.h
Xinclude/mongo/db/json.h
Xinclude/mongo/db/key.h
Xinclude/mongo/db/lasterror.h
Xinclude/mongo/db/lockstat.h
Xinclude/mongo/db/lockstate.h
Xinclude/mongo/db/matcher.h
Xinclude/mongo/db/memconcept.h
Xinclude/mongo/db/minilex.h
Xinclude/mongo/db/module.h
Xinclude/mongo/db/mongommf.h
Xinclude/mongo/db/namespace-inl.h
Xinclude/mongo/db/namespace.h
Xinclude/mongo/db/namespace_details-inl.h
Xinclude/mongo/db/namespace_details.h
Xinclude/mongo/db/namespacestring.h
Xinclude/mongo/db/nonce.h
Xinclude/mongo/db/oplog.h
Xinclude/mongo/db/oplogreader.h
Xinclude/mongo/db/ops/count.h
Xinclude/mongo/db/ops/delete.h
Xinclude/mongo/db/ops/query.h
Xinclude/mongo/db/ops/update.h
Xinclude/mongo/db/ops/update_internal.h
Xinclude/mongo/db/pagefault.h
Xinclude/mongo/db/pdfile.h
Xinclude/mongo/db/pdfile_private.h
Xinclude/mongo/db/prefetch.h
Xinclude/mongo/db/projection.h
Xinclude/mongo/db/queryoptimizer.h
Xinclude/mongo/db/queryoptimizercursor.h
Xinclude/mongo/db/queryoptimizercursorimpl.h
Xinclude/mongo/db/querypattern.h
Xinclude/mongo/db/queryutil-inl.h
Xinclude/mongo/db/queryutil.h
Xinclude/mongo/db/record.h
Xinclude/mongo/db/repl/bgsync.h
Xinclude/mongo/db/repl/connections.h
Xinclude/mongo/db/repl/health.h
Xinclude/mongo/db/repl/multicmd.h
Xinclude/mongo/db/repl/rs.h
Xinclude/mongo/db/repl/rs_config.h
Xinclude/mongo/db/repl/rs_exception.h
Xinclude/mongo/db/repl/rs_member.h
Xinclude/mongo/db/repl/rs_optime.h
Xinclude/mongo/db/repl/rs_sync.h
Xinclude/mongo/db/repl.h
Xinclude/mongo/db/repl_block.h
Xinclude/mongo/db/replutil.h
Xinclude/mongo/db/resource.h
Xinclude/mongo/db/restapi.h
Xinclude/mongo/db/scanandorder.h
Xinclude/mongo/db/security.h
Xinclude/mongo/db/security_common.h
Xinclude/mongo/db/stats/counters.h
Xinclude/mongo/db/stats/fine_clock.h
Xinclude/mongo/db/stats/service_stats.h
Xinclude/mongo/db/stats/snapshots.h
Xinclude/mongo/db/stats/top.h
Xinclude/mongo/db/taskqueue.h
Xinclude/mongo/db/ttl.h
Xinclude/mongo/pch.h
Xinclude/mongo/platform/atomic_intrinsics.h
Xinclude/mongo/platform/atomic_intrinsics_gcc.h
Xinclude/mongo/platform/atomic_intrinsics_win32.h
Xinclude/mongo/platform/atomic_word.h
Xinclude/mongo/platform/basic.h
Xinclude/mongo/platform/bits.h
Xinclude/mongo/platform/compiler.h
Xinclude/mongo/platform/compiler_gcc.h
Xinclude/mongo/platform/compiler_msvc.h
Xinclude/mongo/platform/float_utils.h
Xinclude/mongo/platform/windows_basic.h
Xinclude/mongo/s/balance.h
Xinclude/mongo/s/balancer_policy.h
Xinclude/mongo/s/chunk.h
Xinclude/mongo/s/chunk_diff.h
Xinclude/mongo/s/chunk_diff.hpp
Xinclude/mongo/s/client_info.h
Xinclude/mongo/s/config.h
Xinclude/mongo/s/cursors.h
Xinclude/mongo/s/d_chunk_manager.h
Xinclude/mongo/s/d_logic.h
Xinclude/mongo/s/d_writeback.h
Xinclude/mongo/s/grid.h
Xinclude/mongo/s/interrupt_status_mongos.h
Xinclude/mongo/s/request.h
Xinclude/mongo/s/server.h
Xinclude/mongo/s/shard.h
Xinclude/mongo/s/shard_version.h
Xinclude/mongo/s/shardkey.h
Xinclude/mongo/s/stats.h
Xinclude/mongo/s/strategy.h
Xinclude/mongo/s/util.h
Xinclude/mongo/s/writeback_listener.h
Xinclude/mongo/scripting/bench.h
Xinclude/mongo/scripting/bson_template_evaluator.h
Xinclude/mongo/scripting/engine.h
Xinclude/mongo/scripting/engine_spidermonkey.h
Xinclude/mongo/scripting/engine_v8.h
Xinclude/mongo/scripting/v8_db.h
Xinclude/mongo/scripting/v8_utils.h
Xinclude/mongo/scripting/v8_wrapper.h
Xinclude/mongo/server.h
Xinclude/mongo/shell/linenoise.h
Xinclude/mongo/shell/linenoise_utf8.h
Xinclude/mongo/shell/mk_wcwidth.h
Xinclude/mongo/shell/shell_utils.h
Xinclude/mongo/shell/shell_utils_extended.h
Xinclude/mongo/shell/shell_utils_launcher.h
Xinclude/mongo/targetver.h
Xinclude/mongo/util/admin_access.h
Xinclude/mongo/util/alignedbuilder.h
Xinclude/mongo/util/allocator.h
Xinclude/mongo/util/array.h
Xinclude/mongo/util/assert_util.h
Xinclude/mongo/util/background.h
Xinclude/mongo/util/base64.h
Xinclude/mongo/util/bson_util.h
Xinclude/mongo/util/bufreader.h
Xinclude/mongo/util/checksum.h
Xinclude/mongo/util/compress.h
Xinclude/mongo/util/concurrency/list.h
Xinclude/mongo/util/concurrency/mapsf.h
Xinclude/mongo/util/concurrency/msg.h
Xinclude/mongo/util/concurrency/mutex.h
Xinclude/mongo/util/concurrency/mutexdebugger.h
Xinclude/mongo/util/concurrency/mvar.h
Xinclude/mongo/util/concurrency/qlock.h
Xinclude/mongo/util/concurrency/race.h
Xinclude/mongo/util/concurrency/rwlock.h
Xinclude/mongo/util/concurrency/rwlockimpl.h
Xinclude/mongo/util/concurrency/shared_mutex_win.hpp
Xinclude/mongo/util/concurrency/simplerwlock.h
Xinclude/mongo/util/concurrency/spin_lock.h
Xinclude/mongo/util/concurrency/synchronization.h
Xinclude/mongo/util/concurrency/task.h
Xinclude/mongo/util/concurrency/thread_pool.h
Xinclude/mongo/util/concurrency/threadlocal.h
Xinclude/mongo/util/concurrency/ticketholder.h
Xinclude/mongo/util/concurrency/value.h
Xinclude/mongo/util/debug_util.h
Xinclude/mongo/util/embedded_builder.h
Xinclude/mongo/util/exit_code.h
Xinclude/mongo/util/file.h
Xinclude/mongo/util/file_allocator.h
Xinclude/mongo/util/goodies.h
Xinclude/mongo/util/hashtab.h
Xinclude/mongo/util/heapcheck.h
Xinclude/mongo/util/hex.h
Xinclude/mongo/util/histogram.h
Xinclude/mongo/util/intrusive_counter.h
Xinclude/mongo/util/log.h
Xinclude/mongo/util/logfile.h
Xinclude/mongo/util/lruishmap.h
Xinclude/mongo/util/map_util.h
Xinclude/mongo/util/md5.h
Xinclude/mongo/util/md5.hpp
Xinclude/mongo/util/mmap.h
Xinclude/mongo/util/mongoutils/checksum.h
Xinclude/mongo/util/mongoutils/hash.h
Xinclude/mongo/util/mongoutils/html.h
Xinclude/mongo/util/mongoutils/str.h
Xinclude/mongo/util/moveablebuffer.h
Xinclude/mongo/util/net/hostandport.h
Xinclude/mongo/util/net/httpclient.h
Xinclude/mongo/util/net/listen.h
Xinclude/mongo/util/net/message.h
Xinclude/mongo/util/net/message_port.h
Xinclude/mongo/util/net/message_server.h
Xinclude/mongo/util/net/miniwebserver.h
Xinclude/mongo/util/net/sock.h
Xinclude/mongo/util/ntservice.h
Xinclude/mongo/util/optime.h
Xinclude/mongo/util/password.h
Xinclude/mongo/util/paths.h
Xinclude/mongo/util/processinfo.h
Xinclude/mongo/util/progress_meter.h
Xinclude/mongo/util/queue.h
Xinclude/mongo/util/ramlog.h
Xinclude/mongo/util/scopeguard.h
Xinclude/mongo/util/signal_handlers.h
Xinclude/mongo/util/stack_introspect.h
Xinclude/mongo/util/stacktrace.h
Xinclude/mongo/util/startup_test.h
Xinclude/mongo/util/string_writer.h
Xinclude/mongo/util/stringutils.h
Xinclude/mongo/util/systeminfo.h
Xinclude/mongo/util/text.h
Xinclude/mongo/util/time_support.h
Xinclude/mongo/util/timer-generic-inl.h
Xinclude/mongo/util/timer-inl.h
Xinclude/mongo/util/timer-posixclock-inl.h
Xinclude/mongo/util/timer-win32-inl.h
Xinclude/mongo/util/timer.h
Xinclude/mongo/util/touch_pages.h
Xinclude/mongo/util/trace.h
Xinclude/mongo/util/version.h
Xinclude/mongo/util/winutil.h
Xlib/libmongoclient.a
X@dirrm include/mongo/bson/util
X@dirrm include/mongo/bson
X@dirrm include/mongo/shell
X@dirrm include/mongo/platform
X@dirrm include/mongo/client
X@dirrm include/mongo/db/ops
X@dirrm include/mongo/db/repl
X@dirrm include/mongo/db/stats
X@dirrm include/mongo/db
X@dirrm include/mongo/s
X@dirrm include/mongo/scripting
X@dirrm include/mongo/util/concurrency
X@dirrm include/mongo/util/mongoutils
X@dirrm include/mongo/util/net
X@dirrm include/mongo/util
X@dirrm include/mongo
ac60910d8a8ab620c653a27c2af94bf6
echo x - mongo-cxx-driver/Makefile
sed 's/^X//' >mongo-cxx-driver/Makefile << 'f4afbfe98c3285685e82518a0868368b'
X# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
X# $FreeBSD$
X# New ports collection makefile for: mongo-cxx-driver
X# Date created:	26 January 2013
X
XPORTNAME=	mongo-cxx-driver
XPORTVERSION=	2.2
XCATEGORIES=	devel
XMASTER_SITES=	http://downloads.mongodb.org/cxx-driver/
XDISTFILES=	mongodb-linux-x86_64-v2.2-latest.tgz
X
XMAINTAINER=	waitman@waitman.net
XCOMMENT=	C++ Driver for MongoDB
X
XLIB_DEPENDS=	boost_system:${PORTSDIR}/devel/boost-libs
X
XWRKSRC=         ${WRKDIR}/mongo-cxx-driver-v2.2
X
XUSE_SCONS=	yes
XSCONS_ARGS=	--extrapath=${PREFIX}
X
X.include <bsd.port.mk>
f4afbfe98c3285685e82518a0868368b
echo x - mongo-cxx-driver/distinfo
sed 's/^X//' >mongo-cxx-driver/distinfo << 'c62f4745c7973ac10b1b1e04a048b76d'
XSHA256 (mongodb-linux-x86_64-v2.2-latest.tgz) = aa3af73f9517b0099b1986192ab91d345d76fa203db30114326c36df3dc75aa3
XSIZE (mongodb-linux-x86_64-v2.2-latest.tgz) = 475893
c62f4745c7973ac10b1b1e04a048b76d
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301262057.r0QKv9KV026863>