1 |
commit: 09a316c27c23b40d2e49e2c206ef298312444685 |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Nov 6 21:21:25 2017 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 21 21:15:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09a316c2 |
7 |
|
8 |
dev-db/mongodb: bump to 3.2.17 |
9 |
|
10 |
dev-db/mongodb/Manifest | 1 + |
11 |
dev-db/mongodb/mongodb-3.2.17.ebuild | 197 +++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 198 insertions(+) |
13 |
|
14 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
15 |
index 4b2614ca7d5..4c63994a691 100644 |
16 |
--- a/dev-db/mongodb/Manifest |
17 |
+++ b/dev-db/mongodb/Manifest |
18 |
@@ -5,4 +5,5 @@ DIST mongodb-src-r3.0.15.tar.gz 28096395 SHA256 09ad76e06df007085520025c94a5e584 |
19 |
DIST mongodb-src-r3.2.12.tar.gz 29178424 SHA256 406ced873a9abe8a3f0f92939bf5374663bac86c72181c80bec144aedf6cd306 SHA512 0c4ddaaddf15d97957faff46dc4a3f79c545cacc8a56dbe1d063778117ba9b645323b0cb7fd054fae805d092b8372c411a82e3370244b7939bda20a65fdb951c WHIRLPOOL 67673788859ea99752f2e0d1d8c7feb40b004efc344a2a589553675be7f9020ed384cb4a9000bb7eee0059105af364a722f17890ea3f0d38508b8d045db7da75 |
20 |
DIST mongodb-src-r3.2.13.tar.gz 29273616 SHA256 31492b99d12d6363a6ebcbba32269ce9e97dadedda8c470cbff8c1af227e9753 SHA512 649b599da65fc205a6e18cde82da6153fb4c03a21cf679e18fb57f705ac168690a37f9520be1242278bc0fe441fda08f1c10c9924cabc636ba153c545d32f91d WHIRLPOOL f7ac6c5a14814650c4bbb52f25d710613ae3aa4011f2600f4727c0c81d83ec33c9be9ddac594e6a2d1ad4556bc6c9de71d3a11abfb3bd2883322ab85010ae905 |
21 |
DIST mongodb-src-r3.2.16.tar.gz 29293555 SHA256 7a8b1b16f3fa545af16f48aeef1f918f57d96a80e1ceb6e669cdb81fab6511d0 SHA512 ba57aae430959f7df036b7e19e1b7d81956184bededd35631616c6e3dc9423dc79a50ab3265bc48b06d198a7043bca902aee2ea75954e38151ebead5b5ab2db2 WHIRLPOOL 0ac7b7cfae8b8b3727dc722c616eb576b3ae3aced5340b9fbd9a995d9f55552411c0507cb43a7378fa35187cf940d72d86ee20d08762f87bb4ebcd13eb697f09 |
22 |
+DIST mongodb-src-r3.2.17.tar.gz 29295394 SHA256 f76db57edd2c73a96ab2ca9d907f0ad8c12694a91a550ed38a190bc060d0b40e SHA512 0d6a01278bc61805afd164e4a29abe150a5a96d551ed2c7c5d385b269924a7c5f065315e4f19c0ab070aa275ac03447959af45f33826457e5db0c5f98e623512 WHIRLPOOL 52853c1f3e8714ae9d43d729fe97533c7f38d046b203fa122f38c3b5cf68dbe5dc493cdae47a8846940d8aaeeb10fa20ba6aa14c0caaf8dfb355539eac1de8bf |
23 |
DIST mongodb-src-r3.4.10.tar.gz 39959937 SHA256 443800ca4f52fa613b29052f5f76abc0ccc477451b55f3665b61819f28ace2f3 SHA512 6293dde40a8433477ba3b1cf77abbdb32b28ce58279cc616b488647c8ab71b5ab3eab2146058c4a74b9e00f0938f1415020e2f26ea01f2b29dd78a1a38d58c3a WHIRLPOOL 3cd03fecfc1fa077f55d9961e939d89e347ae5f41c815d81a50b88ddef9c8900f41faec6ae71b759f9f665c8a706fdd3000e96c3047711237f0d66478edbf35e |
24 |
|
25 |
diff --git a/dev-db/mongodb/mongodb-3.2.17.ebuild b/dev-db/mongodb/mongodb-3.2.17.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..4e998e9c724 |
28 |
--- /dev/null |
29 |
+++ b/dev-db/mongodb/mongodb-3.2.17.ebuild |
30 |
@@ -0,0 +1,197 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+ |
38 |
+SCONS_MIN_VERSION="2.3.0" |
39 |
+CHECKREQS_DISK_BUILD="2400M" |
40 |
+CHECKREQS_DISK_USR="512M" |
41 |
+CHECKREQS_MEMORY="1024M" |
42 |
+ |
43 |
+inherit eutils flag-o-matic multilib multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs user versionator check-reqs |
44 |
+ |
45 |
+MY_P=${PN}-src-r${PV/_rc/-rc} |
46 |
+ |
47 |
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
48 |
+HOMEPAGE="http://www.mongodb.org" |
49 |
+SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="AGPL-3 Apache-2.0" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="debug kerberos libressl mms-agent ssl test +tools" |
55 |
+ |
56 |
+RDEPEND=">=app-arch/snappy-1.1.2 |
57 |
+ >=dev-cpp/yaml-cpp-0.5.1 |
58 |
+ >=dev-libs/boost-1.57[threads(+)] |
59 |
+ >=dev-libs/libpcre-8.39[cxx] |
60 |
+ dev-libs/snowball-stemmer |
61 |
+ net-libs/libpcap |
62 |
+ >=sys-libs/zlib-1.2.8 |
63 |
+ mms-agent? ( app-admin/mms-agent ) |
64 |
+ ssl? ( |
65 |
+ !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
66 |
+ libressl? ( dev-libs/libressl:0= ) |
67 |
+ )" |
68 |
+DEPEND="${RDEPEND} |
69 |
+ =dev-lang/python-2* |
70 |
+ <dev-util/scons-3 |
71 |
+ >=sys-devel/gcc-4.8.2:* |
72 |
+ sys-libs/ncurses |
73 |
+ sys-libs/readline |
74 |
+ debug? ( dev-util/valgrind ) |
75 |
+ kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
76 |
+ test? ( |
77 |
+ dev-python/pymongo |
78 |
+ dev-python/pyyaml |
79 |
+ )" |
80 |
+PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" |
84 |
+ "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch" |
85 |
+ "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" |
86 |
+ "${FILESDIR}/${PN}-3.2.16-Replace-string-with-explicit-std-string.patch" |
87 |
+ "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
88 |
+) |
89 |
+ |
90 |
+S=${WORKDIR}/${MY_P} |
91 |
+ |
92 |
+pkg_pretend() { |
93 |
+ if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
94 |
+ ewarn "To upgrade an existing MongoDB deployment to 3.2, you must be" |
95 |
+ ewarn "running a 3.0-series release. Please update to the latest 3.0" |
96 |
+ ewarn "release before continuing if wish to keep your data." |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+pkg_setup() { |
101 |
+ enewgroup mongodb |
102 |
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
103 |
+ |
104 |
+ # Maintainer notes |
105 |
+ # |
106 |
+ # --use-system-tcmalloc is strongly NOT recommended: |
107 |
+ # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
108 |
+ |
109 |
+ scons_opts=( |
110 |
+ CC="$(tc-getCC)" |
111 |
+ CXX="$(tc-getCXX)" |
112 |
+ |
113 |
+ --disable-warnings-as-errors |
114 |
+ --use-system-boost |
115 |
+ --use-system-pcre |
116 |
+ --use-system-snappy |
117 |
+ --use-system-stemmer |
118 |
+ --use-system-yaml |
119 |
+ --use-system-zlib |
120 |
+ ) |
121 |
+ |
122 |
+ # wiredtiger not supported on 32bit platforms #572166 |
123 |
+ use x86 && scons_opts+=( --wiredtiger=off ) |
124 |
+ |
125 |
+ if use debug; then |
126 |
+ scons_opts+=( --dbg=on ) |
127 |
+ fi |
128 |
+ |
129 |
+ if use prefix; then |
130 |
+ scons_opts+=( |
131 |
+ --cpppath="${EPREFIX}/usr/include" |
132 |
+ --libpath="${EPREFIX}/usr/$(get_libdir)" |
133 |
+ ) |
134 |
+ fi |
135 |
+ |
136 |
+ if use kerberos; then |
137 |
+ scons_opts+=( --use-sasl-client ) |
138 |
+ fi |
139 |
+ |
140 |
+ if use ssl; then |
141 |
+ scons_opts+=( --ssl ) |
142 |
+ fi |
143 |
+ |
144 |
+ python-any-r1_pkg_setup |
145 |
+} |
146 |
+ |
147 |
+src_compile() { |
148 |
+ # respect mongoDB upstream's basic recommendations |
149 |
+ # see bug #536688 and #526114 |
150 |
+ if ! use debug; then |
151 |
+ filter-flags '-m*' |
152 |
+ filter-flags '-O?' |
153 |
+ fi |
154 |
+ escons "${scons_opts[@]}" core tools |
155 |
+} |
156 |
+ |
157 |
+src_install() { |
158 |
+ escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
159 |
+ |
160 |
+ local x |
161 |
+ for x in /var/{lib,log}/${PN}; do |
162 |
+ keepdir "${x}" |
163 |
+ fowners mongodb:mongodb "${x}" |
164 |
+ fperms 0750 "${x}" |
165 |
+ done |
166 |
+ |
167 |
+ doman debian/mongo*.1 |
168 |
+ dodoc README docs/building.md |
169 |
+ |
170 |
+ newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
171 |
+ newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
172 |
+ newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
173 |
+ newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
174 |
+ |
175 |
+ insinto /etc |
176 |
+ newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
177 |
+ newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
178 |
+ |
179 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
180 |
+ |
181 |
+ insinto /etc/logrotate.d/ |
182 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
183 |
+ |
184 |
+ # see bug #526114 |
185 |
+ pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
186 |
+} |
187 |
+ |
188 |
+pkg_preinst() { |
189 |
+ # wrt bug #461466 |
190 |
+ if [[ "$(get_libdir)" == "lib64" ]]; then |
191 |
+ rmdir "${ED}"/usr/lib/ &>/dev/null |
192 |
+ fi |
193 |
+} |
194 |
+ |
195 |
+# FEATURES="test -usersandbox" emerge dev-db/mongodb |
196 |
+src_test() { |
197 |
+ "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
198 |
+} |
199 |
+ |
200 |
+pkg_postinst() { |
201 |
+ local v |
202 |
+ for v in ${REPLACING_VERSIONS}; do |
203 |
+ if ! version_is_at_least 3.0 ${v}; then |
204 |
+ ewarn "!! IMPORTANT !!" |
205 |
+ ewarn " " |
206 |
+ ewarn "${PN} configuration files have changed !" |
207 |
+ ewarn " " |
208 |
+ ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
209 |
+ ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
210 |
+ ewarn " " |
211 |
+ ewarn "Make sure you also follow the upgrading process :" |
212 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
213 |
+ ewarn " " |
214 |
+ ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
215 |
+ ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
216 |
+ ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
217 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
218 |
+ break |
219 |
+ fi |
220 |
+ done |
221 |
+ |
222 |
+ ewarn "Make sure to read the release notes and follow the upgrade process:" |
223 |
+ ewarn " https://docs.mongodb.org/manual/release-notes/3.2/" |
224 |
+ ewarn " https://docs.mongodb.org/master/release-notes/3.2-upgrade/" |
225 |
+ ewarn |
226 |
+ ewarn " Starting in 3.2, MongoDB uses the WiredTiger as the default storage engine." |
227 |
+} |