1 |
commit: 0499938eabb273305c76d854fb654651f54102ca |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 20 16:15:20 2020 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 20 16:19:52 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0499938e |
7 |
|
8 |
app-admin/mongo-tools: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
app-admin/mongo-tools/Manifest | 1 + |
14 |
app-admin/mongo-tools/mongo-tools-4.2.6.ebuild | 71 ++++++++++++++++++++++++++ |
15 |
2 files changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest |
18 |
index 82667b49c21..988e5b1cef2 100644 |
19 |
--- a/app-admin/mongo-tools/Manifest |
20 |
+++ b/app-admin/mongo-tools/Manifest |
21 |
@@ -9,3 +9,4 @@ DIST mongo-tools-4.0.16.tar.gz 11139827 BLAKE2B 550acfd7e4434b178170dfd94c65668c |
22 |
DIST mongo-tools-4.2.1.tar.gz 14435826 BLAKE2B 8d068cb39957f6773fb6ca186a1eb324e03c21b8472fede407daf7bce091f3d401f0debe6412d70bb8e338101d7ada870e7347782ffb582b58fcafc236ad4932 SHA512 bba754acd9e21f8f832fc2e434720347c2222897b2af08d66f9491110d5491f5475ae2118ff25b263606677da10b0c96b76cc507a01287180096c25c1eab5ced |
23 |
DIST mongo-tools-4.2.2.tar.gz 14433618 BLAKE2B 7610bd6b386684836e91b6bb7f73e24267fac56ce975263ac2aaeebe51d37123baa8eb2009cf4478af89e6dcc596c9c07126224ad4bd80aee47d03fde9413eca SHA512 661813c70bf891f0a834ac9970cbe390a8616f9e89e4f33918e479ba3f3ce3851edecd63c1e35e65a4dee47419e3ce0fa3186c7ee2326bef11fce3bac8bed0c7 |
24 |
DIST mongo-tools-4.2.3.tar.gz 15020325 BLAKE2B 8501a3ec6e947112ec561ce62f2ea568984f8ac911a7aff3cb8c08c1f29d2cfc64cf7f4b6a24ba73ae0f9b2b5853480f4fbed51c98fdc8c83cd433ea65e21dba SHA512 772719b450f8b656c22ac0126fee1e0fa58b5320c94ac6414b1d9af13e6437393c2482f2e386f4a73c84a2d1bfe0ea88df117a6a7ae87f4884477505cf662585 |
25 |
+DIST mongo-tools-4.2.6.tar.gz 15016596 BLAKE2B 5ee37bf21ea05ec5ba2764c935c1dd3632753e772a01f854dc8a9949620e9a41fe95ba658a0efae0332ed2c059561e39e681f672cf5f4302a7f92c364cfab4b6 SHA512 e91bfba4b015f80d35b6c2ca766c599c5eedea113d6415ec0aef433d46b5e5fe06956481a063e26908a45fdcee4002125ea01a29fa3ea9a541a9210d25625f8e |
26 |
|
27 |
diff --git a/app-admin/mongo-tools/mongo-tools-4.2.6.ebuild b/app-admin/mongo-tools/mongo-tools-4.2.6.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..7d8cc9a0ebc |
30 |
--- /dev/null |
31 |
+++ b/app-admin/mongo-tools/mongo-tools-4.2.6.ebuild |
32 |
@@ -0,0 +1,71 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+MY_PV=${PV/_rc/-rc} |
39 |
+MY_P=${PN}-r${MY_PV} |
40 |
+ |
41 |
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
42 |
+HOMEPAGE="https://www.mongodb.com" |
43 |
+SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm64" |
48 |
+IUSE="sasl ssl" |
49 |
+ |
50 |
+DEPEND="dev-lang/go:= |
51 |
+ net-libs/libpcap |
52 |
+ sasl? ( dev-libs/cyrus-sasl ) |
53 |
+ ssl? ( dev-libs/openssl:0= )" |
54 |
+ |
55 |
+# Do not complain about CFLAGS etc since go projects do not use them. |
56 |
+QA_FLAGS_IGNORED='.*' |
57 |
+ |
58 |
+EGO_PN="github.com/mongodb/mongo-tools" |
59 |
+S="${WORKDIR}/src/${EGO_PN}" |
60 |
+ |
61 |
+src_unpack() { |
62 |
+ mkdir -p "${S%/*}" || die |
63 |
+ default |
64 |
+ mv ${MY_P} "${S}" || die |
65 |
+} |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ |
70 |
+ # allow building with go 1.12 #678924 |
71 |
+ sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die |
72 |
+} |
73 |
+ |
74 |
+src_compile() { |
75 |
+ local myconf=() |
76 |
+ |
77 |
+ if use sasl; then |
78 |
+ myconf+=(sasl) |
79 |
+ fi |
80 |
+ |
81 |
+ if use ssl; then |
82 |
+ myconf+=(ssl) |
83 |
+ fi |
84 |
+ |
85 |
+ # build pie to avoid text relocations wrt #582854 |
86 |
+ local buildmode="pie" |
87 |
+ |
88 |
+ # skip on ppc64 wrt #610984 |
89 |
+ if use ppc64; then |
90 |
+ buildmode="default" |
91 |
+ fi |
92 |
+ |
93 |
+ mkdir -p bin || die |
94 |
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do |
95 |
+ echo "Building $i" |
96 |
+ GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ |
97 |
+ -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die |
98 |
+ done |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ dobin bin/* |
103 |
+} |