1 |
commit: e88ace0e93698fadac5768c8d1805e6cb1d3ef62 |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 26 13:21:33 2017 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 26 13:21:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e88ace0e |
7 |
|
8 |
dev-db/mongodb: ebuild cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-db/mongodb/Manifest | 3 - |
13 |
dev-db/mongodb/mongodb-3.2.11.ebuild | 192 ----------------------------------- |
14 |
dev-db/mongodb/mongodb-3.4.1.ebuild | 189 ---------------------------------- |
15 |
dev-db/mongodb/mongodb-3.4.2.ebuild | 189 ---------------------------------- |
16 |
4 files changed, 573 deletions(-) |
17 |
|
18 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
19 |
index df0c9f8ab4f..b8a09d02331 100644 |
20 |
--- a/dev-db/mongodb/Manifest |
21 |
+++ b/dev-db/mongodb/Manifest |
22 |
@@ -1,9 +1,6 @@ |
23 |
DIST 20140409-mms-monitoring-agent.zip 40122 SHA256 9c4f89cfba10b4604512ab21eb082248104aeabe7e813b852db2b86f47d7ecb2 SHA512 5290a813c407251b5e4def813ce6fe7e09d6c3a1907fd409e326b15b07aed39f7db3a28710ecdaffe2771136c9433253c5d1857c823844a4b75dd38f1d15eefd WHIRLPOOL ce80870e2618f3d9ed80af41b1069ed5bd97af475089564eed1bc111e820c048bc5cbaa03f859349e772fe232f876127e0627c75c135a9b2e196ab13258ed9f1 |
24 |
DIST mongodb-src-r2.6.12.tar.gz 16462842 SHA256 2dd51eabcfcd133573be74c0131c85b67764042833e7d94077e86adc0b9406dc SHA512 ceed10f2da50ca390f56cc79d39ea4db7a1ef6764e37dae61c3f3f664708be72de09443bbf94f8e58479e4f2923ff2ab9eee45652e82271b3bad591e03ef7657 WHIRLPOOL 1587ef45ee17f9e3357a92b480ea739192076ead280c44c801650d01d2ae29a627a96db611eac6c9b6b47e5e619e2362df94e1792348709b3ea5a4970a8751a0 |
25 |
DIST mongodb-src-r3.0.14.tar.gz 28093922 SHA256 ebbb758ca7ee53e8d25e2410bb7ef61640829566d094cde2487b55e73d0fd880 SHA512 477fab29ca0ad2a0f24b895e30dc4770af8d6a1a57f3c10a02a989b58dd22510db554da0418129d4e81958342ad169696eed4b86bf5aa73916c7cec879db1152 WHIRLPOOL 7fc02969c52954f0fd9b90ace9efd3677a9d6b8d3618b5dedb470343a3ba71789d451cc30a95742b2b9e61b21ffe0f1a23e239e388a497a327f2cc8ed1ed6aef |
26 |
-DIST mongodb-src-r3.2.11.tar.gz 29113706 SHA256 625eb28fd47b2af63b30343a064de7f42e5265f4c642874ec766ba3643fd80d7 SHA512 8cb63f878d573e2fb2bace57a10d036aebe0cc06e46a3cd5480fb4a8bcd51ac5219c729b5ea85213e0c905906a93780080332fa01dbcd29e01358f5e9051824c WHIRLPOOL fca825400e9ab16e53dfbbd400a9bd87b9a866d56b2a5839ece25b8dbfe55074fa04d40f47c337f67cb3bd3e547b99b4349eeb15a87a9b9659ea0f1a0cc2c526 |
27 |
DIST mongodb-src-r3.2.12.tar.gz 29178424 SHA256 406ced873a9abe8a3f0f92939bf5374663bac86c72181c80bec144aedf6cd306 SHA512 0c4ddaaddf15d97957faff46dc4a3f79c545cacc8a56dbe1d063778117ba9b645323b0cb7fd054fae805d092b8372c411a82e3370244b7939bda20a65fdb951c WHIRLPOOL 67673788859ea99752f2e0d1d8c7feb40b004efc344a2a589553675be7f9020ed384cb4a9000bb7eee0059105af364a722f17890ea3f0d38508b8d045db7da75 |
28 |
-DIST mongodb-src-r3.4.1.tar.gz 40161375 SHA256 54f475e553827733fb351ee4b03b470297f0d08e0434fbf7e6661705124da97b SHA512 48400f00ed84922b1e734ad915c376a567af2cd32e9cdcc40819fdfbc0a5c2444e4f325b1a541fc21cf87f4d95f9bdcc64bd59eab9d25e75b28732978feda031 WHIRLPOOL 1dce39c7b36b2c1d3760c7c560c1fefde9ea6d780ef1ef8b5db38f3ed8f0aff9a4ae51ab26381d9330c5b3ad3182ed998ae8e2a0ecc85e9347714ffa853d7734 |
29 |
-DIST mongodb-src-r3.4.2.tar.gz 39796167 SHA256 29b60f6c5331fd2ff5242171a65c03e3b47c1ff957fa317bfaa2ddccd8d51b59 SHA512 42f1b946e4be22670a3d79ec5ea359c2c43f0cff6f6329486b2cc797fd57981982544fbce53412ab91eafa3a1fbecb30bc95316cc9405d778b20a270f77df777 WHIRLPOOL 25e512f455661c0e49bde559fb1662e98643e2078c3c1dd7f675524de467741db3091d3868e34c4e470232e1be7e37cf6f032a76d39afee2b673cb8a4c188798 |
30 |
DIST mongodb-src-r3.4.3.tar.gz 39832718 SHA256 889d49312ed072130936cfa3281123a0e89228c04f3f8e992a0b92669b28d767 SHA512 e2fb5fc2f02e9dbca6c30d2e2aaf1569180ca15198226cdad46f47f44905293afe77763fe2e5c9add0b5bcbd62b7ce7905fb183068c0738cdeeae8d39f848cef WHIRLPOOL ba6fa864249cc80e5f65feaed685980b874b46bcf975142e15fa0eda3e474cc85388920e152474dc5527a30d215c309db6d471c716e6bbe374193ff6016ba22e |
31 |
DIST mongodb-src-r3.4.4.tar.gz 39867133 SHA256 09e962bf3428474b9790bbd464cb6176817f9da6121c30e096240dbb4d51c9f6 SHA512 dbae89b49c363e7258021cd31385e4449bfdfdfd5adfcb1683e4431372731e58ec33bf8f7576d2d52659a52461bd6a32fbc67d5c6e36d52184ec1aabb345d940 WHIRLPOOL 5ad9f80c7f0f597982a32f95365df961fcd80ffa7c04183f9cb4952a52262a27ab09fee4d0115405c5197b6d3848ede56c9a4e5012ec1c358ea8c752164405c2 |
32 |
|
33 |
diff --git a/dev-db/mongodb/mongodb-3.2.11.ebuild b/dev-db/mongodb/mongodb-3.2.11.ebuild |
34 |
deleted file mode 100644 |
35 |
index 1a1105de5c6..00000000000 |
36 |
--- a/dev-db/mongodb/mongodb-3.2.11.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,192 +0,0 @@ |
39 |
-# Copyright 1999-2016 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=5 |
43 |
-SCONS_MIN_VERSION="2.3.0" |
44 |
-CHECKREQS_DISK_BUILD="2400M" |
45 |
-CHECKREQS_DISK_USR="512M" |
46 |
-CHECKREQS_MEMORY="1024M" |
47 |
- |
48 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
49 |
- |
50 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
51 |
- |
52 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
53 |
-HOMEPAGE="http://www.mongodb.org" |
54 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
55 |
- |
56 |
-LICENSE="AGPL-3 Apache-2.0" |
57 |
-SLOT="0" |
58 |
-KEYWORDS="~amd64 ~x86" |
59 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
60 |
- |
61 |
-RDEPEND=">=app-arch/snappy-1.1.2 |
62 |
- || ( =dev-cpp/yaml-cpp-0.5.1 >dev-cpp/yaml-cpp-0.5.2 ) |
63 |
- >=dev-libs/boost-1.57[threads(+)] |
64 |
- >=dev-libs/libpcre-8.39[cxx] |
65 |
- dev-libs/snowball-stemmer |
66 |
- net-libs/libpcap |
67 |
- >=sys-libs/zlib-1.2.8 |
68 |
- mms-agent? ( app-admin/mms-agent ) |
69 |
- ssl? ( |
70 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
71 |
- libressl? ( dev-libs/libressl:0= ) |
72 |
- )" |
73 |
-DEPEND="${RDEPEND} |
74 |
- >=sys-devel/gcc-4.8.2:* |
75 |
- sys-libs/ncurses |
76 |
- sys-libs/readline |
77 |
- debug? ( dev-util/valgrind ) |
78 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
79 |
- test? ( |
80 |
- dev-python/pymongo |
81 |
- dev-python/pyyaml |
82 |
- )" |
83 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
84 |
- |
85 |
-S=${WORKDIR}/${MY_P} |
86 |
- |
87 |
-pkg_pretend() { |
88 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
89 |
- ewarn "To upgrade an existing MongoDB deployment to 3.2, you must be" |
90 |
- ewarn "running a 3.0-series release. Please update to the latest 3.0" |
91 |
- ewarn "release before continuing if wish to keep your data." |
92 |
- fi |
93 |
-} |
94 |
- |
95 |
-pkg_setup() { |
96 |
- enewgroup mongodb |
97 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
98 |
- |
99 |
- # Maintainer notes |
100 |
- # |
101 |
- # --use-system-tcmalloc is strongly NOT recommended: |
102 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
103 |
- |
104 |
- scons_opts=( |
105 |
- CC="$(tc-getCC)" |
106 |
- CXX="$(tc-getCXX)" |
107 |
- |
108 |
- --disable-warnings-as-errors |
109 |
- --use-system-boost |
110 |
- --use-system-pcre |
111 |
- --use-system-snappy |
112 |
- --use-system-stemmer |
113 |
- --use-system-yaml |
114 |
- --use-system-zlib |
115 |
- ) |
116 |
- |
117 |
- # wiredtiger not supported on 32bit platforms #572166 |
118 |
- use x86 && scons_opts+=( --wiredtiger=off ) |
119 |
- |
120 |
- if use debug; then |
121 |
- scons_opts+=( --dbg=on ) |
122 |
- fi |
123 |
- |
124 |
- if use prefix; then |
125 |
- scons_opts+=( |
126 |
- --cpppath="${EPREFIX}/usr/include" |
127 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
128 |
- ) |
129 |
- fi |
130 |
- |
131 |
- if use kerberos; then |
132 |
- scons_opts+=( --use-sasl-client ) |
133 |
- fi |
134 |
- |
135 |
- if use ssl; then |
136 |
- scons_opts+=( --ssl ) |
137 |
- fi |
138 |
-} |
139 |
- |
140 |
-src_prepare() { |
141 |
- epatch \ |
142 |
- "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" \ |
143 |
- "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch" |
144 |
- if has_version ">=dev-libs/boost-1.62"; then |
145 |
- epatch "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" |
146 |
- fi |
147 |
- epatch_user |
148 |
-} |
149 |
- |
150 |
-src_compile() { |
151 |
- # respect mongoDB upstream's basic recommendations |
152 |
- # see bug #536688 and #526114 |
153 |
- if ! use debug; then |
154 |
- filter-flags '-m*' |
155 |
- filter-flags '-O?' |
156 |
- fi |
157 |
- escons "${scons_opts[@]}" core tools |
158 |
-} |
159 |
- |
160 |
-src_install() { |
161 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
162 |
- |
163 |
- for x in /var/{lib,log}/${PN}; do |
164 |
- keepdir "${x}" |
165 |
- fowners mongodb:mongodb "${x}" |
166 |
- done |
167 |
- |
168 |
- doman debian/mongo*.1 |
169 |
- dodoc README docs/building.md |
170 |
- |
171 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
172 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
173 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
174 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
175 |
- |
176 |
- insinto /etc |
177 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
178 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
179 |
- |
180 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
181 |
- |
182 |
- insinto /etc/logrotate.d/ |
183 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
184 |
- |
185 |
- # see bug #526114 |
186 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
187 |
-} |
188 |
- |
189 |
-pkg_preinst() { |
190 |
- # wrt bug #461466 |
191 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
192 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
193 |
- fi |
194 |
-} |
195 |
- |
196 |
-src_test() { |
197 |
- # this one test fails |
198 |
- rm jstests/core/repl_write_threads_start_param.js |
199 |
- |
200 |
- ./buildscripts/resmoke.py --dbpathPrefix=test --suites core || die "Tests failed" |
201 |
-} |
202 |
- |
203 |
-pkg_postinst() { |
204 |
- local v |
205 |
- for v in ${REPLACING_VERSIONS}; do |
206 |
- if ! version_is_at_least 3.0 ${v}; then |
207 |
- ewarn "!! IMPORTANT !!" |
208 |
- ewarn " " |
209 |
- ewarn "${PN} configuration files have changed !" |
210 |
- ewarn " " |
211 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
212 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
213 |
- ewarn " " |
214 |
- ewarn "Make sure you also follow the upgrading process :" |
215 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
216 |
- ewarn " " |
217 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
218 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
219 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
220 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
221 |
- break |
222 |
- fi |
223 |
- done |
224 |
- |
225 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
226 |
- ewarn " https://docs.mongodb.org/manual/release-notes/3.2/" |
227 |
- ewarn " https://docs.mongodb.org/master/release-notes/3.2-upgrade/" |
228 |
- ewarn |
229 |
- ewarn " Starting in 3.2, MongoDB uses the WiredTiger as the default storage engine." |
230 |
-} |
231 |
|
232 |
diff --git a/dev-db/mongodb/mongodb-3.4.1.ebuild b/dev-db/mongodb/mongodb-3.4.1.ebuild |
233 |
deleted file mode 100644 |
234 |
index 25b6b977c05..00000000000 |
235 |
--- a/dev-db/mongodb/mongodb-3.4.1.ebuild |
236 |
+++ /dev/null |
237 |
@@ -1,189 +0,0 @@ |
238 |
-# Copyright 1999-2017 Gentoo Foundation |
239 |
-# Distributed under the terms of the GNU General Public License v2 |
240 |
- |
241 |
-EAPI=5 |
242 |
-SCONS_MIN_VERSION="2.3.0" |
243 |
-CHECKREQS_DISK_BUILD="2400M" |
244 |
-CHECKREQS_DISK_USR="512M" |
245 |
-CHECKREQS_MEMORY="1024M" |
246 |
- |
247 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
248 |
- |
249 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
250 |
- |
251 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
252 |
-HOMEPAGE="http://www.mongodb.org" |
253 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
254 |
- |
255 |
-LICENSE="AGPL-3 Apache-2.0" |
256 |
-SLOT="0" |
257 |
-KEYWORDS="~amd64 ~x86" |
258 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
259 |
- |
260 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
261 |
- >=dev-cpp/yaml-cpp-0.5.3 |
262 |
- >=dev-libs/boost-1.60[threads(+)] |
263 |
- >=dev-libs/libpcre-8.39[cxx] |
264 |
- dev-libs/snowball-stemmer |
265 |
- net-libs/libpcap |
266 |
- >=sys-libs/zlib-1.2.8 |
267 |
- mms-agent? ( app-admin/mms-agent ) |
268 |
- ssl? ( |
269 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
270 |
- libressl? ( dev-libs/libressl:0= ) |
271 |
- )" |
272 |
-DEPEND="${RDEPEND} |
273 |
- >=sys-devel/gcc-5.3.0:* |
274 |
- sys-libs/ncurses |
275 |
- sys-libs/readline |
276 |
- debug? ( dev-util/valgrind ) |
277 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
278 |
- test? ( |
279 |
- dev-python/pymongo |
280 |
- dev-python/pyyaml |
281 |
- )" |
282 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
283 |
- |
284 |
-S=${WORKDIR}/${MY_P} |
285 |
- |
286 |
-pkg_pretend() { |
287 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
288 |
- ewarn "To upgrade from a version earlier than the 3.0-series, you must" |
289 |
- ewarn "successively upgrade major releases until you have upgraded" |
290 |
- ewarn "to 3.2-series. Then upgrade to 3.4 series." |
291 |
- fi |
292 |
-} |
293 |
- |
294 |
-pkg_setup() { |
295 |
- enewgroup mongodb |
296 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
297 |
- |
298 |
- # Maintainer notes |
299 |
- # |
300 |
- # --use-system-tcmalloc is strongly NOT recommended: |
301 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
302 |
- |
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 |
- # wiredtiger not supported on 32bit platforms #572166 |
317 |
- use x86 && scons_opts+=( --wiredtiger=off ) |
318 |
- |
319 |
- if use debug; then |
320 |
- scons_opts+=( --dbg=on ) |
321 |
- fi |
322 |
- |
323 |
- if use prefix; then |
324 |
- scons_opts+=( |
325 |
- --cpppath="${EPREFIX}/usr/include" |
326 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
327 |
- ) |
328 |
- fi |
329 |
- |
330 |
- if use kerberos; then |
331 |
- scons_opts+=( --use-sasl-client ) |
332 |
- fi |
333 |
- |
334 |
- if use ssl; then |
335 |
- scons_opts+=( --ssl ) |
336 |
- fi |
337 |
-} |
338 |
- |
339 |
-src_prepare() { |
340 |
- epatch \ |
341 |
- "${FILESDIR}/${PN}-3.4.0-fix-scons.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.4/" |
425 |
- ewarn " https://docs.mongodb.com/manual/release-notes/3.4/#upgrade-procedures" |
426 |
-} |
427 |
|
428 |
diff --git a/dev-db/mongodb/mongodb-3.4.2.ebuild b/dev-db/mongodb/mongodb-3.4.2.ebuild |
429 |
deleted file mode 100644 |
430 |
index 25b6b977c05..00000000000 |
431 |
--- a/dev-db/mongodb/mongodb-3.4.2.ebuild |
432 |
+++ /dev/null |
433 |
@@ -1,189 +0,0 @@ |
434 |
-# Copyright 1999-2017 Gentoo Foundation |
435 |
-# Distributed under the terms of the GNU General Public License v2 |
436 |
- |
437 |
-EAPI=5 |
438 |
-SCONS_MIN_VERSION="2.3.0" |
439 |
-CHECKREQS_DISK_BUILD="2400M" |
440 |
-CHECKREQS_DISK_USR="512M" |
441 |
-CHECKREQS_MEMORY="1024M" |
442 |
- |
443 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
444 |
- |
445 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
446 |
- |
447 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
448 |
-HOMEPAGE="http://www.mongodb.org" |
449 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
450 |
- |
451 |
-LICENSE="AGPL-3 Apache-2.0" |
452 |
-SLOT="0" |
453 |
-KEYWORDS="~amd64 ~x86" |
454 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
455 |
- |
456 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
457 |
- >=dev-cpp/yaml-cpp-0.5.3 |
458 |
- >=dev-libs/boost-1.60[threads(+)] |
459 |
- >=dev-libs/libpcre-8.39[cxx] |
460 |
- dev-libs/snowball-stemmer |
461 |
- net-libs/libpcap |
462 |
- >=sys-libs/zlib-1.2.8 |
463 |
- mms-agent? ( app-admin/mms-agent ) |
464 |
- ssl? ( |
465 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
466 |
- libressl? ( dev-libs/libressl:0= ) |
467 |
- )" |
468 |
-DEPEND="${RDEPEND} |
469 |
- >=sys-devel/gcc-5.3.0:* |
470 |
- sys-libs/ncurses |
471 |
- sys-libs/readline |
472 |
- debug? ( dev-util/valgrind ) |
473 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
474 |
- test? ( |
475 |
- dev-python/pymongo |
476 |
- dev-python/pyyaml |
477 |
- )" |
478 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
479 |
- |
480 |
-S=${WORKDIR}/${MY_P} |
481 |
- |
482 |
-pkg_pretend() { |
483 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
484 |
- ewarn "To upgrade from a version earlier than the 3.0-series, you must" |
485 |
- ewarn "successively upgrade major releases until you have upgraded" |
486 |
- ewarn "to 3.2-series. Then upgrade to 3.4 series." |
487 |
- fi |
488 |
-} |
489 |
- |
490 |
-pkg_setup() { |
491 |
- enewgroup mongodb |
492 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
493 |
- |
494 |
- # Maintainer notes |
495 |
- # |
496 |
- # --use-system-tcmalloc is strongly NOT recommended: |
497 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
498 |
- |
499 |
- scons_opts=( |
500 |
- CC="$(tc-getCC)" |
501 |
- CXX="$(tc-getCXX)" |
502 |
- |
503 |
- --disable-warnings-as-errors |
504 |
- --use-system-boost |
505 |
- --use-system-pcre |
506 |
- --use-system-snappy |
507 |
- --use-system-stemmer |
508 |
- --use-system-yaml |
509 |
- --use-system-zlib |
510 |
- ) |
511 |
- |
512 |
- # wiredtiger not supported on 32bit platforms #572166 |
513 |
- use x86 && scons_opts+=( --wiredtiger=off ) |
514 |
- |
515 |
- if use debug; then |
516 |
- scons_opts+=( --dbg=on ) |
517 |
- fi |
518 |
- |
519 |
- if use prefix; then |
520 |
- scons_opts+=( |
521 |
- --cpppath="${EPREFIX}/usr/include" |
522 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
523 |
- ) |
524 |
- fi |
525 |
- |
526 |
- if use kerberos; then |
527 |
- scons_opts+=( --use-sasl-client ) |
528 |
- fi |
529 |
- |
530 |
- if use ssl; then |
531 |
- scons_opts+=( --ssl ) |
532 |
- fi |
533 |
-} |
534 |
- |
535 |
-src_prepare() { |
536 |
- epatch \ |
537 |
- "${FILESDIR}/${PN}-3.4.0-fix-scons.patch" |
538 |
- if has_version ">=dev-libs/boost-1.62"; then |
539 |
- epatch "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" |
540 |
- fi |
541 |
- epatch_user |
542 |
-} |
543 |
- |
544 |
-src_compile() { |
545 |
- # respect mongoDB upstream's basic recommendations |
546 |
- # see bug #536688 and #526114 |
547 |
- if ! use debug; then |
548 |
- filter-flags '-m*' |
549 |
- filter-flags '-O?' |
550 |
- fi |
551 |
- escons "${scons_opts[@]}" core tools |
552 |
-} |
553 |
- |
554 |
-src_install() { |
555 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
556 |
- |
557 |
- for x in /var/{lib,log}/${PN}; do |
558 |
- keepdir "${x}" |
559 |
- fowners mongodb:mongodb "${x}" |
560 |
- done |
561 |
- |
562 |
- doman debian/mongo*.1 |
563 |
- dodoc README docs/building.md |
564 |
- |
565 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
566 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
567 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
568 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
569 |
- |
570 |
- insinto /etc |
571 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
572 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
573 |
- |
574 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
575 |
- |
576 |
- insinto /etc/logrotate.d/ |
577 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
578 |
- |
579 |
- # see bug #526114 |
580 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
581 |
-} |
582 |
- |
583 |
-pkg_preinst() { |
584 |
- # wrt bug #461466 |
585 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
586 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
587 |
- fi |
588 |
-} |
589 |
- |
590 |
-src_test() { |
591 |
- # this one test fails |
592 |
- rm jstests/core/repl_write_threads_start_param.js |
593 |
- |
594 |
- ./buildscripts/resmoke.py --dbpathPrefix=test --suites core || die "Tests failed" |
595 |
-} |
596 |
- |
597 |
-pkg_postinst() { |
598 |
- local v |
599 |
- for v in ${REPLACING_VERSIONS}; do |
600 |
- if ! version_is_at_least 3.0 ${v}; then |
601 |
- ewarn "!! IMPORTANT !!" |
602 |
- ewarn " " |
603 |
- ewarn "${PN} configuration files have changed !" |
604 |
- ewarn " " |
605 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
606 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
607 |
- ewarn " " |
608 |
- ewarn "Make sure you also follow the upgrading process :" |
609 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
610 |
- ewarn " " |
611 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
612 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
613 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
614 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
615 |
- break |
616 |
- fi |
617 |
- done |
618 |
- |
619 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
620 |
- ewarn " https://docs.mongodb.org/manual/release-notes/3.4/" |
621 |
- ewarn " https://docs.mongodb.com/manual/release-notes/3.4/#upgrade-procedures" |
622 |
-} |