1 |
commit: 07df633680583d74a28a0a56b4df8a5a6a991949 |
2 |
Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 20 16:24:18 2020 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 20 16:25:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07df6336 |
7 |
|
8 |
dev-db/mongodb: drop obsolete ebuilds |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org> |
12 |
|
13 |
dev-db/mongodb/Manifest | 6 -- |
14 |
dev-db/mongodb/mongodb-3.6.14.ebuild | 162 ---------------------------------- |
15 |
dev-db/mongodb/mongodb-3.6.16.ebuild | 162 ---------------------------------- |
16 |
dev-db/mongodb/mongodb-4.0.13.ebuild | 162 ---------------------------------- |
17 |
dev-db/mongodb/mongodb-4.0.14.ebuild | 162 ---------------------------------- |
18 |
dev-db/mongodb/mongodb-4.0.16.ebuild | 162 ---------------------------------- |
19 |
dev-db/mongodb/mongodb-4.2.1.ebuild | 163 ----------------------------------- |
20 |
dev-db/mongodb/mongodb-4.2.2.ebuild | 163 ----------------------------------- |
21 |
dev-db/mongodb/mongodb-4.2.3.ebuild | 163 ----------------------------------- |
22 |
9 files changed, 1305 deletions(-) |
23 |
|
24 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
25 |
index 911edc7240f..b3d4665e812 100644 |
26 |
--- a/dev-db/mongodb/Manifest |
27 |
+++ b/dev-db/mongodb/Manifest |
28 |
@@ -1,12 +1,6 @@ |
29 |
DIST mongodb-src-r3.6.13.tar.gz 40853787 BLAKE2B de9621de4f570d569df5cfe026ea5da24641c97f1ac9f3e58a0706b1d0bd74757390a075c95c6d3acd12f3c5c7bcbeb9302ac997248c54a5b7910b582debdc82 SHA512 eb84fb22ff871b5ec620d6fc29a6a66072211656e914630ad0f53e4fcad55aa40a76a0e68e68bdbe8ef061bea09ce6ad6aea5d8d865ea8a8fdca0ed829555fcd |
30 |
-DIST mongodb-src-r3.6.14.tar.gz 40895581 BLAKE2B 3cfe2aedd11a67a01ddee9eba36d99bad5fe8c7891e953cbdae9200427638e1acc1555c8d39df0217a48a95428838d573c90381698361f954d9aab860449cfcd SHA512 2bdc0ee86625724f64b7af2962b19b13cefb21d58d45c7b22fe2e01bd021f2427236c279c89785ede7c6986742127160b032294fbb652c55ce42f8d941a18cfe |
31 |
-DIST mongodb-src-r3.6.16.tar.gz 40927975 BLAKE2B bcd129d43eea24da3afe69c887bcd22116e0eb7e1f3f274fb8f51260625d17607b0d1eb31fb23a4f97c88e2c86b3d7a880cb05b0e77385d115cf9486d66f1249 SHA512 eb00f3a612942ad5f947583e92fca5b877b40d75132fa5a97989d81dd55925f5a112400eec8a43b2043bb0236b3228a670a888c41a374b0a60e8a3c26076b1e8 |
32 |
DIST mongodb-src-r3.6.17.tar.gz 40932592 BLAKE2B 94bbb943fd929318a2b32344cb4574243ad234d1cd14ffef864d7fd2d60841866fd5a1966eae8f14266a9648deb62b7b55386d41338b515d5e6849e980143d42 SHA512 b4d9e9bfc7ff886532641058c99da29420d1aa472cb4cf2b254e0fd0af5ecc72ac8bf28dcd55ab738b799b00132ffacddd154dea37ccfbf459c7cc603c2582e0 |
33 |
DIST mongodb-src-r4.0.12.tar.gz 49937644 BLAKE2B 81044a6d68be6420d30fb2d7386ff29871a696cad94ce5977c1aba60c2ce80e18ccb86492c1947a359ef124332ea82ac3cb0fb73a68f51904a008fdf911aa055 SHA512 802eaf57d56c5e8e217344f10104a201acb6f5abef0065fc1bb8e6ceef13fe489b7ae46ed0d55b5bad50fe3579860b1c1471d224b51b0f15f968278cb5f6a47a |
34 |
-DIST mongodb-src-r4.0.13.tar.gz 50006727 BLAKE2B bf47bd32cf50c24084091a1baa811690c50586352307deb80876bb1bad539e90de77f85fc591960d6ae871e0a6f22d5d2f05bb340218784b642e3529d0c64bb6 SHA512 2a74ac8648cde6d9b5aa33da195b22eca926ef5ff85d4140e0a1ba978e3d13d410f4d7d7e102e35f994ef3b848333a4ef4bacfec9e2ac1b1288cbee885875ef7 |
35 |
-DIST mongodb-src-r4.0.14.tar.gz 50088053 BLAKE2B af7dc930dd7a469c06cf26201e3329967a664585b9964732c57ed283f323d4dc7fde3ea62ad4f1e8ca763360aeb614c2f77f98867031083d83808acd19e97539 SHA512 3d5d73a816a00887a8851e2e79919b2646f6cc34fd9b8acb255a52e2e71407a4728a80a81112bdbe0a92ba9f71e856ac7a2229741273e8485806cda2cb018d8d |
36 |
DIST mongodb-src-r4.0.16.tar.gz 50091501 BLAKE2B a383f9fef8e5b2ceda9646dfc4f4f46bc3bee66be45e94a846b1a7ce859826273812d4ce11aa96d1766071bf5fb422771bf2176350145deae99e64e59c164e38 SHA512 90458dea29a4c9a3078e1f13ffd2163911bf5a5f42884553ad9b3c2a2fafea2f73e506640c78f55f27bc16551582ad22244437356b89786fef383ce4b24bb617 |
37 |
-DIST mongodb-src-r4.2.1.tar.gz 60922510 BLAKE2B b06141cf0a8d256fc24e64c7115093009f42a97c74d270997ad4a70fb040199db05c5083cf1639283cc253264fbeb975d7efe3a41227d75146d7aa2e2fb9fa12 SHA512 6057f68ebeb2d5f74e70639fcc08aecfb112d386e3d016e18dfb2413319abf46249a0f5ffcfb74be9264a2ef34f45dd96f9774d86b1ec7e7213276f1c84f3106 |
38 |
-DIST mongodb-src-r4.2.2.tar.gz 60991680 BLAKE2B afd31a60929ebfe9c02abee92fd4814c178b03e4e88e10069003fd3e1813481e9cc967e8b4d15b87b0fe703df7fa42a70f60db33cf84ecbf1decfd6657e28ba1 SHA512 30f1e20fbe45ca136869f3fd7e54f1cd65d1544c0693b9945a0036a50257cfc12915a17bf79267500496b5acf3cfa24f406114ea7180b7abee89cd62de5eec80 |
39 |
DIST mongodb-src-r4.2.3.tar.gz 61565615 BLAKE2B 695310a497e57f1c735f175f5b321c93cda376ec734bb08d4cabbd562a865b327f529560220be9c22f571cc70af333a77f0116f04c7f7e3a40f275ab53ab1bf9 SHA512 60e9091cfab4a189a937dfa7ce232eb6ead2ca192c916579f4fb5da2040aa340ae9de0ea8c7a4ccb0edcfdbdf6e666144657f171c3f23c0a62bccf27cd351c69 |
40 |
DIST mongodb-src-r4.2.6.tar.gz 61671088 BLAKE2B 7f2b6240b05639d2bbe37ea148cbb225b30813879f71a5fc3c135ef7debd58edf75abe925d00f9ff96dc6a75a525b4504e25254b0046326069c05bb1dfd60827 SHA512 117c910807a8363aab6b899b436a4b06564b6e53abfa7f0fe6e01c1e242401ab5a3634d9edc5e0a5e2d548a480c90b70ac492eb199b3f2476d9045a78e376af8 |
41 |
|
42 |
diff --git a/dev-db/mongodb/mongodb-3.6.14.ebuild b/dev-db/mongodb/mongodb-3.6.14.ebuild |
43 |
deleted file mode 100644 |
44 |
index b5718c0c148..00000000000 |
45 |
--- a/dev-db/mongodb/mongodb-3.6.14.ebuild |
46 |
+++ /dev/null |
47 |
@@ -1,162 +0,0 @@ |
48 |
-# Copyright 1999-2020 Gentoo Authors |
49 |
-# Distributed under the terms of the GNU General Public License v2 |
50 |
- |
51 |
-EAPI=7 |
52 |
- |
53 |
-PYTHON_COMPAT=( python2_7 ) |
54 |
- |
55 |
-SCONS_MIN_VERSION="2.5.0" |
56 |
-CHECKREQS_DISK_BUILD="2400M" |
57 |
-CHECKREQS_DISK_USR="512M" |
58 |
-CHECKREQS_MEMORY="1024M" |
59 |
- |
60 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
61 |
- |
62 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
63 |
- |
64 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
65 |
-HOMEPAGE="https://www.mongodb.com" |
66 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
67 |
- |
68 |
-LICENSE="Apache-2.0 SSPL-1" |
69 |
-SLOT="0" |
70 |
-KEYWORDS="~amd64" |
71 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
72 |
-RESTRICT="!test? ( test )" |
73 |
- |
74 |
-RDEPEND="acct-group/mongodb |
75 |
- acct-user/mongodb |
76 |
- >=app-arch/snappy-1.1.3 |
77 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
78 |
- >=dev-libs/boost-1.60:=[threads(+)] |
79 |
- >=dev-libs/libpcre-8.41[cxx] |
80 |
- dev-libs/snowball-stemmer |
81 |
- net-libs/libpcap |
82 |
- >=sys-libs/zlib-1.2.8:= |
83 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
84 |
- mms-agent? ( app-admin/mms-agent ) |
85 |
- ssl? ( |
86 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
87 |
- libressl? ( dev-libs/libressl:0= ) |
88 |
- )" |
89 |
-DEPEND="${RDEPEND} |
90 |
- ${PYTHON_DEPS} |
91 |
- $(python_gen_any_dep ' |
92 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
93 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
94 |
- dev-python/typing[${PYTHON_USEDEP}] |
95 |
- ') |
96 |
- sys-libs/ncurses:0= |
97 |
- sys-libs/readline:0= |
98 |
- debug? ( dev-util/valgrind ) |
99 |
- test? ( |
100 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
101 |
- )" |
102 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
103 |
- |
104 |
-PATCHES=( |
105 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
106 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
107 |
- "${FILESDIR}/${PN}-4.0.12-boost-1.71-cxxabi-include.patch" |
108 |
-) |
109 |
- |
110 |
-S="${WORKDIR}/${MY_P}" |
111 |
- |
112 |
-pkg_pretend() { |
113 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
114 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.4; then |
115 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
116 |
- ewarn "successively upgrade major releases until you have upgraded" |
117 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
118 |
- else |
119 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
120 |
- fi |
121 |
- fi |
122 |
-} |
123 |
- |
124 |
-src_prepare() { |
125 |
- default |
126 |
- |
127 |
- # remove bundled libs |
128 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
129 |
- |
130 |
- # remove compass |
131 |
- rm -r src/mongo/installer/compass || die |
132 |
-} |
133 |
- |
134 |
-src_configure() { |
135 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
136 |
- # --use-system-icu fails tests |
137 |
- # --use-system-tcmalloc is strongly NOT recommended: |
138 |
- scons_opts=( |
139 |
- CC="$(tc-getCC)" |
140 |
- CXX="$(tc-getCXX)" |
141 |
- |
142 |
- --disable-warnings-as-errors |
143 |
- --use-system-boost |
144 |
- --use-system-pcre |
145 |
- --use-system-snappy |
146 |
- --use-system-stemmer |
147 |
- --use-system-yaml |
148 |
- --use-system-zlib |
149 |
- ) |
150 |
- |
151 |
- use debug && scons_opts+=( --dbg=on ) |
152 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
153 |
- use lto && scons_opts+=( --lto=on ) |
154 |
- use ssl && scons_opts+=( --ssl ) |
155 |
- |
156 |
- # respect mongoDB upstream's basic recommendations |
157 |
- # see bug #536688 and #526114 |
158 |
- if ! use debug; then |
159 |
- filter-flags '-m*' |
160 |
- filter-flags '-O?' |
161 |
- fi |
162 |
- |
163 |
- default |
164 |
-} |
165 |
- |
166 |
-src_compile() { |
167 |
- escons "${scons_opts[@]}" core tools |
168 |
-} |
169 |
- |
170 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
171 |
-src_test() { |
172 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
173 |
-} |
174 |
- |
175 |
-src_install() { |
176 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
177 |
- |
178 |
- doman debian/mongo*.1 |
179 |
- dodoc README docs/building.md |
180 |
- |
181 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
182 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
183 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
184 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
185 |
- |
186 |
- insinto /etc |
187 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
188 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
189 |
- |
190 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
191 |
- |
192 |
- insinto /etc/logrotate.d/ |
193 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
194 |
- |
195 |
- # see bug #526114 |
196 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
197 |
- |
198 |
- local x |
199 |
- for x in /var/{lib,log}/${PN}; do |
200 |
- diropts -m0750 -o mongodb -g mongodb |
201 |
- keepdir "${x}" |
202 |
- done |
203 |
-} |
204 |
- |
205 |
-pkg_postinst() { |
206 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
207 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
208 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
209 |
-} |
210 |
|
211 |
diff --git a/dev-db/mongodb/mongodb-3.6.16.ebuild b/dev-db/mongodb/mongodb-3.6.16.ebuild |
212 |
deleted file mode 100644 |
213 |
index b5718c0c148..00000000000 |
214 |
--- a/dev-db/mongodb/mongodb-3.6.16.ebuild |
215 |
+++ /dev/null |
216 |
@@ -1,162 +0,0 @@ |
217 |
-# Copyright 1999-2020 Gentoo Authors |
218 |
-# Distributed under the terms of the GNU General Public License v2 |
219 |
- |
220 |
-EAPI=7 |
221 |
- |
222 |
-PYTHON_COMPAT=( python2_7 ) |
223 |
- |
224 |
-SCONS_MIN_VERSION="2.5.0" |
225 |
-CHECKREQS_DISK_BUILD="2400M" |
226 |
-CHECKREQS_DISK_USR="512M" |
227 |
-CHECKREQS_MEMORY="1024M" |
228 |
- |
229 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
230 |
- |
231 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
232 |
- |
233 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
234 |
-HOMEPAGE="https://www.mongodb.com" |
235 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
236 |
- |
237 |
-LICENSE="Apache-2.0 SSPL-1" |
238 |
-SLOT="0" |
239 |
-KEYWORDS="~amd64" |
240 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
241 |
-RESTRICT="!test? ( test )" |
242 |
- |
243 |
-RDEPEND="acct-group/mongodb |
244 |
- acct-user/mongodb |
245 |
- >=app-arch/snappy-1.1.3 |
246 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
247 |
- >=dev-libs/boost-1.60:=[threads(+)] |
248 |
- >=dev-libs/libpcre-8.41[cxx] |
249 |
- dev-libs/snowball-stemmer |
250 |
- net-libs/libpcap |
251 |
- >=sys-libs/zlib-1.2.8:= |
252 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
253 |
- mms-agent? ( app-admin/mms-agent ) |
254 |
- ssl? ( |
255 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
256 |
- libressl? ( dev-libs/libressl:0= ) |
257 |
- )" |
258 |
-DEPEND="${RDEPEND} |
259 |
- ${PYTHON_DEPS} |
260 |
- $(python_gen_any_dep ' |
261 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
262 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
263 |
- dev-python/typing[${PYTHON_USEDEP}] |
264 |
- ') |
265 |
- sys-libs/ncurses:0= |
266 |
- sys-libs/readline:0= |
267 |
- debug? ( dev-util/valgrind ) |
268 |
- test? ( |
269 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
270 |
- )" |
271 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
272 |
- |
273 |
-PATCHES=( |
274 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
275 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
276 |
- "${FILESDIR}/${PN}-4.0.12-boost-1.71-cxxabi-include.patch" |
277 |
-) |
278 |
- |
279 |
-S="${WORKDIR}/${MY_P}" |
280 |
- |
281 |
-pkg_pretend() { |
282 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
283 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.4; then |
284 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
285 |
- ewarn "successively upgrade major releases until you have upgraded" |
286 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
287 |
- else |
288 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
289 |
- fi |
290 |
- fi |
291 |
-} |
292 |
- |
293 |
-src_prepare() { |
294 |
- default |
295 |
- |
296 |
- # remove bundled libs |
297 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
298 |
- |
299 |
- # remove compass |
300 |
- rm -r src/mongo/installer/compass || die |
301 |
-} |
302 |
- |
303 |
-src_configure() { |
304 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
305 |
- # --use-system-icu fails tests |
306 |
- # --use-system-tcmalloc is strongly NOT recommended: |
307 |
- scons_opts=( |
308 |
- CC="$(tc-getCC)" |
309 |
- CXX="$(tc-getCXX)" |
310 |
- |
311 |
- --disable-warnings-as-errors |
312 |
- --use-system-boost |
313 |
- --use-system-pcre |
314 |
- --use-system-snappy |
315 |
- --use-system-stemmer |
316 |
- --use-system-yaml |
317 |
- --use-system-zlib |
318 |
- ) |
319 |
- |
320 |
- use debug && scons_opts+=( --dbg=on ) |
321 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
322 |
- use lto && scons_opts+=( --lto=on ) |
323 |
- use ssl && scons_opts+=( --ssl ) |
324 |
- |
325 |
- # respect mongoDB upstream's basic recommendations |
326 |
- # see bug #536688 and #526114 |
327 |
- if ! use debug; then |
328 |
- filter-flags '-m*' |
329 |
- filter-flags '-O?' |
330 |
- fi |
331 |
- |
332 |
- default |
333 |
-} |
334 |
- |
335 |
-src_compile() { |
336 |
- escons "${scons_opts[@]}" core tools |
337 |
-} |
338 |
- |
339 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
340 |
-src_test() { |
341 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
342 |
-} |
343 |
- |
344 |
-src_install() { |
345 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
346 |
- |
347 |
- doman debian/mongo*.1 |
348 |
- dodoc README docs/building.md |
349 |
- |
350 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
351 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
352 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
353 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
354 |
- |
355 |
- insinto /etc |
356 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
357 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
358 |
- |
359 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
360 |
- |
361 |
- insinto /etc/logrotate.d/ |
362 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
363 |
- |
364 |
- # see bug #526114 |
365 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
366 |
- |
367 |
- local x |
368 |
- for x in /var/{lib,log}/${PN}; do |
369 |
- diropts -m0750 -o mongodb -g mongodb |
370 |
- keepdir "${x}" |
371 |
- done |
372 |
-} |
373 |
- |
374 |
-pkg_postinst() { |
375 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
376 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
377 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
378 |
-} |
379 |
|
380 |
diff --git a/dev-db/mongodb/mongodb-4.0.13.ebuild b/dev-db/mongodb/mongodb-4.0.13.ebuild |
381 |
deleted file mode 100644 |
382 |
index 6bc6099a543..00000000000 |
383 |
--- a/dev-db/mongodb/mongodb-4.0.13.ebuild |
384 |
+++ /dev/null |
385 |
@@ -1,162 +0,0 @@ |
386 |
-# Copyright 1999-2020 Gentoo Authors |
387 |
-# Distributed under the terms of the GNU General Public License v2 |
388 |
- |
389 |
-EAPI=7 |
390 |
- |
391 |
-PYTHON_COMPAT=( python2_7 ) |
392 |
- |
393 |
-SCONS_MIN_VERSION="2.5.0" |
394 |
-CHECKREQS_DISK_BUILD="2400M" |
395 |
-CHECKREQS_DISK_USR="512M" |
396 |
-CHECKREQS_MEMORY="1024M" |
397 |
- |
398 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
399 |
- |
400 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
401 |
- |
402 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
403 |
-HOMEPAGE="https://www.mongodb.com" |
404 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
405 |
- |
406 |
-LICENSE="Apache-2.0 SSPL-1" |
407 |
-SLOT="0" |
408 |
-KEYWORDS="~amd64" |
409 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
410 |
-RESTRICT="!test? ( test )" |
411 |
- |
412 |
-RDEPEND="acct-group/mongodb |
413 |
- acct-user/mongodb |
414 |
- >=app-arch/snappy-1.1.3 |
415 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
416 |
- >=dev-libs/boost-1.60:=[threads(+)] |
417 |
- >=dev-libs/libpcre-8.41[cxx] |
418 |
- dev-libs/snowball-stemmer |
419 |
- net-libs/libpcap |
420 |
- >=sys-libs/zlib-1.2.11:= |
421 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
422 |
- mms-agent? ( app-admin/mms-agent ) |
423 |
- ssl? ( |
424 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
425 |
- libressl? ( dev-libs/libressl:0= ) |
426 |
- )" |
427 |
-DEPEND="${RDEPEND} |
428 |
- ${PYTHON_DEPS} |
429 |
- $(python_gen_any_dep ' |
430 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
431 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
432 |
- dev-python/typing[${PYTHON_USEDEP}] |
433 |
- ') |
434 |
- sys-libs/ncurses:0= |
435 |
- sys-libs/readline:0= |
436 |
- debug? ( dev-util/valgrind ) |
437 |
- test? ( |
438 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
439 |
- )" |
440 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
441 |
- |
442 |
-PATCHES=( |
443 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
444 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
445 |
- "${FILESDIR}/${PN}-4.0.12-boost-1.71-cxxabi-include.patch" |
446 |
-) |
447 |
- |
448 |
-S="${WORKDIR}/${MY_P}" |
449 |
- |
450 |
-pkg_pretend() { |
451 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
452 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
453 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
454 |
- ewarn "successively upgrade major releases until you have upgraded" |
455 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
456 |
- else |
457 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
458 |
- fi |
459 |
- fi |
460 |
-} |
461 |
- |
462 |
-src_prepare() { |
463 |
- default |
464 |
- |
465 |
- # remove bundled libs |
466 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
467 |
- |
468 |
- # remove compass |
469 |
- rm -r src/mongo/installer/compass || die |
470 |
-} |
471 |
- |
472 |
-src_configure() { |
473 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
474 |
- # --use-system-icu fails tests |
475 |
- # --use-system-tcmalloc is strongly NOT recommended: |
476 |
- scons_opts=( |
477 |
- CC="$(tc-getCC)" |
478 |
- CXX="$(tc-getCXX)" |
479 |
- |
480 |
- --disable-warnings-as-errors |
481 |
- --use-system-boost |
482 |
- --use-system-pcre |
483 |
- --use-system-snappy |
484 |
- --use-system-stemmer |
485 |
- --use-system-yaml |
486 |
- --use-system-zlib |
487 |
- ) |
488 |
- |
489 |
- use debug && scons_opts+=( --dbg=on ) |
490 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
491 |
- use lto && scons_opts+=( --lto=on ) |
492 |
- use ssl && scons_opts+=( --ssl ) |
493 |
- |
494 |
- # respect mongoDB upstream's basic recommendations |
495 |
- # see bug #536688 and #526114 |
496 |
- if ! use debug; then |
497 |
- filter-flags '-m*' |
498 |
- filter-flags '-O?' |
499 |
- fi |
500 |
- |
501 |
- default |
502 |
-} |
503 |
- |
504 |
-src_compile() { |
505 |
- escons "${scons_opts[@]}" core tools |
506 |
-} |
507 |
- |
508 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
509 |
-src_test() { |
510 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
511 |
-} |
512 |
- |
513 |
-src_install() { |
514 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
515 |
- |
516 |
- doman debian/mongo*.1 |
517 |
- dodoc README docs/building.md |
518 |
- |
519 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
520 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
521 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
522 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
523 |
- |
524 |
- insinto /etc |
525 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
526 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
527 |
- |
528 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
529 |
- |
530 |
- insinto /etc/logrotate.d/ |
531 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
532 |
- |
533 |
- # see bug #526114 |
534 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
535 |
- |
536 |
- local x |
537 |
- for x in /var/{lib,log}/${PN}; do |
538 |
- diropts -m0750 -o mongodb -g mongodb |
539 |
- keepdir "${x}" |
540 |
- done |
541 |
-} |
542 |
- |
543 |
-pkg_postinst() { |
544 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
545 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
546 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
547 |
-} |
548 |
|
549 |
diff --git a/dev-db/mongodb/mongodb-4.0.14.ebuild b/dev-db/mongodb/mongodb-4.0.14.ebuild |
550 |
deleted file mode 100644 |
551 |
index 6bc6099a543..00000000000 |
552 |
--- a/dev-db/mongodb/mongodb-4.0.14.ebuild |
553 |
+++ /dev/null |
554 |
@@ -1,162 +0,0 @@ |
555 |
-# Copyright 1999-2020 Gentoo Authors |
556 |
-# Distributed under the terms of the GNU General Public License v2 |
557 |
- |
558 |
-EAPI=7 |
559 |
- |
560 |
-PYTHON_COMPAT=( python2_7 ) |
561 |
- |
562 |
-SCONS_MIN_VERSION="2.5.0" |
563 |
-CHECKREQS_DISK_BUILD="2400M" |
564 |
-CHECKREQS_DISK_USR="512M" |
565 |
-CHECKREQS_MEMORY="1024M" |
566 |
- |
567 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
568 |
- |
569 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
570 |
- |
571 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
572 |
-HOMEPAGE="https://www.mongodb.com" |
573 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
574 |
- |
575 |
-LICENSE="Apache-2.0 SSPL-1" |
576 |
-SLOT="0" |
577 |
-KEYWORDS="~amd64" |
578 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
579 |
-RESTRICT="!test? ( test )" |
580 |
- |
581 |
-RDEPEND="acct-group/mongodb |
582 |
- acct-user/mongodb |
583 |
- >=app-arch/snappy-1.1.3 |
584 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
585 |
- >=dev-libs/boost-1.60:=[threads(+)] |
586 |
- >=dev-libs/libpcre-8.41[cxx] |
587 |
- dev-libs/snowball-stemmer |
588 |
- net-libs/libpcap |
589 |
- >=sys-libs/zlib-1.2.11:= |
590 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
591 |
- mms-agent? ( app-admin/mms-agent ) |
592 |
- ssl? ( |
593 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
594 |
- libressl? ( dev-libs/libressl:0= ) |
595 |
- )" |
596 |
-DEPEND="${RDEPEND} |
597 |
- ${PYTHON_DEPS} |
598 |
- $(python_gen_any_dep ' |
599 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
600 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
601 |
- dev-python/typing[${PYTHON_USEDEP}] |
602 |
- ') |
603 |
- sys-libs/ncurses:0= |
604 |
- sys-libs/readline:0= |
605 |
- debug? ( dev-util/valgrind ) |
606 |
- test? ( |
607 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
608 |
- )" |
609 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
610 |
- |
611 |
-PATCHES=( |
612 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
613 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
614 |
- "${FILESDIR}/${PN}-4.0.12-boost-1.71-cxxabi-include.patch" |
615 |
-) |
616 |
- |
617 |
-S="${WORKDIR}/${MY_P}" |
618 |
- |
619 |
-pkg_pretend() { |
620 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
621 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
622 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
623 |
- ewarn "successively upgrade major releases until you have upgraded" |
624 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
625 |
- else |
626 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
627 |
- fi |
628 |
- fi |
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 |
-} |
717 |
|
718 |
diff --git a/dev-db/mongodb/mongodb-4.0.16.ebuild b/dev-db/mongodb/mongodb-4.0.16.ebuild |
719 |
deleted file mode 100644 |
720 |
index 6bc6099a543..00000000000 |
721 |
--- a/dev-db/mongodb/mongodb-4.0.16.ebuild |
722 |
+++ /dev/null |
723 |
@@ -1,162 +0,0 @@ |
724 |
-# Copyright 1999-2020 Gentoo Authors |
725 |
-# Distributed under the terms of the GNU General Public License v2 |
726 |
- |
727 |
-EAPI=7 |
728 |
- |
729 |
-PYTHON_COMPAT=( python2_7 ) |
730 |
- |
731 |
-SCONS_MIN_VERSION="2.5.0" |
732 |
-CHECKREQS_DISK_BUILD="2400M" |
733 |
-CHECKREQS_DISK_USR="512M" |
734 |
-CHECKREQS_MEMORY="1024M" |
735 |
- |
736 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
737 |
- |
738 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
739 |
- |
740 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
741 |
-HOMEPAGE="https://www.mongodb.com" |
742 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
743 |
- |
744 |
-LICENSE="Apache-2.0 SSPL-1" |
745 |
-SLOT="0" |
746 |
-KEYWORDS="~amd64" |
747 |
-IUSE="debug kerberos libressl lto mms-agent ssl test +tools" |
748 |
-RESTRICT="!test? ( test )" |
749 |
- |
750 |
-RDEPEND="acct-group/mongodb |
751 |
- acct-user/mongodb |
752 |
- >=app-arch/snappy-1.1.3 |
753 |
- >=dev-cpp/yaml-cpp-0.5.3:= |
754 |
- >=dev-libs/boost-1.60:=[threads(+)] |
755 |
- >=dev-libs/libpcre-8.41[cxx] |
756 |
- dev-libs/snowball-stemmer |
757 |
- net-libs/libpcap |
758 |
- >=sys-libs/zlib-1.2.11:= |
759 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
760 |
- mms-agent? ( app-admin/mms-agent ) |
761 |
- ssl? ( |
762 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
763 |
- libressl? ( dev-libs/libressl:0= ) |
764 |
- )" |
765 |
-DEPEND="${RDEPEND} |
766 |
- ${PYTHON_DEPS} |
767 |
- $(python_gen_any_dep ' |
768 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
769 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
770 |
- dev-python/typing[${PYTHON_USEDEP}] |
771 |
- ') |
772 |
- sys-libs/ncurses:0= |
773 |
- sys-libs/readline:0= |
774 |
- debug? ( dev-util/valgrind ) |
775 |
- test? ( |
776 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
777 |
- )" |
778 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
779 |
- |
780 |
-PATCHES=( |
781 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
782 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
783 |
- "${FILESDIR}/${PN}-4.0.12-boost-1.71-cxxabi-include.patch" |
784 |
-) |
785 |
- |
786 |
-S="${WORKDIR}/${MY_P}" |
787 |
- |
788 |
-pkg_pretend() { |
789 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
790 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
791 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
792 |
- ewarn "successively upgrade major releases until you have upgraded" |
793 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
794 |
- else |
795 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
796 |
- fi |
797 |
- fi |
798 |
-} |
799 |
- |
800 |
-src_prepare() { |
801 |
- default |
802 |
- |
803 |
- # remove bundled libs |
804 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
805 |
- |
806 |
- # remove compass |
807 |
- rm -r src/mongo/installer/compass || die |
808 |
-} |
809 |
- |
810 |
-src_configure() { |
811 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
812 |
- # --use-system-icu fails tests |
813 |
- # --use-system-tcmalloc is strongly NOT recommended: |
814 |
- scons_opts=( |
815 |
- CC="$(tc-getCC)" |
816 |
- CXX="$(tc-getCXX)" |
817 |
- |
818 |
- --disable-warnings-as-errors |
819 |
- --use-system-boost |
820 |
- --use-system-pcre |
821 |
- --use-system-snappy |
822 |
- --use-system-stemmer |
823 |
- --use-system-yaml |
824 |
- --use-system-zlib |
825 |
- ) |
826 |
- |
827 |
- use debug && scons_opts+=( --dbg=on ) |
828 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
829 |
- use lto && scons_opts+=( --lto=on ) |
830 |
- use ssl && scons_opts+=( --ssl ) |
831 |
- |
832 |
- # respect mongoDB upstream's basic recommendations |
833 |
- # see bug #536688 and #526114 |
834 |
- if ! use debug; then |
835 |
- filter-flags '-m*' |
836 |
- filter-flags '-O?' |
837 |
- fi |
838 |
- |
839 |
- default |
840 |
-} |
841 |
- |
842 |
-src_compile() { |
843 |
- escons "${scons_opts[@]}" core tools |
844 |
-} |
845 |
- |
846 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
847 |
-src_test() { |
848 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
849 |
-} |
850 |
- |
851 |
-src_install() { |
852 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
853 |
- |
854 |
- doman debian/mongo*.1 |
855 |
- dodoc README docs/building.md |
856 |
- |
857 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
858 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
859 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
860 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
861 |
- |
862 |
- insinto /etc |
863 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
864 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
865 |
- |
866 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
867 |
- |
868 |
- insinto /etc/logrotate.d/ |
869 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
870 |
- |
871 |
- # see bug #526114 |
872 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
873 |
- |
874 |
- local x |
875 |
- for x in /var/{lib,log}/${PN}; do |
876 |
- diropts -m0750 -o mongodb -g mongodb |
877 |
- keepdir "${x}" |
878 |
- done |
879 |
-} |
880 |
- |
881 |
-pkg_postinst() { |
882 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
883 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
884 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
885 |
-} |
886 |
|
887 |
diff --git a/dev-db/mongodb/mongodb-4.2.1.ebuild b/dev-db/mongodb/mongodb-4.2.1.ebuild |
888 |
deleted file mode 100644 |
889 |
index 0d28fbb0735..00000000000 |
890 |
--- a/dev-db/mongodb/mongodb-4.2.1.ebuild |
891 |
+++ /dev/null |
892 |
@@ -1,163 +0,0 @@ |
893 |
-# Copyright 1999-2020 Gentoo Authors |
894 |
-# Distributed under the terms of the GNU General Public License v2 |
895 |
- |
896 |
-EAPI=7 |
897 |
- |
898 |
-PYTHON_COMPAT=( python3_{6,7} ) |
899 |
- |
900 |
-SCONS_MIN_VERSION="2.5.0" |
901 |
-CHECKREQS_DISK_BUILD="2400M" |
902 |
-CHECKREQS_DISK_USR="512M" |
903 |
-CHECKREQS_MEMORY="1024M" |
904 |
- |
905 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
906 |
- |
907 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
908 |
- |
909 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
910 |
-HOMEPAGE="https://www.mongodb.com" |
911 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
912 |
- |
913 |
-LICENSE="Apache-2.0 SSPL-1" |
914 |
-SLOT="0" |
915 |
-KEYWORDS="~amd64" |
916 |
-IUSE="debug kerberos libressl lto ssl test +tools" |
917 |
-RESTRICT="!test? ( test )" |
918 |
- |
919 |
-RDEPEND="acct-group/mongodb |
920 |
- acct-user/mongodb |
921 |
- >=app-arch/snappy-1.1.3 |
922 |
- >=dev-cpp/yaml-cpp-0.6.2:= |
923 |
- >=dev-libs/boost-1.70:=[threads(+)] |
924 |
- >=dev-libs/libpcre-8.42[cxx] |
925 |
- app-arch/zstd |
926 |
- dev-libs/snowball-stemmer |
927 |
- net-libs/libpcap |
928 |
- >=sys-libs/zlib-1.2.11:= |
929 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
930 |
- ssl? ( |
931 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
932 |
- libressl? ( dev-libs/libressl:0= ) |
933 |
- )" |
934 |
-DEPEND="${RDEPEND} |
935 |
- ${PYTHON_DEPS} |
936 |
- $(python_gen_any_dep ' |
937 |
- dev-python/cheetah3[${PYTHON_USEDEP}] |
938 |
- dev-python/psutil[${PYTHON_USEDEP}] |
939 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
940 |
- ') |
941 |
- sys-libs/ncurses:0= |
942 |
- sys-libs/readline:0= |
943 |
- debug? ( dev-util/valgrind ) |
944 |
- test? ( |
945 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
946 |
- )" |
947 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
948 |
- |
949 |
-PATCHES=( |
950 |
- "${FILESDIR}/${PN}-4.2.0-fix-scons.patch" |
951 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
952 |
-) |
953 |
- |
954 |
-S="${WORKDIR}/${MY_P}" |
955 |
- |
956 |
-pkg_pretend() { |
957 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
958 |
- if ver_test "$REPLACING_VERSIONS" -lt 4.0; then |
959 |
- ewarn "To upgrade from a version earlier than the 4.0-series, you must" |
960 |
- ewarn "successively upgrade major releases until you have upgraded" |
961 |
- ewarn "to 4.0-series. Then upgrade to 4.2 series." |
962 |
- else |
963 |
- ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading." |
964 |
- fi |
965 |
- fi |
966 |
-} |
967 |
- |
968 |
-src_prepare() { |
969 |
- default |
970 |
- |
971 |
- # remove bundled libs |
972 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die |
973 |
- |
974 |
- # remove compass |
975 |
- rm -r src/mongo/installer/compass || die |
976 |
-} |
977 |
- |
978 |
-src_configure() { |
979 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
980 |
- # --use-system-icu fails tests |
981 |
- # --use-system-tcmalloc is strongly NOT recommended: |
982 |
- scons_opts=( |
983 |
- CC="$(tc-getCC)" |
984 |
- CXX="$(tc-getCXX)" |
985 |
- |
986 |
- --disable-warnings-as-errors |
987 |
- --use-system-boost |
988 |
- --use-system-pcre |
989 |
- --use-system-snappy |
990 |
- --use-system-stemmer |
991 |
- --use-system-yaml |
992 |
- --use-system-zlib |
993 |
- --use-system-zstd |
994 |
- ) |
995 |
- |
996 |
- use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300 |
997 |
- use debug && scons_opts+=( --dbg=on ) |
998 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
999 |
- use lto && scons_opts+=( --lto=on ) |
1000 |
- use ssl && scons_opts+=( --ssl ) |
1001 |
- |
1002 |
- # respect mongoDB upstream's basic recommendations |
1003 |
- # see bug #536688 and #526114 |
1004 |
- if ! use debug; then |
1005 |
- filter-flags '-m*' |
1006 |
- filter-flags '-O?' |
1007 |
- fi |
1008 |
- |
1009 |
- default |
1010 |
-} |
1011 |
- |
1012 |
-src_compile() { |
1013 |
- escons "${scons_opts[@]}" core tools |
1014 |
-} |
1015 |
- |
1016 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1017 |
-src_test() { |
1018 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1019 |
-} |
1020 |
- |
1021 |
-src_install() { |
1022 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1023 |
- |
1024 |
- doman debian/mongo*.1 |
1025 |
- dodoc README docs/building.md |
1026 |
- |
1027 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1028 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1029 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
1030 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
1031 |
- |
1032 |
- insinto /etc |
1033 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1034 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
1035 |
- |
1036 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1037 |
- |
1038 |
- insinto /etc/logrotate.d/ |
1039 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1040 |
- |
1041 |
- # see bug #526114 |
1042 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1043 |
- |
1044 |
- local x |
1045 |
- for x in /var/{lib,log}/${PN}; do |
1046 |
- diropts -m0750 -o mongodb -g mongodb |
1047 |
- keepdir "${x}" |
1048 |
- done |
1049 |
-} |
1050 |
- |
1051 |
-pkg_postinst() { |
1052 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1053 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
1054 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
1055 |
-} |
1056 |
|
1057 |
diff --git a/dev-db/mongodb/mongodb-4.2.2.ebuild b/dev-db/mongodb/mongodb-4.2.2.ebuild |
1058 |
deleted file mode 100644 |
1059 |
index 0d28fbb0735..00000000000 |
1060 |
--- a/dev-db/mongodb/mongodb-4.2.2.ebuild |
1061 |
+++ /dev/null |
1062 |
@@ -1,163 +0,0 @@ |
1063 |
-# Copyright 1999-2020 Gentoo Authors |
1064 |
-# Distributed under the terms of the GNU General Public License v2 |
1065 |
- |
1066 |
-EAPI=7 |
1067 |
- |
1068 |
-PYTHON_COMPAT=( python3_{6,7} ) |
1069 |
- |
1070 |
-SCONS_MIN_VERSION="2.5.0" |
1071 |
-CHECKREQS_DISK_BUILD="2400M" |
1072 |
-CHECKREQS_DISK_USR="512M" |
1073 |
-CHECKREQS_MEMORY="1024M" |
1074 |
- |
1075 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
1076 |
- |
1077 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
1078 |
- |
1079 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
1080 |
-HOMEPAGE="https://www.mongodb.com" |
1081 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
1082 |
- |
1083 |
-LICENSE="Apache-2.0 SSPL-1" |
1084 |
-SLOT="0" |
1085 |
-KEYWORDS="~amd64" |
1086 |
-IUSE="debug kerberos libressl lto ssl test +tools" |
1087 |
-RESTRICT="!test? ( test )" |
1088 |
- |
1089 |
-RDEPEND="acct-group/mongodb |
1090 |
- acct-user/mongodb |
1091 |
- >=app-arch/snappy-1.1.3 |
1092 |
- >=dev-cpp/yaml-cpp-0.6.2:= |
1093 |
- >=dev-libs/boost-1.70:=[threads(+)] |
1094 |
- >=dev-libs/libpcre-8.42[cxx] |
1095 |
- app-arch/zstd |
1096 |
- dev-libs/snowball-stemmer |
1097 |
- net-libs/libpcap |
1098 |
- >=sys-libs/zlib-1.2.11:= |
1099 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
1100 |
- ssl? ( |
1101 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
1102 |
- libressl? ( dev-libs/libressl:0= ) |
1103 |
- )" |
1104 |
-DEPEND="${RDEPEND} |
1105 |
- ${PYTHON_DEPS} |
1106 |
- $(python_gen_any_dep ' |
1107 |
- dev-python/cheetah3[${PYTHON_USEDEP}] |
1108 |
- dev-python/psutil[${PYTHON_USEDEP}] |
1109 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
1110 |
- ') |
1111 |
- sys-libs/ncurses:0= |
1112 |
- sys-libs/readline:0= |
1113 |
- debug? ( dev-util/valgrind ) |
1114 |
- test? ( |
1115 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
1116 |
- )" |
1117 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
1118 |
- |
1119 |
-PATCHES=( |
1120 |
- "${FILESDIR}/${PN}-4.2.0-fix-scons.patch" |
1121 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
1122 |
-) |
1123 |
- |
1124 |
-S="${WORKDIR}/${MY_P}" |
1125 |
- |
1126 |
-pkg_pretend() { |
1127 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
1128 |
- if ver_test "$REPLACING_VERSIONS" -lt 4.0; then |
1129 |
- ewarn "To upgrade from a version earlier than the 4.0-series, you must" |
1130 |
- ewarn "successively upgrade major releases until you have upgraded" |
1131 |
- ewarn "to 4.0-series. Then upgrade to 4.2 series." |
1132 |
- else |
1133 |
- ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading." |
1134 |
- fi |
1135 |
- fi |
1136 |
-} |
1137 |
- |
1138 |
-src_prepare() { |
1139 |
- default |
1140 |
- |
1141 |
- # remove bundled libs |
1142 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die |
1143 |
- |
1144 |
- # remove compass |
1145 |
- rm -r src/mongo/installer/compass || die |
1146 |
-} |
1147 |
- |
1148 |
-src_configure() { |
1149 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1150 |
- # --use-system-icu fails tests |
1151 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1152 |
- scons_opts=( |
1153 |
- CC="$(tc-getCC)" |
1154 |
- CXX="$(tc-getCXX)" |
1155 |
- |
1156 |
- --disable-warnings-as-errors |
1157 |
- --use-system-boost |
1158 |
- --use-system-pcre |
1159 |
- --use-system-snappy |
1160 |
- --use-system-stemmer |
1161 |
- --use-system-yaml |
1162 |
- --use-system-zlib |
1163 |
- --use-system-zstd |
1164 |
- ) |
1165 |
- |
1166 |
- use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300 |
1167 |
- use debug && scons_opts+=( --dbg=on ) |
1168 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1169 |
- use lto && scons_opts+=( --lto=on ) |
1170 |
- use ssl && scons_opts+=( --ssl ) |
1171 |
- |
1172 |
- # respect mongoDB upstream's basic recommendations |
1173 |
- # see bug #536688 and #526114 |
1174 |
- if ! use debug; then |
1175 |
- filter-flags '-m*' |
1176 |
- filter-flags '-O?' |
1177 |
- fi |
1178 |
- |
1179 |
- default |
1180 |
-} |
1181 |
- |
1182 |
-src_compile() { |
1183 |
- escons "${scons_opts[@]}" core tools |
1184 |
-} |
1185 |
- |
1186 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1187 |
-src_test() { |
1188 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1189 |
-} |
1190 |
- |
1191 |
-src_install() { |
1192 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1193 |
- |
1194 |
- doman debian/mongo*.1 |
1195 |
- dodoc README docs/building.md |
1196 |
- |
1197 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1198 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1199 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
1200 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
1201 |
- |
1202 |
- insinto /etc |
1203 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1204 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
1205 |
- |
1206 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1207 |
- |
1208 |
- insinto /etc/logrotate.d/ |
1209 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1210 |
- |
1211 |
- # see bug #526114 |
1212 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1213 |
- |
1214 |
- local x |
1215 |
- for x in /var/{lib,log}/${PN}; do |
1216 |
- diropts -m0750 -o mongodb -g mongodb |
1217 |
- keepdir "${x}" |
1218 |
- done |
1219 |
-} |
1220 |
- |
1221 |
-pkg_postinst() { |
1222 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1223 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
1224 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
1225 |
-} |
1226 |
|
1227 |
diff --git a/dev-db/mongodb/mongodb-4.2.3.ebuild b/dev-db/mongodb/mongodb-4.2.3.ebuild |
1228 |
deleted file mode 100644 |
1229 |
index 0d28fbb0735..00000000000 |
1230 |
--- a/dev-db/mongodb/mongodb-4.2.3.ebuild |
1231 |
+++ /dev/null |
1232 |
@@ -1,163 +0,0 @@ |
1233 |
-# Copyright 1999-2020 Gentoo Authors |
1234 |
-# Distributed under the terms of the GNU General Public License v2 |
1235 |
- |
1236 |
-EAPI=7 |
1237 |
- |
1238 |
-PYTHON_COMPAT=( python3_{6,7} ) |
1239 |
- |
1240 |
-SCONS_MIN_VERSION="2.5.0" |
1241 |
-CHECKREQS_DISK_BUILD="2400M" |
1242 |
-CHECKREQS_DISK_USR="512M" |
1243 |
-CHECKREQS_MEMORY="1024M" |
1244 |
- |
1245 |
-inherit check-reqs flag-o-matic multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs |
1246 |
- |
1247 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
1248 |
- |
1249 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
1250 |
-HOMEPAGE="https://www.mongodb.com" |
1251 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
1252 |
- |
1253 |
-LICENSE="Apache-2.0 SSPL-1" |
1254 |
-SLOT="0" |
1255 |
-KEYWORDS="~amd64" |
1256 |
-IUSE="debug kerberos libressl lto ssl test +tools" |
1257 |
-RESTRICT="!test? ( test )" |
1258 |
- |
1259 |
-RDEPEND="acct-group/mongodb |
1260 |
- acct-user/mongodb |
1261 |
- >=app-arch/snappy-1.1.3 |
1262 |
- >=dev-cpp/yaml-cpp-0.6.2:= |
1263 |
- >=dev-libs/boost-1.70:=[threads(+)] |
1264 |
- >=dev-libs/libpcre-8.42[cxx] |
1265 |
- app-arch/zstd |
1266 |
- dev-libs/snowball-stemmer |
1267 |
- net-libs/libpcap |
1268 |
- >=sys-libs/zlib-1.2.11:= |
1269 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
1270 |
- ssl? ( |
1271 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
1272 |
- libressl? ( dev-libs/libressl:0= ) |
1273 |
- )" |
1274 |
-DEPEND="${RDEPEND} |
1275 |
- ${PYTHON_DEPS} |
1276 |
- $(python_gen_any_dep ' |
1277 |
- dev-python/cheetah3[${PYTHON_USEDEP}] |
1278 |
- dev-python/psutil[${PYTHON_USEDEP}] |
1279 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
1280 |
- ') |
1281 |
- sys-libs/ncurses:0= |
1282 |
- sys-libs/readline:0= |
1283 |
- debug? ( dev-util/valgrind ) |
1284 |
- test? ( |
1285 |
- $(python_gen_any_dep 'dev-python/pymongo[${PYTHON_USEDEP}]') |
1286 |
- )" |
1287 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
1288 |
- |
1289 |
-PATCHES=( |
1290 |
- "${FILESDIR}/${PN}-4.2.0-fix-scons.patch" |
1291 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
1292 |
-) |
1293 |
- |
1294 |
-S="${WORKDIR}/${MY_P}" |
1295 |
- |
1296 |
-pkg_pretend() { |
1297 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
1298 |
- if ver_test "$REPLACING_VERSIONS" -lt 4.0; then |
1299 |
- ewarn "To upgrade from a version earlier than the 4.0-series, you must" |
1300 |
- ewarn "successively upgrade major releases until you have upgraded" |
1301 |
- ewarn "to 4.0-series. Then upgrade to 4.2 series." |
1302 |
- else |
1303 |
- ewarn "Be sure to set featureCompatibilityVersion to 4.0 before upgrading." |
1304 |
- fi |
1305 |
- fi |
1306 |
-} |
1307 |
- |
1308 |
-src_prepare() { |
1309 |
- default |
1310 |
- |
1311 |
- # remove bundled libs |
1312 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*,zstandard-*} || die |
1313 |
- |
1314 |
- # remove compass |
1315 |
- rm -r src/mongo/installer/compass || die |
1316 |
-} |
1317 |
- |
1318 |
-src_configure() { |
1319 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1320 |
- # --use-system-icu fails tests |
1321 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1322 |
- scons_opts=( |
1323 |
- CC="$(tc-getCC)" |
1324 |
- CXX="$(tc-getCXX)" |
1325 |
- |
1326 |
- --disable-warnings-as-errors |
1327 |
- --use-system-boost |
1328 |
- --use-system-pcre |
1329 |
- --use-system-snappy |
1330 |
- --use-system-stemmer |
1331 |
- --use-system-yaml |
1332 |
- --use-system-zlib |
1333 |
- --use-system-zstd |
1334 |
- ) |
1335 |
- |
1336 |
- use arm64 && scons_opts+=( --use-hardware-crc32=off ) # Bug 701300 |
1337 |
- use debug && scons_opts+=( --dbg=on ) |
1338 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1339 |
- use lto && scons_opts+=( --lto=on ) |
1340 |
- use ssl && scons_opts+=( --ssl ) |
1341 |
- |
1342 |
- # respect mongoDB upstream's basic recommendations |
1343 |
- # see bug #536688 and #526114 |
1344 |
- if ! use debug; then |
1345 |
- filter-flags '-m*' |
1346 |
- filter-flags '-O?' |
1347 |
- fi |
1348 |
- |
1349 |
- default |
1350 |
-} |
1351 |
- |
1352 |
-src_compile() { |
1353 |
- escons "${scons_opts[@]}" core tools |
1354 |
-} |
1355 |
- |
1356 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1357 |
-src_test() { |
1358 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1359 |
-} |
1360 |
- |
1361 |
-src_install() { |
1362 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1363 |
- |
1364 |
- doman debian/mongo*.1 |
1365 |
- dodoc README docs/building.md |
1366 |
- |
1367 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1368 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1369 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
1370 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
1371 |
- |
1372 |
- insinto /etc |
1373 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1374 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
1375 |
- |
1376 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1377 |
- |
1378 |
- insinto /etc/logrotate.d/ |
1379 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1380 |
- |
1381 |
- # see bug #526114 |
1382 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1383 |
- |
1384 |
- local x |
1385 |
- for x in /var/{lib,log}/${PN}; do |
1386 |
- diropts -m0750 -o mongodb -g mongodb |
1387 |
- keepdir "${x}" |
1388 |
- done |
1389 |
-} |
1390 |
- |
1391 |
-pkg_postinst() { |
1392 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1393 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
1394 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
1395 |
-} |