1 |
commit: 1eb8e5402f3997aef9f29214bd9ece4309787f90 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 2 06:57:23 2018 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 2 14:33:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eb8e540 |
7 |
|
8 |
dev-db/mongodb: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-db/mongodb/Manifest | 3 - |
13 |
dev-db/mongodb/mongodb-3.2.12.ebuild | 192 ----------------------------------- |
14 |
dev-db/mongodb/mongodb-3.2.13.ebuild | 192 ----------------------------------- |
15 |
dev-db/mongodb/mongodb-3.2.16.ebuild | 191 ---------------------------------- |
16 |
4 files changed, 578 deletions(-) |
17 |
|
18 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
19 |
index 22810fb9ec9..83911022d0e 100644 |
20 |
--- a/dev-db/mongodb/Manifest |
21 |
+++ b/dev-db/mongodb/Manifest |
22 |
@@ -1,8 +1,5 @@ |
23 |
DIST mongodb-src-r3.0.14.tar.gz 28093922 BLAKE2B c36f1868aaf8d149550d9e8fcfa3598b917426f896cdb9e1d12fb047345011b06975719d24db3ffadadf6e1f6007a3e32768eaaa9da9ec8f340c7a49c9239b45 SHA512 477fab29ca0ad2a0f24b895e30dc4770af8d6a1a57f3c10a02a989b58dd22510db554da0418129d4e81958342ad169696eed4b86bf5aa73916c7cec879db1152 |
24 |
DIST mongodb-src-r3.0.15.tar.gz 28096395 BLAKE2B 123194723e7f1057bc5497ce9bf51f8dd2d65495f6e2c84adde22e3b41cace9c0bce8134a7b85fa1c8e89ce953a3df780eae013d61bba44bbf9339c1e2e478af SHA512 21cec235a691dad7d1d2c625ef04a851b59223b8f2c0bdc979f2a0b8249ed46b4e62753fd595afa7b74bce13851d1f6547e54d8ffad8ba1f56e36db664f5b27e |
25 |
-DIST mongodb-src-r3.2.12.tar.gz 29178424 BLAKE2B 212a2aaac62460812874bb4d924f9cedcb591699367a72ace620e9635a6511048efa3f1202a51e4b58ca8e5f8879fbe4638284c5d3899290bff6b1ca9be565a3 SHA512 0c4ddaaddf15d97957faff46dc4a3f79c545cacc8a56dbe1d063778117ba9b645323b0cb7fd054fae805d092b8372c411a82e3370244b7939bda20a65fdb951c |
26 |
-DIST mongodb-src-r3.2.13.tar.gz 29273616 BLAKE2B 9fb9851953ef1561340bcb33cac6a2c96459fd68cb1d55af05faeddf50306bd545b40eef19adeb470b8d17abddc2cb76793c3e42d0e3ce01aecef816e67c0277 SHA512 649b599da65fc205a6e18cde82da6153fb4c03a21cf679e18fb57f705ac168690a37f9520be1242278bc0fe441fda08f1c10c9924cabc636ba153c545d32f91d |
27 |
-DIST mongodb-src-r3.2.16.tar.gz 29293555 BLAKE2B e2863ed0210bc66fcf2c80e28668674c254e78ee750a0eb84c45569c2224157f1db65aca5296a0ed0c32ef83ab6269de25bd69dbf1f0ef54b021bb0aecd2e46a SHA512 ba57aae430959f7df036b7e19e1b7d81956184bededd35631616c6e3dc9423dc79a50ab3265bc48b06d198a7043bca902aee2ea75954e38151ebead5b5ab2db2 |
28 |
DIST mongodb-src-r3.2.17.tar.gz 29295394 BLAKE2B 3fa9d8fa0b50b72c3b2aa86980dd4d46bd053f23d044e321d6f98f5edb76c566bf00455cf745110a8c39355843664d9d1fbbdf554fc8696de73db2b270446adc SHA512 0d6a01278bc61805afd164e4a29abe150a5a96d551ed2c7c5d385b269924a7c5f065315e4f19c0ab070aa275ac03447959af45f33826457e5db0c5f98e623512 |
29 |
DIST mongodb-src-r3.4.10.tar.gz 39959937 BLAKE2B f14f081525f694b939bc21f8cb6364c2a37573c0e1867322dd2062dc167b112751579c3e2d76730b3ff07b0c6bbfd36666bbea99162b7c10eef62d92eb1b0850 SHA512 6293dde40a8433477ba3b1cf77abbdb32b28ce58279cc616b488647c8ab71b5ab3eab2146058c4a74b9e00f0938f1415020e2f26ea01f2b29dd78a1a38d58c3a |
30 |
DIST mongodb-src-r3.4.13.tar.gz 39992720 BLAKE2B 5620711c5ffddd9a96c29be1f2801a37f30536d1b7afe5a7b339a41cacf1f97caf8d03aafdf1d6b71cc488e48f5066ebc49a63a6bf318483d552863cd47a0c0e SHA512 295dbb38d44c99e0dce46c5e4aa5d73c64d813a3767e71a7187aff05e30f896d283ca7ef19c0a7bbd036eecf3d419e38ea3bc7d98ba93d12296c49e565df0f66 |
31 |
|
32 |
diff --git a/dev-db/mongodb/mongodb-3.2.12.ebuild b/dev-db/mongodb/mongodb-3.2.12.ebuild |
33 |
deleted file mode 100644 |
34 |
index e6fac48d7a7..00000000000 |
35 |
--- a/dev-db/mongodb/mongodb-3.2.12.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,192 +0,0 @@ |
38 |
-# Copyright 1999-2017 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
- |
41 |
-EAPI=5 |
42 |
-SCONS_MIN_VERSION="2.3.0" |
43 |
-CHECKREQS_DISK_BUILD="2400M" |
44 |
-CHECKREQS_DISK_USR="512M" |
45 |
-CHECKREQS_MEMORY="1024M" |
46 |
- |
47 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
48 |
- |
49 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
50 |
- |
51 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
52 |
-HOMEPAGE="http://www.mongodb.org" |
53 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
54 |
- |
55 |
-LICENSE="AGPL-3 Apache-2.0" |
56 |
-SLOT="0" |
57 |
-KEYWORDS="~amd64 ~x86" |
58 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
59 |
- |
60 |
-RDEPEND=">=app-arch/snappy-1.1.2 |
61 |
- >dev-cpp/yaml-cpp-0.5.2 |
62 |
- >=dev-libs/boost-1.57[threads(+)] |
63 |
- >=dev-libs/libpcre-8.39[cxx] |
64 |
- dev-libs/snowball-stemmer |
65 |
- net-libs/libpcap |
66 |
- >=sys-libs/zlib-1.2.8 |
67 |
- mms-agent? ( app-admin/mms-agent ) |
68 |
- ssl? ( |
69 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
70 |
- libressl? ( dev-libs/libressl:0= ) |
71 |
- )" |
72 |
-DEPEND="${RDEPEND} |
73 |
- >=sys-devel/gcc-4.8.2:* |
74 |
- sys-libs/ncurses |
75 |
- sys-libs/readline |
76 |
- debug? ( dev-util/valgrind ) |
77 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
78 |
- test? ( |
79 |
- dev-python/pymongo |
80 |
- dev-python/pyyaml |
81 |
- )" |
82 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
83 |
- |
84 |
-S=${WORKDIR}/${MY_P} |
85 |
- |
86 |
-pkg_pretend() { |
87 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
88 |
- ewarn "To upgrade an existing MongoDB deployment to 3.2, you must be" |
89 |
- ewarn "running a 3.0-series release. Please update to the latest 3.0" |
90 |
- ewarn "release before continuing if wish to keep your data." |
91 |
- fi |
92 |
-} |
93 |
- |
94 |
-pkg_setup() { |
95 |
- enewgroup mongodb |
96 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
97 |
- |
98 |
- # Maintainer notes |
99 |
- # |
100 |
- # --use-system-tcmalloc is strongly NOT recommended: |
101 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
102 |
- |
103 |
- scons_opts=( |
104 |
- CC="$(tc-getCC)" |
105 |
- CXX="$(tc-getCXX)" |
106 |
- |
107 |
- --disable-warnings-as-errors |
108 |
- --use-system-boost |
109 |
- --use-system-pcre |
110 |
- --use-system-snappy |
111 |
- --use-system-stemmer |
112 |
- --use-system-yaml |
113 |
- --use-system-zlib |
114 |
- ) |
115 |
- |
116 |
- # wiredtiger not supported on 32bit platforms #572166 |
117 |
- use x86 && scons_opts+=( --wiredtiger=off ) |
118 |
- |
119 |
- if use debug; then |
120 |
- scons_opts+=( --dbg=on ) |
121 |
- fi |
122 |
- |
123 |
- if use prefix; then |
124 |
- scons_opts+=( |
125 |
- --cpppath="${EPREFIX}/usr/include" |
126 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
127 |
- ) |
128 |
- fi |
129 |
- |
130 |
- if use kerberos; then |
131 |
- scons_opts+=( --use-sasl-client ) |
132 |
- fi |
133 |
- |
134 |
- if use ssl; then |
135 |
- scons_opts+=( --ssl ) |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-src_prepare() { |
140 |
- epatch \ |
141 |
- "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" \ |
142 |
- "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch" |
143 |
- if has_version ">=dev-libs/boost-1.62"; then |
144 |
- epatch "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" |
145 |
- fi |
146 |
- epatch_user |
147 |
-} |
148 |
- |
149 |
-src_compile() { |
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 |
- escons "${scons_opts[@]}" core tools |
157 |
-} |
158 |
- |
159 |
-src_install() { |
160 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
161 |
- |
162 |
- for x in /var/{lib,log}/${PN}; do |
163 |
- keepdir "${x}" |
164 |
- fowners mongodb:mongodb "${x}" |
165 |
- done |
166 |
- |
167 |
- doman debian/mongo*.1 |
168 |
- dodoc README docs/building.md |
169 |
- |
170 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
171 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
172 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
173 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
174 |
- |
175 |
- insinto /etc |
176 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
177 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
178 |
- |
179 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
180 |
- |
181 |
- insinto /etc/logrotate.d/ |
182 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
183 |
- |
184 |
- # see bug #526114 |
185 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
186 |
-} |
187 |
- |
188 |
-pkg_preinst() { |
189 |
- # wrt bug #461466 |
190 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
191 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
192 |
- fi |
193 |
-} |
194 |
- |
195 |
-src_test() { |
196 |
- # this one test fails |
197 |
- rm jstests/core/repl_write_threads_start_param.js |
198 |
- |
199 |
- ./buildscripts/resmoke.py --dbpathPrefix=test --suites core || die "Tests failed" |
200 |
-} |
201 |
- |
202 |
-pkg_postinst() { |
203 |
- local v |
204 |
- for v in ${REPLACING_VERSIONS}; do |
205 |
- if ! version_is_at_least 3.0 ${v}; then |
206 |
- ewarn "!! IMPORTANT !!" |
207 |
- ewarn " " |
208 |
- ewarn "${PN} configuration files have changed !" |
209 |
- ewarn " " |
210 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
211 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
212 |
- ewarn " " |
213 |
- ewarn "Make sure you also follow the upgrading process :" |
214 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
215 |
- ewarn " " |
216 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
217 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
218 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
219 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
220 |
- break |
221 |
- fi |
222 |
- done |
223 |
- |
224 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
225 |
- ewarn " https://docs.mongodb.org/manual/release-notes/3.2/" |
226 |
- ewarn " https://docs.mongodb.org/master/release-notes/3.2-upgrade/" |
227 |
- ewarn |
228 |
- ewarn " Starting in 3.2, MongoDB uses the WiredTiger as the default storage engine." |
229 |
-} |
230 |
|
231 |
diff --git a/dev-db/mongodb/mongodb-3.2.13.ebuild b/dev-db/mongodb/mongodb-3.2.13.ebuild |
232 |
deleted file mode 100644 |
233 |
index e6fac48d7a7..00000000000 |
234 |
--- a/dev-db/mongodb/mongodb-3.2.13.ebuild |
235 |
+++ /dev/null |
236 |
@@ -1,192 +0,0 @@ |
237 |
-# Copyright 1999-2017 Gentoo Foundation |
238 |
-# Distributed under the terms of the GNU General Public License v2 |
239 |
- |
240 |
-EAPI=5 |
241 |
-SCONS_MIN_VERSION="2.3.0" |
242 |
-CHECKREQS_DISK_BUILD="2400M" |
243 |
-CHECKREQS_DISK_USR="512M" |
244 |
-CHECKREQS_MEMORY="1024M" |
245 |
- |
246 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
247 |
- |
248 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
249 |
- |
250 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
251 |
-HOMEPAGE="http://www.mongodb.org" |
252 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
253 |
- |
254 |
-LICENSE="AGPL-3 Apache-2.0" |
255 |
-SLOT="0" |
256 |
-KEYWORDS="~amd64 ~x86" |
257 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
258 |
- |
259 |
-RDEPEND=">=app-arch/snappy-1.1.2 |
260 |
- >dev-cpp/yaml-cpp-0.5.2 |
261 |
- >=dev-libs/boost-1.57[threads(+)] |
262 |
- >=dev-libs/libpcre-8.39[cxx] |
263 |
- dev-libs/snowball-stemmer |
264 |
- net-libs/libpcap |
265 |
- >=sys-libs/zlib-1.2.8 |
266 |
- mms-agent? ( app-admin/mms-agent ) |
267 |
- ssl? ( |
268 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
269 |
- libressl? ( dev-libs/libressl:0= ) |
270 |
- )" |
271 |
-DEPEND="${RDEPEND} |
272 |
- >=sys-devel/gcc-4.8.2:* |
273 |
- sys-libs/ncurses |
274 |
- sys-libs/readline |
275 |
- debug? ( dev-util/valgrind ) |
276 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
277 |
- test? ( |
278 |
- dev-python/pymongo |
279 |
- dev-python/pyyaml |
280 |
- )" |
281 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
282 |
- |
283 |
-S=${WORKDIR}/${MY_P} |
284 |
- |
285 |
-pkg_pretend() { |
286 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
287 |
- ewarn "To upgrade an existing MongoDB deployment to 3.2, you must be" |
288 |
- ewarn "running a 3.0-series release. Please update to the latest 3.0" |
289 |
- ewarn "release before continuing if wish to keep your data." |
290 |
- fi |
291 |
-} |
292 |
- |
293 |
-pkg_setup() { |
294 |
- enewgroup mongodb |
295 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
296 |
- |
297 |
- # Maintainer notes |
298 |
- # |
299 |
- # --use-system-tcmalloc is strongly NOT recommended: |
300 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
301 |
- |
302 |
- scons_opts=( |
303 |
- CC="$(tc-getCC)" |
304 |
- CXX="$(tc-getCXX)" |
305 |
- |
306 |
- --disable-warnings-as-errors |
307 |
- --use-system-boost |
308 |
- --use-system-pcre |
309 |
- --use-system-snappy |
310 |
- --use-system-stemmer |
311 |
- --use-system-yaml |
312 |
- --use-system-zlib |
313 |
- ) |
314 |
- |
315 |
- # wiredtiger not supported on 32bit platforms #572166 |
316 |
- use x86 && scons_opts+=( --wiredtiger=off ) |
317 |
- |
318 |
- if use debug; then |
319 |
- scons_opts+=( --dbg=on ) |
320 |
- fi |
321 |
- |
322 |
- if use prefix; then |
323 |
- scons_opts+=( |
324 |
- --cpppath="${EPREFIX}/usr/include" |
325 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
326 |
- ) |
327 |
- fi |
328 |
- |
329 |
- if use kerberos; then |
330 |
- scons_opts+=( --use-sasl-client ) |
331 |
- fi |
332 |
- |
333 |
- if use ssl; then |
334 |
- scons_opts+=( --ssl ) |
335 |
- fi |
336 |
-} |
337 |
- |
338 |
-src_prepare() { |
339 |
- epatch \ |
340 |
- "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" \ |
341 |
- "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch" |
342 |
- if has_version ">=dev-libs/boost-1.62"; then |
343 |
- epatch "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" |
344 |
- fi |
345 |
- epatch_user |
346 |
-} |
347 |
- |
348 |
-src_compile() { |
349 |
- # respect mongoDB upstream's basic recommendations |
350 |
- # see bug #536688 and #526114 |
351 |
- if ! use debug; then |
352 |
- filter-flags '-m*' |
353 |
- filter-flags '-O?' |
354 |
- fi |
355 |
- escons "${scons_opts[@]}" core tools |
356 |
-} |
357 |
- |
358 |
-src_install() { |
359 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
360 |
- |
361 |
- for x in /var/{lib,log}/${PN}; do |
362 |
- keepdir "${x}" |
363 |
- fowners mongodb:mongodb "${x}" |
364 |
- done |
365 |
- |
366 |
- doman debian/mongo*.1 |
367 |
- dodoc README docs/building.md |
368 |
- |
369 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
370 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
371 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
372 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
373 |
- |
374 |
- insinto /etc |
375 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
376 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
377 |
- |
378 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
379 |
- |
380 |
- insinto /etc/logrotate.d/ |
381 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
382 |
- |
383 |
- # see bug #526114 |
384 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
385 |
-} |
386 |
- |
387 |
-pkg_preinst() { |
388 |
- # wrt bug #461466 |
389 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
390 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
391 |
- fi |
392 |
-} |
393 |
- |
394 |
-src_test() { |
395 |
- # this one test fails |
396 |
- rm jstests/core/repl_write_threads_start_param.js |
397 |
- |
398 |
- ./buildscripts/resmoke.py --dbpathPrefix=test --suites core || die "Tests failed" |
399 |
-} |
400 |
- |
401 |
-pkg_postinst() { |
402 |
- local v |
403 |
- for v in ${REPLACING_VERSIONS}; do |
404 |
- if ! version_is_at_least 3.0 ${v}; then |
405 |
- ewarn "!! IMPORTANT !!" |
406 |
- ewarn " " |
407 |
- ewarn "${PN} configuration files have changed !" |
408 |
- ewarn " " |
409 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
410 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
411 |
- ewarn " " |
412 |
- ewarn "Make sure you also follow the upgrading process :" |
413 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
414 |
- ewarn " " |
415 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
416 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
417 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
418 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
419 |
- break |
420 |
- fi |
421 |
- done |
422 |
- |
423 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
424 |
- ewarn " https://docs.mongodb.org/manual/release-notes/3.2/" |
425 |
- ewarn " https://docs.mongodb.org/master/release-notes/3.2-upgrade/" |
426 |
- ewarn |
427 |
- ewarn " Starting in 3.2, MongoDB uses the WiredTiger as the default storage engine." |
428 |
-} |
429 |
|
430 |
diff --git a/dev-db/mongodb/mongodb-3.2.16.ebuild b/dev-db/mongodb/mongodb-3.2.16.ebuild |
431 |
deleted file mode 100644 |
432 |
index 76293455988..00000000000 |
433 |
--- a/dev-db/mongodb/mongodb-3.2.16.ebuild |
434 |
+++ /dev/null |
435 |
@@ -1,191 +0,0 @@ |
436 |
-# Copyright 1999-2017 Gentoo Foundation |
437 |
-# Distributed under the terms of the GNU General Public License v2 |
438 |
- |
439 |
-EAPI=6 |
440 |
-SCONS_MIN_VERSION="2.3.0" |
441 |
-CHECKREQS_DISK_BUILD="2400M" |
442 |
-CHECKREQS_DISK_USR="512M" |
443 |
-CHECKREQS_MEMORY="1024M" |
444 |
- |
445 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
446 |
- |
447 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
448 |
- |
449 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
450 |
-HOMEPAGE="http://www.mongodb.org" |
451 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
452 |
- |
453 |
-LICENSE="AGPL-3 Apache-2.0" |
454 |
-SLOT="0" |
455 |
-KEYWORDS="~amd64 ~x86" |
456 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
457 |
- |
458 |
-RDEPEND=">=app-arch/snappy-1.1.2 |
459 |
- >=dev-cpp/yaml-cpp-0.5.1 |
460 |
- >=dev-libs/boost-1.57[threads(+)] |
461 |
- >=dev-libs/libpcre-8.39[cxx] |
462 |
- dev-libs/snowball-stemmer |
463 |
- net-libs/libpcap |
464 |
- >=sys-libs/zlib-1.2.8 |
465 |
- mms-agent? ( app-admin/mms-agent ) |
466 |
- ssl? ( |
467 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
468 |
- libressl? ( dev-libs/libressl:0= ) |
469 |
- )" |
470 |
-DEPEND="${RDEPEND} |
471 |
- >=sys-devel/gcc-4.8.2:* |
472 |
- sys-libs/ncurses |
473 |
- sys-libs/readline |
474 |
- debug? ( dev-util/valgrind ) |
475 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
476 |
- test? ( |
477 |
- dev-python/pymongo |
478 |
- dev-python/pyyaml |
479 |
- )" |
480 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
481 |
- |
482 |
-PATCHES=( |
483 |
- "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" |
484 |
- "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch" |
485 |
- "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" |
486 |
- "${FILESDIR}/${PN}-3.2.16-Replace-string-with-explicit-std-string.patch" |
487 |
- "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
488 |
-) |
489 |
- |
490 |
-S=${WORKDIR}/${MY_P} |
491 |
- |
492 |
-pkg_pretend() { |
493 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
494 |
- ewarn "To upgrade an existing MongoDB deployment to 3.2, you must be" |
495 |
- ewarn "running a 3.0-series release. Please update to the latest 3.0" |
496 |
- ewarn "release before continuing if wish to keep your data." |
497 |
- fi |
498 |
-} |
499 |
- |
500 |
-pkg_setup() { |
501 |
- enewgroup mongodb |
502 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
503 |
- |
504 |
- # Maintainer notes |
505 |
- # |
506 |
- # --use-system-tcmalloc is strongly NOT recommended: |
507 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
508 |
- |
509 |
- scons_opts=( |
510 |
- CC="$(tc-getCC)" |
511 |
- CXX="$(tc-getCXX)" |
512 |
- |
513 |
- --disable-warnings-as-errors |
514 |
- --use-system-boost |
515 |
- --use-system-pcre |
516 |
- --use-system-snappy |
517 |
- --use-system-stemmer |
518 |
- --use-system-yaml |
519 |
- --use-system-zlib |
520 |
- ) |
521 |
- |
522 |
- # wiredtiger not supported on 32bit platforms #572166 |
523 |
- use x86 && scons_opts+=( --wiredtiger=off ) |
524 |
- |
525 |
- if use debug; then |
526 |
- scons_opts+=( --dbg=on ) |
527 |
- fi |
528 |
- |
529 |
- if use prefix; then |
530 |
- scons_opts+=( |
531 |
- --cpppath="${EPREFIX}/usr/include" |
532 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
533 |
- ) |
534 |
- fi |
535 |
- |
536 |
- if use kerberos; then |
537 |
- scons_opts+=( --use-sasl-client ) |
538 |
- fi |
539 |
- |
540 |
- if use ssl; then |
541 |
- scons_opts+=( --ssl ) |
542 |
- fi |
543 |
-} |
544 |
- |
545 |
-src_compile() { |
546 |
- # respect mongoDB upstream's basic recommendations |
547 |
- # see bug #536688 and #526114 |
548 |
- if ! use debug; then |
549 |
- filter-flags '-m*' |
550 |
- filter-flags '-O?' |
551 |
- fi |
552 |
- escons "${scons_opts[@]}" core tools |
553 |
-} |
554 |
- |
555 |
-src_install() { |
556 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
557 |
- |
558 |
- local x |
559 |
- for x in /var/{lib,log}/${PN}; do |
560 |
- keepdir "${x}" |
561 |
- fowners mongodb:mongodb "${x}" |
562 |
- done |
563 |
- |
564 |
- doman debian/mongo*.1 |
565 |
- dodoc README docs/building.md |
566 |
- |
567 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
568 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
569 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
570 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
571 |
- |
572 |
- insinto /etc |
573 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
574 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
575 |
- |
576 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
577 |
- |
578 |
- insinto /etc/logrotate.d/ |
579 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
580 |
- |
581 |
- # see bug #526114 |
582 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
583 |
-} |
584 |
- |
585 |
-pkg_preinst() { |
586 |
- # wrt bug #461466 |
587 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
588 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
589 |
- fi |
590 |
-} |
591 |
- |
592 |
-src_test() { |
593 |
- # this one test fails |
594 |
- rm jstests/core/repl_write_threads_start_param.js || die |
595 |
- |
596 |
- ./buildscripts/resmoke.py --dbpathPrefix=test --suites core || die "Tests failed" |
597 |
-} |
598 |
- |
599 |
-pkg_postinst() { |
600 |
- local v |
601 |
- for v in ${REPLACING_VERSIONS}; do |
602 |
- if ! version_is_at_least 3.0 ${v}; then |
603 |
- ewarn "!! IMPORTANT !!" |
604 |
- ewarn " " |
605 |
- ewarn "${PN} configuration files have changed !" |
606 |
- ewarn " " |
607 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
608 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
609 |
- ewarn " " |
610 |
- ewarn "Make sure you also follow the upgrading process :" |
611 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
612 |
- ewarn " " |
613 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
614 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
615 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
616 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
617 |
- break |
618 |
- fi |
619 |
- done |
620 |
- |
621 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
622 |
- ewarn " https://docs.mongodb.org/manual/release-notes/3.2/" |
623 |
- ewarn " https://docs.mongodb.org/master/release-notes/3.2-upgrade/" |
624 |
- ewarn |
625 |
- ewarn " Starting in 3.2, MongoDB uses the WiredTiger as the default storage engine." |
626 |
-} |