* [gentoo-commits] gentoo-x86 commit in dev-db/mongodb/files: mongodb-1.2-modify-testing.patch mongodb.initd mongodb-1.2-modify-post-strip.patch mongodb.confd
@ 2010-03-07 23:39 Lance Albertson (ramereth)
0 siblings, 0 replies; only message in thread
From: Lance Albertson (ramereth) @ 2010-03-07 23:39 UTC (permalink / raw
To: gentoo-commits
ramereth 10/03/07 23:39:40
Added: mongodb-1.2-modify-testing.patch mongodb.initd
mongodb-1.2-modify-post-strip.patch mongodb.confd
Log:
Import ebuild from the sunrise overlay and apply various fixes. Resolves #273259
(Portage version: 2.1.7.16/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-db/mongodb/files/mongodb-1.2-modify-testing.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb-1.2-modify-testing.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb-1.2-modify-testing.patch?rev=1.1&content-type=text/plain
Index: mongodb-1.2-modify-testing.patch
===================================================================
--- SConstruct.old 2009-10-17 15:26:14.000000000 +0200
+++ SConstruct 2009-10-17 15:29:52.000000000 +0200
@@ -995,15 +995,17 @@
Exit( 1 )
def ensureTestDirs():
- ensureDir( "/tmp/unittest/" )
- ensureDir( "/data/" )
- ensureDir( "/data/db/" )
+ ensureDir( "testdir/" )
+ ensureDir( "testdir/tmp/" )
+ ensureDir( "testdir/tmp/unittest/" )
+ ensureDir( "testdir/data/" )
+ ensureDir( "testdir/data/db/" )
def testSetup( env , target , source ):
ensureTestDirs()
if len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "test":
- ensureDir( "/tmp/unittest/" );
+ ensureDir( "testdir/tmp/unittest/" );
addSmoketest( "smoke", [ add_exe( "test" ) ] , [ test[ 0 ].abspath ] )
addSmoketest( "smokePerf", [ "perftest" ] , [ perftest[ 0 ].abspath ] )
@@ -1072,7 +1074,7 @@
mongodForTestsPort = "40000"
import os
ensureTestDirs()
- dirName = "/data/db/sconsTests/"
+ dirName = "testdir/data/db/sconsTests/"
ensureDir( dirName )
from subprocess import Popen
mongodForTests = Popen( [ mongod[0].abspath, "--port", mongodForTestsPort, "--dbpath", dirName ] )
--- dbtests/dbtests.cpp 2009-10-17 16:40:46.000000000 +0200
+++ dbtests/dbtests.cpp.new 2009-10-17 16:40:54.000000000 +0200
@@ -22,6 +22,6 @@
#include "dbtests.h"
int main( int argc, char** argv ) {
- return Suite::run(argc, argv, "/tmp/unittest");
+ return Suite::run(argc, argv, "testdir/tmp/unittest");
}
1.1 dev-db/mongodb/files/mongodb.initd
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb.initd?rev=1.1&content-type=text/plain
Index: mongodb.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/files/mongodb.initd,v 1.1 2010/03/07 23:39:39 ramereth Exp $
depend() {
need net
}
start() {
ebegin "Starting ${SVCNAME}"
if [ -z "$MONGODB_PID_FILE" ] ; then
ewarn "MONGODB_PID_FILE must be set"
return -1
fi
if [ -z "$MONGODB_USER" ] ; then
ewarn "ERROR: MONGODB_USER must be set"
return -1
fi
args=""
if [ -n "$MONGODB_DATA" ] ; then
args="$args --dbpath $MONGODB_DATA"
fi
if [ -n "$MONGODB_PORT" ] ; then
args="$args --port $MONGODB_PORT"
fi
if [ -n "$MONGODB_IP" ] ; then
args="$args --bind_ip $MONGODB_IP"
fi
if [ -n "$MONGODB_OPTIONS" ] ; then
args="$args $MONGODB_OPTIONS"
fi
start-stop-daemon --background --start --user ${MONGODB_USER} --pidfile \
"${MONGODB_PID_FILE}" --make-pidfile --exec ${MONGODB_EXEC} \
-- ${args} run
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --exec ${EXEC} --pidfile ${MONGODB_PID_FILE}
eend $? "Failed to stop ${SVCNAME}"
}
1.1 dev-db/mongodb/files/mongodb-1.2-modify-post-strip.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb-1.2-modify-post-strip.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb-1.2-modify-post-strip.patch?rev=1.1&content-type=text/plain
Index: mongodb-1.2-modify-post-strip.patch
===================================================================
--- SConstruct 2009-10-17 15:22:09.000000000 +0200
+++ SConstruct.new 2009-10-17 15:23:31.000000000 +0200
@@ -1240,8 +1240,6 @@
fullInstallName = installDir + "/bin/" + name
allBinaries += [ name ]
- if solaris or linux:
- e.AddPostAction( inst, e.Action( 'strip ' + fullInstallName ) )
if linux and len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "s3dist":
e.AddPostAction( inst , checkGlibc )
1.1 dev-db/mongodb/files/mongodb.confd
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/mongodb/files/mongodb.confd?rev=1.1&content-type=text/plain
Index: mongodb.confd
===================================================================
# Mongodb essentials
MONGODB_EXEC="/usr/bin/mongod"
MONGODB_DATA="/var/lib/mongodb"
MONGODB_USER="mongodb"
MONGODB_PID_FILE="/var/run/mongodb/mongodb.pid"
MONGODB_IP="127.0.0.1"
MONGODB_PORT="27017"
# Set extra options here, such as disabling the admin web server
MONGODB_OPTIONS=""
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-07 23:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-07 23:39 [gentoo-commits] gentoo-x86 commit in dev-db/mongodb/files: mongodb-1.2-modify-testing.patch mongodb.initd mongodb-1.2-modify-post-strip.patch mongodb.confd Lance Albertson (ramereth)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox