summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2015-03-17 13:42:55 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2015-03-17 13:42:55 +0000
commitba7c794f4acf24ba46feca6268fc418a4c720225 (patch)
treead015e9d3522359d599e611abb320fac0d9fde1d /app-admin/mongo-tools
parentapp-admin/mms-agent wrt #540460 (diff)
downloadgentoo-2-ba7c794f4acf24ba46feca6268fc418a4c720225.tar.gz
gentoo-2-ba7c794f4acf24ba46feca6268fc418a4c720225.tar.bz2
gentoo-2-ba7c794f4acf24ba46feca6268fc418a4c720225.zip
app-admin/mongo-tools wrt #540460
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
Diffstat (limited to 'app-admin/mongo-tools')
-rw-r--r--app-admin/mongo-tools/ChangeLog10
-rw-r--r--app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch10
-rw-r--r--app-admin/mongo-tools/metadata.xml17
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.0.1.ebuild53
4 files changed, 90 insertions, 0 deletions
diff --git a/app-admin/mongo-tools/ChangeLog b/app-admin/mongo-tools/ChangeLog
new file mode 100644
index 000000000000..0f52404bb87e
--- /dev/null
+++ b/app-admin/mongo-tools/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-admin/mongo-tools
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mongo-tools/ChangeLog,v 1.1 2015/03/17 13:42:55 ultrabug Exp $
+
+*mongo-tools-3.0.1 (17 Mar 2015)
+
+ 17 Mar 2015; Ultrabug <ultrabug@gentoo.org> +mongo-tools-3.0.1.ebuild,
+ +files/mongo-tools-3.0.0-build.patch, +metadata.xml:
+ app-admin/mongo-tools ebuild
+
diff --git a/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch b/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch
new file mode 100644
index 000000000000..f7fd93b04a51
--- /dev/null
+++ b/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch
@@ -0,0 +1,10 @@
+--- build.sh.orig 2015-02-17 16:55:47.000000000 +0000
++++ build.sh 2015-02-18 09:22:30.671123198 +0000
+@@ -19,5 +19,5 @@
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
+ echo "Building ${i}..."
+ # Build the tool, using -ldflags to link in the current gitspec
+- go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec `git rev-parse HEAD`" -tags "$tags" "$i/main/$i.go"
++ go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"
+ done
+
diff --git a/app-admin/mongo-tools/metadata.xml b/app-admin/mongo-tools/metadata.xml
new file mode 100644
index 000000000000..fa3aac90daa6
--- /dev/null
+++ b/app-admin/mongo-tools/metadata.xml
@@ -0,0 +1,17 @@
+<?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>Alexys Jacob</name>
+ </maintainer>
+ <maintainer>
+ <email>bugs@bergstroem.nu</email>
+ <name>Johan Bergström</name>
+ <description>Proxy Maintainer. CC on bugs</description>
+ </maintainer>
+ <longdescription lang="en">
+ MongoDB operation tools such as mongodump, mongoexport, mongorestore, bsondump...
+ </longdescription>
+</pkgmetadata>
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.1.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.1.ebuild
new file mode 100644
index 000000000000..23d32e3a43c2
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.0.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/mongo-tools/mongo-tools-3.0.1.ebuild,v 1.1 2015/03/17 13:42:55 ultrabug Exp $
+
+EAPI=5
+
+inherit eutils
+
+MY_PV=${PV/_rc/-rc}
+MY_P=${PN}-r${MY_PV}
+
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
+HOMEPAGE="http://www.mongodb.org"
+SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sasl ssl"
+
+# Maintainer note:
+# openssl DEPEND constraint, see:
+# https://github.com/mongodb/mongo-tools/issues/11
+
+RDEPEND="!<dev-db/mongodb-3.0.0"
+DEPEND="${RDEPEND}
+ dev-lang/go
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? ( dev-libs/openssl )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-3.0.0-build.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf}
+}
+
+src_install() {
+ dobin bin/*
+}