parent
e08b81a3aa
commit
b556182a37
@ -1,10 +0,0 @@
|
||||
You can define parameters through shell variables OR use config files
|
||||
Examples of config files installed in /usr/share/doc/${PF}/examples
|
||||
You have to create ansible hosts file!
|
||||
More info on http://docs.ansible.com/intro_getting_started.html
|
||||
|
||||
Some optional dependencies, you might want to install:
|
||||
dev-python/keyczar - needed to support accelerated mode
|
||||
dev-python/paramiko - alternative SSH backend"
|
||||
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/bogosort-0.4.2.ebuild,v 1.16 2013/05/10 05:47:53 patrick Exp $
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A file sorting program which uses the bogosort algorithm"
|
||||
HOMEPAGE="http://www.lysator.liu.se/~qha/bogosort/"
|
||||
SRC_URI="ftp://ulrik.haugen.se/pub/unix/bogosort/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ~mips ppc sparc x86 ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch \
|
||||
"${FILESDIR}"/xmalloc.patch \
|
||||
"${FILESDIR}"/${P}-glibc-2.10.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
econf
|
||||
emake || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die
|
||||
dodoc README NEWS ChangeLog AUTHORS || die
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
DIST 20130821-10gen-mms-agent.zip 31918 SHA256 b48f35fe2ad058dc4ebcab01dad1229c0597e78a9011b57cd1030a05cdd16e7c SHA512 9467d229829076733a023d81e377479e1e4c71c4d2c1d163928abf7215bc87809a304768f83b531b6f585d19b18585f9d0d35fd74762cf180586be11536eb1a8 WHIRLPOOL d632c1761d1f47f2139a046d58af09641a0c8d9f3168d7ebc99dac5c6a3b5b0846cba8eac581b67d35c5e7580c6910759503b85e7ca74e5930c0e0dac3d77c97
|
||||
DIST 20140409-mms-monitoring-agent.zip 40122 SHA256 9c4f89cfba10b4604512ab21eb082248104aeabe7e813b852db2b86f47d7ecb2 SHA512 5290a813c407251b5e4def813ce6fe7e09d6c3a1907fd409e326b15b07aed39f7db3a28710ecdaffe2771136c9433253c5d1857c823844a4b75dd38f1d15eefd WHIRLPOOL ce80870e2618f3d9ed80af41b1069ed5bd97af475089564eed1bc111e820c048bc5cbaa03f859349e772fe232f876127e0627c75c135a9b2e196ab13258ed9f1
|
||||
DIST mongodb-src-r2.2.7.tar.gz 10191656 SHA256 4ff250458940c3f408f8992b41b41c114cc6cc166bb7e88bc7d7b62b1621aeb6 SHA512 b4297ea86499e611aca1455ba48f984b9df7ec7dd03cfe586ab14fd0c68c6a917272d0a26b7de89bb9e3a4d7fa9f07c0fb6a6627544762b66f29fa25ccbf0ee4 WHIRLPOOL b043fe4e284d0ef19cc282cb413a1b7305e62021da3ca087bd8275c0b05d24d8cb97b56b374fdb3cf181e75602389b4562ebb1952a091746265840629cd1c7b8
|
||||
DIST mongodb-src-r2.4.10.tar.gz 14166404 SHA256 8ac8d0537e5316e842e3713870b76ea3cc18ec1234307e850046449f48a87402 SHA512 970364dda2dba18bf979a0fc8291d9656b3cc3ba0aec1ca26d81f14f833e355c023d19b3cfaa81704013bf2c0e732d72de08b0f8236dafe85a3ac4d51b87edc6 WHIRLPOOL d2503300499c213c76ad1185fceec5a495c79ec6774af11ebfc372f1c56515b5727a0538c7d26f310b100582c675ff3b70334030d784a87af3ff372bff16507c
|
||||
DIST mongodb-src-r2.4.6.tar.gz 14141660 SHA256 b5f397abc92d36d84a85753d15fb5d7dab6545ce9dfd9fb7685c630e6b050acb SHA512 73921d439f1bc2b6c1f358ab96f05f5f082db7b2c09f8964f2e3cc2d3cfd059e0c923d228a77fbfb8c8613eee1fbf16a35d5347b6316219aed3b0357dec97eae WHIRLPOOL 4c5c9b8b7530a58f5fab62c414054939014a38cb49429ff619059b7305b29eb41c8ec3977a3b4490391afe963384d4560097a7ef536679c42c9d0ecc1677c958
|
||||
DIST mongodb-src-r2.6.3.tar.gz 14472012 SHA256 77bd9ec1b3aba25494633b40c21e9e8623d7b7d2b3be5ab0b2315b627a238301 SHA512 c73ff95c949380c9b8a8e2c851d53731b08dcd6b93088c0d67fce1580a898d6742bebab3a142d5316353f00fbe12ea32c4651f04b66b85b205589414b7f6811a WHIRLPOOL f96fa94069fcde8bb2f1c4eb70397330f75ab78cf7b7e4f8e5238ea25cb6634a1ec0d7a0283df034f12f3e9ae69edb78ee24922223a9bd22c3cf9435391e4c5a
|
||||
|
@ -1,34 +0,0 @@
|
||||
diff -urN mongodb-src-r2.2.0.orig/src/SConscript.client mongodb-src-r2.2.0/src/SConscript.client
|
||||
--- mongodb-src-r2.2.0.orig/src/SConscript.client 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ mongodb-src-r2.2.0/src/SConscript.client 2013-03-08 10:32:46.776436389 +0200
|
||||
@@ -3,7 +3,7 @@
|
||||
# This SConscript describes build and install rules for the Mongo C++ driver and associated exmaple
|
||||
# programs.
|
||||
|
||||
-Import('env clientEnv')
|
||||
+Import('env clientEnv has_option')
|
||||
|
||||
clientSource = [
|
||||
'mongo/bson/oid.cpp',
|
||||
@@ -96,9 +96,11 @@
|
||||
clientHeaders.extend(Glob('mongo/%s/*.hpp' % path))
|
||||
|
||||
mongoclient_lib = env.Library('mongoclient', clientSource),
|
||||
+if has_option( "sharedclient" ):
|
||||
+ mongoclient_slib = env.SharedLibrary('mongoclient', clientSource)
|
||||
mongoclient_install = env.Install('#/', [
|
||||
mongoclient_lib,
|
||||
- #env.SharedLibrary('mongoclient', clientSource),
|
||||
+ mongoclient_slib,
|
||||
])
|
||||
env.Alias('mongoclient', mongoclient_install)
|
||||
|
||||
@@ -135,6 +137,8 @@
|
||||
prefix = GetOption("prefix")
|
||||
|
||||
env.Install(prefix + "/lib", '${LIBPREFIX}mongoclient${LIBSUFFIX}')
|
||||
+if has_option( "sharedclient" ):
|
||||
+ env.Install(prefix + "/lib", '${SHLIBPREFIX}mongoclient${SHLIBSUFFIX}')
|
||||
|
||||
for x in clientHeaderDirectories:
|
||||
env.Install(prefix + "/include/mongo/" + x,
|
@ -1,15 +0,0 @@
|
||||
diff -urN mongodb-src-r2.2.0.orig/src/SConscript.client mongodb-src-r2.2.0/src/SConscript.client
|
||||
--- mongodb-src-r2.2.0.orig/src/SConscript.client 2013-03-08 10:32:46.000000000 +0200
|
||||
+++ mongodb-src-r2.2.0/src/SConscript.client 2013-03-08 10:34:04.208437762 +0200
|
||||
@@ -136,9 +136,9 @@
|
||||
# install
|
||||
prefix = GetOption("prefix")
|
||||
|
||||
-env.Install(prefix + "/lib", '${LIBPREFIX}mongoclient${LIBSUFFIX}')
|
||||
+env.InstallAs(prefix + "/lib", '${LIBPREFIX}mongoclient${LIBSUFFIX}')
|
||||
if has_option( "sharedclient" ):
|
||||
- env.Install(prefix + "/lib", '${SHLIBPREFIX}mongoclient${SHLIBSUFFIX}')
|
||||
+ env.InstallAs(prefix + "/lib", '${SHLIBPREFIX}mongoclient${SHLIBSUFFIX}')
|
||||
|
||||
for x in clientHeaderDirectories:
|
||||
env.Install(prefix + "/include/mongo/" + x,
|
@ -1,46 +0,0 @@
|
||||
--- a/SConstruct 2012-08-29 16:21:35.107094792 +0200
|
||||
+++ b/SConstruct 2012-08-29 19:09:16.964893217 +0200
|
||||
@@ -677,7 +677,6 @@
|
||||
# -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
|
||||
env.Append( CCFLAGS=["-fPIC",
|
||||
"-fno-strict-aliasing",
|
||||
- "-ggdb",
|
||||
"-pthread",
|
||||
"-Wall",
|
||||
"-Wsign-compare",
|
||||
@@ -685,14 +684,15 @@
|
||||
"-Winvalid-pch"] )
|
||||
# env.Append( " -Wconversion" ) TODO: this doesn't really work yet
|
||||
if linux:
|
||||
- env.Append( CCFLAGS=["-Werror", "-pipe"] )
|
||||
+ # env.Append( CPPDEFINES=["XP_UNIX=1"] )
|
||||
if not has_option('clang'):
|
||||
env.Append( CCFLAGS=["-fno-builtin-memcmp"] ) # glibc's memcmp is faster than gcc's
|
||||
|
||||
env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
|
||||
- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
|
||||
+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'])
|
||||
+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
|
||||
env.Append( LINKFLAGS=["-fPIC", "-pthread", "-rdynamic"] )
|
||||
- env.Append( LIBS=[] )
|
||||
+ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy'] )
|
||||
|
||||
#make scons colorgcc friendly
|
||||
for key in ('HOME', 'TERM'):
|
||||
@@ -703,6 +703,7 @@
|
||||
|
||||
if linux and has_option( "sharedclient" ):
|
||||
env.Append( LINKFLAGS=" -Wl,--as-needed -Wl,-zdefs " )
|
||||
+ env.Append( SHLINKFLAGS=" -Wl,-soname=libmongoclient.so " )
|
||||
|
||||
if linux and has_option( "gcov" ):
|
||||
env.Append( CXXFLAGS=" -fprofile-arcs -ftest-coverage " )
|
||||
@@ -712,7 +713,7 @@
|
||||
env.Append( CCFLAGS=["-O0", "-fstack-protector"] )
|
||||
env['ENV']['GLIBCXX_FORCE_NEW'] = 1; # play nice with valgrind
|
||||
else:
|
||||
- env.Append( CCFLAGS=["-O3"] )
|
||||
+ env.Append( CXXFLAGS=["-O3"] )
|
||||
|
||||
if debugLogging:
|
||||
env.Append( CPPDEFINES=["_DEBUG"] );
|
@ -1,215 +0,0 @@
|
||||
--- a/src/mongo/db/db.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/db/db.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -348,7 +348,7 @@
|
||||
boost::filesystem::path path( dbpath );
|
||||
for ( boost::filesystem::directory_iterator i( path );
|
||||
i != boost::filesystem::directory_iterator(); ++i ) {
|
||||
- string fileName = boost::filesystem::path(*i).leaf();
|
||||
+ string fileName = boost::filesystem::path(*i).leaf().string();
|
||||
if ( boost::filesystem::is_directory( *i ) &&
|
||||
fileName.length() && fileName[ 0 ] == '$' )
|
||||
boost::filesystem::remove_all( *i );
|
||||
@@ -748,11 +748,11 @@
|
||||
dbExecCommand = argv[0];
|
||||
|
||||
srand(curTimeMicros());
|
||||
-#if( BOOST_VERSION >= 104500 )
|
||||
- boost::filesystem::path::default_name_check( boost::filesystem2::no_check );
|
||||
-#else
|
||||
- boost::filesystem::path::default_name_check( boost::filesystem::no_check );
|
||||
-#endif
|
||||
+// #if( BOOST_VERSION >= 104500 )
|
||||
+// boost::filesystem::path::default_name_check( boost::filesystem2::no_check );
|
||||
+// #else
|
||||
+// boost::filesystem::path::default_name_check( boost::filesystem::no_check );
|
||||
+// #endif
|
||||
|
||||
{
|
||||
unsigned x = 0x12345678;
|
||||
@@ -1083,7 +1083,7 @@
|
||||
if (params.count("shutdown")){
|
||||
bool failed = false;
|
||||
|
||||
- string name = ( boost::filesystem::path( dbpath ) / "mongod.lock" ).native_file_string();
|
||||
+ string name = ( boost::filesystem::path( dbpath ) / "mongod.lock" ).string();
|
||||
if ( !boost::filesystem::exists( name ) || boost::filesystem::file_size( name ) == 0 )
|
||||
failed = true;
|
||||
|
||||
--- a/src/mongo/db/dur.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/db/dur.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -770,7 +770,7 @@
|
||||
|
||||
bool samePartition = true;
|
||||
try {
|
||||
- const string dbpathDir = boost::filesystem::path(dbpath).native_directory_string();
|
||||
+ const string dbpathDir = boost::filesystem::path(dbpath).string();
|
||||
samePartition = onSamePartition(getJournalDir().string(), dbpathDir);
|
||||
}
|
||||
catch(...) {
|
||||
--- a/src/mongo/db/dur_journal.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/db/dur_journal.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -176,7 +176,7 @@
|
||||
for ( boost::filesystem::directory_iterator i( getJournalDir() );
|
||||
i != boost::filesystem::directory_iterator();
|
||||
++i ) {
|
||||
- string fileName = boost::filesystem::path(*i).leaf();
|
||||
+ string fileName = boost::filesystem::path(*i).leaf().string();
|
||||
if( anyFiles || str::startsWith(fileName, "j._") )
|
||||
return true;
|
||||
}
|
||||
@@ -194,7 +194,7 @@
|
||||
for ( boost::filesystem::directory_iterator i( getJournalDir() );
|
||||
i != boost::filesystem::directory_iterator();
|
||||
++i ) {
|
||||
- string fileName = boost::filesystem::path(*i).leaf();
|
||||
+ string fileName = boost::filesystem::path(*i).leaf().string();
|
||||
if( str::startsWith(fileName, "j._") ) {
|
||||
try {
|
||||
removeOldJournalFile(*i);
|
||||
--- a/src/mongo/db/dur_recover.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/db/dur_recover.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -72,7 +72,7 @@
|
||||
i != boost::filesystem::directory_iterator();
|
||||
++i ) {
|
||||
boost::filesystem::path filepath = *i;
|
||||
- string fileName = boost::filesystem::path(*i).leaf();
|
||||
+ string fileName = boost::filesystem::path(*i).leaf().string();
|
||||
if( str::startsWith(fileName, "j._") ) {
|
||||
unsigned u = str::toUnsigned( str::after(fileName, '_') );
|
||||
if( m.count(u) ) {
|
||||
@@ -85,7 +85,7 @@
|
||||
if( i != m.begin() && m.count(i->first - 1) == 0 ) {
|
||||
uasserted(13532,
|
||||
str::stream() << "unexpected file in journal directory " << dir.string()
|
||||
- << " : " << boost::filesystem::path(i->second).leaf() << " : can't find its preceeding file");
|
||||
+ << " : " << boost::filesystem::path(i->second).leaf().string() << " : can't find its preceeding file");
|
||||
}
|
||||
files.push_back(i->second);
|
||||
}
|
||||
--- a/src/mongo/db/instance.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/work/mongodb-src-r2.2.0/src/mongo/db/instance.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -833,13 +833,13 @@
|
||||
i != boost::filesystem::directory_iterator(); ++i ) {
|
||||
if ( directoryperdb ) {
|
||||
boost::filesystem::path p = *i;
|
||||
- string dbName = p.leaf();
|
||||
+ string dbName = p.leaf().string();
|
||||
p /= ( dbName + ".ns" );
|
||||
if ( exists( p ) )
|
||||
names.push_back( dbName );
|
||||
}
|
||||
else {
|
||||
- string fileName = boost::filesystem::path(*i).leaf();
|
||||
+ string fileName = boost::filesystem::path(*i).leaf().string();
|
||||
if ( fileName.length() > 3 && fileName.substr( fileName.length() - 3, 3 ) == ".ns" )
|
||||
names.push_back( fileName.substr( 0, fileName.length() - 3 ) );
|
||||
}
|
||||
@@ -1102,7 +1102,7 @@
|
||||
}
|
||||
|
||||
void acquirePathLock(bool doingRepair) {
|
||||
- string name = ( boost::filesystem::path( dbpath ) / "mongod.lock" ).native_file_string();
|
||||
+ string name = ( boost::filesystem::path( dbpath ) / "mongod.lock" ).string();
|
||||
|
||||
bool oldFile = false;
|
||||
|
||||
--- a/src/mongo/db/pdfile.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/db/pdfile.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -1675,7 +1675,7 @@
|
||||
virtual bool apply( const Path &p ) {
|
||||
if ( !boost::filesystem::exists( p ) )
|
||||
return false;
|
||||
- boostRenameWrapper( p, newPath_ / ( p.leaf() + ".bak" ) );
|
||||
+ boostRenameWrapper( p, newPath_ / ( p.leaf().string() + ".bak" ) );
|
||||
return true;
|
||||
}
|
||||
virtual const char * op() const {
|
||||
@@ -1783,7 +1783,7 @@
|
||||
uniqueReservedPath( ( preserveClonedFilesOnFailure || backupOriginalFiles ) ?
|
||||
"backup" : "_tmp" );
|
||||
MONGO_ASSERT_ON_EXCEPTION( boost::filesystem::create_directory( reservedPath ) );
|
||||
- string reservedPathString = reservedPath.native_directory_string();
|
||||
+ string reservedPathString = reservedPath.string();
|
||||
|
||||
bool res;
|
||||
{
|
||||
--- a/src/mongo/dbtests/framework.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/dbtests/framework.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -199,7 +199,7 @@
|
||||
boost::filesystem::create_directory(p);
|
||||
}
|
||||
|
||||
- string dbpathString = p.native_directory_string();
|
||||
+ string dbpathString = p.string();
|
||||
dbpath = dbpathString.c_str();
|
||||
|
||||
cmdLine.prealloc = false;
|
||||
--- a/src/mongo/pch.h 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/pch.h 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -44,7 +44,7 @@
|
||||
#include "string.h"
|
||||
#include "limits.h"
|
||||
|
||||
-#define BOOST_FILESYSTEM_VERSION 2
|
||||
+#define BOOST_FILESYSTEM_VERSION 3
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/smart_ptr.hpp>
|
||||
#include <boost/function.hpp>
|
||||
--- a/src/mongo/shell/shell_utils_launcher.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/shell/shell_utils_launcher.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -184,7 +184,7 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
- _argv.push_back( programPath.native_file_string() );
|
||||
+ _argv.push_back( programPath.string() );
|
||||
|
||||
_port = -1;
|
||||
|
||||
--- a/src/mongo/tools/restore.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/tools/restore.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -174,7 +174,7 @@
|
||||
log(2) << "drillDown: " << root.string() << endl;
|
||||
|
||||
// skip hidden files and directories
|
||||
- if (root.leaf()[0] == '.' && root.leaf() != ".")
|
||||
+ if (root.leaf().string()[0] == '.' && root.leaf().string() != ".")
|
||||
return;
|
||||
|
||||
if ( is_directory( root ) ) {
|
||||
@@ -255,7 +255,7 @@
|
||||
|
||||
verify( ns.size() );
|
||||
|
||||
- string oldCollName = root.leaf(); // Name of the collection that was dumped from
|
||||
+ string oldCollName = root.leaf().string(); // Name of the collection that was dumped from
|
||||
oldCollName = oldCollName.substr( 0 , oldCollName.find_last_of( "." ) );
|
||||
if (use_coll) {
|
||||
ns += "." + _coll;
|
||||
@@ -287,7 +287,7 @@
|
||||
if (!boost::filesystem::exists(metadataFile.string())) {
|
||||
// This is fine because dumps from before 2.1 won't have a metadata file, just print a warning.
|
||||
// System collections shouldn't have metadata so don't warn if that file is missing.
|
||||
- if (!startsWith(metadataFile.leaf(), "system.")) {
|
||||
+ if (!startsWith(metadataFile.leaf().string(), "system.")) {
|
||||
log() << metadataFile.string() << " not found. Skipping." << endl;
|
||||
}
|
||||
} else {
|
||||
--- a/src/mongo/tools/tool.cpp 2012-08-28 08:28:11.000000000 +0300
|
||||
+++ b/src/mongo/tools/tool.cpp 2012-10-21 18:25:50.000000000 +0300
|
||||
@@ -118,11 +118,11 @@
|
||||
// we want durability to be disabled.
|
||||
cmdLine.dur = false;
|
||||
|
||||
-#if( BOOST_VERSION >= 104500 )
|
||||
- boost::filesystem::path::default_name_check( boost::filesystem2::no_check );
|
||||
-#else
|
||||
- boost::filesystem::path::default_name_check( boost::filesystem::no_check );
|
||||
-#endif
|
||||
+// #if( BOOST_VERSION >= 104500 )
|
||||
+// boost::filesystem::path::default_name_check( boost::filesystem2::no_check );
|
||||
+// #else
|
||||
+// boost::filesystem::path::default_name_check( boost::filesystem::no_check );
|
||||
+// #endif
|
||||
|
||||
_name = argv[0];
|
@ -1,110 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.2.7.ebuild,v 1.1 2014/02/17 09:43:11 ultrabug Exp $
|
||||
|
||||
EAPI=4
|
||||
SCONS_MIN_VERSION="1.2.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
|
||||
inherit eutils flag-o-matic multilib pax-utils scons-utils user versionator check-reqs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="http://www.mongodb.org"
|
||||
SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz
|
||||
mms-agent? ( http://dev.gentoo.org/~ultrabug/20130821-10gen-mms-agent.zip )"
|
||||
|
||||
LICENSE="AGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="mms-agent static-libs"
|
||||
|
||||
PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
|
||||
RDEPEND="
|
||||
>=dev-libs/boost-1.50[threads(+)]
|
||||
dev-libs/libpcre[cxx]
|
||||
dev-util/google-perftools
|
||||
net-libs/libpcap
|
||||
app-arch/snappy"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-libs/readline
|
||||
sys-libs/ncurses"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mongodb
|
||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||
|
||||
scons_opts=" --cc=$(tc-getCC) --cxx=$(tc-getCXX) --sharedclient --usesm"
|
||||
scons_opts+=" --use-system-tcmalloc"
|
||||
scons_opts+=" --use-system-pcre"
|
||||
scons_opts+=" --use-system-snappy"
|
||||
scons_opts+=" --use-system-boost"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-2.2-r1-fix-scons.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.2-r1-fix-boost.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.2-r2-boost-1.50.patch"
|
||||
epatch "${FILESDIR}/${PN}-2.2-fix-sharedclient.patch"
|
||||
|
||||
# FIXME: apply only this fix [1] on x86 boxes as it breaks /usr/lib symlink
|
||||
# on amd64 machines [2].
|
||||
# [1] https://jira.mongodb.org/browse/SERVER-5575
|
||||
# [2] https://bugs.gentoo.org/show_bug.cgi?id=434664
|
||||
if use !prefix && [[ "$(get_libdir)" == "lib" ]]; then
|
||||
epatch "${FILESDIR}/${PN}-2.2-fix-x86client.patch"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons ${scons_opts} all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
use static-libs || rm "${ED}/usr/$(get_libdir)/libmongoclient.a"
|
||||
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
keepdir "${x}"
|
||||
fowners mongodb:mongodb "${x}"
|
||||
done
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
newinitd "${FILESDIR}/${PN/db/s}.initd-r1" ${PN/db/s}
|
||||
newconfd "${FILESDIR}/${PN/db/s}.confd" ${PN/db/s}
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
if use mms-agent; then
|
||||
local MY_PN="mms-agent"
|
||||
local MY_D="/opt/${MY_PN}"
|
||||
insinto ${MY_D}
|
||||
doins "${WORKDIR}/${MY_PN}/"*
|
||||
fowners -R mongodb:mongodb ${MY_D}
|
||||
newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
|
||||
newconfd "${FILESDIR}/${MY_PN}.confd" ${MY_PN}
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
escons ${scons_opts} test
|
||||
"${S}"/test --dbpath=unittest || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${REPLACING_VERSIONS} < 1.8 ]]; then
|
||||
ewarn "You just upgraded from a previous version of mongodb !"
|
||||
ewarn "Make sure you run 'mongod --upgrade' before using this version."
|
||||
fi
|
||||
elog "Journaling is now enabled by default, see /etc/conf.d/${PN}"
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
--- text-0.11.1.6-orig/tests/tests/src/Data/Text/Tests/Properties.hs 2011-10-26 09:22:13.000000000 +1100
|
||||
+++ text-0.11.1.6/tests/tests/src/Data/Text/Tests/Properties.hs 2011-10-30 00:23:25.547365548 +1100
|
||||
@@ -1097,10 +1097,11 @@
|
||||
],
|
||||
|
||||
testGroup "input-output" [
|
||||
- testProperty "t_write_read" t_write_read,
|
||||
- testProperty "tl_write_read" tl_write_read,
|
||||
- testProperty "t_write_read_line" t_write_read_line,
|
||||
- testProperty "tl_write_read_line" tl_write_read_line
|
||||
+ -- These tests fail in locales other than latin1 locales.
|
||||
+ -- testProperty "t_write_read" t_write_read,
|
||||
+ -- testProperty "tl_write_read" tl_write_read,
|
||||
+ -- testProperty "t_write_read_line" t_write_read_line,
|
||||
+ -- testProperty "tl_write_read_line" tl_write_read_line
|
||||
-- These tests are subject to I/O race conditions when run under
|
||||
-- test-framework-quickcheck2.
|
||||
-- testProperty "t_put_get" t_put_get
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/text/text-0.11.1.1.ebuild,v 1.4 2012/09/12 15:01:15 qnikst Exp $
|
||||
|
||||
# ebuild generated by hackport 0.2.13
|
||||
|
||||
EAPI="3"
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An efficient packed Unicode text type."
|
||||
HOMEPAGE="https://bitbucket.org/bos/text"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1.0.0
|
||||
>=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.6"
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/text/text-0.11.1.12.ebuild,v 1.4 2012/09/12 15:01:15 qnikst Exp $
|
||||
|
||||
# ebuild generated by hackport 0.2.13
|
||||
|
||||
EAPI="3"
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hscolour hoogle"
|
||||
inherit eutils haskell-cabal
|
||||
|
||||
DESCRIPTION="An efficient packed Unicode text type."
|
||||
HOMEPAGE="https://github.com/bos/text"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-macos"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1.0.0
|
||||
>=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.10
|
||||
test? ( >=dev-haskell/quickcheck-2.4.0.1
|
||||
<dev-haskell/test-framework-0.5
|
||||
<dev-haskell/test-framework-hunit-0.3
|
||||
<dev-haskell/test-framework-quickcheck2-0.3
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-0.11.1.6-disable-tests-that-fail-in-non-latin1-locales.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cabal_src_configure $(use_enable test tests)
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/text/text-0.11.1.13-r1.ebuild,v 1.4 2012/09/12 15:01:15 qnikst Exp $
|
||||
# ebuild generated by hackport 0.2.13
|
||||
|
||||
EAPI="4"
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hscolour hoogle"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An efficient packed Unicode text type."
|
||||
HOMEPAGE="https://github.com/bos/text"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1.0.0[profile?]
|
||||
>=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8
|
||||
test? ( >=dev-haskell/quickcheck-2.4.0.1[profile?]
|
||||
>=dev-haskell/test-framework-0.4[profile?] <dev-haskell/test-framework-0.7[profile?]
|
||||
<dev-haskell/test-framework-hunit-0.3[profile?]
|
||||
<dev-haskell/test-framework-quickcheck2-0.3[profile?]
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
sed -e 's@test-framework >= 0.4 && < 0.5@test-framework >= 0.4 \&\& < 0.7@' \
|
||||
-i "${S}/${PN}.cabal" || die "Could not loosen depdencies"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# the tests need a utf-8 locale
|
||||
cabal_src_configure $(use test && use_enable test tests) #395351
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/text/text-0.11.2.0.ebuild,v 1.2 2012/09/12 15:01:15 qnikst Exp $
|
||||
|
||||
# ebuild generated by hackport 0.2.13
|
||||
|
||||
EAPI="4"
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hscolour hoogle"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An efficient packed Unicode text type."
|
||||
HOMEPAGE="https://github.com/bos/text"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1.0.0[profile?]
|
||||
>=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8
|
||||
test? ( >=dev-haskell/quickcheck-2.4.0.1[profile?]
|
||||
>=dev-haskell/test-framework-0.4[profile?] <dev-haskell/test-framework-0.7[profile?]
|
||||
<dev-haskell/test-framework-hunit-0.3[profile?]
|
||||
<dev-haskell/test-framework-quickcheck2-0.3[profile?]
|
||||
)"
|
||||
|
||||
src_configure() {
|
||||
# the tests need a utf-8 locale
|
||||
cabal_src_configure $(use test && use_enable test tests) #395351
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/text/text-0.11.2.1.ebuild,v 1.2 2012/09/12 15:01:15 qnikst Exp $
|
||||
|
||||
# ebuild generated by hackport 0.2.13
|
||||
|
||||
EAPI="4"
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hscolour hoogle"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An efficient packed Unicode text type."
|
||||
HOMEPAGE="https://github.com/bos/text"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1.0.0[profile?]
|
||||
>=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8
|
||||
test? ( >=dev-haskell/quickcheck-2.4.0.1[profile?]
|
||||
>=dev-haskell/test-framework-0.4[profile?] <dev-haskell/test-framework-0.7[profile?]
|
||||
<dev-haskell/test-framework-hunit-0.3[profile?]
|
||||
<dev-haskell/test-framework-quickcheck2-0.3[profile?]
|
||||
)"
|
||||
|
||||
src_configure() {
|
||||
# the tests need a utf-8 locale
|
||||
cabal_src_configure $(use test && use_enable test tests) #395351
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/text/text-0.11.2.2.ebuild,v 1.8 2013/04/03 09:28:19 gienah Exp $
|
||||
|
||||
# ebuild generated by hackport 0.2.13
|
||||
|
||||
EAPI="4"
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hscolour hoogle"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An efficient packed Unicode text type."
|
||||
HOMEPAGE="https://github.com/bos/text"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1.0.0[profile?]
|
||||
>=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8
|
||||
test? ( >=dev-haskell/quickcheck-2.4.0.1[profile?]
|
||||
>=dev-haskell/test-framework-0.4[profile?] <dev-haskell/test-framework-0.7[profile?]
|
||||
<dev-haskell/test-framework-hunit-0.3[profile?]
|
||||
<dev-haskell/test-framework-quickcheck2-0.3[profile?]
|
||||
)"
|
||||
|
||||
src_prepare() {
|
||||
cabal_chdeps \
|
||||
'integer-gmp >= 0.2 && < 0.5' 'integer-gmp >= 0.2'
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# the tests need a utf-8 locale
|
||||
cabal_src_configure $(use test && use_enable test tests) #395351
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/text/text-0.11.2.3.ebuild,v 1.9 2013/03/31 10:28:02 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.3.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An efficient packed Unicode text type."
|
||||
HOMEPAGE="https://github.com/bos/text"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
# tests fail to build:
|
||||
# <command line>: cannot satisfy -package-id text-0.11.2.3-inplace:
|
||||
# text-0.11.2.3-inplace is shadowed by package text-0.11.2.3-db61832d0c4660614c4ceff234ed4abb
|
||||
# http://hackage.haskell.org/trac/hackage/ticket/807
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=dev-haskell/deepseq-1.1.0.0:=[profile?]
|
||||
>=dev-lang/ghc-6.10.4:="
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( >=dev-haskell/hunit-1.2
|
||||
>=dev-haskell/quickcheck-2.4
|
||||
dev-haskell/random
|
||||
>=dev-haskell/test-framework-0.4
|
||||
>=dev-haskell/test-framework-hunit-0.2
|
||||
>=dev-haskell/test-framework-quickcheck2-0.2
|
||||
)
|
||||
>=dev-haskell/cabal-1.8"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure --disable-tests # they fail to build
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST libbson-0.98.0.tar.gz 4451923 SHA256 5e792a3c4d296a8b9e4316f1c58e94819223c4512ba4a790cf9e7086ef614995 SHA512 9bae7593198c8ac358978bd6a065d65fb872a15fd43d11839ad5dff1ffbe0362b06cd4bde08032a2c11e8633789328b5d504cd032b7636dc525f6df3e6fd641d WHIRLPOOL ed6350ef59fa596f6414010362999896648c491a906b4ad9f5e11bac549acf975083d3b6ea8d4e0eff0e3ae35a7db784303120d3855b7f2bb21373a318f44516
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libbson/libbson-0.98.0.ebuild,v 1.1 2014/07/23 15:58:23 ultrabug Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="A BSON utility library"
|
||||
HOMEPAGE="https://github.com/mongodb/libbson"
|
||||
SRC_URI="https://github.com/mongodb/${PN}/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug examples static-libs"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( AUTHORS NEWS README )
|
||||
|
||||
src_prepare() {
|
||||
# https://github.com/mongodb/mongo-c-driver/issues/54
|
||||
sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/bson/Makefile.am \
|
||||
tests/Makefile.am || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-hardening \
|
||||
--disable-optimizations \
|
||||
$(use_enable debug) \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
doman doc/*.3
|
||||
|
||||
use static-libs || find "${D}" -name '*.la' -delete
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/${PF}/examples
|
||||
doins examples/*.c
|
||||
fi
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>ultrabug@gentoo.org</email>
|
||||
<name>Ultrabug</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>bugs@bergstroem.nu</email>
|
||||
<name>Johan Bergström</name>
|
||||
<description>Proxy Maintainer. CC on bugs</description>
|
||||
</maintainer>
|
||||
<longdescription lang="en">A BSON utility library.</longdescription>
|
||||
</pkgmetadata>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue