1 |
commit: c308624036e48ccd324213ab8c644f1704572c9b |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 9 07:09:47 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 9 07:28:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3086240 |
7 |
|
8 |
app-admin/mongo-tools: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
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.0.11.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 81807a47fe4..052e0950331 100644 |
19 |
--- a/app-admin/mongo-tools/Manifest |
20 |
+++ b/app-admin/mongo-tools/Manifest |
21 |
@@ -4,5 +4,6 @@ DIST mongo-tools-3.6.12.tar.gz 4990846 BLAKE2B a2b649df03ba17175d95b0fb7be94e446 |
22 |
DIST mongo-tools-3.6.13.tar.gz 4990848 BLAKE2B 022ddf214869c3a3e545aa9572f77f0adc21c0dbd6ea6ad9e083633c2e972b7ef77c0bda4354dbde9fd0e23c6dd02a7de8873d4b2c2a3e4423ea6f8e1c23ed52 SHA512 fac21c4841bfecba11a7765bb6c36d1fa19d4dd94f6f4168fa767fc11dc8b3caf04a5029becd09eba01dd694274e9cc22da8566ce878769e5c3c97016c162432 |
23 |
DIST mongo-tools-3.6.8.tar.gz 4723878 BLAKE2B a1693024d60f69d25c268eaaa30a478b1e4c0042c5fb7a3fd6252ed00aef2fee3fba94516fe825165a1a57887ed38e4fbce488c48ddd4f45349f0b7a1b244020 SHA512 359e8ce2d847d005d48ff12bc2e8af73213d81cd1521d2b5b5ac94792468218248bebbe808e1bd8fd49234eab8480608f294c1b63f317aed58f456b84ef17dcf |
24 |
DIST mongo-tools-4.0.10.tar.gz 11134721 BLAKE2B f25e834622db8a2cea1658d9396b747666dee6a0e6471f5fcf351431f716735227b19f854c228ebb9ace8a7c27b8cdf83f8a5009107191aa6dd27c1a4c037505 SHA512 12764b2e2016ae3ab3f0ed1f5b9be9ce10e466c53b408ad2c01b26bdf39ca41a358acd07aea5847db2b40e3e89293f77efcd2b310e4e2bf3071873abf1b20f49 |
25 |
+DIST mongo-tools-4.0.11.tar.gz 11134649 BLAKE2B 8e2b01f9180314b3386b9ecabbe504faae2a10dadbc6fb39c5e9917b5b5bc860e5c274fd632b17ed310c90c106be87e00802334149b8e061e7760cb3d6bbe1ea SHA512 11e5d7452aa2aaa0d8b7904d634f0b95c42910d3e63c79a69146500d089c8ffc21823ca37f8e4d41910a3343d819e14fdb01d02625461c1c5788562282436ebb |
26 |
DIST mongo-tools-4.0.6.tar.gz 10879606 BLAKE2B 9a7656ba1486df4b36ceb527735ad46864d7a04f2d0451fb4e04bbbdc09c3bb0ec922aa5daa584b93e123e1c3764c0ebef96a3566dd0d6b646a627d769645619 SHA512 d6185d7442a593d29db78889c55aba53e070bedd522d78d8c0bf52bb27f26c5fee6d010457f65774ea36a2e6d5280f38c95433ff76ed53ed9d74b1c811198cb7 |
27 |
DIST mongo-tools-4.0.9.tar.gz 11134365 BLAKE2B ad27ad868b33a3c0802a0c79b5570a85c20106c71f38229e25a09a4ab8f0e6edbfe4338ce9862b2ba6b7836e4aa71fe5a3704a81a028a95d74168ac5107364d7 SHA512 55720766da5fdb9ee5a93d90be5ebe61ec4a5f5428097e9d6cb022472a2964c39b184531e1f59fb7780e834c3b03986e9edcc66e3f3933b3457b86260a6bbd8f |
28 |
|
29 |
diff --git a/app-admin/mongo-tools/mongo-tools-4.0.11.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.11.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..092d770686f |
32 |
--- /dev/null |
33 |
+++ b/app-admin/mongo-tools/mongo-tools-4.0.11.ebuild |
34 |
@@ -0,0 +1,71 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+MY_PV=${PV/_rc/-rc} |
41 |
+MY_P=${PN}-r${MY_PV} |
42 |
+ |
43 |
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
44 |
+HOMEPAGE="https://www.mongodb.com" |
45 |
+SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+IUSE="sasl ssl" |
51 |
+ |
52 |
+DEPEND="dev-lang/go:= |
53 |
+ net-libs/libpcap |
54 |
+ sasl? ( dev-libs/cyrus-sasl ) |
55 |
+ ssl? ( dev-libs/openssl:0= )" |
56 |
+ |
57 |
+# Do not complain about CFLAGS etc since go projects do not use them. |
58 |
+QA_FLAGS_IGNORED='.*' |
59 |
+ |
60 |
+EGO_PN="github.com/mongodb/mongo-tools" |
61 |
+S="${WORKDIR}/src/${EGO_PN}" |
62 |
+ |
63 |
+src_unpack() { |
64 |
+ mkdir -p "${S%/*}" || die |
65 |
+ default |
66 |
+ mv ${MY_P} "${S}" || die |
67 |
+} |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ default |
71 |
+ |
72 |
+ # allow building with go 1.12 #678924 |
73 |
+ sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ local myconf=() |
78 |
+ |
79 |
+ if use sasl; then |
80 |
+ myconf+=(sasl) |
81 |
+ fi |
82 |
+ |
83 |
+ if use ssl; then |
84 |
+ myconf+=(ssl) |
85 |
+ fi |
86 |
+ |
87 |
+ # build pie to avoid text relocations wrt #582854 |
88 |
+ local buildmode="pie" |
89 |
+ |
90 |
+ # skip on ppc64 wrt #610984 |
91 |
+ if use ppc64; then |
92 |
+ buildmode="default" |
93 |
+ fi |
94 |
+ |
95 |
+ mkdir -p bin || die |
96 |
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do |
97 |
+ echo "Building $i" |
98 |
+ GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ |
99 |
+ -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die |
100 |
+ done |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ dobin bin/* |
105 |
+} |