1 |
commit: 92933f39552ceb8299df55382ee75d04ceb6acd4 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Sep 27 12:35:49 2018 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 28 07:53:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92933f39 |
7 |
|
8 |
dev-db/mongodb: drop old |
9 |
|
10 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
12 |
|
13 |
dev-db/mongodb/Manifest | 13 --- |
14 |
dev-db/mongodb/mongodb-3.0.14.ebuild | 174 --------------------------------- |
15 |
dev-db/mongodb/mongodb-3.0.15.ebuild | 174 --------------------------------- |
16 |
dev-db/mongodb/mongodb-3.4.13.ebuild | 167 ------------------------------- |
17 |
dev-db/mongodb/mongodb-3.4.14.ebuild | 167 ------------------------------- |
18 |
dev-db/mongodb/mongodb-3.4.15.ebuild | 167 ------------------------------- |
19 |
dev-db/mongodb/mongodb-3.6.2-r1.ebuild | 170 -------------------------------- |
20 |
dev-db/mongodb/mongodb-3.6.3-r1.ebuild | 170 -------------------------------- |
21 |
dev-db/mongodb/mongodb-3.6.4-r1.ebuild | 170 -------------------------------- |
22 |
dev-db/mongodb/mongodb-3.6.5-r1.ebuild | 170 -------------------------------- |
23 |
dev-db/mongodb/mongodb-3.6.6.ebuild | 164 ------------------------------- |
24 |
dev-db/mongodb/mongodb-3.6.7.ebuild | 164 ------------------------------- |
25 |
dev-db/mongodb/mongodb-4.0.0-r1.ebuild | 170 -------------------------------- |
26 |
dev-db/mongodb/mongodb-4.0.1.ebuild | 164 ------------------------------- |
27 |
14 files changed, 2204 deletions(-) |
28 |
|
29 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
30 |
index 28611c60495..19ed35186ab 100644 |
31 |
--- a/dev-db/mongodb/Manifest |
32 |
+++ b/dev-db/mongodb/Manifest |
33 |
@@ -1,18 +1,5 @@ |
34 |
-DIST mongodb-src-r3.0.14.tar.gz 28093922 BLAKE2B c36f1868aaf8d149550d9e8fcfa3598b917426f896cdb9e1d12fb047345011b06975719d24db3ffadadf6e1f6007a3e32768eaaa9da9ec8f340c7a49c9239b45 SHA512 477fab29ca0ad2a0f24b895e30dc4770af8d6a1a57f3c10a02a989b58dd22510db554da0418129d4e81958342ad169696eed4b86bf5aa73916c7cec879db1152 |
35 |
-DIST mongodb-src-r3.0.15.tar.gz 28096395 BLAKE2B 123194723e7f1057bc5497ce9bf51f8dd2d65495f6e2c84adde22e3b41cace9c0bce8134a7b85fa1c8e89ce953a3df780eae013d61bba44bbf9339c1e2e478af SHA512 21cec235a691dad7d1d2c625ef04a851b59223b8f2c0bdc979f2a0b8249ed46b4e62753fd595afa7b74bce13851d1f6547e54d8ffad8ba1f56e36db664f5b27e |
36 |
DIST mongodb-src-r3.2.17.tar.gz 29295394 BLAKE2B 3fa9d8fa0b50b72c3b2aa86980dd4d46bd053f23d044e321d6f98f5edb76c566bf00455cf745110a8c39355843664d9d1fbbdf554fc8696de73db2b270446adc SHA512 0d6a01278bc61805afd164e4a29abe150a5a96d551ed2c7c5d385b269924a7c5f065315e4f19c0ab070aa275ac03447959af45f33826457e5db0c5f98e623512 |
37 |
DIST mongodb-src-r3.4.10.tar.gz 39959937 BLAKE2B f14f081525f694b939bc21f8cb6364c2a37573c0e1867322dd2062dc167b112751579c3e2d76730b3ff07b0c6bbfd36666bbea99162b7c10eef62d92eb1b0850 SHA512 6293dde40a8433477ba3b1cf77abbdb32b28ce58279cc616b488647c8ab71b5ab3eab2146058c4a74b9e00f0938f1415020e2f26ea01f2b29dd78a1a38d58c3a |
38 |
-DIST mongodb-src-r3.4.13.tar.gz 39992720 BLAKE2B 5620711c5ffddd9a96c29be1f2801a37f30536d1b7afe5a7b339a41cacf1f97caf8d03aafdf1d6b71cc488e48f5066ebc49a63a6bf318483d552863cd47a0c0e SHA512 295dbb38d44c99e0dce46c5e4aa5d73c64d813a3767e71a7187aff05e30f896d283ca7ef19c0a7bbd036eecf3d419e38ea3bc7d98ba93d12296c49e565df0f66 |
39 |
-DIST mongodb-src-r3.4.14.tar.gz 40017360 BLAKE2B 617ebf0346b9ea5034d05ba607b21b745a44e70edb347c6bf0cd8b273b448caef7da2d5f11036d48add6f452883a9b15259fe8ad466e58199be5eb9512167b6d SHA512 f8c38d12e24ae332221db15aab646725ef666012837b8127a1ab128ac2d6da2ab702f3edd17fdf3e6a840f603c8c66acf2a87fe74adf30bd9c4fe6b873c98186 |
40 |
-DIST mongodb-src-r3.4.15.tar.gz 40063153 BLAKE2B 7912a1b0450337c8b9935deb6abfbda6080f8fec68222b6eb9fbbd278e4d8a1ffb873c7c4a63c78c3eadc722c694d4d48b3f5d9247531f1731d7713a527daec5 SHA512 8b29c1cef4c34e9c2e16bbaf50aa10574eb63c9692ab248849a0cc476acc637794c3be27df0663a27ee4ced28c6d80bb0e11ac00fcd6d0a8babfc835b78fce59 |
41 |
DIST mongodb-src-r3.4.16.tar.gz 40093657 BLAKE2B 7123444dbdd0b2ad3adfb3391e0177d33c1b6c6a4ea83027821c564faad047a736e52926bc15c58bef59c18282436e913fd3bc9963705e030da01356f83ea367 SHA512 e22eb1fe2a832fed8305200614988c5ecfd619cee44fe2263bffa151732c0e26584084e64065dbc65152be6e5c1767a538193770359bea92f3703c72239075db |
42 |
-DIST mongodb-src-r3.6.2.tar.gz 39999539 BLAKE2B 3e38917ebaf79b63bf054279fbb91a648fe52e69d8194998dc74453ad6766688929a80456f6cb4801f2806ac938a5dfc0407e5f46345b47a80ecce0ba03d7fde SHA512 7acfbcc68c1bd4e6e63eee09be1dfbb064be6f8b0144418105100a065f8162cafc9b776fe0429fd64c79b958561aa42d0bdef56588dda65acee27ccc98631f39 |
43 |
-DIST mongodb-src-r3.6.3.tar.gz 40093607 BLAKE2B bb21bf0487661eec6140ade22526617b26b2499bd36e138d955d14a4b13a0685ec7308bccfc11ef17c785cd8a71c5b6cd9d154d461b8973410b03952b93953ec SHA512 94aa9955f99d5f6bbbe65dc3755583952525398308ca7cb9224b91d1fa403de5bb3abb63a651583815cbecaff58966b5cfe7334a36ef6583f73d8c213410ddbc |
44 |
-DIST mongodb-src-r3.6.4.tar.gz 40159916 BLAKE2B d3878d4e6bbf331de672768b2c92a4d71f758232170432d757f7e61849e6e1ef3b190e6a089101c9ea23c4ce23087c684c86fc6ea0f32f6fe052ce322d47e438 SHA512 02c2a697af9fdcbb16d19792be17d987e18c684418a63ed4750471c7ec22eb2eabf84e93cb1d298f67898b7e23687f668bb333c50ffc4e1b8adf8859f856ad95 |
45 |
-DIST mongodb-src-r3.6.5.tar.gz 40310152 BLAKE2B 72110ae47b17ec8b1f60636a5ef8491b076e1cc019513fd872ea38b3bb8393efff4bddc7b795b3da711f258d21be9fa23e24d396a9429349c51ce05fff180a53 SHA512 6ecb3140ee4a7929fabe62d698f23e87cb5030cf31abefe7f82374f407fb87dc05f712089998f96bc40e23698836a86e7f3590892bde9d2d6f2c4bcc15cc3ebf |
46 |
-DIST mongodb-src-r3.6.6.tar.gz 40391572 BLAKE2B 1cee1ad5431d2941cf2f0ee31290b2b5bc1c628f2cb5041d4d5a1427d342ecc3bbfb123e540581d81a1c5b018464abb9dcd1ead8df0de6a01a1462ca0c258e83 SHA512 cd91979ba29538c9e1645fe81e03ac56101b0fa8980ea2bdf89a4987ee8f7f6ddc97e2b27495500548a4424f155a1847471c7a5715beabf75ff894edf05c546b |
47 |
-DIST mongodb-src-r3.6.7.tar.gz 40421164 BLAKE2B c447799f33de768fada7a8f44e692602bd827aec7087886b28d69830382db005a1a95e2596306e24f9d7a4555e1b3f8f6355ebad38a27d06234de15ec946dd04 SHA512 6d91785c5569f8b99ff7234fa94c7b87406489b1e04a9e1b44a2af6cbaf79e3685dbc361162935dc4b92bd07ed40bf024dba4ca85c1a4079dd22f1cdac91d594 |
48 |
DIST mongodb-src-r3.6.8.tar.gz 40428295 BLAKE2B cc02f73cfb49fb38ccabaad5a02610ce73fc41895ce944e48669e254bcbc70c8872a1bd7f8e04371fae4fcd9af2466fd8550367dd1d1da5cee50b86fc5023bf2 SHA512 c981f3269be3bafb59aa89d36c39a801fd7007b60db6c09b4616a559aaf8e50b34cabbdac2b59f23552c0a5112913fba468f7e2ed9a5f4daa3702dcffdf34999 |
49 |
-DIST mongodb-src-r4.0.0.tar.gz 49138467 BLAKE2B 616e267c737729103de544d82db60489e7a32c5f9847ffd2d643a9025c18aa867718216f5de9f18a93fb2a7930c3dbe9ec3850eef09dbec084570328a99f2865 SHA512 11d00cdde606cfea268471cffccedb6d003e421aeffda2303aff4d4126c386aaec50a1de733d7a1d5fb6605403cf9f2218dae50374c7b5e8625fa80317804589 |
50 |
-DIST mongodb-src-r4.0.1.tar.gz 49175057 BLAKE2B 69cd8268964200534d61493018044372f2991cedb027454c02023f5f54a0616b31c421d611ff2e67dfca87b99727cef5266a4279445a8693f8c676d0803553b3 SHA512 cfb0ec3227d976999f366ca15ddaa9379f90433dbd02bd16d001f0a7f986e84df697cbbd43674988b5d41a0b85445dcd0c4717cb406e05c1fbcd544088c859ea |
51 |
DIST mongodb-src-r4.0.2.tar.gz 49328232 BLAKE2B 0e56392de5b8cd59c49c38469ed427c52dbd91cd64b3c97da6809c0f849198f836896b8ef24a06e7ff84a65a7986b76df2ca4ffeafe76d8afe0e031ad25ecf5a SHA512 171422ee028ebc279bb2cf20c78a3ce89a6cc15abf0955ac20a6c67f1aae577bf99ca4363fc428dba6ae0250b97f95d2fc51ca7f4a4505e8c38c9a11ca249800 |
52 |
|
53 |
diff --git a/dev-db/mongodb/mongodb-3.0.14.ebuild b/dev-db/mongodb/mongodb-3.0.14.ebuild |
54 |
deleted file mode 100644 |
55 |
index 97c48d9a1d0..00000000000 |
56 |
--- a/dev-db/mongodb/mongodb-3.0.14.ebuild |
57 |
+++ /dev/null |
58 |
@@ -1,174 +0,0 @@ |
59 |
-# Copyright 1999-2017 Gentoo Foundation |
60 |
-# Distributed under the terms of the GNU General Public License v2 |
61 |
- |
62 |
-EAPI=6 |
63 |
-SCONS_MIN_VERSION="2.3.0" |
64 |
-CHECKREQS_DISK_BUILD="2400M" |
65 |
-CHECKREQS_DISK_USR="512M" |
66 |
-CHECKREQS_MEMORY="1024M" |
67 |
- |
68 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
69 |
- |
70 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
71 |
- |
72 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
73 |
-HOMEPAGE="http://www.mongodb.org" |
74 |
-SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" |
75 |
- |
76 |
-LICENSE="AGPL-3 Apache-2.0" |
77 |
-SLOT="0" |
78 |
-KEYWORDS="amd64 x86" |
79 |
-IUSE="debug kerberos libressl mms-agent ssl +tools" |
80 |
- |
81 |
-RDEPEND="app-arch/snappy |
82 |
- >=dev-cpp/yaml-cpp-0.5.1 |
83 |
- >=dev-libs/boost-1.57[threads(+)] |
84 |
- >=dev-libs/libpcre-8.39[cxx] |
85 |
- dev-libs/snowball-stemmer |
86 |
- net-libs/libpcap |
87 |
- sys-libs/zlib |
88 |
- mms-agent? ( app-admin/mms-agent ) |
89 |
- ssl? ( |
90 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
91 |
- libressl? ( dev-libs/libressl:0= ) |
92 |
- )" |
93 |
-DEPEND="${RDEPEND} |
94 |
- >=sys-devel/gcc-4.8.2:* |
95 |
- sys-libs/ncurses |
96 |
- sys-libs/readline |
97 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )" |
98 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
99 |
- |
100 |
-PATCHES=( |
101 |
- "${FILESDIR}/${PN}-3.0.14-fix-scons.patch" |
102 |
- "${FILESDIR}/${PN}-3.0.14-fix-std-string.patch" |
103 |
- "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
104 |
-) |
105 |
- |
106 |
-S=${WORKDIR}/${MY_P} |
107 |
- |
108 |
-pkg_setup() { |
109 |
- enewgroup mongodb |
110 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
111 |
- |
112 |
- # Maintainer notes |
113 |
- # |
114 |
- # --use-system-tcmalloc is strongly NOT recommended: |
115 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
116 |
- # |
117 |
- # --c++11 is required by scons instead of auto detection: |
118 |
- # https://jira.mongodb.org/browse/SERVER-19661 |
119 |
- |
120 |
- scons_opts=( |
121 |
- --variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11 |
122 |
- --disable-warnings-as-errors |
123 |
- --use-system-boost |
124 |
- --use-system-pcre |
125 |
- --use-system-snappy |
126 |
- --use-system-stemmer |
127 |
- --use-system-yaml |
128 |
- ) |
129 |
- |
130 |
- if use debug; then |
131 |
- scons_opts+=( --dbg=on ) |
132 |
- fi |
133 |
- |
134 |
- if use prefix; then |
135 |
- scons_opts+=( |
136 |
- --cpppath="${EPREFIX}/usr/include )" |
137 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
138 |
- ) |
139 |
- fi |
140 |
- |
141 |
- if use kerberos; then |
142 |
- scons_opts+=( --use-sasl-client ) |
143 |
- fi |
144 |
- |
145 |
- if use ssl; then |
146 |
- scons_opts+=( --ssl ) |
147 |
- fi |
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 || die |
158 |
-} |
159 |
- |
160 |
-src_install() { |
161 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr || die |
162 |
- |
163 |
- local x |
164 |
- for x in /var/{lib,log}/${PN}; do |
165 |
- keepdir "${x}" |
166 |
- fowners mongodb:mongodb "${x}" |
167 |
- done |
168 |
- |
169 |
- doman debian/mongo*.1 |
170 |
- dodoc README docs/building.md |
171 |
- |
172 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
173 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
174 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
175 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
176 |
- |
177 |
- insinto /etc |
178 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
179 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
180 |
- |
181 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
182 |
- |
183 |
- insinto /etc/logrotate.d/ |
184 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
185 |
- |
186 |
- # see bug #526114 |
187 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
188 |
-} |
189 |
- |
190 |
-pkg_preinst() { |
191 |
- # wrt bug #461466 |
192 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
193 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
194 |
- fi |
195 |
-} |
196 |
- |
197 |
-src_test() { |
198 |
- escons "${scons_opts[@]}" unittests || die |
199 |
- |
200 |
- # tests fail |
201 |
- sed -i '/\/util\/options_parser\/options_parser_test/d' build/unittests.txt || die |
202 |
- sed -i '/\/mongo\/server_options_test/d' build/unittests.txt || die |
203 |
- |
204 |
- local x |
205 |
- while read x; do |
206 |
- einfo "Running test $x" |
207 |
- ./$x || die |
208 |
- done < build/unittests.txt |
209 |
-} |
210 |
- |
211 |
-pkg_postinst() { |
212 |
- local v |
213 |
- for v in ${REPLACING_VERSIONS}; do |
214 |
- if ! version_is_at_least 3.0 ${v}; then |
215 |
- ewarn "!! IMPORTANT !!" |
216 |
- ewarn " " |
217 |
- ewarn "${PN} configuration files have changed !" |
218 |
- ewarn " " |
219 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
220 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
221 |
- ewarn " " |
222 |
- ewarn "Make sure you also follow the upgrading process :" |
223 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
224 |
- ewarn " " |
225 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
226 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
227 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
228 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
229 |
- break |
230 |
- fi |
231 |
- done |
232 |
-} |
233 |
|
234 |
diff --git a/dev-db/mongodb/mongodb-3.0.15.ebuild b/dev-db/mongodb/mongodb-3.0.15.ebuild |
235 |
deleted file mode 100644 |
236 |
index 08741ca2af6..00000000000 |
237 |
--- a/dev-db/mongodb/mongodb-3.0.15.ebuild |
238 |
+++ /dev/null |
239 |
@@ -1,174 +0,0 @@ |
240 |
-# Copyright 1999-2017 Gentoo Foundation |
241 |
-# Distributed under the terms of the GNU General Public License v2 |
242 |
- |
243 |
-EAPI=6 |
244 |
-SCONS_MIN_VERSION="2.3.0" |
245 |
-CHECKREQS_DISK_BUILD="2400M" |
246 |
-CHECKREQS_DISK_USR="512M" |
247 |
-CHECKREQS_MEMORY="1024M" |
248 |
- |
249 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd toolchain-funcs user versionator check-reqs |
250 |
- |
251 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
252 |
- |
253 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
254 |
-HOMEPAGE="http://www.mongodb.org" |
255 |
-SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" |
256 |
- |
257 |
-LICENSE="AGPL-3 Apache-2.0" |
258 |
-SLOT="0" |
259 |
-KEYWORDS="~amd64 ~x86" |
260 |
-IUSE="debug kerberos libressl mms-agent ssl +tools" |
261 |
- |
262 |
-RDEPEND="app-arch/snappy |
263 |
- >=dev-cpp/yaml-cpp-0.5.1 |
264 |
- >=dev-libs/boost-1.57[threads(+)] |
265 |
- >=dev-libs/libpcre-8.39[cxx] |
266 |
- dev-libs/snowball-stemmer |
267 |
- net-libs/libpcap |
268 |
- sys-libs/zlib |
269 |
- mms-agent? ( app-admin/mms-agent ) |
270 |
- ssl? ( |
271 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
272 |
- libressl? ( dev-libs/libressl:0= ) |
273 |
- )" |
274 |
-DEPEND="${RDEPEND} |
275 |
- >=sys-devel/gcc-4.8.2:* |
276 |
- sys-libs/ncurses |
277 |
- sys-libs/readline |
278 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )" |
279 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
280 |
- |
281 |
-PATCHES=( |
282 |
- "${FILESDIR}/${PN}-3.0.14-fix-scons.patch" |
283 |
- "${FILESDIR}/${PN}-3.0.14-fix-std-string.patch" |
284 |
- "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
285 |
-) |
286 |
- |
287 |
-S=${WORKDIR}/${MY_P} |
288 |
- |
289 |
-pkg_setup() { |
290 |
- enewgroup mongodb |
291 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
292 |
- |
293 |
- # Maintainer notes |
294 |
- # |
295 |
- # --use-system-tcmalloc is strongly NOT recommended: |
296 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
297 |
- # |
298 |
- # --c++11 is required by scons instead of auto detection: |
299 |
- # https://jira.mongodb.org/browse/SERVER-19661 |
300 |
- |
301 |
- scons_opts=( |
302 |
- --variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11 |
303 |
- --disable-warnings-as-errors |
304 |
- --use-system-boost |
305 |
- --use-system-pcre |
306 |
- --use-system-snappy |
307 |
- --use-system-stemmer |
308 |
- --use-system-yaml |
309 |
- ) |
310 |
- |
311 |
- if use debug; then |
312 |
- scons_opts+=( --dbg=on ) |
313 |
- fi |
314 |
- |
315 |
- if use prefix; then |
316 |
- scons_opts+=( |
317 |
- --cpppath="${EPREFIX}/usr/include )" |
318 |
- --libpath="${EPREFIX}/usr/$(get_libdir)" |
319 |
- ) |
320 |
- fi |
321 |
- |
322 |
- if use kerberos; then |
323 |
- scons_opts+=( --use-sasl-client ) |
324 |
- fi |
325 |
- |
326 |
- if use ssl; then |
327 |
- scons_opts+=( --ssl ) |
328 |
- fi |
329 |
-} |
330 |
- |
331 |
-src_compile() { |
332 |
- # respect mongoDB upstream's basic recommendations |
333 |
- # see bug #536688 and #526114 |
334 |
- if ! use debug; then |
335 |
- filter-flags '-m*' |
336 |
- filter-flags '-O?' |
337 |
- fi |
338 |
- escons "${scons_opts[@]}" core tools || die |
339 |
-} |
340 |
- |
341 |
-src_install() { |
342 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr || die |
343 |
- |
344 |
- local x |
345 |
- for x in /var/{lib,log}/${PN}; do |
346 |
- keepdir "${x}" |
347 |
- fowners mongodb:mongodb "${x}" |
348 |
- done |
349 |
- |
350 |
- doman debian/mongo*.1 |
351 |
- dodoc README docs/building.md |
352 |
- |
353 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
354 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
355 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
356 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
357 |
- |
358 |
- insinto /etc |
359 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
360 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
361 |
- |
362 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
363 |
- |
364 |
- insinto /etc/logrotate.d/ |
365 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
366 |
- |
367 |
- # see bug #526114 |
368 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
369 |
-} |
370 |
- |
371 |
-pkg_preinst() { |
372 |
- # wrt bug #461466 |
373 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
374 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
375 |
- fi |
376 |
-} |
377 |
- |
378 |
-src_test() { |
379 |
- escons "${scons_opts[@]}" unittests || die |
380 |
- |
381 |
- # tests fail |
382 |
- sed -i '/\/util\/options_parser\/options_parser_test/d' build/unittests.txt || die |
383 |
- sed -i '/\/mongo\/server_options_test/d' build/unittests.txt || die |
384 |
- |
385 |
- local x |
386 |
- while read x; do |
387 |
- einfo "Running test $x" |
388 |
- ./$x || die |
389 |
- done < build/unittests.txt |
390 |
-} |
391 |
- |
392 |
-pkg_postinst() { |
393 |
- local v |
394 |
- for v in ${REPLACING_VERSIONS}; do |
395 |
- if ! version_is_at_least 3.0 ${v}; then |
396 |
- ewarn "!! IMPORTANT !!" |
397 |
- ewarn " " |
398 |
- ewarn "${PN} configuration files have changed !" |
399 |
- ewarn " " |
400 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
401 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
402 |
- ewarn " " |
403 |
- ewarn "Make sure you also follow the upgrading process :" |
404 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
405 |
- ewarn " " |
406 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
407 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
408 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
409 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
410 |
- break |
411 |
- fi |
412 |
- done |
413 |
-} |
414 |
|
415 |
diff --git a/dev-db/mongodb/mongodb-3.4.13.ebuild b/dev-db/mongodb/mongodb-3.4.13.ebuild |
416 |
deleted file mode 100644 |
417 |
index 3869755fe9f..00000000000 |
418 |
--- a/dev-db/mongodb/mongodb-3.4.13.ebuild |
419 |
+++ /dev/null |
420 |
@@ -1,167 +0,0 @@ |
421 |
-# Copyright 1999-2018 Gentoo Foundation |
422 |
-# Distributed under the terms of the GNU General Public License v2 |
423 |
- |
424 |
-EAPI=6 |
425 |
- |
426 |
-PYTHON_COMPAT=( python2_7 ) |
427 |
- |
428 |
-SCONS_MIN_VERSION="2.3.0" |
429 |
-CHECKREQS_DISK_BUILD="2400M" |
430 |
-CHECKREQS_DISK_USR="512M" |
431 |
-CHECKREQS_MEMORY="1024M" |
432 |
- |
433 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
434 |
- |
435 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
436 |
- |
437 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
438 |
-HOMEPAGE="https://www.mongodb.com" |
439 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
440 |
- |
441 |
-LICENSE="AGPL-3 Apache-2.0" |
442 |
-SLOT="0" |
443 |
-KEYWORDS="~amd64" |
444 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
445 |
- |
446 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
447 |
- >=dev-cpp/yaml-cpp-0.5.3 |
448 |
- >=dev-libs/boost-1.60:=[threads(+)] |
449 |
- >=dev-libs/libpcre-8.41[cxx] |
450 |
- dev-libs/snowball-stemmer |
451 |
- net-libs/libpcap |
452 |
- >=sys-libs/zlib-1.2.8:= |
453 |
- mms-agent? ( app-admin/mms-agent ) |
454 |
- ssl? ( |
455 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
456 |
- libressl? ( dev-libs/libressl:0= ) |
457 |
- )" |
458 |
-DEPEND="${RDEPEND} |
459 |
- ${PYTHON_DEPS} |
460 |
- <dev-util/scons-3 |
461 |
- sys-libs/ncurses |
462 |
- sys-libs/readline |
463 |
- debug? ( dev-util/valgrind ) |
464 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
465 |
- test? ( |
466 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
467 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
468 |
- )" |
469 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
470 |
- |
471 |
-PATCHES=( |
472 |
- "${FILESDIR}/${PN}-3.4.0-fix-scons.patch" |
473 |
- "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
474 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
475 |
-) |
476 |
- |
477 |
-S=${WORKDIR}/${MY_P} |
478 |
- |
479 |
-pkg_pretend() { |
480 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2 ]]; then |
481 |
- ewarn "To upgrade from a version earlier than the 3.2-series, you must" |
482 |
- ewarn "successively upgrade major releases until you have upgraded" |
483 |
- ewarn "to 3.2-series. Then upgrade to 3.4 series." |
484 |
- fi |
485 |
-} |
486 |
- |
487 |
-pkg_setup() { |
488 |
- enewgroup mongodb |
489 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
490 |
- |
491 |
- python-single-r1_pkg_setup |
492 |
-} |
493 |
- |
494 |
-src_prepare() { |
495 |
- default |
496 |
- |
497 |
- # remove bundled libs |
498 |
- rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
499 |
-} |
500 |
- |
501 |
-src_configure() { |
502 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
503 |
- # --use-system-icu fails tests |
504 |
- # --use-system-tcmalloc is strongly NOT recommended: |
505 |
- |
506 |
- scons_opts=( |
507 |
- CC="$(tc-getCC)" |
508 |
- CXX="$(tc-getCXX)" |
509 |
- |
510 |
- --disable-warnings-as-errors |
511 |
- --use-system-boost |
512 |
- --use-system-pcre |
513 |
- --use-system-snappy |
514 |
- --use-system-stemmer |
515 |
- --use-system-yaml |
516 |
- --use-system-zlib |
517 |
- ) |
518 |
- |
519 |
- use debug && scons_opts+=( --dbg=on ) |
520 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
521 |
- use ssl && scons_opts+=( --ssl ) |
522 |
- |
523 |
- # respect mongoDB upstream's basic recommendations |
524 |
- # see bug #536688 and #526114 |
525 |
- if ! use debug; then |
526 |
- filter-flags '-m*' |
527 |
- filter-flags '-O?' |
528 |
- fi |
529 |
- |
530 |
- default |
531 |
-} |
532 |
- |
533 |
-src_compile() { |
534 |
- escons "${scons_opts[@]}" core tools |
535 |
-} |
536 |
- |
537 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
538 |
-src_test() { |
539 |
- # this one test fails |
540 |
- rm jstests/core/jsHeapLimit.js || die |
541 |
- |
542 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
543 |
-} |
544 |
- |
545 |
-src_install() { |
546 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
547 |
- |
548 |
- local x |
549 |
- for x in /var/{lib,log}/${PN}; do |
550 |
- keepdir "${x}" |
551 |
- fowners mongodb:mongodb "${x}" |
552 |
- fperms 0750 "${x}" |
553 |
- done |
554 |
- |
555 |
- doman debian/mongo*.1 |
556 |
- dodoc README docs/building.md |
557 |
- |
558 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
559 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
560 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
561 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
562 |
- |
563 |
- insinto /etc |
564 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
565 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
566 |
- |
567 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
568 |
- |
569 |
- insinto /etc/logrotate.d/ |
570 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
571 |
- |
572 |
- # see bug #526114 |
573 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
574 |
-} |
575 |
- |
576 |
-pkg_preinst() { |
577 |
- # wrt bug #461466 |
578 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
579 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
580 |
- fi |
581 |
-} |
582 |
- |
583 |
-pkg_postinst() { |
584 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
585 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
586 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
587 |
-} |
588 |
|
589 |
diff --git a/dev-db/mongodb/mongodb-3.4.14.ebuild b/dev-db/mongodb/mongodb-3.4.14.ebuild |
590 |
deleted file mode 100644 |
591 |
index 3869755fe9f..00000000000 |
592 |
--- a/dev-db/mongodb/mongodb-3.4.14.ebuild |
593 |
+++ /dev/null |
594 |
@@ -1,167 +0,0 @@ |
595 |
-# Copyright 1999-2018 Gentoo Foundation |
596 |
-# Distributed under the terms of the GNU General Public License v2 |
597 |
- |
598 |
-EAPI=6 |
599 |
- |
600 |
-PYTHON_COMPAT=( python2_7 ) |
601 |
- |
602 |
-SCONS_MIN_VERSION="2.3.0" |
603 |
-CHECKREQS_DISK_BUILD="2400M" |
604 |
-CHECKREQS_DISK_USR="512M" |
605 |
-CHECKREQS_MEMORY="1024M" |
606 |
- |
607 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
608 |
- |
609 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
610 |
- |
611 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
612 |
-HOMEPAGE="https://www.mongodb.com" |
613 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
614 |
- |
615 |
-LICENSE="AGPL-3 Apache-2.0" |
616 |
-SLOT="0" |
617 |
-KEYWORDS="~amd64" |
618 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
619 |
- |
620 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
621 |
- >=dev-cpp/yaml-cpp-0.5.3 |
622 |
- >=dev-libs/boost-1.60:=[threads(+)] |
623 |
- >=dev-libs/libpcre-8.41[cxx] |
624 |
- dev-libs/snowball-stemmer |
625 |
- net-libs/libpcap |
626 |
- >=sys-libs/zlib-1.2.8:= |
627 |
- mms-agent? ( app-admin/mms-agent ) |
628 |
- ssl? ( |
629 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
630 |
- libressl? ( dev-libs/libressl:0= ) |
631 |
- )" |
632 |
-DEPEND="${RDEPEND} |
633 |
- ${PYTHON_DEPS} |
634 |
- <dev-util/scons-3 |
635 |
- sys-libs/ncurses |
636 |
- sys-libs/readline |
637 |
- debug? ( dev-util/valgrind ) |
638 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
639 |
- test? ( |
640 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
641 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
642 |
- )" |
643 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
644 |
- |
645 |
-PATCHES=( |
646 |
- "${FILESDIR}/${PN}-3.4.0-fix-scons.patch" |
647 |
- "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
648 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
649 |
-) |
650 |
- |
651 |
-S=${WORKDIR}/${MY_P} |
652 |
- |
653 |
-pkg_pretend() { |
654 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2 ]]; then |
655 |
- ewarn "To upgrade from a version earlier than the 3.2-series, you must" |
656 |
- ewarn "successively upgrade major releases until you have upgraded" |
657 |
- ewarn "to 3.2-series. Then upgrade to 3.4 series." |
658 |
- fi |
659 |
-} |
660 |
- |
661 |
-pkg_setup() { |
662 |
- enewgroup mongodb |
663 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
664 |
- |
665 |
- python-single-r1_pkg_setup |
666 |
-} |
667 |
- |
668 |
-src_prepare() { |
669 |
- default |
670 |
- |
671 |
- # remove bundled libs |
672 |
- rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
673 |
-} |
674 |
- |
675 |
-src_configure() { |
676 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
677 |
- # --use-system-icu fails tests |
678 |
- # --use-system-tcmalloc is strongly NOT recommended: |
679 |
- |
680 |
- scons_opts=( |
681 |
- CC="$(tc-getCC)" |
682 |
- CXX="$(tc-getCXX)" |
683 |
- |
684 |
- --disable-warnings-as-errors |
685 |
- --use-system-boost |
686 |
- --use-system-pcre |
687 |
- --use-system-snappy |
688 |
- --use-system-stemmer |
689 |
- --use-system-yaml |
690 |
- --use-system-zlib |
691 |
- ) |
692 |
- |
693 |
- use debug && scons_opts+=( --dbg=on ) |
694 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
695 |
- use ssl && scons_opts+=( --ssl ) |
696 |
- |
697 |
- # respect mongoDB upstream's basic recommendations |
698 |
- # see bug #536688 and #526114 |
699 |
- if ! use debug; then |
700 |
- filter-flags '-m*' |
701 |
- filter-flags '-O?' |
702 |
- fi |
703 |
- |
704 |
- default |
705 |
-} |
706 |
- |
707 |
-src_compile() { |
708 |
- escons "${scons_opts[@]}" core tools |
709 |
-} |
710 |
- |
711 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
712 |
-src_test() { |
713 |
- # this one test fails |
714 |
- rm jstests/core/jsHeapLimit.js || die |
715 |
- |
716 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
717 |
-} |
718 |
- |
719 |
-src_install() { |
720 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
721 |
- |
722 |
- local x |
723 |
- for x in /var/{lib,log}/${PN}; do |
724 |
- keepdir "${x}" |
725 |
- fowners mongodb:mongodb "${x}" |
726 |
- fperms 0750 "${x}" |
727 |
- done |
728 |
- |
729 |
- doman debian/mongo*.1 |
730 |
- dodoc README docs/building.md |
731 |
- |
732 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
733 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
734 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
735 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
736 |
- |
737 |
- insinto /etc |
738 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
739 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
740 |
- |
741 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
742 |
- |
743 |
- insinto /etc/logrotate.d/ |
744 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
745 |
- |
746 |
- # see bug #526114 |
747 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
748 |
-} |
749 |
- |
750 |
-pkg_preinst() { |
751 |
- # wrt bug #461466 |
752 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
753 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
754 |
- fi |
755 |
-} |
756 |
- |
757 |
-pkg_postinst() { |
758 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
759 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
760 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
761 |
-} |
762 |
|
763 |
diff --git a/dev-db/mongodb/mongodb-3.4.15.ebuild b/dev-db/mongodb/mongodb-3.4.15.ebuild |
764 |
deleted file mode 100644 |
765 |
index 3869755fe9f..00000000000 |
766 |
--- a/dev-db/mongodb/mongodb-3.4.15.ebuild |
767 |
+++ /dev/null |
768 |
@@ -1,167 +0,0 @@ |
769 |
-# Copyright 1999-2018 Gentoo Foundation |
770 |
-# Distributed under the terms of the GNU General Public License v2 |
771 |
- |
772 |
-EAPI=6 |
773 |
- |
774 |
-PYTHON_COMPAT=( python2_7 ) |
775 |
- |
776 |
-SCONS_MIN_VERSION="2.3.0" |
777 |
-CHECKREQS_DISK_BUILD="2400M" |
778 |
-CHECKREQS_DISK_USR="512M" |
779 |
-CHECKREQS_MEMORY="1024M" |
780 |
- |
781 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
782 |
- |
783 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
784 |
- |
785 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
786 |
-HOMEPAGE="https://www.mongodb.com" |
787 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
788 |
- |
789 |
-LICENSE="AGPL-3 Apache-2.0" |
790 |
-SLOT="0" |
791 |
-KEYWORDS="~amd64" |
792 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
793 |
- |
794 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
795 |
- >=dev-cpp/yaml-cpp-0.5.3 |
796 |
- >=dev-libs/boost-1.60:=[threads(+)] |
797 |
- >=dev-libs/libpcre-8.41[cxx] |
798 |
- dev-libs/snowball-stemmer |
799 |
- net-libs/libpcap |
800 |
- >=sys-libs/zlib-1.2.8:= |
801 |
- mms-agent? ( app-admin/mms-agent ) |
802 |
- ssl? ( |
803 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
804 |
- libressl? ( dev-libs/libressl:0= ) |
805 |
- )" |
806 |
-DEPEND="${RDEPEND} |
807 |
- ${PYTHON_DEPS} |
808 |
- <dev-util/scons-3 |
809 |
- sys-libs/ncurses |
810 |
- sys-libs/readline |
811 |
- debug? ( dev-util/valgrind ) |
812 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
813 |
- test? ( |
814 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
815 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
816 |
- )" |
817 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
818 |
- |
819 |
-PATCHES=( |
820 |
- "${FILESDIR}/${PN}-3.4.0-fix-scons.patch" |
821 |
- "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
822 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
823 |
-) |
824 |
- |
825 |
-S=${WORKDIR}/${MY_P} |
826 |
- |
827 |
-pkg_pretend() { |
828 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2 ]]; then |
829 |
- ewarn "To upgrade from a version earlier than the 3.2-series, you must" |
830 |
- ewarn "successively upgrade major releases until you have upgraded" |
831 |
- ewarn "to 3.2-series. Then upgrade to 3.4 series." |
832 |
- fi |
833 |
-} |
834 |
- |
835 |
-pkg_setup() { |
836 |
- enewgroup mongodb |
837 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
838 |
- |
839 |
- python-single-r1_pkg_setup |
840 |
-} |
841 |
- |
842 |
-src_prepare() { |
843 |
- default |
844 |
- |
845 |
- # remove bundled libs |
846 |
- rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
847 |
-} |
848 |
- |
849 |
-src_configure() { |
850 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
851 |
- # --use-system-icu fails tests |
852 |
- # --use-system-tcmalloc is strongly NOT recommended: |
853 |
- |
854 |
- scons_opts=( |
855 |
- CC="$(tc-getCC)" |
856 |
- CXX="$(tc-getCXX)" |
857 |
- |
858 |
- --disable-warnings-as-errors |
859 |
- --use-system-boost |
860 |
- --use-system-pcre |
861 |
- --use-system-snappy |
862 |
- --use-system-stemmer |
863 |
- --use-system-yaml |
864 |
- --use-system-zlib |
865 |
- ) |
866 |
- |
867 |
- use debug && scons_opts+=( --dbg=on ) |
868 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
869 |
- use ssl && scons_opts+=( --ssl ) |
870 |
- |
871 |
- # respect mongoDB upstream's basic recommendations |
872 |
- # see bug #536688 and #526114 |
873 |
- if ! use debug; then |
874 |
- filter-flags '-m*' |
875 |
- filter-flags '-O?' |
876 |
- fi |
877 |
- |
878 |
- default |
879 |
-} |
880 |
- |
881 |
-src_compile() { |
882 |
- escons "${scons_opts[@]}" core tools |
883 |
-} |
884 |
- |
885 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
886 |
-src_test() { |
887 |
- # this one test fails |
888 |
- rm jstests/core/jsHeapLimit.js || die |
889 |
- |
890 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
891 |
-} |
892 |
- |
893 |
-src_install() { |
894 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
895 |
- |
896 |
- local x |
897 |
- for x in /var/{lib,log}/${PN}; do |
898 |
- keepdir "${x}" |
899 |
- fowners mongodb:mongodb "${x}" |
900 |
- fperms 0750 "${x}" |
901 |
- done |
902 |
- |
903 |
- doman debian/mongo*.1 |
904 |
- dodoc README docs/building.md |
905 |
- |
906 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
907 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
908 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
909 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
910 |
- |
911 |
- insinto /etc |
912 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
913 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
914 |
- |
915 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
916 |
- |
917 |
- insinto /etc/logrotate.d/ |
918 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
919 |
- |
920 |
- # see bug #526114 |
921 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
922 |
-} |
923 |
- |
924 |
-pkg_preinst() { |
925 |
- # wrt bug #461466 |
926 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
927 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
928 |
- fi |
929 |
-} |
930 |
- |
931 |
-pkg_postinst() { |
932 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
933 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
934 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
935 |
-} |
936 |
|
937 |
diff --git a/dev-db/mongodb/mongodb-3.6.2-r1.ebuild b/dev-db/mongodb/mongodb-3.6.2-r1.ebuild |
938 |
deleted file mode 100644 |
939 |
index 5604f58eafb..00000000000 |
940 |
--- a/dev-db/mongodb/mongodb-3.6.2-r1.ebuild |
941 |
+++ /dev/null |
942 |
@@ -1,170 +0,0 @@ |
943 |
-# Copyright 1999-2018 Gentoo Foundation |
944 |
-# Distributed under the terms of the GNU General Public License v2 |
945 |
- |
946 |
-EAPI=6 |
947 |
- |
948 |
-PYTHON_COMPAT=( python2_7 ) |
949 |
- |
950 |
-SCONS_MIN_VERSION="2.5.0" |
951 |
-CHECKREQS_DISK_BUILD="2400M" |
952 |
-CHECKREQS_DISK_USR="512M" |
953 |
-CHECKREQS_MEMORY="1024M" |
954 |
- |
955 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
956 |
- |
957 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
958 |
- |
959 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
960 |
-HOMEPAGE="https://www.mongodb.com" |
961 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
962 |
- |
963 |
-LICENSE="AGPL-3 Apache-2.0" |
964 |
-SLOT="0" |
965 |
-KEYWORDS="~amd64" |
966 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
967 |
- |
968 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
969 |
- >=dev-cpp/yaml-cpp-0.5.3 |
970 |
- >=dev-libs/boost-1.60:=[threads(+)] |
971 |
- >=dev-libs/libpcre-8.41[cxx] |
972 |
- dev-libs/snowball-stemmer |
973 |
- net-libs/libpcap |
974 |
- >=sys-libs/zlib-1.2.8:= |
975 |
- mms-agent? ( app-admin/mms-agent ) |
976 |
- ssl? ( |
977 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
978 |
- libressl? ( dev-libs/libressl:0= ) |
979 |
- )" |
980 |
-DEPEND="${RDEPEND} |
981 |
- ${PYTHON_DEPS} |
982 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
983 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
984 |
- virtual/python-typing[${PYTHON_USEDEP}] |
985 |
- <dev-util/scons-3 |
986 |
- sys-libs/ncurses |
987 |
- sys-libs/readline |
988 |
- debug? ( dev-util/valgrind ) |
989 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
990 |
- test? ( |
991 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
992 |
- )" |
993 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
994 |
- |
995 |
-PATCHES=( |
996 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
997 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
998 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
999 |
-) |
1000 |
- |
1001 |
-S=${WORKDIR}/${MY_P} |
1002 |
- |
1003 |
-pkg_pretend() { |
1004 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.4 ]]; then |
1005 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
1006 |
- ewarn "successively upgrade major releases until you have upgraded" |
1007 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
1008 |
- elif [[ -n ${REPLACING_VERSIONS} ]]; then |
1009 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
1010 |
- fi |
1011 |
-} |
1012 |
- |
1013 |
-pkg_setup() { |
1014 |
- enewgroup mongodb |
1015 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
1016 |
- |
1017 |
- python-single-r1_pkg_setup |
1018 |
-} |
1019 |
- |
1020 |
-src_prepare() { |
1021 |
- default |
1022 |
- |
1023 |
- # remove bundled libs |
1024 |
- rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
1025 |
- |
1026 |
- # remove compass |
1027 |
- rm -rv src/mongo/installer/compass || die |
1028 |
-} |
1029 |
- |
1030 |
-src_configure() { |
1031 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1032 |
- # --use-system-icu fails tests |
1033 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1034 |
- scons_opts=( |
1035 |
- CC="$(tc-getCC)" |
1036 |
- CXX="$(tc-getCXX)" |
1037 |
- |
1038 |
- --disable-warnings-as-errors |
1039 |
- --use-system-boost |
1040 |
- --use-system-pcre |
1041 |
- --use-system-snappy |
1042 |
- --use-system-stemmer |
1043 |
- --use-system-yaml |
1044 |
- --use-system-zlib |
1045 |
- ) |
1046 |
- |
1047 |
- use debug && scons_opts+=( --dbg=on ) |
1048 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1049 |
- use ssl && scons_opts+=( --ssl ) |
1050 |
- |
1051 |
- # respect mongoDB upstream's basic recommendations |
1052 |
- # see bug #536688 and #526114 |
1053 |
- if ! use debug; then |
1054 |
- filter-flags '-m*' |
1055 |
- filter-flags '-O?' |
1056 |
- fi |
1057 |
- |
1058 |
- default |
1059 |
-} |
1060 |
- |
1061 |
-src_compile() { |
1062 |
- escons "${scons_opts[@]}" core tools |
1063 |
-} |
1064 |
- |
1065 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1066 |
-src_test() { |
1067 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1068 |
-} |
1069 |
- |
1070 |
-src_install() { |
1071 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1072 |
- |
1073 |
- local x |
1074 |
- for x in /var/{lib,log}/${PN}; do |
1075 |
- keepdir "${x}" |
1076 |
- fowners mongodb:mongodb "${x}" |
1077 |
- fperms 0750 "${x}" |
1078 |
- done |
1079 |
- |
1080 |
- doman debian/mongo*.1 |
1081 |
- dodoc README docs/building.md |
1082 |
- |
1083 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1084 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1085 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
1086 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
1087 |
- |
1088 |
- insinto /etc |
1089 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1090 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
1091 |
- |
1092 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1093 |
- |
1094 |
- insinto /etc/logrotate.d/ |
1095 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1096 |
- |
1097 |
- # see bug #526114 |
1098 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1099 |
-} |
1100 |
- |
1101 |
-pkg_preinst() { |
1102 |
- # wrt bug #461466 |
1103 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
1104 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
1105 |
- fi |
1106 |
-} |
1107 |
- |
1108 |
-pkg_postinst() { |
1109 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1110 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
1111 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
1112 |
-} |
1113 |
|
1114 |
diff --git a/dev-db/mongodb/mongodb-3.6.3-r1.ebuild b/dev-db/mongodb/mongodb-3.6.3-r1.ebuild |
1115 |
deleted file mode 100644 |
1116 |
index 5604f58eafb..00000000000 |
1117 |
--- a/dev-db/mongodb/mongodb-3.6.3-r1.ebuild |
1118 |
+++ /dev/null |
1119 |
@@ -1,170 +0,0 @@ |
1120 |
-# Copyright 1999-2018 Gentoo Foundation |
1121 |
-# Distributed under the terms of the GNU General Public License v2 |
1122 |
- |
1123 |
-EAPI=6 |
1124 |
- |
1125 |
-PYTHON_COMPAT=( python2_7 ) |
1126 |
- |
1127 |
-SCONS_MIN_VERSION="2.5.0" |
1128 |
-CHECKREQS_DISK_BUILD="2400M" |
1129 |
-CHECKREQS_DISK_USR="512M" |
1130 |
-CHECKREQS_MEMORY="1024M" |
1131 |
- |
1132 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
1133 |
- |
1134 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
1135 |
- |
1136 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
1137 |
-HOMEPAGE="https://www.mongodb.com" |
1138 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
1139 |
- |
1140 |
-LICENSE="AGPL-3 Apache-2.0" |
1141 |
-SLOT="0" |
1142 |
-KEYWORDS="~amd64" |
1143 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
1144 |
- |
1145 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
1146 |
- >=dev-cpp/yaml-cpp-0.5.3 |
1147 |
- >=dev-libs/boost-1.60:=[threads(+)] |
1148 |
- >=dev-libs/libpcre-8.41[cxx] |
1149 |
- dev-libs/snowball-stemmer |
1150 |
- net-libs/libpcap |
1151 |
- >=sys-libs/zlib-1.2.8:= |
1152 |
- mms-agent? ( app-admin/mms-agent ) |
1153 |
- ssl? ( |
1154 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
1155 |
- libressl? ( dev-libs/libressl:0= ) |
1156 |
- )" |
1157 |
-DEPEND="${RDEPEND} |
1158 |
- ${PYTHON_DEPS} |
1159 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
1160 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
1161 |
- virtual/python-typing[${PYTHON_USEDEP}] |
1162 |
- <dev-util/scons-3 |
1163 |
- sys-libs/ncurses |
1164 |
- sys-libs/readline |
1165 |
- debug? ( dev-util/valgrind ) |
1166 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
1167 |
- test? ( |
1168 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
1169 |
- )" |
1170 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
1171 |
- |
1172 |
-PATCHES=( |
1173 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
1174 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
1175 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
1176 |
-) |
1177 |
- |
1178 |
-S=${WORKDIR}/${MY_P} |
1179 |
- |
1180 |
-pkg_pretend() { |
1181 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.4 ]]; then |
1182 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
1183 |
- ewarn "successively upgrade major releases until you have upgraded" |
1184 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
1185 |
- elif [[ -n ${REPLACING_VERSIONS} ]]; then |
1186 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
1187 |
- fi |
1188 |
-} |
1189 |
- |
1190 |
-pkg_setup() { |
1191 |
- enewgroup mongodb |
1192 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
1193 |
- |
1194 |
- python-single-r1_pkg_setup |
1195 |
-} |
1196 |
- |
1197 |
-src_prepare() { |
1198 |
- default |
1199 |
- |
1200 |
- # remove bundled libs |
1201 |
- rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
1202 |
- |
1203 |
- # remove compass |
1204 |
- rm -rv src/mongo/installer/compass || die |
1205 |
-} |
1206 |
- |
1207 |
-src_configure() { |
1208 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1209 |
- # --use-system-icu fails tests |
1210 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1211 |
- scons_opts=( |
1212 |
- CC="$(tc-getCC)" |
1213 |
- CXX="$(tc-getCXX)" |
1214 |
- |
1215 |
- --disable-warnings-as-errors |
1216 |
- --use-system-boost |
1217 |
- --use-system-pcre |
1218 |
- --use-system-snappy |
1219 |
- --use-system-stemmer |
1220 |
- --use-system-yaml |
1221 |
- --use-system-zlib |
1222 |
- ) |
1223 |
- |
1224 |
- use debug && scons_opts+=( --dbg=on ) |
1225 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1226 |
- use ssl && scons_opts+=( --ssl ) |
1227 |
- |
1228 |
- # respect mongoDB upstream's basic recommendations |
1229 |
- # see bug #536688 and #526114 |
1230 |
- if ! use debug; then |
1231 |
- filter-flags '-m*' |
1232 |
- filter-flags '-O?' |
1233 |
- fi |
1234 |
- |
1235 |
- default |
1236 |
-} |
1237 |
- |
1238 |
-src_compile() { |
1239 |
- escons "${scons_opts[@]}" core tools |
1240 |
-} |
1241 |
- |
1242 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1243 |
-src_test() { |
1244 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1245 |
-} |
1246 |
- |
1247 |
-src_install() { |
1248 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1249 |
- |
1250 |
- local x |
1251 |
- for x in /var/{lib,log}/${PN}; do |
1252 |
- keepdir "${x}" |
1253 |
- fowners mongodb:mongodb "${x}" |
1254 |
- fperms 0750 "${x}" |
1255 |
- done |
1256 |
- |
1257 |
- doman debian/mongo*.1 |
1258 |
- dodoc README docs/building.md |
1259 |
- |
1260 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1261 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1262 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
1263 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
1264 |
- |
1265 |
- insinto /etc |
1266 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1267 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
1268 |
- |
1269 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1270 |
- |
1271 |
- insinto /etc/logrotate.d/ |
1272 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1273 |
- |
1274 |
- # see bug #526114 |
1275 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1276 |
-} |
1277 |
- |
1278 |
-pkg_preinst() { |
1279 |
- # wrt bug #461466 |
1280 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
1281 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
1282 |
- fi |
1283 |
-} |
1284 |
- |
1285 |
-pkg_postinst() { |
1286 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1287 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
1288 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
1289 |
-} |
1290 |
|
1291 |
diff --git a/dev-db/mongodb/mongodb-3.6.4-r1.ebuild b/dev-db/mongodb/mongodb-3.6.4-r1.ebuild |
1292 |
deleted file mode 100644 |
1293 |
index 5604f58eafb..00000000000 |
1294 |
--- a/dev-db/mongodb/mongodb-3.6.4-r1.ebuild |
1295 |
+++ /dev/null |
1296 |
@@ -1,170 +0,0 @@ |
1297 |
-# Copyright 1999-2018 Gentoo Foundation |
1298 |
-# Distributed under the terms of the GNU General Public License v2 |
1299 |
- |
1300 |
-EAPI=6 |
1301 |
- |
1302 |
-PYTHON_COMPAT=( python2_7 ) |
1303 |
- |
1304 |
-SCONS_MIN_VERSION="2.5.0" |
1305 |
-CHECKREQS_DISK_BUILD="2400M" |
1306 |
-CHECKREQS_DISK_USR="512M" |
1307 |
-CHECKREQS_MEMORY="1024M" |
1308 |
- |
1309 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
1310 |
- |
1311 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
1312 |
- |
1313 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
1314 |
-HOMEPAGE="https://www.mongodb.com" |
1315 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
1316 |
- |
1317 |
-LICENSE="AGPL-3 Apache-2.0" |
1318 |
-SLOT="0" |
1319 |
-KEYWORDS="~amd64" |
1320 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
1321 |
- |
1322 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
1323 |
- >=dev-cpp/yaml-cpp-0.5.3 |
1324 |
- >=dev-libs/boost-1.60:=[threads(+)] |
1325 |
- >=dev-libs/libpcre-8.41[cxx] |
1326 |
- dev-libs/snowball-stemmer |
1327 |
- net-libs/libpcap |
1328 |
- >=sys-libs/zlib-1.2.8:= |
1329 |
- mms-agent? ( app-admin/mms-agent ) |
1330 |
- ssl? ( |
1331 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
1332 |
- libressl? ( dev-libs/libressl:0= ) |
1333 |
- )" |
1334 |
-DEPEND="${RDEPEND} |
1335 |
- ${PYTHON_DEPS} |
1336 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
1337 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
1338 |
- virtual/python-typing[${PYTHON_USEDEP}] |
1339 |
- <dev-util/scons-3 |
1340 |
- sys-libs/ncurses |
1341 |
- sys-libs/readline |
1342 |
- debug? ( dev-util/valgrind ) |
1343 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
1344 |
- test? ( |
1345 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
1346 |
- )" |
1347 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
1348 |
- |
1349 |
-PATCHES=( |
1350 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
1351 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
1352 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
1353 |
-) |
1354 |
- |
1355 |
-S=${WORKDIR}/${MY_P} |
1356 |
- |
1357 |
-pkg_pretend() { |
1358 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.4 ]]; then |
1359 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
1360 |
- ewarn "successively upgrade major releases until you have upgraded" |
1361 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
1362 |
- elif [[ -n ${REPLACING_VERSIONS} ]]; then |
1363 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
1364 |
- fi |
1365 |
-} |
1366 |
- |
1367 |
-pkg_setup() { |
1368 |
- enewgroup mongodb |
1369 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
1370 |
- |
1371 |
- python-single-r1_pkg_setup |
1372 |
-} |
1373 |
- |
1374 |
-src_prepare() { |
1375 |
- default |
1376 |
- |
1377 |
- # remove bundled libs |
1378 |
- rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
1379 |
- |
1380 |
- # remove compass |
1381 |
- rm -rv src/mongo/installer/compass || die |
1382 |
-} |
1383 |
- |
1384 |
-src_configure() { |
1385 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1386 |
- # --use-system-icu fails tests |
1387 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1388 |
- scons_opts=( |
1389 |
- CC="$(tc-getCC)" |
1390 |
- CXX="$(tc-getCXX)" |
1391 |
- |
1392 |
- --disable-warnings-as-errors |
1393 |
- --use-system-boost |
1394 |
- --use-system-pcre |
1395 |
- --use-system-snappy |
1396 |
- --use-system-stemmer |
1397 |
- --use-system-yaml |
1398 |
- --use-system-zlib |
1399 |
- ) |
1400 |
- |
1401 |
- use debug && scons_opts+=( --dbg=on ) |
1402 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1403 |
- use ssl && scons_opts+=( --ssl ) |
1404 |
- |
1405 |
- # respect mongoDB upstream's basic recommendations |
1406 |
- # see bug #536688 and #526114 |
1407 |
- if ! use debug; then |
1408 |
- filter-flags '-m*' |
1409 |
- filter-flags '-O?' |
1410 |
- fi |
1411 |
- |
1412 |
- default |
1413 |
-} |
1414 |
- |
1415 |
-src_compile() { |
1416 |
- escons "${scons_opts[@]}" core tools |
1417 |
-} |
1418 |
- |
1419 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1420 |
-src_test() { |
1421 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1422 |
-} |
1423 |
- |
1424 |
-src_install() { |
1425 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1426 |
- |
1427 |
- local x |
1428 |
- for x in /var/{lib,log}/${PN}; do |
1429 |
- keepdir "${x}" |
1430 |
- fowners mongodb:mongodb "${x}" |
1431 |
- fperms 0750 "${x}" |
1432 |
- done |
1433 |
- |
1434 |
- doman debian/mongo*.1 |
1435 |
- dodoc README docs/building.md |
1436 |
- |
1437 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1438 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1439 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
1440 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
1441 |
- |
1442 |
- insinto /etc |
1443 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1444 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
1445 |
- |
1446 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1447 |
- |
1448 |
- insinto /etc/logrotate.d/ |
1449 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1450 |
- |
1451 |
- # see bug #526114 |
1452 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1453 |
-} |
1454 |
- |
1455 |
-pkg_preinst() { |
1456 |
- # wrt bug #461466 |
1457 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
1458 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
1459 |
- fi |
1460 |
-} |
1461 |
- |
1462 |
-pkg_postinst() { |
1463 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1464 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
1465 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
1466 |
-} |
1467 |
|
1468 |
diff --git a/dev-db/mongodb/mongodb-3.6.5-r1.ebuild b/dev-db/mongodb/mongodb-3.6.5-r1.ebuild |
1469 |
deleted file mode 100644 |
1470 |
index 5604f58eafb..00000000000 |
1471 |
--- a/dev-db/mongodb/mongodb-3.6.5-r1.ebuild |
1472 |
+++ /dev/null |
1473 |
@@ -1,170 +0,0 @@ |
1474 |
-# Copyright 1999-2018 Gentoo Foundation |
1475 |
-# Distributed under the terms of the GNU General Public License v2 |
1476 |
- |
1477 |
-EAPI=6 |
1478 |
- |
1479 |
-PYTHON_COMPAT=( python2_7 ) |
1480 |
- |
1481 |
-SCONS_MIN_VERSION="2.5.0" |
1482 |
-CHECKREQS_DISK_BUILD="2400M" |
1483 |
-CHECKREQS_DISK_USR="512M" |
1484 |
-CHECKREQS_MEMORY="1024M" |
1485 |
- |
1486 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
1487 |
- |
1488 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
1489 |
- |
1490 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
1491 |
-HOMEPAGE="https://www.mongodb.com" |
1492 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
1493 |
- |
1494 |
-LICENSE="AGPL-3 Apache-2.0" |
1495 |
-SLOT="0" |
1496 |
-KEYWORDS="~amd64" |
1497 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
1498 |
- |
1499 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
1500 |
- >=dev-cpp/yaml-cpp-0.5.3 |
1501 |
- >=dev-libs/boost-1.60:=[threads(+)] |
1502 |
- >=dev-libs/libpcre-8.41[cxx] |
1503 |
- dev-libs/snowball-stemmer |
1504 |
- net-libs/libpcap |
1505 |
- >=sys-libs/zlib-1.2.8:= |
1506 |
- mms-agent? ( app-admin/mms-agent ) |
1507 |
- ssl? ( |
1508 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
1509 |
- libressl? ( dev-libs/libressl:0= ) |
1510 |
- )" |
1511 |
-DEPEND="${RDEPEND} |
1512 |
- ${PYTHON_DEPS} |
1513 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
1514 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
1515 |
- virtual/python-typing[${PYTHON_USEDEP}] |
1516 |
- <dev-util/scons-3 |
1517 |
- sys-libs/ncurses |
1518 |
- sys-libs/readline |
1519 |
- debug? ( dev-util/valgrind ) |
1520 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
1521 |
- test? ( |
1522 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
1523 |
- )" |
1524 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
1525 |
- |
1526 |
-PATCHES=( |
1527 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
1528 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
1529 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
1530 |
-) |
1531 |
- |
1532 |
-S=${WORKDIR}/${MY_P} |
1533 |
- |
1534 |
-pkg_pretend() { |
1535 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.4 ]]; then |
1536 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
1537 |
- ewarn "successively upgrade major releases until you have upgraded" |
1538 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
1539 |
- elif [[ -n ${REPLACING_VERSIONS} ]]; then |
1540 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
1541 |
- fi |
1542 |
-} |
1543 |
- |
1544 |
-pkg_setup() { |
1545 |
- enewgroup mongodb |
1546 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
1547 |
- |
1548 |
- python-single-r1_pkg_setup |
1549 |
-} |
1550 |
- |
1551 |
-src_prepare() { |
1552 |
- default |
1553 |
- |
1554 |
- # remove bundled libs |
1555 |
- rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
1556 |
- |
1557 |
- # remove compass |
1558 |
- rm -rv src/mongo/installer/compass || die |
1559 |
-} |
1560 |
- |
1561 |
-src_configure() { |
1562 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1563 |
- # --use-system-icu fails tests |
1564 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1565 |
- scons_opts=( |
1566 |
- CC="$(tc-getCC)" |
1567 |
- CXX="$(tc-getCXX)" |
1568 |
- |
1569 |
- --disable-warnings-as-errors |
1570 |
- --use-system-boost |
1571 |
- --use-system-pcre |
1572 |
- --use-system-snappy |
1573 |
- --use-system-stemmer |
1574 |
- --use-system-yaml |
1575 |
- --use-system-zlib |
1576 |
- ) |
1577 |
- |
1578 |
- use debug && scons_opts+=( --dbg=on ) |
1579 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1580 |
- use ssl && scons_opts+=( --ssl ) |
1581 |
- |
1582 |
- # respect mongoDB upstream's basic recommendations |
1583 |
- # see bug #536688 and #526114 |
1584 |
- if ! use debug; then |
1585 |
- filter-flags '-m*' |
1586 |
- filter-flags '-O?' |
1587 |
- fi |
1588 |
- |
1589 |
- default |
1590 |
-} |
1591 |
- |
1592 |
-src_compile() { |
1593 |
- escons "${scons_opts[@]}" core tools |
1594 |
-} |
1595 |
- |
1596 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1597 |
-src_test() { |
1598 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1599 |
-} |
1600 |
- |
1601 |
-src_install() { |
1602 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1603 |
- |
1604 |
- local x |
1605 |
- for x in /var/{lib,log}/${PN}; do |
1606 |
- keepdir "${x}" |
1607 |
- fowners mongodb:mongodb "${x}" |
1608 |
- fperms 0750 "${x}" |
1609 |
- done |
1610 |
- |
1611 |
- doman debian/mongo*.1 |
1612 |
- dodoc README docs/building.md |
1613 |
- |
1614 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1615 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1616 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
1617 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
1618 |
- |
1619 |
- insinto /etc |
1620 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1621 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
1622 |
- |
1623 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1624 |
- |
1625 |
- insinto /etc/logrotate.d/ |
1626 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1627 |
- |
1628 |
- # see bug #526114 |
1629 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1630 |
-} |
1631 |
- |
1632 |
-pkg_preinst() { |
1633 |
- # wrt bug #461466 |
1634 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
1635 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
1636 |
- fi |
1637 |
-} |
1638 |
- |
1639 |
-pkg_postinst() { |
1640 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1641 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
1642 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
1643 |
-} |
1644 |
|
1645 |
diff --git a/dev-db/mongodb/mongodb-3.6.6.ebuild b/dev-db/mongodb/mongodb-3.6.6.ebuild |
1646 |
deleted file mode 100644 |
1647 |
index 8945e0387ba..00000000000 |
1648 |
--- a/dev-db/mongodb/mongodb-3.6.6.ebuild |
1649 |
+++ /dev/null |
1650 |
@@ -1,164 +0,0 @@ |
1651 |
-# Copyright 1999-2018 Gentoo Foundation |
1652 |
-# Distributed under the terms of the GNU General Public License v2 |
1653 |
- |
1654 |
-EAPI=6 |
1655 |
- |
1656 |
-PYTHON_COMPAT=( python2_7 ) |
1657 |
- |
1658 |
-SCONS_MIN_VERSION="2.5.0" |
1659 |
-CHECKREQS_DISK_BUILD="2400M" |
1660 |
-CHECKREQS_DISK_USR="512M" |
1661 |
-CHECKREQS_MEMORY="1024M" |
1662 |
- |
1663 |
-inherit check-reqs eapi7-ver eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
1664 |
- |
1665 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
1666 |
- |
1667 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
1668 |
-HOMEPAGE="https://www.mongodb.com" |
1669 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
1670 |
- |
1671 |
-LICENSE="AGPL-3 Apache-2.0" |
1672 |
-SLOT="0" |
1673 |
-KEYWORDS="~amd64" |
1674 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
1675 |
- |
1676 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
1677 |
- >=dev-cpp/yaml-cpp-0.5.3 |
1678 |
- >=dev-libs/boost-1.60:=[threads(+)] |
1679 |
- >=dev-libs/libpcre-8.41[cxx] |
1680 |
- dev-libs/snowball-stemmer |
1681 |
- net-libs/libpcap |
1682 |
- >=sys-libs/zlib-1.2.8:= |
1683 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
1684 |
- mms-agent? ( app-admin/mms-agent ) |
1685 |
- ssl? ( |
1686 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
1687 |
- libressl? ( dev-libs/libressl:0= ) |
1688 |
- )" |
1689 |
-DEPEND="${RDEPEND} |
1690 |
- ${PYTHON_DEPS} |
1691 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
1692 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
1693 |
- virtual/python-typing[${PYTHON_USEDEP}] |
1694 |
- dev-util/scons |
1695 |
- sys-libs/ncurses:0= |
1696 |
- sys-libs/readline:0= |
1697 |
- debug? ( dev-util/valgrind ) |
1698 |
- test? ( |
1699 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
1700 |
- )" |
1701 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
1702 |
- |
1703 |
-PATCHES=( |
1704 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
1705 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
1706 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
1707 |
-) |
1708 |
- |
1709 |
-S=${WORKDIR}/${MY_P} |
1710 |
- |
1711 |
-pkg_pretend() { |
1712 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
1713 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.4; then |
1714 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
1715 |
- ewarn "successively upgrade major releases until you have upgraded" |
1716 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
1717 |
- else |
1718 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
1719 |
- fi |
1720 |
- fi |
1721 |
-} |
1722 |
- |
1723 |
-pkg_setup() { |
1724 |
- enewgroup mongodb |
1725 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
1726 |
- |
1727 |
- python-single-r1_pkg_setup |
1728 |
-} |
1729 |
- |
1730 |
-src_prepare() { |
1731 |
- default |
1732 |
- |
1733 |
- # remove bundled libs |
1734 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
1735 |
- |
1736 |
- # remove compass |
1737 |
- rm -r src/mongo/installer/compass || die |
1738 |
-} |
1739 |
- |
1740 |
-src_configure() { |
1741 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1742 |
- # --use-system-icu fails tests |
1743 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1744 |
- scons_opts=( |
1745 |
- CC="$(tc-getCC)" |
1746 |
- CXX="$(tc-getCXX)" |
1747 |
- |
1748 |
- --disable-warnings-as-errors |
1749 |
- --use-system-boost |
1750 |
- --use-system-pcre |
1751 |
- --use-system-snappy |
1752 |
- --use-system-stemmer |
1753 |
- --use-system-yaml |
1754 |
- --use-system-zlib |
1755 |
- ) |
1756 |
- |
1757 |
- use debug && scons_opts+=( --dbg=on ) |
1758 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1759 |
- use ssl && scons_opts+=( --ssl ) |
1760 |
- |
1761 |
- # respect mongoDB upstream's basic recommendations |
1762 |
- # see bug #536688 and #526114 |
1763 |
- if ! use debug; then |
1764 |
- filter-flags '-m*' |
1765 |
- filter-flags '-O?' |
1766 |
- fi |
1767 |
- |
1768 |
- default |
1769 |
-} |
1770 |
- |
1771 |
-src_compile() { |
1772 |
- escons "${scons_opts[@]}" core tools |
1773 |
-} |
1774 |
- |
1775 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1776 |
-src_test() { |
1777 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1778 |
-} |
1779 |
- |
1780 |
-src_install() { |
1781 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1782 |
- |
1783 |
- doman debian/mongo*.1 |
1784 |
- dodoc README docs/building.md |
1785 |
- |
1786 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1787 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1788 |
- newinitd "${FILESDIR}/mongos.initd-r3" ${PN/db/s} |
1789 |
- newconfd "${FILESDIR}/mongos.confd-r3" ${PN/db/s} |
1790 |
- |
1791 |
- insinto /etc |
1792 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1793 |
- newins "${FILESDIR}/mongos.conf-r2" ${PN/db/s}.conf |
1794 |
- |
1795 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1796 |
- |
1797 |
- insinto /etc/logrotate.d/ |
1798 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1799 |
- |
1800 |
- # see bug #526114 |
1801 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1802 |
- |
1803 |
- local x |
1804 |
- for x in /var/{lib,log}/${PN}; do |
1805 |
- diropts -m0750 -o mongodb -g mongodb |
1806 |
- keepdir "${x}" |
1807 |
- done |
1808 |
-} |
1809 |
- |
1810 |
-pkg_postinst() { |
1811 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1812 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
1813 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
1814 |
-} |
1815 |
|
1816 |
diff --git a/dev-db/mongodb/mongodb-3.6.7.ebuild b/dev-db/mongodb/mongodb-3.6.7.ebuild |
1817 |
deleted file mode 100644 |
1818 |
index 0476e7f810e..00000000000 |
1819 |
--- a/dev-db/mongodb/mongodb-3.6.7.ebuild |
1820 |
+++ /dev/null |
1821 |
@@ -1,164 +0,0 @@ |
1822 |
-# Copyright 1999-2018 Gentoo Foundation |
1823 |
-# Distributed under the terms of the GNU General Public License v2 |
1824 |
- |
1825 |
-EAPI=6 |
1826 |
- |
1827 |
-PYTHON_COMPAT=( python2_7 ) |
1828 |
- |
1829 |
-SCONS_MIN_VERSION="2.5.0" |
1830 |
-CHECKREQS_DISK_BUILD="2400M" |
1831 |
-CHECKREQS_DISK_USR="512M" |
1832 |
-CHECKREQS_MEMORY="1024M" |
1833 |
- |
1834 |
-inherit check-reqs eapi7-ver flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
1835 |
- |
1836 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
1837 |
- |
1838 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
1839 |
-HOMEPAGE="https://www.mongodb.com" |
1840 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
1841 |
- |
1842 |
-LICENSE="AGPL-3 Apache-2.0" |
1843 |
-SLOT="0" |
1844 |
-KEYWORDS="~amd64" |
1845 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
1846 |
- |
1847 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
1848 |
- >=dev-cpp/yaml-cpp-0.5.3 |
1849 |
- >=dev-libs/boost-1.60:=[threads(+)] |
1850 |
- >=dev-libs/libpcre-8.41[cxx] |
1851 |
- dev-libs/snowball-stemmer |
1852 |
- net-libs/libpcap |
1853 |
- >=sys-libs/zlib-1.2.8:= |
1854 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
1855 |
- mms-agent? ( app-admin/mms-agent ) |
1856 |
- ssl? ( |
1857 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
1858 |
- libressl? ( dev-libs/libressl:0= ) |
1859 |
- )" |
1860 |
-DEPEND="${RDEPEND} |
1861 |
- ${PYTHON_DEPS} |
1862 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
1863 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
1864 |
- virtual/python-typing[${PYTHON_USEDEP}] |
1865 |
- dev-util/scons |
1866 |
- sys-libs/ncurses:0= |
1867 |
- sys-libs/readline:0= |
1868 |
- debug? ( dev-util/valgrind ) |
1869 |
- test? ( |
1870 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
1871 |
- )" |
1872 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
1873 |
- |
1874 |
-PATCHES=( |
1875 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
1876 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
1877 |
- "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
1878 |
-) |
1879 |
- |
1880 |
-S=${WORKDIR}/${MY_P} |
1881 |
- |
1882 |
-pkg_pretend() { |
1883 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
1884 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.4; then |
1885 |
- ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
1886 |
- ewarn "successively upgrade major releases until you have upgraded" |
1887 |
- ewarn "to 3.4-series. Then upgrade to 3.6 series." |
1888 |
- else |
1889 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
1890 |
- fi |
1891 |
- fi |
1892 |
-} |
1893 |
- |
1894 |
-pkg_setup() { |
1895 |
- enewgroup mongodb |
1896 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
1897 |
- |
1898 |
- python-single-r1_pkg_setup |
1899 |
-} |
1900 |
- |
1901 |
-src_prepare() { |
1902 |
- default |
1903 |
- |
1904 |
- # remove bundled libs |
1905 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
1906 |
- |
1907 |
- # remove compass |
1908 |
- rm -r src/mongo/installer/compass || die |
1909 |
-} |
1910 |
- |
1911 |
-src_configure() { |
1912 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
1913 |
- # --use-system-icu fails tests |
1914 |
- # --use-system-tcmalloc is strongly NOT recommended: |
1915 |
- scons_opts=( |
1916 |
- CC="$(tc-getCC)" |
1917 |
- CXX="$(tc-getCXX)" |
1918 |
- |
1919 |
- --disable-warnings-as-errors |
1920 |
- --use-system-boost |
1921 |
- --use-system-pcre |
1922 |
- --use-system-snappy |
1923 |
- --use-system-stemmer |
1924 |
- --use-system-yaml |
1925 |
- --use-system-zlib |
1926 |
- ) |
1927 |
- |
1928 |
- use debug && scons_opts+=( --dbg=on ) |
1929 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
1930 |
- use ssl && scons_opts+=( --ssl ) |
1931 |
- |
1932 |
- # respect mongoDB upstream's basic recommendations |
1933 |
- # see bug #536688 and #526114 |
1934 |
- if ! use debug; then |
1935 |
- filter-flags '-m*' |
1936 |
- filter-flags '-O?' |
1937 |
- fi |
1938 |
- |
1939 |
- default |
1940 |
-} |
1941 |
- |
1942 |
-src_compile() { |
1943 |
- escons "${scons_opts[@]}" core tools |
1944 |
-} |
1945 |
- |
1946 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
1947 |
-src_test() { |
1948 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
1949 |
-} |
1950 |
- |
1951 |
-src_install() { |
1952 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
1953 |
- |
1954 |
- doman debian/mongo*.1 |
1955 |
- dodoc README docs/building.md |
1956 |
- |
1957 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
1958 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
1959 |
- newinitd "${FILESDIR}/mongos.initd-r3" mongos |
1960 |
- newconfd "${FILESDIR}/mongos.confd-r3" mongos |
1961 |
- |
1962 |
- insinto /etc |
1963 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
1964 |
- newins "${FILESDIR}/mongos.conf-r2" mongos.conf |
1965 |
- |
1966 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1967 |
- |
1968 |
- insinto /etc/logrotate.d/ |
1969 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
1970 |
- |
1971 |
- # see bug #526114 |
1972 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
1973 |
- |
1974 |
- local x |
1975 |
- for x in /var/{lib,log}/${PN}; do |
1976 |
- diropts -m0750 -o mongodb -g mongodb |
1977 |
- keepdir "${x}" |
1978 |
- done |
1979 |
-} |
1980 |
- |
1981 |
-pkg_postinst() { |
1982 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
1983 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
1984 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
1985 |
-} |
1986 |
|
1987 |
diff --git a/dev-db/mongodb/mongodb-4.0.0-r1.ebuild b/dev-db/mongodb/mongodb-4.0.0-r1.ebuild |
1988 |
deleted file mode 100644 |
1989 |
index 46989477c50..00000000000 |
1990 |
--- a/dev-db/mongodb/mongodb-4.0.0-r1.ebuild |
1991 |
+++ /dev/null |
1992 |
@@ -1,170 +0,0 @@ |
1993 |
-# Copyright 1999-2018 Gentoo Foundation |
1994 |
-# Distributed under the terms of the GNU General Public License v2 |
1995 |
- |
1996 |
-EAPI=6 |
1997 |
- |
1998 |
-PYTHON_COMPAT=( python2_7 ) |
1999 |
- |
2000 |
-SCONS_MIN_VERSION="2.5.0" |
2001 |
-CHECKREQS_DISK_BUILD="2400M" |
2002 |
-CHECKREQS_DISK_USR="512M" |
2003 |
-CHECKREQS_MEMORY="1024M" |
2004 |
- |
2005 |
-inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
2006 |
- |
2007 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
2008 |
- |
2009 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
2010 |
-HOMEPAGE="https://www.mongodb.com" |
2011 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
2012 |
- |
2013 |
-LICENSE="AGPL-3 Apache-2.0" |
2014 |
-SLOT="0" |
2015 |
-KEYWORDS="~amd64" |
2016 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
2017 |
- |
2018 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
2019 |
- >=dev-cpp/yaml-cpp-0.5.3 |
2020 |
- >=dev-libs/boost-1.60:=[threads(+)] |
2021 |
- >=dev-libs/libpcre-8.41[cxx] |
2022 |
- dev-libs/snowball-stemmer |
2023 |
- net-libs/libpcap |
2024 |
- >=sys-libs/zlib-1.2.11:= |
2025 |
- mms-agent? ( app-admin/mms-agent ) |
2026 |
- ssl? ( |
2027 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
2028 |
- libressl? ( dev-libs/libressl:0= ) |
2029 |
- )" |
2030 |
-DEPEND="${RDEPEND} |
2031 |
- ${PYTHON_DEPS} |
2032 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
2033 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
2034 |
- virtual/python-typing[${PYTHON_USEDEP}] |
2035 |
- <dev-util/scons-3 |
2036 |
- sys-libs/ncurses |
2037 |
- sys-libs/readline |
2038 |
- debug? ( dev-util/valgrind ) |
2039 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
2040 |
- test? ( |
2041 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
2042 |
- )" |
2043 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
2044 |
- |
2045 |
-PATCHES=( |
2046 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
2047 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
2048 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
2049 |
-) |
2050 |
- |
2051 |
-S=${WORKDIR}/${MY_P} |
2052 |
- |
2053 |
-pkg_pretend() { |
2054 |
- if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.6 ]]; then |
2055 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
2056 |
- ewarn "successively upgrade major releases until you have upgraded" |
2057 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
2058 |
- elif [[ -n ${REPLACING_VERSIONS} ]]; then |
2059 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
2060 |
- fi |
2061 |
-} |
2062 |
- |
2063 |
-pkg_setup() { |
2064 |
- enewgroup mongodb |
2065 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
2066 |
- |
2067 |
- python-single-r1_pkg_setup |
2068 |
-} |
2069 |
- |
2070 |
-src_prepare() { |
2071 |
- default |
2072 |
- |
2073 |
- # remove bundled libs |
2074 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
2075 |
- |
2076 |
- # remove compass |
2077 |
- rm -r src/mongo/installer/compass || die |
2078 |
-} |
2079 |
- |
2080 |
-src_configure() { |
2081 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
2082 |
- # --use-system-icu fails tests |
2083 |
- # --use-system-tcmalloc is strongly NOT recommended: |
2084 |
- scons_opts=( |
2085 |
- CC="$(tc-getCC)" |
2086 |
- CXX="$(tc-getCXX)" |
2087 |
- |
2088 |
- --disable-warnings-as-errors |
2089 |
- --use-system-boost |
2090 |
- --use-system-pcre |
2091 |
- --use-system-snappy |
2092 |
- --use-system-stemmer |
2093 |
- --use-system-yaml |
2094 |
- --use-system-zlib |
2095 |
- ) |
2096 |
- |
2097 |
- use debug && scons_opts+=( --dbg=on ) |
2098 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
2099 |
- use ssl && scons_opts+=( --ssl ) |
2100 |
- |
2101 |
- # respect mongoDB upstream's basic recommendations |
2102 |
- # see bug #536688 and #526114 |
2103 |
- if ! use debug; then |
2104 |
- filter-flags '-m*' |
2105 |
- filter-flags '-O?' |
2106 |
- fi |
2107 |
- |
2108 |
- default |
2109 |
-} |
2110 |
- |
2111 |
-src_compile() { |
2112 |
- escons "${scons_opts[@]}" core tools |
2113 |
-} |
2114 |
- |
2115 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
2116 |
-src_test() { |
2117 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
2118 |
-} |
2119 |
- |
2120 |
-src_install() { |
2121 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
2122 |
- |
2123 |
- local x |
2124 |
- for x in /var/{lib,log}/${PN}; do |
2125 |
- keepdir "${x}" |
2126 |
- fowners mongodb:mongodb "${x}" |
2127 |
- fperms 0750 "${x}" |
2128 |
- done |
2129 |
- |
2130 |
- doman debian/mongo*.1 |
2131 |
- dodoc README docs/building.md |
2132 |
- |
2133 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
2134 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
2135 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
2136 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
2137 |
- |
2138 |
- insinto /etc |
2139 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
2140 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
2141 |
- |
2142 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
2143 |
- |
2144 |
- insinto /etc/logrotate.d/ |
2145 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
2146 |
- |
2147 |
- # see bug #526114 |
2148 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
2149 |
-} |
2150 |
- |
2151 |
-pkg_preinst() { |
2152 |
- # wrt bug #461466 |
2153 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
2154 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
2155 |
- fi |
2156 |
-} |
2157 |
- |
2158 |
-pkg_postinst() { |
2159 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
2160 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
2161 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
2162 |
-} |
2163 |
|
2164 |
diff --git a/dev-db/mongodb/mongodb-4.0.1.ebuild b/dev-db/mongodb/mongodb-4.0.1.ebuild |
2165 |
deleted file mode 100644 |
2166 |
index 142533eb1cf..00000000000 |
2167 |
--- a/dev-db/mongodb/mongodb-4.0.1.ebuild |
2168 |
+++ /dev/null |
2169 |
@@ -1,164 +0,0 @@ |
2170 |
-# Copyright 1999-2018 Gentoo Foundation |
2171 |
-# Distributed under the terms of the GNU General Public License v2 |
2172 |
- |
2173 |
-EAPI=6 |
2174 |
- |
2175 |
-PYTHON_COMPAT=( python2_7 ) |
2176 |
- |
2177 |
-SCONS_MIN_VERSION="2.5.0" |
2178 |
-CHECKREQS_DISK_BUILD="2400M" |
2179 |
-CHECKREQS_DISK_USR="512M" |
2180 |
-CHECKREQS_MEMORY="1024M" |
2181 |
- |
2182 |
-inherit check-reqs eapi7-ver eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user |
2183 |
- |
2184 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
2185 |
- |
2186 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
2187 |
-HOMEPAGE="https://www.mongodb.com" |
2188 |
-SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
2189 |
- |
2190 |
-LICENSE="AGPL-3 Apache-2.0" |
2191 |
-SLOT="0" |
2192 |
-KEYWORDS="~amd64" |
2193 |
-IUSE="debug kerberos libressl mms-agent ssl test +tools" |
2194 |
- |
2195 |
-RDEPEND=">=app-arch/snappy-1.1.3 |
2196 |
- >=dev-cpp/yaml-cpp-0.5.3 |
2197 |
- >=dev-libs/boost-1.60:=[threads(+)] |
2198 |
- >=dev-libs/libpcre-8.41[cxx] |
2199 |
- dev-libs/snowball-stemmer |
2200 |
- net-libs/libpcap |
2201 |
- >=sys-libs/zlib-1.2.11:= |
2202 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
2203 |
- mms-agent? ( app-admin/mms-agent ) |
2204 |
- ssl? ( |
2205 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
2206 |
- libressl? ( dev-libs/libressl:0= ) |
2207 |
- )" |
2208 |
-DEPEND="${RDEPEND} |
2209 |
- ${PYTHON_DEPS} |
2210 |
- dev-python/cheetah[${PYTHON_USEDEP}] |
2211 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
2212 |
- virtual/python-typing[${PYTHON_USEDEP}] |
2213 |
- dev-util/scons |
2214 |
- sys-libs/ncurses:0= |
2215 |
- sys-libs/readline:0= |
2216 |
- debug? ( dev-util/valgrind ) |
2217 |
- test? ( |
2218 |
- dev-python/pymongo[${PYTHON_USEDEP}] |
2219 |
- )" |
2220 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
2221 |
- |
2222 |
-PATCHES=( |
2223 |
- "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
2224 |
- "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
2225 |
- "${FILESDIR}/${PN}-4.0.0-no-compass.patch" |
2226 |
-) |
2227 |
- |
2228 |
-S=${WORKDIR}/${MY_P} |
2229 |
- |
2230 |
-pkg_pretend() { |
2231 |
- if [[ -n ${REPLACING_VERSIONS} ]]; then |
2232 |
- if ver_test "$REPLACING_VERSIONS" -lt 3.6; then |
2233 |
- ewarn "To upgrade from a version earlier than the 3.6-series, you must" |
2234 |
- ewarn "successively upgrade major releases until you have upgraded" |
2235 |
- ewarn "to 3.6-series. Then upgrade to 4.0 series." |
2236 |
- else |
2237 |
- ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading." |
2238 |
- fi |
2239 |
- fi |
2240 |
-} |
2241 |
- |
2242 |
-pkg_setup() { |
2243 |
- enewgroup mongodb |
2244 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
2245 |
- |
2246 |
- python-single-r1_pkg_setup |
2247 |
-} |
2248 |
- |
2249 |
-src_prepare() { |
2250 |
- default |
2251 |
- |
2252 |
- # remove bundled libs |
2253 |
- rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
2254 |
- |
2255 |
- # remove compass |
2256 |
- rm -r src/mongo/installer/compass || die |
2257 |
-} |
2258 |
- |
2259 |
-src_configure() { |
2260 |
- # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
2261 |
- # --use-system-icu fails tests |
2262 |
- # --use-system-tcmalloc is strongly NOT recommended: |
2263 |
- scons_opts=( |
2264 |
- CC="$(tc-getCC)" |
2265 |
- CXX="$(tc-getCXX)" |
2266 |
- |
2267 |
- --disable-warnings-as-errors |
2268 |
- --use-system-boost |
2269 |
- --use-system-pcre |
2270 |
- --use-system-snappy |
2271 |
- --use-system-stemmer |
2272 |
- --use-system-yaml |
2273 |
- --use-system-zlib |
2274 |
- ) |
2275 |
- |
2276 |
- use debug && scons_opts+=( --dbg=on ) |
2277 |
- use kerberos && scons_opts+=( --use-sasl-client ) |
2278 |
- use ssl && scons_opts+=( --ssl ) |
2279 |
- |
2280 |
- # respect mongoDB upstream's basic recommendations |
2281 |
- # see bug #536688 and #526114 |
2282 |
- if ! use debug; then |
2283 |
- filter-flags '-m*' |
2284 |
- filter-flags '-O?' |
2285 |
- fi |
2286 |
- |
2287 |
- default |
2288 |
-} |
2289 |
- |
2290 |
-src_compile() { |
2291 |
- escons "${scons_opts[@]}" core tools |
2292 |
-} |
2293 |
- |
2294 |
-# FEATURES="test -usersandbox" emerge dev-db/mongodb |
2295 |
-src_test() { |
2296 |
- "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
2297 |
-} |
2298 |
- |
2299 |
-src_install() { |
2300 |
- escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
2301 |
- |
2302 |
- doman debian/mongo*.1 |
2303 |
- dodoc README docs/building.md |
2304 |
- |
2305 |
- newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
2306 |
- newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
2307 |
- newinitd "${FILESDIR}/mongos.initd-r3" ${PN/db/s} |
2308 |
- newconfd "${FILESDIR}/mongos.confd-r3" ${PN/db/s} |
2309 |
- |
2310 |
- insinto /etc |
2311 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
2312 |
- newins "${FILESDIR}/mongos.conf-r2" ${PN/db/s}.conf |
2313 |
- |
2314 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
2315 |
- |
2316 |
- insinto /etc/logrotate.d/ |
2317 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
2318 |
- |
2319 |
- # see bug #526114 |
2320 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
2321 |
- |
2322 |
- local x |
2323 |
- for x in /var/{lib,log}/${PN}; do |
2324 |
- diropts -m0750 -o mongodb -g mongodb |
2325 |
- keepdir "${x}" |
2326 |
- done |
2327 |
-} |
2328 |
- |
2329 |
-pkg_postinst() { |
2330 |
- ewarn "Make sure to read the release notes and follow the upgrade process:" |
2331 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/" |
2332 |
- ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures" |
2333 |
-} |