summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorJohan Bergström (jbergstroem) <bugs@bergstroem.nu>2009-12-15 11:35:30 +0000
committerJohan Bergström (jbergstroem) <bugs@bergstroem.nu>2009-12-15 11:35:30 +0000
commit62eac7802b967246626d4bfd46e7cd7fb6698999 (patch)
tree236bb3233eff2042d661d1739f53dab0ab3e5d38 /dev-db
parentx11-drivers/xf86-video-nouveau: new snapshot (diff)
downloadsunrise-62eac7802b967246626d4bfd46e7cd7fb6698999.tar.gz
sunrise-62eac7802b967246626d4bfd46e7cd7fb6698999.tar.bz2
sunrise-62eac7802b967246626d4bfd46e7cd7fb6698999.zip
dev-db/mongodb: New version of MongoDB
svn path=/sunrise/; revision=9726
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mongodb/ChangeLog5
-rw-r--r--dev-db/mongodb/Manifest6
-rw-r--r--dev-db/mongodb/files/modify-post-strip-1.2.patch11
-rw-r--r--dev-db/mongodb/files/modify-testing-1.2.patch44
-rw-r--r--dev-db/mongodb/mongodb-1.2.0.ebuild74
5 files changed, 139 insertions, 1 deletions
diff --git a/dev-db/mongodb/ChangeLog b/dev-db/mongodb/ChangeLog
index 5c1cac0ab..ce117c82c 100644
--- a/dev-db/mongodb/ChangeLog
+++ b/dev-db/mongodb/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 15 Dec 2009; Johan Bergström (jbergstroem) <bugs@bergstroem.nu>
+ +mongodb-1.2.0.ebuild, +files/modify-post-strip-1.2.patch,
+ +files/modify-testing-1.2.patch:
+ New version of MongoDB
+
23 Oct 2009; Johan Bergström (jbergstroem) <bugs@bergstroem.nu>
-mongodb-1.0.0.ebuild, +mongodb-1.0.1.ebuild:
Version bump
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
index cc88e935f..6c1bbe8e0 100644
--- a/dev-db/mongodb/Manifest
+++ b/dev-db/mongodb/Manifest
@@ -1,8 +1,12 @@
+AUX modify-post-strip-1.2.patch 456 RMD160 dae0e77c3e6e0bb867b972586a907b438b2f9de8 SHA1 5021957e1165b897e3ec74d1d8b2d4d81f66809e SHA256 85f6c2eacdacc316c7ebb5ce373da7593daf32b097435c1deb2516a600f69ca3
AUX modify-post-strip.patch 456 RMD160 262692df49f375ff6eab566a34e646b4f9eb0306 SHA1 9800d4b197efd8bf36de05ca06e58c847b979243 SHA256 1ee26bf6f9091dd99f573e4bd12d9341dcbdcebe74edb0ae25caafba6deb1572
+AUX modify-testing-1.2.patch 1480 RMD160 3a9f0814141d55fccf41d45d9d376fefad273322 SHA1 18fb11b60afdbc489788ff9cb315700067a99807 SHA256 40646380a5ef57a3d92a7db9b606932f681432beb3054d885e7c5778f533470d
AUX modify-testing.patch 1276 RMD160 a4cfdad3b9c6102d28f487ad009aabef581eabeb SHA1 bebd414e2d8af94b44dbcb81d92a7b1274cd5c86 SHA256 1e0ae2e54f22a28f6462ac37284dd0b8b4776e82373c4d25959c012998a445ce
AUX mongodb.confd 285 RMD160 cc5e3ab24a9880a19392a7416d23d1ae7a328e11 SHA1 7c4b720ea5b0afd2fa88a6adc2d8a2e356691413 SHA256 8dfedbb433e11f8ed6ec8159ed5c02f94c22f86006cda21f0b2bb59ebe50b2ad
AUX mongodb.initd 1024 RMD160 cd38a158302270c75d2e12360f6d7fab259aca66 SHA1 f841675161b318ee7647e028df38b03ae6e4c647 SHA256 a9136dbcbd9626d80988c2f46c73af6b2f23bc4af52c9f68d33d2feaa1649dcb
DIST mongodb-1.0.1.tar.gz 3922059 RMD160 81344f9c16351a9a00d87d015b5cb6f80d07dddd SHA1 5d008486ef6188fcbac650e5b481c15806e38eb7 SHA256 509f34c847e6d63f898e0337717fa78f2389e82ed6a6bb5f47df70bd2cfb1af2
+DIST mongodb-1.2.0.tar.gz 3875764 RMD160 6d756dddc3f91817df107dde3f70241938451f4a SHA1 812d8a14f590ff0b0af0170de9ccfe13283630b4 SHA256 6384307eb86130f8902aeecc495720e2462a7a3abac1c870e8ff09efca1ce0a0
EBUILD mongodb-1.0.1.ebuild 1235 RMD160 8ae17442e52a4a1a3870011d278ffaa5f9d517de SHA1 3a74d8591250f1c09cf4451c21dfe5844a7ac131 SHA256 1d92a9d3af07a9db3fb4a919c6e217474f37e76330e35d0690fa16545efdfbcb
-MISC ChangeLog 1808 RMD160 e97a1568a3264b9fd614a4f53895a06125d2b4e5 SHA1 52ad7e15c6e1fe12647b839c68bf80b9d1fa8026 SHA256 adfb7ef60ac9aae821d759fd6edbc23180f8bf82980f9e9fbf27b6148f93dd1d
+EBUILD mongodb-1.2.0.ebuild 1733 RMD160 f7c0a5fb98da13823dee1f4d091c19a08e494f70 SHA1 8330914debe0230be01f7d95d9d95f37f6f6fda7 SHA256 a81b2f1ec237c4b0c763ff83b7c0fea039334c3fd8d35bac960886f18a58a437
+MISC ChangeLog 1997 RMD160 b58a1faaba6dd9914919ea36b9582ad505f95c1b SHA1 33dee54719a1583ee2b9e4a5cef7772fe9fdb291 SHA256 c91ded5642e8e6c410cb5790ff6d2cb2694c67749404722c0767b0faca375880
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/dev-db/mongodb/files/modify-post-strip-1.2.patch b/dev-db/mongodb/files/modify-post-strip-1.2.patch
new file mode 100644
index 000000000..b10de0e14
--- /dev/null
+++ b/dev-db/mongodb/files/modify-post-strip-1.2.patch
@@ -0,0 +1,11 @@
+--- 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 )
diff --git a/dev-db/mongodb/files/modify-testing-1.2.patch b/dev-db/mongodb/files/modify-testing-1.2.patch
new file mode 100644
index 000000000..31bda47c0
--- /dev/null
+++ b/dev-db/mongodb/files/modify-testing-1.2.patch
@@ -0,0 +1,44 @@
+--- 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");
+ }
+
diff --git a/dev-db/mongodb/mongodb-1.2.0.ebuild b/dev-db/mongodb/mongodb-1.2.0.ebuild
new file mode 100644
index 000000000..8277c7a67
--- /dev/null
+++ b/dev-db/mongodb/mongodb-1.2.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+inherit eutils versionator
+
+MY_PATCHVER=$(get_version_component_range 1-2)
+
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
+HOMEPAGE="http://www.mongodb.org"
+SRC_URI="http://github.com/mongodb/mongo/tarball/r${PV} -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/spidermonkey
+ dev-libs/boost
+ dev-libs/libpcre"
+
+DEPEND="${RDEPEND}
+ >=dev-util/scons-1.2.0-r1"
+
+S=${WORKDIR}/${PN}-mongo-2add01f
+
+pkg_setup() {
+ enewgroup mongodb
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/modify-*-${MY_PATCHVER}.patch
+}
+
+src_compile() {
+ scons ${MAKEOPTS} all || die "Compile failed"
+}
+
+src_install() {
+ scons ${MAKEOPTS} install --prefix="${D}"/usr || die "Install failed"
+
+ for x in /var/{lib,log,run}/${PN}; do
+ dodir "${x}" || die "Install failed"
+ fowners mongodb:mongodb "${x}"
+ done
+
+ doman debian/mongo*.1 || die "Install failed"
+
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} || die "Install failed"
+ newconfd "${FILESDIR}/${PN}.confd" ${PN} || die "Install failed"
+}
+
+src_test() {
+ scons ${MAKEOPTS} smoke test || die "Tests failed"
+}
+
+pkg_preinst() {
+ has_version '<dev-db/mongodb-1.2'
+ PREVIOUS_LESS_THAN_1_2=$?
+}
+
+pkg_postinst() {
+ if [[ ${PREVIOUS_LESS_THAN_1_2} -eq 0 ]]; then
+ ewarn "You need to upgrade your database before proceeding! Steps:"
+ ewarn " /etc/init.d/mongodb stop"
+ ewarn " mongod --upgrade"
+ ewarn " /etc/init.d/mongodb start"
+ ewarn "For more info about upgrading, please visit:"
+ ewarn "http://www.mongodb.org/display/DOCS/1.2.0+Release+Notes"
+ fi;
+}