aboutsummaryrefslogtreecommitdiff
path: root/databases/mongodb
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2010-12-30 10:29:03 +0000
committerRenato Botelho <garga@FreeBSD.org>2010-12-30 10:29:03 +0000
commit0de76ed7f20bce1858166a48957584adee03c527 (patch)
treef610b6b836cb14d944df4305fcde91aebf35615d /databases/mongodb
parent87d80428a9e2d1c532cda689eaa411a2dc4817de (diff)
downloadports-0de76ed7f20bce1858166a48957584adee03c527.tar.gz
ports-0de76ed7f20bce1858166a48957584adee03c527.zip
Notes
Diffstat (limited to 'databases/mongodb')
-rw-r--r--databases/mongodb/Makefile24
-rw-r--r--databases/mongodb/pkg-plist175
2 files changed, 187 insertions, 12 deletions
diff --git a/databases/mongodb/Makefile b/databases/mongodb/Makefile
index 324239546b63..e79d17257441 100644
--- a/databases/mongodb/Makefile
+++ b/databases/mongodb/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mongodb
PORTVERSION= 1.6.5
+PORTREVISION= 1
CATEGORIES= databases net
MASTER_SITES= http://downloads.mongodb.org/src/ \
http://derzinn.de/files/
@@ -24,28 +25,31 @@ LIB_DEPENDS= boost_system:${PORTSDIR}/devel/boost-libs \
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than i386 and amd64"
+OPTIONS= DEVEL "Install development files (library and headers)" off
+
USE_SCONS= yes
SCONS_TARGET= all
+SCONS_ARGS= --prefix=${PREFIX}
USE_RC_SUBR= mongod
-MONGO_FILES= mongo mongod mongodump mongoexport mongofiles \
- mongoimport mongorestore mongos mongosniff mongostat
.include <bsd.port.pre.mk>
+
.if ${OSVERSION} < 700042
BROKEN= Does not build
.endif
+.if defined(WITH_DEVEL)
+SCONS_ARGS+= --full
+PLIST_SUB+= DEVEL=""
+.else
+PLIST_SUB+= DEVEL="@comment "
+.endif
+
post-patch:
- @${REINPLACE_CMD} -E -e 's|elif "freebsd7" == os.sys.platform|elif os.sys.platform.startswith("freebsd")|' \
+ @${REINPLACE_CMD} -e 's|elif "freebsd7" == os.sys.platform|elif os.sys.platform.startswith("freebsd")|' \
+ -e '/not GetOption("nostrip")/ s,linux,linux or freebsd,g' \
${WRKSRC}/SConstruct
- @${REINPLACE_CMD} -e 's#/usr/local#${PREFIX}#g' ${WRKSRC}/SConstruct
-
-do-install:
-.for i in ${MONGO_FILES}
- ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
-.endfor
- ${INSTALL_DATA} ${WRKSRC}/libmongoclient.a ${PREFIX}/lib
post-install:
@if [ ! -f ${PREFIX}/etc/mongodb.conf ]; then \
diff --git a/databases/mongodb/pkg-plist b/databases/mongodb/pkg-plist
index a09cbd2d6955..639b985bfdf2 100644
--- a/databases/mongodb/pkg-plist
+++ b/databases/mongodb/pkg-plist
@@ -1,4 +1,6 @@
@unexec if [ ! -s %D/etc/mongodb.conf ]; then /bin/rm -f %D/etc/mongodb.conf; fi
+@exec if [ ! -f %D/etc/mongodb.conf ]; then /usr/bin/touch %D/etc/mongodb.conf; fi
+bin/bsondump
bin/mongo
bin/mongod
bin/mongodump
@@ -9,5 +11,174 @@ bin/mongorestore
bin/mongos
bin/mongosniff
bin/mongostat
-lib/libmongoclient.a
-@exec if [ ! -f %D/etc/mongodb.conf ]; then /usr/bin/touch %D/etc/mongodb.conf; fi
+%%DEVEL%%lib/libmongoclient.a
+%%DEVEL%%include/mongo/bson/bson.h
+%%DEVEL%%include/mongo/bson/bson_db.h
+%%DEVEL%%include/mongo/bson/bsonelement.h
+%%DEVEL%%include/mongo/bson/bsoninlines.h
+%%DEVEL%%include/mongo/bson/bsonmisc.h
+%%DEVEL%%include/mongo/bson/bsonobj.h
+%%DEVEL%%include/mongo/bson/bsonobjbuilder.h
+%%DEVEL%%include/mongo/bson/bsonobjiterator.h
+%%DEVEL%%include/mongo/bson/bsontypes.h
+%%DEVEL%%include/mongo/bson/inline_decls.h
+%%DEVEL%%include/mongo/bson/oid.h
+%%DEVEL%%include/mongo/bson/ordering.h
+%%DEVEL%%include/mongo/bson/stringdata.h
+%%DEVEL%%include/mongo/bson/util/atomic_int.h
+%%DEVEL%%include/mongo/bson/util/builder.h
+%%DEVEL%%include/mongo/bson/util/misc.h
+%%DEVEL%%include/mongo/client/connpool.h
+%%DEVEL%%include/mongo/client/constants.h
+%%DEVEL%%include/mongo/client/dbclient.h
+%%DEVEL%%include/mongo/client/dbclientcursor.h
+%%DEVEL%%include/mongo/client/distlock.h
+%%DEVEL%%include/mongo/client/gridfs.h
+%%DEVEL%%include/mongo/client/model.h
+%%DEVEL%%include/mongo/client/parallel.h
+%%DEVEL%%include/mongo/client/redef_macros.h
+%%DEVEL%%include/mongo/client/syncclusterconnection.h
+%%DEVEL%%include/mongo/client/undef_macros.h
+%%DEVEL%%include/mongo/db/background.h
+%%DEVEL%%include/mongo/db/btree.h
+%%DEVEL%%include/mongo/db/client.h
+%%DEVEL%%include/mongo/db/clientcursor.h
+%%DEVEL%%include/mongo/db/cmdline.h
+%%DEVEL%%include/mongo/db/commands.h
+%%DEVEL%%include/mongo/db/concurrency.h
+%%DEVEL%%include/mongo/db/curop.h
+%%DEVEL%%include/mongo/db/cursor.h
+%%DEVEL%%include/mongo/db/database.h
+%%DEVEL%%include/mongo/db/db.h
+%%DEVEL%%include/mongo/db/dbhelpers.h
+%%DEVEL%%include/mongo/db/dbmessage.h
+%%DEVEL%%include/mongo/db/dbwebserver.h
+%%DEVEL%%include/mongo/db/diskloc.h
+%%DEVEL%%include/mongo/db/extsort.h
+%%DEVEL%%include/mongo/db/filever.h
+%%DEVEL%%include/mongo/db/index.h
+%%DEVEL%%include/mongo/db/indexkey.h
+%%DEVEL%%include/mongo/db/instance.h
+%%DEVEL%%include/mongo/db/introspect.h
+%%DEVEL%%include/mongo/db/jsobj.h
+%%DEVEL%%include/mongo/db/jsobjmanipulator.h
+%%DEVEL%%include/mongo/db/json.h
+%%DEVEL%%include/mongo/db/lasterror.h
+%%DEVEL%%include/mongo/db/matcher.h
+%%DEVEL%%include/mongo/db/minilex.h
+%%DEVEL%%include/mongo/db/module.h
+%%DEVEL%%include/mongo/db/namespace.h
+%%DEVEL%%include/mongo/db/nonce.h
+%%DEVEL%%include/mongo/db/oplog.h
+%%DEVEL%%include/mongo/db/oplogreader.h
+%%DEVEL%%include/mongo/db/pdfile.h
+%%DEVEL%%include/mongo/db/query.h
+%%DEVEL%%include/mongo/db/queryoptimizer.h
+%%DEVEL%%include/mongo/db/queryutil.h
+%%DEVEL%%include/mongo/db/rec.h
+%%DEVEL%%include/mongo/db/reccache.h
+%%DEVEL%%include/mongo/db/reci.h
+%%DEVEL%%include/mongo/db/recstore.h
+%%DEVEL%%include/mongo/db/repl.h
+%%DEVEL%%include/mongo/db/repl/connections.h
+%%DEVEL%%include/mongo/db/repl/health.h
+%%DEVEL%%include/mongo/db/repl/multicmd.h
+%%DEVEL%%include/mongo/db/repl/rs.h
+%%DEVEL%%include/mongo/db/repl/rs_config.h
+%%DEVEL%%include/mongo/db/repl/rs_exception.h
+%%DEVEL%%include/mongo/db/repl/rs_member.h
+%%DEVEL%%include/mongo/db/repl/rs_optime.h
+%%DEVEL%%include/mongo/db/repl_block.h
+%%DEVEL%%include/mongo/db/replpair.h
+%%DEVEL%%include/mongo/db/resource.h
+%%DEVEL%%include/mongo/db/scanandorder.h
+%%DEVEL%%include/mongo/db/security.h
+%%DEVEL%%include/mongo/db/stats/counters.h
+%%DEVEL%%include/mongo/db/stats/fine_clock.h
+%%DEVEL%%include/mongo/db/stats/service_stats.h
+%%DEVEL%%include/mongo/db/stats/snapshots.h
+%%DEVEL%%include/mongo/db/stats/top.h
+%%DEVEL%%include/mongo/db/update.h
+%%DEVEL%%include/mongo/pch.h
+%%DEVEL%%include/mongo/s/balance.h
+%%DEVEL%%include/mongo/s/balancer_policy.h
+%%DEVEL%%include/mongo/s/chunk.h
+%%DEVEL%%include/mongo/s/config.h
+%%DEVEL%%include/mongo/s/cursors.h
+%%DEVEL%%include/mongo/s/d_logic.h
+%%DEVEL%%include/mongo/s/grid.h
+%%DEVEL%%include/mongo/s/request.h
+%%DEVEL%%include/mongo/s/server.h
+%%DEVEL%%include/mongo/s/shard.h
+%%DEVEL%%include/mongo/s/shardkey.h
+%%DEVEL%%include/mongo/s/stats.h
+%%DEVEL%%include/mongo/s/strategy.h
+%%DEVEL%%include/mongo/s/util.h
+%%DEVEL%%include/mongo/scripting/engine.h
+%%DEVEL%%include/mongo/scripting/engine_java.h
+%%DEVEL%%include/mongo/scripting/engine_spidermonkey.h
+%%DEVEL%%include/mongo/scripting/engine_v8.h
+%%DEVEL%%include/mongo/scripting/v8_db.h
+%%DEVEL%%include/mongo/scripting/v8_utils.h
+%%DEVEL%%include/mongo/scripting/v8_wrapper.h
+%%DEVEL%%include/mongo/targetver.h
+%%DEVEL%%include/mongo/util/allocator.h
+%%DEVEL%%include/mongo/util/array.h
+%%DEVEL%%include/mongo/util/assert_util.h
+%%DEVEL%%include/mongo/util/background.h
+%%DEVEL%%include/mongo/util/base64.h
+%%DEVEL%%include/mongo/util/concurrency/list.h
+%%DEVEL%%include/mongo/util/concurrency/msg.h
+%%DEVEL%%include/mongo/util/concurrency/mutex.h
+%%DEVEL%%include/mongo/util/concurrency/mvar.h
+%%DEVEL%%include/mongo/util/concurrency/rwlock.h
+%%DEVEL%%include/mongo/util/concurrency/spin_lock.h
+%%DEVEL%%include/mongo/util/concurrency/task.h
+%%DEVEL%%include/mongo/util/concurrency/thread_pool.h
+%%DEVEL%%include/mongo/util/concurrency/value.h
+%%DEVEL%%include/mongo/util/debug_util.h
+%%DEVEL%%include/mongo/util/embedded_builder.h
+%%DEVEL%%include/mongo/util/file.h
+%%DEVEL%%include/mongo/util/file_allocator.h
+%%DEVEL%%include/mongo/util/goodies.h
+%%DEVEL%%include/mongo/util/hashtab.h
+%%DEVEL%%include/mongo/util/hex.h
+%%DEVEL%%include/mongo/util/histogram.h
+%%DEVEL%%include/mongo/util/hostandport.h
+%%DEVEL%%include/mongo/util/httpclient.h
+%%DEVEL%%include/mongo/util/log.h
+%%DEVEL%%include/mongo/util/lruishmap.h
+%%DEVEL%%include/mongo/util/md5.h
+%%DEVEL%%include/mongo/util/md5.hpp
+%%DEVEL%%include/mongo/util/message.h
+%%DEVEL%%include/mongo/util/message_server.h
+%%DEVEL%%include/mongo/util/miniwebserver.h
+%%DEVEL%%include/mongo/util/mmap.h
+%%DEVEL%%include/mongo/util/mongoutils/checksum.h
+%%DEVEL%%include/mongo/util/mongoutils/html.h
+%%DEVEL%%include/mongo/util/mongoutils/str.h
+%%DEVEL%%include/mongo/util/ntservice.h
+%%DEVEL%%include/mongo/util/optime.h
+%%DEVEL%%include/mongo/util/password.h
+%%DEVEL%%include/mongo/util/processinfo.h
+%%DEVEL%%include/mongo/util/queue.h
+%%DEVEL%%include/mongo/util/ramlog.h
+%%DEVEL%%include/mongo/util/ramstore.h
+%%DEVEL%%include/mongo/util/sock.h
+%%DEVEL%%include/mongo/util/stringutils.h
+%%DEVEL%%include/mongo/util/text.h
+%%DEVEL%%include/mongo/util/unittest.h
+%%DEVEL%%include/mongo/util/version.h
+%%DEVEL%%include/mongo/util/winutil.h
+%%DEVEL%%@dirrm include/mongo/bson/util
+%%DEVEL%%@dirrm include/mongo/bson
+%%DEVEL%%@dirrm include/mongo/client
+%%DEVEL%%@dirrm include/mongo/db/repl
+%%DEVEL%%@dirrm include/mongo/db/stats
+%%DEVEL%%@dirrm include/mongo/db
+%%DEVEL%%@dirrm include/mongo/s
+%%DEVEL%%@dirrm include/mongo/scripting
+%%DEVEL%%@dirrm include/mongo/util/concurrency
+%%DEVEL%%@dirrm include/mongo/util/mongoutils
+%%DEVEL%%@dirrm include/mongo/util
+%%DEVEL%%@dirrm include/mongo