Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mongo-tools/
Date: Mon, 07 Feb 2022 13:23:42
Message-Id: 1644240105.568a7b9e1a694dfd564725d82af3c2d502624e96.ultrabug@gentoo
1 commit: 568a7b9e1a694dfd564725d82af3c2d502624e96
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Sun Dec 19 11:47:44 2021 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 13:21:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=568a7b9e
7
8 app-admin/mongo-tools: bump to 4.2.17/100.5.1
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
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-100.5.1.ebuild | 61 ++++++++++++++++++++++
15 app-admin/mongo-tools/mongo-tools-4.2.17.ebuild | 64 ++++++++++++++++++++++++
16 3 files changed, 127 insertions(+)
17
18 diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
19 index 1b1dfe7d6b65..1eeb51d4eb45 100644
20 --- a/app-admin/mongo-tools/Manifest
21 +++ b/app-admin/mongo-tools/Manifest
22 @@ -2,6 +2,8 @@ DIST mongo-tools-100.2.0.tar.gz 27401773 BLAKE2B 359747ffe9e53e9ac62fa70517bd5e6
23 DIST mongo-tools-100.2.1.tar.gz 27447213 BLAKE2B 9db242b632cf9d15960e216c238ad13d2680b1aa6c0731bf0dc163055fd8488f36b6b9cc56d597f5b7d98a6798ed1cb9f8815aa2b4dce6b5977a591376177409 SHA512 ed913c42935e240b8b13b292a7dc12c12b6f6ee7538c6dd589a5e0998c333ebbf3822337c9d8368964fcdb7c8b1b5b1b86fbe654695e3bbb09463a5cddf42e38
24 DIST mongo-tools-100.3.0.tar.gz 27514743 BLAKE2B 4b64c1d42679f5297ca0065b4e5e094a7c5f5bf7082a727b7c49e1b3b3af563e8f4055e041a696ea3e94ad62a3f280ec3f02d8b102df6f68a561b99d8a80b565 SHA512 415cf1b3a1015bab7c507cd7af969d7b8de249b8692fb93593793e9881290aaab827649fc59850bc905a50ee003d23116b6595979e3ca48dfcf1e6c5c864b5a0
25 DIST mongo-tools-100.4.1.tar.gz 3793073 BLAKE2B 0a5dbd7a638035e7e54922c46be4473f154f79cb6370ca72f87dfee49ea1353ebf60ccf4d324b0bc6f5388b8c095f68f423aafdf83358ac41ad59d1215dce69c SHA512 a6560f8ce2a86c1ae4400f3ef182f448991a238ef657bcd5eb6f98de0adb2cbd660a81ce00f3ca051f2db6d22a492158da9254b264424506669bf771d7a40fe6
26 +DIST mongo-tools-100.5.1.tar.gz 3796549 BLAKE2B 6f95e1eb9f9c6c07725269f99dee0d940ffc5145e95b17b3e0a87f4cd60b1b0589a99a813c359f0b670bc34274fbd1f5b9c561caf07840bd85633174232a48ed SHA512 a488b15a6862cacaccaeb57698d423e4ee710d395b1280a66382e140cb71fec84aa738f3819a87b4a71faecd9c9da7bd92780a19d6d11fdebaf5142e594b2028
27 DIST mongo-tools-4.2.11.tar.gz 15028877 BLAKE2B 8397ddfa553880680dabb3ca41801117431c75e9cf19c6145373b73c6da15b2be61e8673cec851872a0c481b221ac40e222754f9155c45f8a3e681e59272de6c SHA512 b1e9812890447f2ad1ed96ea5a70e8bb16efdaea37224249c531a3adda559b789a392b9818711147d28df412d7a2e2a992bc13fdcd595e50e66eb7fbd8c32bd5
28 DIST mongo-tools-4.2.12.tar.gz 15029039 BLAKE2B c2c87f6b329c4d094739fe215221fe507d2c685c4c56757b692e8f2de7a904f47fd92affcc9bbe227472efc09bdc97da78881b6ec2dbb03f79a34c42a3068ab3 SHA512 05cfef279c78ff1e929ccf47bee99a87cad70ede05bdac3f9226dc1e0c2688845233e51da69a2bb018d20b6f3ca4ae5301fb4f609e19f17636b4e5ac04fedb0f
29 DIST mongo-tools-4.2.15.tar.gz 15028734 BLAKE2B 7479c5d0d9b6051f51e563f53a5c704a69dc3719d9417b216bcc1a65220d0ab2c9441fd24d8ac8e5b1600766797ef102df07ebfd946ee60949d3287673dfbaaf SHA512 f613ab61a4cf029548aa0e5623fef3798642ced791bf52f229e7d14d31de9472bfc3c8bfb3fa7b4542555a17c79ff9a514480c674cb3e45fb99c4f1745fdb9f0
30 +DIST mongo-tools-4.2.17.tar.gz 15028859 BLAKE2B dfd9165bd83571cb3ae134f13072e8a06707d714f28107a70e41e8bf507f87bb44ef32a27c15c188e6b831e8c33907f201cb7a3f217868e0a88e6c31efce0f79 SHA512 e59df0593caf93b44fe5694e07e37e49e9d4237007ae33f0156f773987cbaeb59c7b3da8012f9a9b07f4eb146f8392b2d2bbcad97309284b0d67238a69af2663
31
32 diff --git a/app-admin/mongo-tools/mongo-tools-100.5.1.ebuild b/app-admin/mongo-tools/mongo-tools-100.5.1.ebuild
33 new file mode 100644
34 index 000000000000..5431dc042cab
35 --- /dev/null
36 +++ b/app-admin/mongo-tools/mongo-tools-100.5.1.ebuild
37 @@ -0,0 +1,61 @@
38 +# Copyright 1999-2021 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
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/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm64 ~riscv"
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 ${P} "${S}" || die
67 +}
68 +
69 +src_compile() {
70 + local myconf=()
71 +
72 + if use sasl; then
73 + myconf+=(sasl)
74 + fi
75 +
76 + if use ssl; then
77 + myconf+=(ssl)
78 + fi
79 +
80 + # build pie to avoid text relocations wrt #582854
81 + local buildmode="pie"
82 +
83 + # skip on ppc64 wrt #610984
84 + if use ppc64; then
85 + buildmode="default"
86 + fi
87 +
88 + mkdir -p bin || die
89 + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop; do
90 + echo "Building $i"
91 + GO111MODULE='off' GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
92 + -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
93 + done
94 +}
95 +
96 +src_install() {
97 + dobin bin/*
98 +}
99
100 diff --git a/app-admin/mongo-tools/mongo-tools-4.2.17.ebuild b/app-admin/mongo-tools/mongo-tools-4.2.17.ebuild
101 new file mode 100644
102 index 000000000000..1c622b0ee6a7
103 --- /dev/null
104 +++ b/app-admin/mongo-tools/mongo-tools-4.2.17.ebuild
105 @@ -0,0 +1,64 @@
106 +# Copyright 1999-2021 Gentoo Authors
107 +# Distributed under the terms of the GNU General Public License v2
108 +
109 +EAPI=7
110 +
111 +MY_PV=${PV/_rc/-rc}
112 +MY_P=${PN}-r${MY_PV}
113 +
114 +DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
115 +HOMEPAGE="https://www.mongodb.com"
116 +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
117 +
118 +LICENSE="Apache-2.0"
119 +SLOT="0"
120 +KEYWORDS="~amd64 ~arm64"
121 +IUSE="sasl ssl"
122 +
123 +DEPEND="dev-lang/go:=
124 + net-libs/libpcap
125 + sasl? ( dev-libs/cyrus-sasl )
126 + ssl? ( dev-libs/openssl:0= )"
127 +
128 +# Do not complain about CFLAGS etc since go projects do not use them.
129 +QA_FLAGS_IGNORED='.*'
130 +
131 +EGO_PN="github.com/mongodb/mongo-tools"
132 +S="${WORKDIR}/src/${EGO_PN}"
133 +
134 +src_unpack() {
135 + mkdir -p "${S%/*}" || die
136 + default
137 + mv ${MY_P} "${S}" || die
138 +}
139 +
140 +src_compile() {
141 + local myconf=()
142 +
143 + if use sasl; then
144 + myconf+=(sasl)
145 + fi
146 +
147 + if use ssl; then
148 + myconf+=(ssl)
149 + fi
150 +
151 + # build pie to avoid text relocations wrt #582854
152 + local buildmode="pie"
153 +
154 + # skip on ppc64 wrt #610984
155 + if use ppc64; then
156 + buildmode="default"
157 + fi
158 +
159 + mkdir -p bin || die
160 + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
161 + echo "Building $i"
162 + GO111MODULE='off' GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
163 + -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
164 + done
165 +}
166 +
167 +src_install() {
168 + dobin bin/*
169 +}