summaryrefslogtreecommitdiff
path: root/app-admin/mongo-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/mongo-tools
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/mongo-tools')
-rw-r--r--app-admin/mongo-tools/Manifest25
-rw-r--r--app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch10
-rw-r--r--app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch9
-rw-r--r--app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch12
-rw-r--r--app-admin/mongo-tools/files/mongo-tools-3.2.5-build.patch9
-rw-r--r--app-admin/mongo-tools/metadata.xml14
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.0.14.ebuild56
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.0.15.ebuild56
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.2.12.ebuild58
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.2.13.ebuild58
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.2.16.ebuild58
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.4.3.ebuild61
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.4.4.ebuild61
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.4.6.ebuild61
-rw-r--r--app-admin/mongo-tools/mongo-tools-3.4.7.ebuild66
15 files changed, 614 insertions, 0 deletions
diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
new file mode 100644
index 000000000000..f78ec8e3d749
--- /dev/null
+++ b/app-admin/mongo-tools/Manifest
@@ -0,0 +1,25 @@
+AUX mongo-tools-3.0.0-build.patch 528 SHA256 99ee6a119b3dd4145a088a9c581763f856f53c579f477b4e4eaaa8e7dd2c0f02 SHA512 9bf9e247f49a4fbc251ce878b82d457136b3ede890458afbd92b27a9f283e44e02bab92b2817cd1c3160a807ce8a7e6296e813f3573c2b733f2701fdb07323fe WHIRLPOOL 03d7330cb179111ed608929b15d2901258e8d1434ed9b28a1069a235498b32fb4ba165fb193635be1925236a83181659efd53514ef9a5c640bdfc6d5e4da05f3
+AUX mongo-tools-3.0.12-build.patch 626 SHA256 49cbafaf42c32ba91b08875f79afb27ec2f880ad01d34b28f32797393503071e SHA512 bd1374dc2e1ec0b0ef18fe47015519c1981b12decee47ff85544b6be7f721080e91ecbafc1c07eee4a43d733a2310ac1a001bb051e8981c11e9ede652c7bbc8a WHIRLPOOL e22101283f6d25f37c57f76e0bb4775b539aec48a2615e2e369fee813a3dabc3381f2882ee8101763ff33ee49e65cde598e1a28252efdbe1cec04fa94a1934f3
+AUX mongo-tools-3.2.10-pie.patch 551 SHA256 7bc79ceadc99075f0d9212e44d204f68819be5f822691cd74648c9f12040aae1 SHA512 9a309e8d4d3776fef5209bdaedf416f3a43d51ffacff8fa602dacc288b1413dfb7eeca2cbd88a976a1648161bd671321e8f333a6843ee0477ea41cfcad040d1b WHIRLPOOL 3ec4766eddfcea0df4eabe435ca3f3a1b9ca4a14f496bb5d2158a30ea8a61f2bdfb1c24cdb935b2fb8b3d43086d5ec1e73d6d6b2ec961e7b1eac07a6a405b881
+AUX mongo-tools-3.2.5-build.patch 609 SHA256 bfa434a2cd2cd9ccfccc80b8ae27ade024e1ab9409aec617aaec570e0c8fcfce SHA512 f2eb353a0981fca03eab0d44ed6adf7bcb4d6446ceaaf96499e254170679582981ad2f81c7dfe6ff10d783745d90c1b55bb7eb0efe1ddcf1c4ccb52b920efc99 WHIRLPOOL 9ca85953a94400dfb7665cddb9f18c75eba372831d76889b28494ef2c4a7add417814133c4a56f2fd47ee853cb62b07081de7a8261fac5ce906dac32763c374a
+DIST mongo-tools-3.0.14.tar.gz 2413148 SHA256 5a3f706827a9567fc98e2b64a33a2071c68c89090c6f135a508cb4e615051db1 SHA512 0e77417b2c36080515a2ff611427cb18f6d6c2432159c2a09af8d6ff14ae7f25ecbfe0a6631eeb7de084fdfe517a09364d731f5b63923404b6319fc1ca44b840 WHIRLPOOL 615153e87ea0b3cfd837066f850f92e7ea9c533e09bf6e3f4231ff489ac21a5a52a4afe06c827304e9340f9e8172714dae969c65cdd7215939a35c7026d60d98
+DIST mongo-tools-3.0.15.tar.gz 2413131 SHA256 9e1a936b42eff999a83afc3885faee0c64592ff43d3620d1b9d69d44b7d84d38 SHA512 b5baeea89f5287e055c43c58cfc31e4618df2b7b7fffd7d77248131daf503522b1d041253df8d3ad2ffa22efff344334dc05e3a3462cf7c646d4e83040bd95dc WHIRLPOOL 46c992dcc90fabe8f698e89a93232cc2e450a7dd560fb64a5f954b7937a98e298af8d4fa4bf626ccbcf96bef80743b6bbbb9d7e6fcb9b012dd8da68a1c382276
+DIST mongo-tools-3.2.12.tar.gz 2712079 SHA256 cda5e869b9233d591e91cac0b4c709a2e71dcabd9ac6bcc8b33d906ce3b13afd SHA512 66f7beb85a83ad6a217e65bba97ace6ad0bf84688f40e598e5fb1cf4bbe481b4069e1247d6829f8d06c8230d33c3e0c8bd8465a975576cad584065c361b6fb72 WHIRLPOOL 46123dc3c97fdf20ff94ac373e774932bd30aca677047fe3366653aaab269bf6d7e59cb420cf1e5716558fa959cb3649ee359cc27932bac276e6d24d2eea43b1
+DIST mongo-tools-3.2.13.tar.gz 2712076 SHA256 a855eb0141445e34ff3b01807b016467519c390fce79f3566000b5aaecb65d72 SHA512 caa0ba0f1452a16921c187cb407258326324b7222af91b1cd1b870ee2c9e6909d4fa94087a6da148a807f75b40f0bb97808a85804134d53cdab7970d8adf59f8 WHIRLPOOL e2fb38cc8a35ab7c9461f680a2bf0647b5cb5d1225978b7321e6c4227b02ae3cae93e5f2a105f188f3329b0f0f8741e9a0c5439f37196ca875b049d3a91836d3
+DIST mongo-tools-3.2.16.tar.gz 2720003 SHA256 1cd699f0e45b0b3afb0cfc7014258fb69e93c98e254ef9ef1605cd2de0b56d4c SHA512 61c8cfd04a36e329c3573b73945d20a5623e1aa0a3430b309530e85e4289a27a46a850ec48ede7f04e66e67e23745ef26f5f4ddcf68ffeb647128e3d2526a724 WHIRLPOOL 2d2855f578f15e9afd133f6b24b23bd5d6a20516c96f665581223ca1c9a472ead6634749db46b55a1351a8b63923531046ab83a262ec54f439ccf008cb854f9e
+DIST mongo-tools-3.4.3.tar.gz 4700637 SHA256 70348800ca4cc04a319ca414291d5359e7dc86c888bc8264045fbc4de00adab2 SHA512 ec754e8b19c517d9603e0eb89cc315e0af53886b74a905c0742faf5369af8b87b84cedf57aaa25f93068cd21370fa8a274a97dc3c58bbb4a50db6c2e4f0109d9 WHIRLPOOL 0b85fcdb52d5f08624bbcedb96d66c8a519e6415b9aefe68e7957627f3f1e220ca1174ea0a037f53ef2de0e594793ab42d6ec7db9cb42aa09b1892500dac5dd5
+DIST mongo-tools-3.4.4.tar.gz 4700326 SHA256 d14f4ce153aec373459c802e5a159661ccfde4e5df39d8d750586bae54896cdd SHA512 d49243e41bf3144264add3766a6f7016a07509a583a7368a639d85d2305500dd5afcfbc4449f3dcc8bec6e88bfb76ce021c813fe14169e3bd2476ed0db7c2d5d WHIRLPOOL 33cb527ce7df19e92871219aef9b38f16ae292a4d1cbdd7bb3a1c6ccc752687469b9e4309cc4fd540a65e623740e1ebe20f4bdf8629b50aab25d4ea84c2988cc
+DIST mongo-tools-3.4.6.tar.gz 4715189 SHA256 0b41ee2cb0a3d656f50ad950cc3853b41d5eb77a67ea0eb288f5ac80711ffc1d SHA512 ad1d3acee1969934e8f679d6407b3b55aba85fb99ea806463b7418494fac491ff68033f3e59b55e17276a4d28932c6b74398fffc89ab7c229cf69e5a4714c4a2 WHIRLPOOL 993be475af7b71a189f2b9f7c98e3f49d7ae8d05f99928b242efbd3dd504415394c7c812c4debed192ca0a856f16f9839dc771be8efb1db48b3359e48ea48280
+DIST mongo-tools-3.4.7.tar.gz 4719398 SHA256 8ff8c790108d3b858bb188f4cd45aedf3a1a9eddf3bd3f69627ecb35a0de2fb4 SHA512 974062e934ff2004c2ec1b55398a04dce542542c122577326e6120154e4887dcc772fa90b0ea5e7bc57124526bbb76b8935efa75080fed78da6c252e3e599f3f WHIRLPOOL 67a8e1ece75b1371df8da60780eb71db1f039912baa2f66d7cf0c79e863f5ce74a27131f1978578cebf47c3de66a5c9ef8227ce19d3a23effa40da05136ad3e4
+EBUILD mongo-tools-3.0.14.ebuild 1096 SHA256 a9dbbf69ad5ac87abf08f6a9a8e924f84d231e7d778cbdff77bca3d013fa1cf3 SHA512 55b66e2872741425cccb75b367e37b4fca28404d63e77a39920246b6a946bf75335d55ea15c7878eb4382ade2cd95bedec4da9a647968a5e27e577073ff7e82f WHIRLPOOL bd3c3fd8b04f4287f7e13c4d601e8acd7e45516f19249637091bb51e9f753b4244c5950f6c97187a74d2198bd92bb48473ea7c99d86bea9f5598c18569cb9ba1
+EBUILD mongo-tools-3.0.15.ebuild 1098 SHA256 8a416f74a4b1e6052de2e61bb5dc9d2da7ed08234185f1ad68fd4c31a3f9f446 SHA512 a36184581a7cff9543a4a63c13549e9096321c558a983a46bb4248541b777a5e4a2e1323f3c140b3fc2b8176a480042d2140e44b488ac69403524410b4115d8d WHIRLPOOL ba72c9bdfa63283917b3b3f4d679d1f8963a774f6e0c6a8882bbfd7fb8ddaf4dc40da5a1705b3c6b885fafb8aeb5c65b35947b3dba145d795fbdeea1a38e4fe4
+EBUILD mongo-tools-3.2.12.ebuild 1198 SHA256 6b9e8e0845c66fe1133cb692f4fa94ac8c525826d17d112775fe268622555f0d SHA512 f71ff59918d4d8278bae4408ff7649fdda928980d1cc08ab169391c5adbabed4e2d1ba0f4cfd23a8b0f05be1850c2037b971f99fd2ee2557ae76dfdae89e2d15 WHIRLPOOL 15ecab23d754b3e87e5244df2c26cb0d9bb0f34542559e2ec887a7d5e50e412cb4bc52f4e7d2352a18efadd0e0e5b0301676a8cc70ea1fc59f03f61c8eb9796b
+EBUILD mongo-tools-3.2.13.ebuild 1198 SHA256 6b9e8e0845c66fe1133cb692f4fa94ac8c525826d17d112775fe268622555f0d SHA512 f71ff59918d4d8278bae4408ff7649fdda928980d1cc08ab169391c5adbabed4e2d1ba0f4cfd23a8b0f05be1850c2037b971f99fd2ee2557ae76dfdae89e2d15 WHIRLPOOL 15ecab23d754b3e87e5244df2c26cb0d9bb0f34542559e2ec887a7d5e50e412cb4bc52f4e7d2352a18efadd0e0e5b0301676a8cc70ea1fc59f03f61c8eb9796b
+EBUILD mongo-tools-3.2.16.ebuild 1198 SHA256 6b9e8e0845c66fe1133cb692f4fa94ac8c525826d17d112775fe268622555f0d SHA512 f71ff59918d4d8278bae4408ff7649fdda928980d1cc08ab169391c5adbabed4e2d1ba0f4cfd23a8b0f05be1850c2037b971f99fd2ee2557ae76dfdae89e2d15 WHIRLPOOL 15ecab23d754b3e87e5244df2c26cb0d9bb0f34542559e2ec887a7d5e50e412cb4bc52f4e7d2352a18efadd0e0e5b0301676a8cc70ea1fc59f03f61c8eb9796b
+EBUILD mongo-tools-3.4.3.ebuild 1265 SHA256 4e4c5c020e783ef48e93f439876060b2837a1a195155fc26af1e45829f6db9a8 SHA512 f3ce567bb5ba747c5e606b1b684b377525c47548d3742f158f715bd56a9f80e6424deeef77eae321dae2b529150a7251b71cc317b6cc3e1c1087e7c03da1aeb8 WHIRLPOOL 28c7e929b0d8b6fd40a51cd629767cbc5c2a859f1403648ab9bf2acde7ddb9d388131f85d0167c810c68b92a973f393802a0720d5d843823392581f5d0705b4f
+EBUILD mongo-tools-3.4.4.ebuild 1265 SHA256 4e4c5c020e783ef48e93f439876060b2837a1a195155fc26af1e45829f6db9a8 SHA512 f3ce567bb5ba747c5e606b1b684b377525c47548d3742f158f715bd56a9f80e6424deeef77eae321dae2b529150a7251b71cc317b6cc3e1c1087e7c03da1aeb8 WHIRLPOOL 28c7e929b0d8b6fd40a51cd629767cbc5c2a859f1403648ab9bf2acde7ddb9d388131f85d0167c810c68b92a973f393802a0720d5d843823392581f5d0705b4f
+EBUILD mongo-tools-3.4.6.ebuild 1265 SHA256 4e4c5c020e783ef48e93f439876060b2837a1a195155fc26af1e45829f6db9a8 SHA512 f3ce567bb5ba747c5e606b1b684b377525c47548d3742f158f715bd56a9f80e6424deeef77eae321dae2b529150a7251b71cc317b6cc3e1c1087e7c03da1aeb8 WHIRLPOOL 28c7e929b0d8b6fd40a51cd629767cbc5c2a859f1403648ab9bf2acde7ddb9d388131f85d0167c810c68b92a973f393802a0720d5d843823392581f5d0705b4f
+EBUILD mongo-tools-3.4.7.ebuild 1355 SHA256 95e12d4129508ba946e63aeabf891b91d56b1f1c6cc510a9608038bc777d8ac8 SHA512 1f3ff81d0b881f8a263c9123e423ce046e29a534c3f7c1c2b692fae94431b4f0577d3207713c85c96a5957a42b4a06f03790cbf06ee45e6722df7150e9d42f11 WHIRLPOOL 510680ce5664206519995f899d43b057f759ffa1f51caaae5fdb6a36c94fa91a0e168542b31b61081de180506e4068218ffa3050f6b7380ea78515e1e385ed8a
+MISC ChangeLog 6778 SHA256 67419d019092f17c196d88b08ce540dfbfcbc2c283104575160aa27f43e8a81b SHA512 32d9f723be0ecbdd273e4a02d3abe50ecae559d87a75cefc8e388fbf800e57f8a6febf24f1c89a6ad967f297b26536486c88debcb78e49f68f7db974d98cbfea WHIRLPOOL 4724a22b4094fd6e2d9359e216dbbcff2ae4cb58e635d2e4e944742c320729d86b723bf05171c1582fc57d3e8bdc0090a6fc4043dbd6cdefd94fe12ab222c896
+MISC ChangeLog-2015 1538 SHA256 0ae49eb6de51798bbcff51c815edae32e0d6a2d2ad46a628be66b8d37e99d589 SHA512 e25f1eac0e7b9ddd261bac753c524000f60dde396a49e4fc42b80694393dd40637db18a383dfdb70c865266ba4f2acaf663c5030fd934d0b0b93f756a59b19a2 WHIRLPOOL 29569a91b43b6cdd5168f3e3653922d03f0259eed281e2ac8700ae5b48793a8b9ae43a769ef7cec4273cbc5704b638861ad77cb78a40d32c838491d489d585c9
+MISC metadata.xml 463 SHA256 f87756607a753d0c92d913540dc84a81a660d71381fb3649db229eed96438172 SHA512 f09474b3932dd6ae36da20c64a394acf65ad1e3a875e7ca743efa22db8b7e3109c9ebe4c489e62eda12c5bdd4d689ede61eca8a4cc89c42d0a08a270f041fcdc WHIRLPOOL a11c4bb4f310edefb2fec8bf3376a6c4ab58680aa6a8c275e7d7ec2b6d9a63752d771626e948b2aa7c2e9bc518a079b1fd201d98c36609f2e8b1e87d611ef57f
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/files/mongo-tools-3.0.12-build.patch b/app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch
new file mode 100644
index 000000000000..f3d881948679
--- /dev/null
+++ b/app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch
@@ -0,0 +1,9 @@
+--- a/build.sh 2016-04-29 20:14:54.000000000 +0200
++++ b/build.sh 2016-05-17 17:22:50.830113156 +0200
+@@ -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` -X github.com/mongodb/mongo-tools/common/options.VersionStr=$(git describe)" -tags "$tags" "$i/main/$i.go"
++ go build -o "bin/$i" -tags "$tags" "$i/main/$i.go" || exit 1
+ done
diff --git a/app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch b/app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch
new file mode 100644
index 000000000000..6a80d75b2cb9
--- /dev/null
+++ b/app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch
@@ -0,0 +1,12 @@
+diff -uNr mongo-tools-r3.2.10.ORIG/build.sh mongo-tools-r3.2.10/build.sh
+--- mongo-tools-r3.2.10.ORIG/build.sh 2016-11-15 16:15:09.487441283 +0000
++++ mongo-tools-r3.2.10/build.sh 2016-11-15 16:15:23.127235064 +0000
+@@ -22,7 +22,7 @@
+
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
+ echo "Building ${i}..."
+- go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"
++ go build -buildmode=pie -o "bin/$i" -tags "$tags" "$i/main/$i.go"
+ ./bin/$i --version
+ done
+
diff --git a/app-admin/mongo-tools/files/mongo-tools-3.2.5-build.patch b/app-admin/mongo-tools/files/mongo-tools-3.2.5-build.patch
new file mode 100644
index 000000000000..31d94dd65cad
--- /dev/null
+++ b/app-admin/mongo-tools/files/mongo-tools-3.2.5-build.patch
@@ -0,0 +1,9 @@
+--- a/build.sh 2016-04-21 17:31:22.156178084 +0200
++++ b/build.sh 2016-04-21 17:32:07.723421116 +0200
+@@ -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` -X github.com/mongodb/mongo-tools/common/options.VersionStr $(git describe)" -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..7a01cd8f7c90
--- /dev/null
+++ b/app-admin/mongo-tools/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ultrabug@gentoo.org</email>
+ <name>Alexys Jacob</name>
+ </maintainer>
+ <longdescription lang="en">
+ MongoDB operation tools such as mongodump, mongoexport, mongorestore, bsondump...
+ </longdescription>
+ <upstream>
+ <remote-id type="github">mongodb/mongo-tools</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.14.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.14.ebuild
new file mode 100644
index 000000000000..bca9db8974e9
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.0.14.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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() {
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ # see #608292
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.15.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.15.ebuild
new file mode 100644
index 000000000000..221680a90f84
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.0.15.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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() {
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ # see #608292
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.2.12.ebuild b/app-admin/mongo-tools/mongo-tools-3.2.12.ebuild
new file mode 100644
index 000000000000..1978809739ac
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.2.12.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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:=
+ net-libs/libpcap
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? ( dev-libs/openssl )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
+
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.2.13.ebuild b/app-admin/mongo-tools/mongo-tools-3.2.13.ebuild
new file mode 100644
index 000000000000..1978809739ac
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.2.13.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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:=
+ net-libs/libpcap
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? ( dev-libs/openssl )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
+
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.2.16.ebuild b/app-admin/mongo-tools/mongo-tools-3.2.16.ebuild
new file mode 100644
index 000000000000..1978809739ac
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.2.16.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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:=
+ net-libs/libpcap
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? ( dev-libs/openssl )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
+
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.4.3.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.3.ebuild
new file mode 100644
index 000000000000..c631cc6fb835
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.4.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl"
+
+# 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:=
+ net-libs/libpcap
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
+
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.4.4.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.4.ebuild
new file mode 100644
index 000000000000..c631cc6fb835
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.4.4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl"
+
+# 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:=
+ net-libs/libpcap
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
+
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.4.6.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.6.ebuild
new file mode 100644
index 000000000000..c631cc6fb835
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.4.6.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl"
+
+# 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:=
+ net-libs/libpcap
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
+
+ # ensure we use bash wrt #582906
+ sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
+
+ epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
+}
+
+src_compile() {
+ local myconf
+
+ if use sasl; then
+ myconf="${myconf} sasl"
+ fi
+
+ if use ssl; then
+ myconf="${myconf} ssl"
+ fi
+
+ ./build.sh ${myconf} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/app-admin/mongo-tools/mongo-tools-3.4.7.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.7.ebuild
new file mode 100644
index 000000000000..eb6528eb5fb8
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.4.7.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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="https://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 libressl"
+
+# 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:=
+ net-libs/libpcap
+ sasl? ( dev-libs/cyrus-sasl )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # do not substitute version because it uses git
+ sed -i '/^sed/,+3d' build.sh || die
+ sed -i '/^mv/d' build.sh || die
+
+ # build pie to avoid text relocations wrt #582854
+ sed -i 's/go build/go build -buildmode=pie/g' build.sh || die
+
+ # ensure we use bash wrt #582906
+ sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
+
+ default
+}
+
+src_compile() {
+ declare -a myconf
+
+ if use sasl; then
+ myconf+=(sasl)
+ fi
+
+ if use ssl; then
+ myconf+=(ssl)
+ fi
+
+ ./build.sh ${myconf[@]} || die "build failed"
+}
+
+src_install() {
+ dobin bin/*
+}