1 |
commit: d02ebe2818ea71289f29528835ce6194494f240f |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 9 07:19:14 2019 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 9 07:28:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d02ebe28 |
7 |
|
8 |
dev-db/mongodb: drop old ebuilds |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
dev-db/mongodb/Manifest | 4 - |
14 |
dev-db/mongodb/mongodb-3.6.11.ebuild | 164 ----------------------------------- |
15 |
dev-db/mongodb/mongodb-3.6.12.ebuild | 164 ----------------------------------- |
16 |
dev-db/mongodb/mongodb-4.0.6.ebuild | 164 ----------------------------------- |
17 |
dev-db/mongodb/mongodb-4.0.9.ebuild | 164 ----------------------------------- |
18 |
5 files changed, 660 deletions(-) |
19 |
|
20 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
21 |
index 4d77bdc425a..e5b2512a913 100644 |
22 |
--- a/dev-db/mongodb/Manifest |
23 |
+++ b/dev-db/mongodb/Manifest |
24 |
@@ -1,8 +1,4 @@ |
25 |
-DIST mongodb-src-r3.6.11.tar.gz 40581959 BLAKE2B 86244472ce8cff5180d8833a3415dd8a43fb5c76545034822989d5be90f45ed0ef1d43cb726be1e53241255491a7a516e6f90b1c1218ad10cf4ead4557311088 SHA512 e74af9f2f40ab0e2c20b135db3f0ce17825cfe5da912ff8edb2902226abb662a6cf87038ea57df73b06b4961ba71aa78fffd542153eb30c4ea2729d642b1091d |
26 |
-DIST mongodb-src-r3.6.12.tar.gz 40847074 BLAKE2B 45cc0ec4858fa4c17fb86449e6feaf11df32fd55f8a642031ce9be967127d608842cdc64e0a335af67ab3942a233d905b0778782e54dfe4c5d2ad58b828745ca SHA512 173112a05234e06ef4b6c26a092b285b4d12618b3f131fc2b73bd152c11ec42db11cb003566efefce0c98df87a520d0515a3bb1982ffdb27827cd032b1bb3f68 |
27 |
DIST mongodb-src-r3.6.13.tar.gz 40853787 BLAKE2B de9621de4f570d569df5cfe026ea5da24641c97f1ac9f3e58a0706b1d0bd74757390a075c95c6d3acd12f3c5c7bcbeb9302ac997248c54a5b7910b582debdc82 SHA512 eb84fb22ff871b5ec620d6fc29a6a66072211656e914630ad0f53e4fcad55aa40a76a0e68e68bdbe8ef061bea09ce6ad6aea5d8d865ea8a8fdca0ed829555fcd |
28 |
DIST mongodb-src-r3.6.8.tar.gz 40428295 BLAKE2B cc02f73cfb49fb38ccabaad5a02610ce73fc41895ce944e48669e254bcbc70c8872a1bd7f8e04371fae4fcd9af2466fd8550367dd1d1da5cee50b86fc5023bf2 SHA512 c981f3269be3bafb59aa89d36c39a801fd7007b60db6c09b4616a559aaf8e50b34cabbdac2b59f23552c0a5112913fba468f7e2ed9a5f4daa3702dcffdf34999 |
29 |
DIST mongodb-src-r4.0.10.tar.gz 49870574 BLAKE2B 1babbfa1a6d8fae390ec37042feff896c402772e832cc5b0b82fc4d531a6487ac2bd8d407c37ca75a76d78bc91cc665bfc3b7b223e6ceaaea2d921b337ef4d19 SHA512 891bfdc0d415515d7aa36aeb0618055ac6815c7d704537b88293226cecc1b677134db621fd90dee3913f4ff8174a888bcf68adee0a243d0f55ef6c0033a4f4b9 |
30 |
DIST mongodb-src-r4.0.11.tar.gz 49928314 BLAKE2B 006ea0f3917d43a47c0c3b8b10fc57fe911a0ad5a92075fec678863aaacebb75f74a527306e1402ccff486879bdebf44ae77ed1890a3001cc36220772d77ce39 SHA512 bfcf257fe9aeedcd2d15dfcca0f915bd0c6451041c6c5f864c987e0504f9efb0d346f31223095c8bea3c5175918729e4648bde524546aa0cc80e230a88eb09de |
31 |
-DIST mongodb-src-r4.0.6.tar.gz 49511958 BLAKE2B c372bb858528cb825db4edf11db636ad71c63148b84838f64cefe886b37631482c1e22eb99dfc557c3f51706d1d2f61b893bfd301cdeb8772a2d85ad75f8f48c SHA512 72e04154cf221833522bb0c2cc99acc2a86d20e2dcbf1f8c6ff0a870edf7b2529a55b6821c664805c00c12a311ae374a276ef1e3ccea1ed84fb125bb8726906a |
32 |
-DIST mongodb-src-r4.0.9.tar.gz 49852767 BLAKE2B 1dbbc8c75743f0b5cd780fc5b008107972c810530d5c56d26ddfe3a00935036569b2b9fc5dad341c34e9fcbcc6dfa01565c09c93b52513ad29f003bdcd52a43a SHA512 8b88ac3266fe346f5bb92df404a935ecb8ba8bd202b09d515c08f50dc3c0b71bcd5e715a859c1e050f241d82dfdd54e5e4a96441fa984aae2cd1c74de2acd954 |
33 |
|
34 |
diff --git a/dev-db/mongodb/mongodb-3.6.11.ebuild b/dev-db/mongodb/mongodb-3.6.11.ebuild |
35 |
deleted file mode 100644 |
36 |
index 5806eaa2e2e..00000000000 |
37 |
--- a/dev-db/mongodb/mongodb-3.6.11.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,164 +0,0 @@ |
40 |
-# Copyright 1999-2019 Gentoo Authors |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
- |
43 |
-EAPI=7 |
44 |
- |
45 |
-PYTHON_COMPAT=( python2_7 ) |
46 |
- |
47 |
-SCONS_MIN_VERSION="2.5.0" |
48 |
-CHECKREQS_DISK_BUILD="2400M" |
49 |
-CHECKREQS_DISK_USR="512M" |
50 |
-CHECKREQS_MEMORY="1024M" |
51 |
- |
52 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
53 |
- |
54 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
55 |
- |
56 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
57 |
-HOMEPAGE="https://www.mongodb.com" |
58 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
59 |
- |
60 |
-LICENSE="Apache-2.0 SSPL-1" |
61 |
-SLOT="0" |
62 |
-KEYWORDS="~amd64" |
63 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
64 |
- |
65 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
66 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
67 |
- >=dev-libs/boost-1.60:=[threads(+)] |
68 |
- >=dev-libs/libpcre-8.41[cxx] |
69 |
- dev-libs/snowball-stemmer |
70 |
- net-libs/libpcap |
71 |
- >=sys-libs/zlib-1.2.8:= |
72 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
73 |
- mms-agent? ( app-admin/mms-agent ) |
74 |
- ssl? ( |
75 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
76 |
- libressl? ( dev-libs/libressl:0= ) |
77 |
- )" |
78 |
-DEPEND="${RDEPEND} |
79 |
- ${PYTHON_DEPS} |
80 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
81 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
82 |
- virtual/python-typing[${PYTHON_USEDEP}] |
83 |
- sys-libs/ncurses:0= |
84 |
- sys-libs/readline:0= |
85 |
- debug? ( dev-util/valgrind ) |
86 |
- test? ( |
87 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
88 |
- )" |
89 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
90 |
- |
91 |
-PATCHES=( |
92 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
93 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
94 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
95 |
-) |
96 |
- |
97 |
-S="${WORKDIR}/${MY_P}" |
98 |
- |
99 |
-pkg_pretend() { |
100 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
101 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.4; then |
102 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
103 |
- ewarn "successively upgrade major releases until you have upgraded" |
104 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
105 |
- else |
106 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
107 |
- fi |
108 |
- fi |
109 |
-} |
110 |
- |
111 |
-pkg_setup() { |
112 |
- enewgroup mongodb |
113 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
114 |
- |
115 |
- python-single-r1_pkg_setup |
116 |
-} |
117 |
- |
118 |
-src_prepare() { |
119 |
- default |
120 |
- |
121 |
- # remove bundled libs |
122 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
123 |
- |
124 |
- # remove compass |
125 |
- rm -r src/mongo/installer/compass || die |
126 |
-} |
127 |
- |
128 |
-src_configure() { |
129 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
130 |
- # --use-system-icu fails tests |
131 |
- # --use-system-tcmalloc is strongly NOT recommended: |
132 |
- scons_opts=( |
133 |
- CC="$(tc-getCC)" |
134 |
- CXX="$(tc-getCXX)" |
135 |
- |
136 |
- --disable-warnings-as-errors |
137 |
- --use-system-boost |
138 |
- --use-system-pcre |
139 |
- --use-system-snappy |
140 |
- --use-system-stemmer |
141 |
- --use-system-yaml |
142 |
- --use-system-zlib |
143 |
- ) |
144 |
- |
145 |
- use debug && scons_opts+=( --dbg=on ) |
146 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
147 |
- use lto && scons_opts+=( --lto=on ) |
148 |
- use ssl && scons_opts+=( --ssl ) |
149 |
- |
150 |
- # respect mongoDB upstream's basic recommendations |
151 |
- # see bug #536688 and #526114 |
152 |
- if ! use debug; then |
153 |
- filter-flags '-m*' |
154 |
- filter-flags '-O?' |
155 |
- fi |
156 |
- |
157 |
- default |
158 |
-} |
159 |
- |
160 |
-src_compile() { |
161 |
- escons "${scons_opts[@]}" core tools |
162 |
-} |
163 |
- |
164 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
165 |
-src_test() { |
166 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
167 |
-} |
168 |
- |
169 |
-src_install() { |
170 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
171 |
- |
172 |
- doman debian/mongo*.1 |
173 |
- dodoc README docs/building.md |
174 |
- |
175 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
176 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
177 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
178 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
179 |
- |
180 |
- insinto /etc |
181 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
182 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
183 |
- |
184 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
185 |
- |
186 |
- insinto /etc/logrotate.d/ |
187 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
188 |
- |
189 |
- # see bug #526114 |
190 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
191 |
- |
192 |
- local x |
193 |
- for x in /var/{lib,log}/${PN}; do |
194 |
- diropts -m0750 -o mongodb -g mongodb |
195 |
- keepdir "${x}" |
196 |
- done |
197 |
-} |
198 |
- |
199 |
-pkg_postinst() { |
200 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
201 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
202 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
203 |
-} |
204 |
|
205 |
diff --git a/dev-db/mongodb/mongodb-3.6.12.ebuild b/dev-db/mongodb/mongodb-3.6.12.ebuild |
206 |
deleted file mode 100644 |
207 |
index 5806eaa2e2e..00000000000 |
208 |
--- a/dev-db/mongodb/mongodb-3.6.12.ebuild |
209 |
+++ /dev/null |
210 |
@@ -1,164 +0,0 @@ |
211 |
-# Copyright 1999-2019 Gentoo Authors |
212 |
-# Distributed under the terms of the GNU General Public License v2 |
213 |
- |
214 |
-EAPI=7 |
215 |
- |
216 |
-PYTHON_COMPAT=( python2_7 ) |
217 |
- |
218 |
-SCONS_MIN_VERSION="2.5.0" |
219 |
-CHECKREQS_DISK_BUILD="2400M" |
220 |
-CHECKREQS_DISK_USR="512M" |
221 |
-CHECKREQS_MEMORY="1024M" |
222 |
- |
223 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
224 |
- |
225 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
226 |
- |
227 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
228 |
-HOMEPAGE="https://www.mongodb.com" |
229 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
230 |
- |
231 |
-LICENSE="Apache-2.0 SSPL-1" |
232 |
-SLOT="0" |
233 |
-KEYWORDS="~amd64" |
234 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
235 |
- |
236 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
237 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
238 |
- >=dev-libs/boost-1.60:=[threads(+)] |
239 |
- >=dev-libs/libpcre-8.41[cxx] |
240 |
- dev-libs/snowball-stemmer |
241 |
- net-libs/libpcap |
242 |
- >=sys-libs/zlib-1.2.8:= |
243 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
244 |
- mms-agent? ( app-admin/mms-agent ) |
245 |
- ssl? ( |
246 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
247 |
- libressl? ( dev-libs/libressl:0= ) |
248 |
- )" |
249 |
-DEPEND="${RDEPEND} |
250 |
- ${PYTHON_DEPS} |
251 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
252 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
253 |
- virtual/python-typing[${PYTHON_USEDEP}] |
254 |
- sys-libs/ncurses:0= |
255 |
- sys-libs/readline:0= |
256 |
- debug? ( dev-util/valgrind ) |
257 |
- test? ( |
258 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
259 |
- )" |
260 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
261 |
- |
262 |
-PATCHES=( |
263 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
264 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
265 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
266 |
-) |
267 |
- |
268 |
-S="${WORKDIR}/${MY_P}" |
269 |
- |
270 |
-pkg_pretend() { |
271 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
272 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.4; then |
273 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
274 |
- ewarn "successively upgrade major releases until you have upgraded" |
275 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
276 |
- else |
277 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
278 |
- fi |
279 |
- fi |
280 |
-} |
281 |
- |
282 |
-pkg_setup() { |
283 |
- enewgroup mongodb |
284 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
285 |
- |
286 |
- python-single-r1_pkg_setup |
287 |
-} |
288 |
- |
289 |
-src_prepare() { |
290 |
- default |
291 |
- |
292 |
- # remove bundled libs |
293 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
294 |
- |
295 |
- # remove compass |
296 |
- rm -r src/mongo/installer/compass || die |
297 |
-} |
298 |
- |
299 |
-src_configure() { |
300 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
301 |
- # --use-system-icu fails tests |
302 |
- # --use-system-tcmalloc is strongly NOT recommended: |
303 |
- scons_opts=( |
304 |
- CC="$(tc-getCC)" |
305 |
- CXX="$(tc-getCXX)" |
306 |
- |
307 |
- --disable-warnings-as-errors |
308 |
- --use-system-boost |
309 |
- --use-system-pcre |
310 |
- --use-system-snappy |
311 |
- --use-system-stemmer |
312 |
- --use-system-yaml |
313 |
- --use-system-zlib |
314 |
- ) |
315 |
- |
316 |
- use debug && scons_opts+=( --dbg=on ) |
317 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
318 |
- use lto && scons_opts+=( --lto=on ) |
319 |
- use ssl && scons_opts+=( --ssl ) |
320 |
- |
321 |
- # respect mongoDB upstream's basic recommendations |
322 |
- # see bug #536688 and #526114 |
323 |
- if ! use debug; then |
324 |
- filter-flags '-m*' |
325 |
- filter-flags '-O?' |
326 |
- fi |
327 |
- |
328 |
- default |
329 |
-} |
330 |
- |
331 |
-src_compile() { |
332 |
- escons "${scons_opts[@]}" core tools |
333 |
-} |
334 |
- |
335 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
336 |
-src_test() { |
337 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
338 |
-} |
339 |
- |
340 |
-src_install() { |
341 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
342 |
- |
343 |
- doman debian/mongo*.1 |
344 |
- dodoc README docs/building.md |
345 |
- |
346 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
347 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
348 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
349 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
350 |
- |
351 |
- insinto /etc |
352 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
353 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
354 |
- |
355 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
356 |
- |
357 |
- insinto /etc/logrotate.d/ |
358 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
359 |
- |
360 |
- # see bug #526114 |
361 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
362 |
- |
363 |
- local x |
364 |
- for x in /var/{lib,log}/${PN}; do |
365 |
- diropts -m0750 -o mongodb -g mongodb |
366 |
- keepdir "${x}" |
367 |
- done |
368 |
-} |
369 |
- |
370 |
-pkg_postinst() { |
371 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
372 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
373 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
374 |
-} |
375 |
|
376 |
diff --git a/dev-db/mongodb/mongodb-4.0.6.ebuild b/dev-db/mongodb/mongodb-4.0.6.ebuild |
377 |
deleted file mode 100644 |
378 |
index bb2a9fb04dc..00000000000 |
379 |
--- a/dev-db/mongodb/mongodb-4.0.6.ebuild |
380 |
+++ /dev/null |
381 |
@@ -1,164 +0,0 @@ |
382 |
-# Copyright 1999-2019 Gentoo Authors |
383 |
-# Distributed under the terms of the GNU General Public License v2 |
384 |
- |
385 |
-EAPI=7 |
386 |
- |
387 |
-PYTHON_COMPAT=( python2_7 ) |
388 |
- |
389 |
-SCONS_MIN_VERSION="2.5.0" |
390 |
-CHECKREQS_DISK_BUILD="2400M" |
391 |
-CHECKREQS_DISK_USR="512M" |
392 |
-CHECKREQS_MEMORY="1024M" |
393 |
- |
394 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
395 |
- |
396 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
397 |
- |
398 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
399 |
-HOMEPAGE="https://www.mongodb.com" |
400 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
401 |
- |
402 |
-LICENSE="Apache-2.0 SSPL-1" |
403 |
-SLOT="0" |
404 |
-KEYWORDS="~amd64" |
405 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
406 |
- |
407 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
408 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
409 |
- >=dev-libs/boost-1.60:=[threads(+)] |
410 |
- >=dev-libs/libpcre-8.41[cxx] |
411 |
- dev-libs/snowball-stemmer |
412 |
- net-libs/libpcap |
413 |
- >=sys-libs/zlib-1.2.11:= |
414 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
415 |
- mms-agent? ( app-admin/mms-agent ) |
416 |
- ssl? ( |
417 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
418 |
- libressl? ( dev-libs/libressl:0= ) |
419 |
- )" |
420 |
-DEPEND="${RDEPEND} |
421 |
- ${PYTHON_DEPS} |
422 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
423 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
424 |
- virtual/python-typing[${PYTHON_USEDEP}] |
425 |
- sys-libs/ncurses:0= |
426 |
- sys-libs/readline:0= |
427 |
- debug? ( dev-util/valgrind ) |
428 |
- test? ( |
429 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
430 |
- )" |
431 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
432 |
- |
433 |
-PATCHES=( |
434 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
435 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
436 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
437 |
-) |
438 |
- |
439 |
-S="${WORKDIR}/${MY_P}" |
440 |
- |
441 |
-pkg_pretend() { |
442 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
443 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
444 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
445 |
- ewarn "successively upgrade major releases until you have upgraded" |
446 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
447 |
- else |
448 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
449 |
- fi |
450 |
- fi |
451 |
-} |
452 |
- |
453 |
-pkg_setup() { |
454 |
- enewgroup mongodb |
455 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
456 |
- |
457 |
- python-single-r1_pkg_setup |
458 |
-} |
459 |
- |
460 |
-src_prepare() { |
461 |
- default |
462 |
- |
463 |
- # remove bundled libs |
464 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
465 |
- |
466 |
- # remove compass |
467 |
- rm -r src/mongo/installer/compass || die |
468 |
-} |
469 |
- |
470 |
-src_configure() { |
471 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
472 |
- # --use-system-icu fails tests |
473 |
- # --use-system-tcmalloc is strongly NOT recommended: |
474 |
- scons_opts=( |
475 |
- CC="$(tc-getCC)" |
476 |
- CXX="$(tc-getCXX)" |
477 |
- |
478 |
- --disable-warnings-as-errors |
479 |
- --use-system-boost |
480 |
- --use-system-pcre |
481 |
- --use-system-snappy |
482 |
- --use-system-stemmer |
483 |
- --use-system-yaml |
484 |
- --use-system-zlib |
485 |
- ) |
486 |
- |
487 |
- use debug && scons_opts+=( --dbg=on ) |
488 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
489 |
- use lto && scons_opts+=( --lto=on ) |
490 |
- use ssl && scons_opts+=( --ssl ) |
491 |
- |
492 |
- # respect mongoDB upstream's basic recommendations |
493 |
- # see bug #536688 and #526114 |
494 |
- if ! use debug; then |
495 |
- filter-flags '-m*' |
496 |
- filter-flags '-O?' |
497 |
- fi |
498 |
- |
499 |
- default |
500 |
-} |
501 |
- |
502 |
-src_compile() { |
503 |
- escons "${scons_opts[@]}" core tools |
504 |
-} |
505 |
- |
506 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
507 |
-src_test() { |
508 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
509 |
-} |
510 |
- |
511 |
-src_install() { |
512 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
513 |
- |
514 |
- doman debian/mongo*.1 |
515 |
- dodoc README docs/building.md |
516 |
- |
517 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
518 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
519 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
520 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
521 |
- |
522 |
- insinto /etc |
523 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
524 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
525 |
- |
526 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
527 |
- |
528 |
- insinto /etc/logrotate.d/ |
529 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
530 |
- |
531 |
- # see bug #526114 |
532 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
533 |
- |
534 |
- local x |
535 |
- for x in /var/{lib,log}/${PN}; do |
536 |
- diropts -m0750 -o mongodb -g mongodb |
537 |
- keepdir "${x}" |
538 |
- done |
539 |
-} |
540 |
- |
541 |
-pkg_postinst() { |
542 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
543 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
544 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
545 |
-} |
546 |
|
547 |
diff --git a/dev-db/mongodb/mongodb-4.0.9.ebuild b/dev-db/mongodb/mongodb-4.0.9.ebuild |
548 |
deleted file mode 100644 |
549 |
index bb2a9fb04dc..00000000000 |
550 |
--- a/dev-db/mongodb/mongodb-4.0.9.ebuild |
551 |
+++ /dev/null |
552 |
@@ -1,164 +0,0 @@ |
553 |
-# Copyright 1999-2019 Gentoo Authors |
554 |
-# Distributed under the terms of the GNU General Public License v2 |
555 |
- |
556 |
-EAPI=7 |
557 |
- |
558 |
-PYTHON_COMPAT=( python2_7 ) |
559 |
- |
560 |
-SCONS_MIN_VERSION="2.5.0" |
561 |
-CHECKREQS_DISK_BUILD="2400M" |
562 |
-CHECKREQS_DISK_USR="512M" |
563 |
-CHECKREQS_MEMORY="1024M" |
564 |
- |
565 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
566 |
- |
567 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
568 |
- |
569 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
570 |
-HOMEPAGE="https://www.mongodb.com" |
571 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
572 |
- |
573 |
-LICENSE="Apache-2.0 SSPL-1" |
574 |
-SLOT="0" |
575 |
-KEYWORDS="~amd64" |
576 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
577 |
- |
578 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
579 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
580 |
- >=dev-libs/boost-1.60:=[threads(+)] |
581 |
- >=dev-libs/libpcre-8.41[cxx] |
582 |
- dev-libs/snowball-stemmer |
583 |
- net-libs/libpcap |
584 |
- >=sys-libs/zlib-1.2.11:= |
585 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
586 |
- mms-agent? ( app-admin/mms-agent ) |
587 |
- ssl? ( |
588 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
589 |
- libressl? ( dev-libs/libressl:0= ) |
590 |
- )" |
591 |
-DEPEND="${RDEPEND} |
592 |
- ${PYTHON_DEPS} |
593 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
594 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
595 |
- virtual/python-typing[${PYTHON_USEDEP}] |
596 |
- sys-libs/ncurses:0= |
597 |
- sys-libs/readline:0= |
598 |
- debug? ( dev-util/valgrind ) |
599 |
- test? ( |
600 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
601 |
- )" |
602 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
603 |
- |
604 |
-PATCHES=( |
605 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
606 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
607 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
608 |
-) |
609 |
- |
610 |
-S="${WORKDIR}/${MY_P}" |
611 |
- |
612 |
-pkg_pretend() { |
613 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
614 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
615 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
616 |
- ewarn "successively upgrade major releases until you have upgraded" |
617 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
618 |
- else |
619 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
620 |
- fi |
621 |
- fi |
622 |
-} |
623 |
- |
624 |
-pkg_setup() { |
625 |
- enewgroup mongodb |
626 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
627 |
- |
628 |
- python-single-r1_pkg_setup |
629 |
-} |
630 |
- |
631 |
-src_prepare() { |
632 |
- default |
633 |
- |
634 |
- # remove bundled libs |
635 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
636 |
- |
637 |
- # remove compass |
638 |
- rm -r src/mongo/installer/compass || die |
639 |
-} |
640 |
- |
641 |
-src_configure() { |
642 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
643 |
- # --use-system-icu fails tests |
644 |
- # --use-system-tcmalloc is strongly NOT recommended: |
645 |
- scons_opts=( |
646 |
- CC="$(tc-getCC)" |
647 |
- CXX="$(tc-getCXX)" |
648 |
- |
649 |
- --disable-warnings-as-errors |
650 |
- --use-system-boost |
651 |
- --use-system-pcre |
652 |
- --use-system-snappy |
653 |
- --use-system-stemmer |
654 |
- --use-system-yaml |
655 |
- --use-system-zlib |
656 |
- ) |
657 |
- |
658 |
- use debug && scons_opts+=( --dbg=on ) |
659 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
660 |
- use lto && scons_opts+=( --lto=on ) |
661 |
- use ssl && scons_opts+=( --ssl ) |
662 |
- |
663 |
- # respect mongoDB upstream's basic recommendations |
664 |
- # see bug #536688 and #526114 |
665 |
- if ! use debug; then |
666 |
- filter-flags '-m*' |
667 |
- filter-flags '-O?' |
668 |
- fi |
669 |
- |
670 |
- default |
671 |
-} |
672 |
- |
673 |
-src_compile() { |
674 |
- escons "${scons_opts[@]}" core tools |
675 |
-} |
676 |
- |
677 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
678 |
-src_test() { |
679 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
680 |
-} |
681 |
- |
682 |
-src_install() { |
683 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
684 |
- |
685 |
- doman debian/mongo*.1 |
686 |
- dodoc README docs/building.md |
687 |
- |
688 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
689 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
690 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
691 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
692 |
- |
693 |
- insinto /etc |
694 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
695 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
696 |
- |
697 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
698 |
- |
699 |
- insinto /etc/logrotate.d/ |
700 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
701 |
- |
702 |
- # see bug #526114 |
703 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
704 |
- |
705 |
- local x |
706 |
- for x in /var/{lib,log}/${PN}; do |
707 |
- diropts -m0750 -o mongodb -g mongodb |
708 |
- keepdir "${x}" |
709 |
- done |
710 |
-} |
711 |
- |
712 |
-pkg_postinst() { |
713 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
714 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
715 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
716 |
-} |