1 |
commit: 1c8aaefa2f830d63f8b4168014232c334104ccc3 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Mar 18 05:50:48 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 28 17:39:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c8aaefa |
7 |
|
8 |
dev-db/mongodb: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
dev-db/mongodb/Manifest | 4 - |
15 |
dev-db/mongodb/mongodb-3.6.9.ebuild | 163 ----------------------------------- |
16 |
dev-db/mongodb/mongodb-4.0.3.ebuild | 163 ----------------------------------- |
17 |
dev-db/mongodb/mongodb-4.0.4.ebuild | 163 ----------------------------------- |
18 |
dev-db/mongodb/mongodb-4.0.5.ebuild | 164 ------------------------------------ |
19 |
5 files changed, 657 deletions(-) |
20 |
|
21 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
22 |
index c81bed6daba..033611baabb 100644 |
23 |
--- a/dev-db/mongodb/Manifest |
24 |
+++ b/dev-db/mongodb/Manifest |
25 |
@@ -1,8 +1,4 @@ |
26 |
DIST mongodb-src-r3.4.16.tar.gz 40093657 BLAKE2B 7123444dbdd0b2ad3adfb3391e0177d33c1b6c6a4ea83027821c564faad047a736e52926bc15c58bef59c18282436e913fd3bc9963705e030da01356f83ea367 SHA512 e22eb1fe2a832fed8305200614988c5ecfd619cee44fe2263bffa151732c0e26584084e64065dbc65152be6e5c1767a538193770359bea92f3703c72239075db |
27 |
DIST mongodb-src-r3.6.10.tar.gz 40562421 BLAKE2B c4fbb9e9586350503df84b344e5c0e05176e681f50a0e96551f157c81c85b71e45c235f0788c1886aa5b6b79fa452afa1a6e8de4acfbfe4c4a0ae62379599f86 SHA512 e0833885a2b1fc14d99749304bd83931a9016039fa32826f9961653601975474f37003eb40fbe8cc5b09644ea447cdc59ccf63110b527d51d4c772cfff88804f |
28 |
DIST mongodb-src-r3.6.8.tar.gz 40428295 BLAKE2B cc02f73cfb49fb38ccabaad5a02610ce73fc41895ce944e48669e254bcbc70c8872a1bd7f8e04371fae4fcd9af2466fd8550367dd1d1da5cee50b86fc5023bf2 SHA512 c981f3269be3bafb59aa89d36c39a801fd7007b60db6c09b4616a559aaf8e50b34cabbdac2b59f23552c0a5112913fba468f7e2ed9a5f4daa3702dcffdf34999 |
29 |
-DIST mongodb-src-r3.6.9.tar.gz 40515460 BLAKE2B 5637e7b5cc4b3c7874fedacbe0b05dac1b3dde3ae1c58ecbfc8caf9526c0a8696bdfa1b9b40ffd1adfc81ef90fcb7a41de2c53ccce09da8b7879b9ab2f238eb7 SHA512 00202820570ba5cdc16951b1cb0e9b52bcb8362cee252c857b84d9107761f4061496fc3379ceae6e052f14477d702714384ad1b24eca2c4173af2506a8d1f39f |
30 |
-DIST mongodb-src-r4.0.3.tar.gz 49435646 BLAKE2B 1663823d48ec6d93b30b4d68a09bab164291530fd4966fcdd07ffbaceaf25d9fc5c7480d0d794fdd374fa3a2d11f19d87556cf0c47198a13f9d8fb5ccf7f0343 SHA512 c77a01d8d16322514f42030c46a0aa9cedb90f186375222eeb31648060265006b5e929bdde6ca8e7ecd71018f7c19f5bade463d98db0f053d586ffc8adc99550 |
31 |
-DIST mongodb-src-r4.0.4.tar.gz 49462543 BLAKE2B a1193ebc6ed818d4e5f27bff1792b6c6c193ff063cae36f2f7adcf63a3b780658d221691c58f42e494ec514d78c81d093067ea7dce8c7158a28846434f493821 SHA512 7e434c8ac715793d7b0015116af72cde766bae953cdc38653a2746ef4a76898dec58f8ee607d9357b87fa11e5a1f0248ae739473ded2d3dcca2b2801434b07e2 |
32 |
-DIST mongodb-src-r4.0.5.tar.gz 49507822 BLAKE2B ca5853c632631a06300247d4d3bfee153ffdde2fcbd313ab95472e6721d92a67f464af32c745a297401132287f66b1b78e0eebe583008689d1580b99422d7e68 SHA512 4a544ad40d75583b38a6a97a0a6e4fae7d0d7a740aa1f993adac6855c5f7fae43b4cf6966e58d16ec716e8b93c770a3dc3997c2785597b5e37dfc7aafa516976 |
33 |
DIST mongodb-src-r4.0.6.tar.gz 49511958 BLAKE2B c372bb858528cb825db4edf11db636ad71c63148b84838f64cefe886b37631482c1e22eb99dfc557c3f51706d1d2f61b893bfd301cdeb8772a2d85ad75f8f48c SHA512 72e04154cf221833522bb0c2cc99acc2a86d20e2dcbf1f8c6ff0a870edf7b2529a55b6821c664805c00c12a311ae374a276ef1e3ccea1ed84fb125bb8726906a |
34 |
|
35 |
diff --git a/dev-db/mongodb/mongodb-3.6.9.ebuild b/dev-db/mongodb/mongodb-3.6.9.ebuild |
36 |
deleted file mode 100644 |
37 |
index 79aed7408b8..00000000000 |
38 |
--- a/dev-db/mongodb/mongodb-3.6.9.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,163 +0,0 @@ |
41 |
-# Copyright 1999-2019 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=7 |
45 |
- |
46 |
-PYTHON_COMPAT=( python2_7 ) |
47 |
- |
48 |
-SCONS_MIN_VERSION="2.5.0" |
49 |
-CHECKREQS_DISK_BUILD="2400M" |
50 |
-CHECKREQS_DISK_USR="512M" |
51 |
-CHECKREQS_MEMORY="1024M" |
52 |
- |
53 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
54 |
- |
55 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
56 |
- |
57 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
58 |
-HOMEPAGE="https://www.mongodb.com" |
59 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
60 |
- |
61 |
-LICENSE="Apache-2.0 SSPL-1" |
62 |
-SLOT="0" |
63 |
-KEYWORDS="~amd64" |
64 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
65 |
- |
66 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
67 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
68 |
- >=dev-libs/boost-1.60:=[threads(+)] |
69 |
- >=dev-libs/libpcre-8.41[cxx] |
70 |
- dev-libs/snowball-stemmer |
71 |
- net-libs/libpcap |
72 |
- >=sys-libs/zlib-1.2.8:= |
73 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
74 |
- mms-agent? ( app-admin/mms-agent ) |
75 |
- ssl? ( |
76 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
77 |
- libressl? ( dev-libs/libressl:0= ) |
78 |
- )" |
79 |
-DEPEND="${RDEPEND} |
80 |
- ${PYTHON_DEPS} |
81 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
82 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
83 |
- virtual/python-typing[${PYTHON_USEDEP}] |
84 |
- sys-libs/ncurses:0= |
85 |
- sys-libs/readline:0= |
86 |
- debug? ( dev-util/valgrind ) |
87 |
- test? ( |
88 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
89 |
- )" |
90 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
91 |
- |
92 |
-PATCHES=( |
93 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
94 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
95 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
96 |
-) |
97 |
- |
98 |
-S=${WORKDIR}/${MY_P} |
99 |
- |
100 |
-pkg_pretend() { |
101 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
102 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.4; then |
103 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
104 |
- ewarn "successively upgrade major releases until you have upgraded" |
105 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
106 |
- else |
107 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
108 |
- fi |
109 |
- fi |
110 |
-} |
111 |
- |
112 |
-pkg_setup() { |
113 |
- enewgroup mongodb |
114 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
115 |
- |
116 |
- python-single-r1_pkg_setup |
117 |
-} |
118 |
- |
119 |
-src_prepare() { |
120 |
- default |
121 |
- |
122 |
- # remove bundled libs |
123 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
124 |
- |
125 |
- # remove compass |
126 |
- rm -r src/mongo/installer/compass || die |
127 |
-} |
128 |
- |
129 |
-src_configure() { |
130 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
131 |
- # --use-system-icu fails tests |
132 |
- # --use-system-tcmalloc is strongly NOT recommended: |
133 |
- scons_opts=( |
134 |
- CC="$(tc-getCC)" |
135 |
- CXX="$(tc-getCXX)" |
136 |
- |
137 |
- --disable-warnings-as-errors |
138 |
- --use-system-boost |
139 |
- --use-system-pcre |
140 |
- --use-system-snappy |
141 |
- --use-system-stemmer |
142 |
- --use-system-yaml |
143 |
- --use-system-zlib |
144 |
- ) |
145 |
- |
146 |
- use debug && scons_opts+=( --dbg=on ) |
147 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
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-4.0.3.ebuild b/dev-db/mongodb/mongodb-4.0.3.ebuild |
206 |
deleted file mode 100644 |
207 |
index 98aa398f9f4..00000000000 |
208 |
--- a/dev-db/mongodb/mongodb-4.0.3.ebuild |
209 |
+++ /dev/null |
210 |
@@ -1,163 +0,0 @@ |
211 |
-# Copyright 1999-2018 Gentoo Authors |
212 |
-# Distributed under the terms of the GNU General Public License v2 |
213 |
- |
214 |
-EAPI=6 |
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 eapi7-ver 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="AGPL-3 Apache-2.0" |
232 |
-SLOT="0" |
233 |
-KEYWORDS="~amd64" |
234 |
-IUSE="debug kerberos libressl 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.11:= |
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}-4.0.0-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.6; then |
273 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
274 |
- ewarn "successively upgrade major releases until you have upgraded" |
275 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
276 |
- else |
277 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 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 ssl && scons_opts+=( --ssl ) |
319 |
- |
320 |
- # respect mongoDB upstream's basic recommendations |
321 |
- # see bug #536688 and #526114 |
322 |
- if ! use debug; then |
323 |
- filter-flags '-m*' |
324 |
- filter-flags '-O?' |
325 |
- fi |
326 |
- |
327 |
- default |
328 |
-} |
329 |
- |
330 |
-src_compile() { |
331 |
- escons "${scons_opts[@]}" core tools |
332 |
-} |
333 |
- |
334 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
335 |
-src_test() { |
336 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
337 |
-} |
338 |
- |
339 |
-src_install() { |
340 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
341 |
- |
342 |
- doman debian/mongo*.1 |
343 |
- dodoc README docs/building.md |
344 |
- |
345 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
346 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
347 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
348 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
349 |
- |
350 |
- insinto /etc |
351 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
352 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
353 |
- |
354 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
355 |
- |
356 |
- insinto /etc/logrotate.d/ |
357 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
358 |
- |
359 |
- # see bug #526114 |
360 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
361 |
- |
362 |
- local x |
363 |
- for x in /var/{lib,log}/${PN}; do |
364 |
- diropts -m0750 -o mongodb -g mongodb |
365 |
- keepdir "${x}" |
366 |
- done |
367 |
-} |
368 |
- |
369 |
-pkg_postinst() { |
370 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
371 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
372 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
373 |
-} |
374 |
|
375 |
diff --git a/dev-db/mongodb/mongodb-4.0.4.ebuild b/dev-db/mongodb/mongodb-4.0.4.ebuild |
376 |
deleted file mode 100644 |
377 |
index 60ba0d3ebd7..00000000000 |
378 |
--- a/dev-db/mongodb/mongodb-4.0.4.ebuild |
379 |
+++ /dev/null |
380 |
@@ -1,163 +0,0 @@ |
381 |
-# Copyright 1999-2019 Gentoo Authors |
382 |
-# Distributed under the terms of the GNU General Public License v2 |
383 |
- |
384 |
-EAPI=6 |
385 |
- |
386 |
-PYTHON_COMPAT=( python2_7 ) |
387 |
- |
388 |
-SCONS_MIN_VERSION="2.5.0" |
389 |
-CHECKREQS_DISK_BUILD="2400M" |
390 |
-CHECKREQS_DISK_USR="512M" |
391 |
-CHECKREQS_MEMORY="1024M" |
392 |
- |
393 |
-inherit check-reqs eapi7-ver flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
394 |
- |
395 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
396 |
- |
397 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
398 |
-HOMEPAGE="https://www.mongodb.com" |
399 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
400 |
- |
401 |
-LICENSE="Apache-2.0 SSPL-1" |
402 |
-SLOT="0" |
403 |
-KEYWORDS="~amd64" |
404 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
405 |
- |
406 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
407 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
408 |
- >=dev-libs/boost-1.60:=[threads(+)] |
409 |
- >=dev-libs/libpcre-8.41[cxx] |
410 |
- dev-libs/snowball-stemmer |
411 |
- net-libs/libpcap |
412 |
- >=sys-libs/zlib-1.2.11:= |
413 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
414 |
- mms-agent? ( app-admin/mms-agent ) |
415 |
- ssl? ( |
416 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
417 |
- libressl? ( dev-libs/libressl:0= ) |
418 |
- )" |
419 |
-DEPEND="${RDEPEND} |
420 |
- ${PYTHON_DEPS} |
421 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
422 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
423 |
- virtual/python-typing[${PYTHON_USEDEP}] |
424 |
- sys-libs/ncurses:0= |
425 |
- sys-libs/readline:0= |
426 |
- debug? ( dev-util/valgrind ) |
427 |
- test? ( |
428 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
429 |
- )" |
430 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
431 |
- |
432 |
-PATCHES=( |
433 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
434 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
435 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
436 |
-) |
437 |
- |
438 |
-S=${WORKDIR}/${MY_P} |
439 |
- |
440 |
-pkg_pretend() { |
441 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
442 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
443 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
444 |
- ewarn "successively upgrade major releases until you have upgraded" |
445 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
446 |
- else |
447 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
448 |
- fi |
449 |
- fi |
450 |
-} |
451 |
- |
452 |
-pkg_setup() { |
453 |
- enewgroup mongodb |
454 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
455 |
- |
456 |
- python-single-r1_pkg_setup |
457 |
-} |
458 |
- |
459 |
-src_prepare() { |
460 |
- default |
461 |
- |
462 |
- # remove bundled libs |
463 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
464 |
- |
465 |
- # remove compass |
466 |
- rm -r src/mongo/installer/compass || die |
467 |
-} |
468 |
- |
469 |
-src_configure() { |
470 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
471 |
- # --use-system-icu fails tests |
472 |
- # --use-system-tcmalloc is strongly NOT recommended: |
473 |
- scons_opts=( |
474 |
- CC="$(tc-getCC)" |
475 |
- CXX="$(tc-getCXX)" |
476 |
- |
477 |
- --disable-warnings-as-errors |
478 |
- --use-system-boost |
479 |
- --use-system-pcre |
480 |
- --use-system-snappy |
481 |
- --use-system-stemmer |
482 |
- --use-system-yaml |
483 |
- --use-system-zlib |
484 |
- ) |
485 |
- |
486 |
- use debug && scons_opts+=( --dbg=on ) |
487 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
488 |
- use ssl && scons_opts+=( --ssl ) |
489 |
- |
490 |
- # respect mongoDB upstream's basic recommendations |
491 |
- # see bug #536688 and #526114 |
492 |
- if ! use debug; then |
493 |
- filter-flags '-m*' |
494 |
- filter-flags '-O?' |
495 |
- fi |
496 |
- |
497 |
- default |
498 |
-} |
499 |
- |
500 |
-src_compile() { |
501 |
- escons "${scons_opts[@]}" core tools |
502 |
-} |
503 |
- |
504 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
505 |
-src_test() { |
506 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
507 |
-} |
508 |
- |
509 |
-src_install() { |
510 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
511 |
- |
512 |
- doman debian/mongo*.1 |
513 |
- dodoc README docs/building.md |
514 |
- |
515 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
516 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
517 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
518 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
519 |
- |
520 |
- insinto /etc |
521 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
522 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
523 |
- |
524 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
525 |
- |
526 |
- insinto /etc/logrotate.d/ |
527 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
528 |
- |
529 |
- # see bug #526114 |
530 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
531 |
- |
532 |
- local x |
533 |
- for x in /var/{lib,log}/${PN}; do |
534 |
- diropts -m0750 -o mongodb -g mongodb |
535 |
- keepdir "${x}" |
536 |
- done |
537 |
-} |
538 |
- |
539 |
-pkg_postinst() { |
540 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
541 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
542 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
543 |
-} |
544 |
|
545 |
diff --git a/dev-db/mongodb/mongodb-4.0.5.ebuild b/dev-db/mongodb/mongodb-4.0.5.ebuild |
546 |
deleted file mode 100644 |
547 |
index bb2a9fb04dc..00000000000 |
548 |
--- a/dev-db/mongodb/mongodb-4.0.5.ebuild |
549 |
+++ /dev/null |
550 |
@@ -1,164 +0,0 @@ |
551 |
-# Copyright 1999-2019 Gentoo Authors |
552 |
-# Distributed under the terms of the GNU General Public License v2 |
553 |
- |
554 |
-EAPI=7 |
555 |
- |
556 |
-PYTHON_COMPAT=( python2_7 ) |
557 |
- |
558 |
-SCONS_MIN_VERSION="2.5.0" |
559 |
-CHECKREQS_DISK_BUILD="2400M" |
560 |
-CHECKREQS_DISK_USR="512M" |
561 |
-CHECKREQS_MEMORY="1024M" |
562 |
- |
563 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
564 |
- |
565 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
566 |
- |
567 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
568 |
-HOMEPAGE="https://www.mongodb.com" |
569 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
570 |
- |
571 |
-LICENSE="Apache-2.0 SSPL-1" |
572 |
-SLOT="0" |
573 |
-KEYWORDS="~amd64" |
574 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
575 |
- |
576 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
577 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
578 |
- >=dev-libs/boost-1.60:=[threads(+)] |
579 |
- >=dev-libs/libpcre-8.41[cxx] |
580 |
- dev-libs/snowball-stemmer |
581 |
- net-libs/libpcap |
582 |
- >=sys-libs/zlib-1.2.11:= |
583 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
584 |
- mms-agent? ( app-admin/mms-agent ) |
585 |
- ssl? ( |
586 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
587 |
- libressl? ( dev-libs/libressl:0= ) |
588 |
- )" |
589 |
-DEPEND="${RDEPEND} |
590 |
- ${PYTHON_DEPS} |
591 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
592 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
593 |
- virtual/python-typing[${PYTHON_USEDEP}] |
594 |
- sys-libs/ncurses:0= |
595 |
- sys-libs/readline:0= |
596 |
- debug? ( dev-util/valgrind ) |
597 |
- test? ( |
598 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
599 |
- )" |
600 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
601 |
- |
602 |
-PATCHES=( |
603 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
604 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
605 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
606 |
-) |
607 |
- |
608 |
-S="${WORKDIR}/${MY_P}" |
609 |
- |
610 |
-pkg_pretend() { |
611 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
612 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
613 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
614 |
- ewarn "successively upgrade major releases until you have upgraded" |
615 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
616 |
- else |
617 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
618 |
- fi |
619 |
- fi |
620 |
-} |
621 |
- |
622 |
-pkg_setup() { |
623 |
- enewgroup mongodb |
624 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
625 |
- |
626 |
- python-single-r1_pkg_setup |
627 |
-} |
628 |
- |
629 |
-src_prepare() { |
630 |
- default |
631 |
- |
632 |
- # remove bundled libs |
633 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
634 |
- |
635 |
- # remove compass |
636 |
- rm -r src/mongo/installer/compass || die |
637 |
-} |
638 |
- |
639 |
-src_configure() { |
640 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
641 |
- # --use-system-icu fails tests |
642 |
- # --use-system-tcmalloc is strongly NOT recommended: |
643 |
- scons_opts=( |
644 |
- CC="$(tc-getCC)" |
645 |
- CXX="$(tc-getCXX)" |
646 |
- |
647 |
- --disable-warnings-as-errors |
648 |
- --use-system-boost |
649 |
- --use-system-pcre |
650 |
- --use-system-snappy |
651 |
- --use-system-stemmer |
652 |
- --use-system-yaml |
653 |
- --use-system-zlib |
654 |
- ) |
655 |
- |
656 |
- use debug && scons_opts+=( --dbg=on ) |
657 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
658 |
- use lto && scons_opts+=( --lto=on ) |
659 |
- use ssl && scons_opts+=( --ssl ) |
660 |
- |
661 |
- # respect mongoDB upstream's basic recommendations |
662 |
- # see bug #536688 and #526114 |
663 |
- if ! use debug; then |
664 |
- filter-flags '-m*' |
665 |
- filter-flags '-O?' |
666 |
- fi |
667 |
- |
668 |
- default |
669 |
-} |
670 |
- |
671 |
-src_compile() { |
672 |
- escons "${scons_opts[@]}" core tools |
673 |
-} |
674 |
- |
675 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
676 |
-src_test() { |
677 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
678 |
-} |
679 |
- |
680 |
-src_install() { |
681 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
682 |
- |
683 |
- doman debian/mongo*.1 |
684 |
- dodoc README docs/building.md |
685 |
- |
686 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
687 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
688 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
689 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
690 |
- |
691 |
- insinto /etc |
692 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
693 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
694 |
- |
695 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
696 |
- |
697 |
- insinto /etc/logrotate.d/ |
698 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
699 |
- |
700 |
- # see bug #526114 |
701 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
702 |
- |
703 |
- local x |
704 |
- for x in /var/{lib,log}/${PN}; do |
705 |
- diropts -m0750 -o mongodb -g mongodb |
706 |
- keepdir "${x}" |
707 |
- done |
708 |
-} |
709 |
- |
710 |
-pkg_postinst() { |
711 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
712 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
713 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
714 |
-} |