1 |
commit: 4bbdf856dd289b0d423bca90bb09297643e7c555 |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 14 10:36:14 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 14 10:36:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbdf856 |
7 |
|
8 |
app-admin/mongo-tools: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
app-admin/mongo-tools/Manifest | 2 + |
14 |
app-admin/mongo-tools/mongo-tools-3.6.12.ebuild | 71 +++++++++++++++++++++++++ |
15 |
app-admin/mongo-tools/mongo-tools-4.0.8.ebuild | 71 +++++++++++++++++++++++++ |
16 |
3 files changed, 144 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest |
19 |
index 10f66a07e88..4b2f280cd26 100644 |
20 |
--- a/app-admin/mongo-tools/Manifest |
21 |
+++ b/app-admin/mongo-tools/Manifest |
22 |
@@ -1,5 +1,7 @@ |
23 |
DIST mongo-tools-3.4.16.tar.gz 4697191 BLAKE2B 2e9a0e7dc8016d3e7d7c7f8d0cf80a97d3d199603c0b8b791df5a0d79d418ffaa232eee694047a7ca11fa7623023b4123becd437cfe3dec11e26cd525720bcad SHA512 b40c6dee75d860de1da73faf79f5f68c098ce7c80681486c66fff04a937474dcede91c7be907a8e36033b3898f7499e8f53271944c0df3360756c27361efb6f5 |
24 |
DIST mongo-tools-3.6.10.tar.gz 4731097 BLAKE2B dffd18bbcb5a1d869cd3a00b40be7c83d12c2146944044c8d873eba409b9fcb0ce0595c01cd61a6b0405dfce685b8dde7c285380150906d4d38d3de9b42962bf SHA512 3e9808c6b275566215f8c2ce033a6259d373e8b63db5e981cc28235d757404b3209a64dd9aa8a98d9290c5c1da137a1bf9bc48629b278cb27ca28be681e86efc |
25 |
DIST mongo-tools-3.6.11.tar.gz 4731680 BLAKE2B 88558a26d2552848121d984e4b963acafe9e56b37a3d393bacdcd8c0f71a29e2082845ad6d648c3c4800bd47514d339d1f1e984e339a48572ecb5f6f31d9166d SHA512 2291cb963965a59a89bac35a760ce49b4b835d1447065d558c4b254aae5fe38f7ebe4c9d7a67aa475e06be95c45f8529922c6fb0b78d41bc07d1a83f3a564192 |
26 |
+DIST mongo-tools-3.6.12.tar.gz 4990846 BLAKE2B a2b649df03ba17175d95b0fb7be94e446a0cda8dd45111a41f6f74ee5498b853d9fd361f683d4db558197a1951fc79056b516cff6fcd32cc32877744456b67e3 SHA512 948e49719c958e8b7cd1c27b9d413df6d032189801180540ee86b927d5dd53ab4b8906e5cc7880163ecc6abf11daebfc2fb96fcf8fcfd3e0b1f8c8fedaf54558 |
27 |
DIST mongo-tools-3.6.8.tar.gz 4723878 BLAKE2B a1693024d60f69d25c268eaaa30a478b1e4c0042c5fb7a3fd6252ed00aef2fee3fba94516fe825165a1a57887ed38e4fbce488c48ddd4f45349f0b7a1b244020 SHA512 359e8ce2d847d005d48ff12bc2e8af73213d81cd1521d2b5b5ac94792468218248bebbe808e1bd8fd49234eab8480608f294c1b63f317aed58f456b84ef17dcf |
28 |
DIST mongo-tools-4.0.6.tar.gz 10879606 BLAKE2B 9a7656ba1486df4b36ceb527735ad46864d7a04f2d0451fb4e04bbbdc09c3bb0ec922aa5daa584b93e123e1c3764c0ebef96a3566dd0d6b646a627d769645619 SHA512 d6185d7442a593d29db78889c55aba53e070bedd522d78d8c0bf52bb27f26c5fee6d010457f65774ea36a2e6d5280f38c95433ff76ed53ed9d74b1c811198cb7 |
29 |
+DIST mongo-tools-4.0.8.tar.gz 11134459 BLAKE2B 4f47fcb0037ab0317a3e774ce8411c8add07218ea076d0b54f5aed3d76ca72e739b61c76bee505df52f1c916c1d77a683bd890a409d1d814e9b2389e37f1ee9b SHA512 9e6886038b8c28d50cbec9f76869aceb79eb3214868bca367a6f7a74c346ff5da8d0ee4567bb6c17436860679ca97add3e24e6ba69a6a8d5764c0e1bc5b04813 |
30 |
|
31 |
diff --git a/app-admin/mongo-tools/mongo-tools-3.6.12.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.12.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..092d770686f |
34 |
--- /dev/null |
35 |
+++ b/app-admin/mongo-tools/mongo-tools-3.6.12.ebuild |
36 |
@@ -0,0 +1,71 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+MY_PV=${PV/_rc/-rc} |
43 |
+MY_P=${PN}-r${MY_PV} |
44 |
+ |
45 |
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
46 |
+HOMEPAGE="https://www.mongodb.com" |
47 |
+SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" |
48 |
+ |
49 |
+LICENSE="Apache-2.0" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64" |
52 |
+IUSE="sasl ssl" |
53 |
+ |
54 |
+DEPEND="dev-lang/go:= |
55 |
+ net-libs/libpcap |
56 |
+ sasl? ( dev-libs/cyrus-sasl ) |
57 |
+ ssl? ( dev-libs/openssl:0= )" |
58 |
+ |
59 |
+# Do not complain about CFLAGS etc since go projects do not use them. |
60 |
+QA_FLAGS_IGNORED='.*' |
61 |
+ |
62 |
+EGO_PN="github.com/mongodb/mongo-tools" |
63 |
+S="${WORKDIR}/src/${EGO_PN}" |
64 |
+ |
65 |
+src_unpack() { |
66 |
+ mkdir -p "${S%/*}" || die |
67 |
+ default |
68 |
+ mv ${MY_P} "${S}" || die |
69 |
+} |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ |
74 |
+ # allow building with go 1.12 #678924 |
75 |
+ sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die |
76 |
+} |
77 |
+ |
78 |
+src_compile() { |
79 |
+ local myconf=() |
80 |
+ |
81 |
+ if use sasl; then |
82 |
+ myconf+=(sasl) |
83 |
+ fi |
84 |
+ |
85 |
+ if use ssl; then |
86 |
+ myconf+=(ssl) |
87 |
+ fi |
88 |
+ |
89 |
+ # build pie to avoid text relocations wrt #582854 |
90 |
+ local buildmode="pie" |
91 |
+ |
92 |
+ # skip on ppc64 wrt #610984 |
93 |
+ if use ppc64; then |
94 |
+ buildmode="default" |
95 |
+ fi |
96 |
+ |
97 |
+ mkdir -p bin || die |
98 |
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do |
99 |
+ echo "Building $i" |
100 |
+ GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ |
101 |
+ -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die |
102 |
+ done |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ dobin bin/* |
107 |
+} |
108 |
|
109 |
diff --git a/app-admin/mongo-tools/mongo-tools-4.0.8.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.8.ebuild |
110 |
new file mode 100644 |
111 |
index 00000000000..092d770686f |
112 |
--- /dev/null |
113 |
+++ b/app-admin/mongo-tools/mongo-tools-4.0.8.ebuild |
114 |
@@ -0,0 +1,71 @@ |
115 |
+# Copyright 1999-2019 Gentoo Authors |
116 |
+# Distributed under the terms of the GNU General Public License v2 |
117 |
+ |
118 |
+EAPI=7 |
119 |
+ |
120 |
+MY_PV=${PV/_rc/-rc} |
121 |
+MY_P=${PN}-r${MY_PV} |
122 |
+ |
123 |
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
124 |
+HOMEPAGE="https://www.mongodb.com" |
125 |
+SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" |
126 |
+ |
127 |
+LICENSE="Apache-2.0" |
128 |
+SLOT="0" |
129 |
+KEYWORDS="~amd64" |
130 |
+IUSE="sasl ssl" |
131 |
+ |
132 |
+DEPEND="dev-lang/go:= |
133 |
+ net-libs/libpcap |
134 |
+ sasl? ( dev-libs/cyrus-sasl ) |
135 |
+ ssl? ( dev-libs/openssl:0= )" |
136 |
+ |
137 |
+# Do not complain about CFLAGS etc since go projects do not use them. |
138 |
+QA_FLAGS_IGNORED='.*' |
139 |
+ |
140 |
+EGO_PN="github.com/mongodb/mongo-tools" |
141 |
+S="${WORKDIR}/src/${EGO_PN}" |
142 |
+ |
143 |
+src_unpack() { |
144 |
+ mkdir -p "${S%/*}" || die |
145 |
+ default |
146 |
+ mv ${MY_P} "${S}" || die |
147 |
+} |
148 |
+ |
149 |
+src_prepare() { |
150 |
+ default |
151 |
+ |
152 |
+ # allow building with go 1.12 #678924 |
153 |
+ sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die |
154 |
+} |
155 |
+ |
156 |
+src_compile() { |
157 |
+ local myconf=() |
158 |
+ |
159 |
+ if use sasl; then |
160 |
+ myconf+=(sasl) |
161 |
+ fi |
162 |
+ |
163 |
+ if use ssl; then |
164 |
+ myconf+=(ssl) |
165 |
+ fi |
166 |
+ |
167 |
+ # build pie to avoid text relocations wrt #582854 |
168 |
+ local buildmode="pie" |
169 |
+ |
170 |
+ # skip on ppc64 wrt #610984 |
171 |
+ if use ppc64; then |
172 |
+ buildmode="default" |
173 |
+ fi |
174 |
+ |
175 |
+ mkdir -p bin || die |
176 |
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do |
177 |
+ echo "Building $i" |
178 |
+ GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ |
179 |
+ -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die |
180 |
+ done |
181 |
+} |
182 |
+ |
183 |
+src_install() { |
184 |
+ dobin bin/* |
185 |
+} |