1 |
commit: 3303d27a14a7931635dfd81860f6cd93ba06c9ba |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 16:09:24 2017 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 16:09:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3303d27a |
7 |
|
8 |
dev-db/mongodb: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-db/mongodb/Manifest | 1 + |
13 |
dev-db/mongodb/mongodb-3.2.12.ebuild | 193 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 194 insertions(+) |
15 |
|
16 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
17 |
index 8fc4b79..3279540 100644 |
18 |
--- a/dev-db/mongodb/Manifest |
19 |
+++ b/dev-db/mongodb/Manifest |
20 |
@@ -2,4 +2,5 @@ DIST 20140409-mms-monitoring-agent.zip 40122 SHA256 9c4f89cfba10b4604512ab21eb08 |
21 |
DIST mongodb-src-r2.6.12.tar.gz 16462842 SHA256 2dd51eabcfcd133573be74c0131c85b67764042833e7d94077e86adc0b9406dc SHA512 ceed10f2da50ca390f56cc79d39ea4db7a1ef6764e37dae61c3f3f664708be72de09443bbf94f8e58479e4f2923ff2ab9eee45652e82271b3bad591e03ef7657 WHIRLPOOL 1587ef45ee17f9e3357a92b480ea739192076ead280c44c801650d01d2ae29a627a96db611eac6c9b6b47e5e619e2362df94e1792348709b3ea5a4970a8751a0 |
22 |
DIST mongodb-src-r3.0.14.tar.gz 28093922 SHA256 ebbb758ca7ee53e8d25e2410bb7ef61640829566d094cde2487b55e73d0fd880 SHA512 477fab29ca0ad2a0f24b895e30dc4770af8d6a1a57f3c10a02a989b58dd22510db554da0418129d4e81958342ad169696eed4b86bf5aa73916c7cec879db1152 WHIRLPOOL 7fc02969c52954f0fd9b90ace9efd3677a9d6b8d3618b5dedb470343a3ba71789d451cc30a95742b2b9e61b21ffe0f1a23e239e388a497a327f2cc8ed1ed6aef |
23 |
DIST mongodb-src-r3.2.11.tar.gz 29113706 SHA256 625eb28fd47b2af63b30343a064de7f42e5265f4c642874ec766ba3643fd80d7 SHA512 8cb63f878d573e2fb2bace57a10d036aebe0cc06e46a3cd5480fb4a8bcd51ac5219c729b5ea85213e0c905906a93780080332fa01dbcd29e01358f5e9051824c WHIRLPOOL fca825400e9ab16e53dfbbd400a9bd87b9a866d56b2a5839ece25b8dbfe55074fa04d40f47c337f67cb3bd3e547b99b4349eeb15a87a9b9659ea0f1a0cc2c526 |
24 |
+DIST mongodb-src-r3.2.12.tar.gz 29178424 SHA256 406ced873a9abe8a3f0f92939bf5374663bac86c72181c80bec144aedf6cd306 SHA512 0c4ddaaddf15d97957faff46dc4a3f79c545cacc8a56dbe1d063778117ba9b645323b0cb7fd054fae805d092b8372c411a82e3370244b7939bda20a65fdb951c WHIRLPOOL 67673788859ea99752f2e0d1d8c7feb40b004efc344a2a589553675be7f9020ed384cb4a9000bb7eee0059105af364a722f17890ea3f0d38508b8d045db7da75 |
25 |
DIST mongodb-src-r3.4.1.tar.gz 40161375 SHA256 54f475e553827733fb351ee4b03b470297f0d08e0434fbf7e6661705124da97b SHA512 48400f00ed84922b1e734ad915c376a567af2cd32e9cdcc40819fdfbc0a5c2444e4f325b1a541fc21cf87f4d95f9bdcc64bd59eab9d25e75b28732978feda031 WHIRLPOOL 1dce39c7b36b2c1d3760c7c560c1fefde9ea6d780ef1ef8b5db38f3ed8f0aff9a4ae51ab26381d9330c5b3ad3182ed998ae8e2a0ecc85e9347714ffa853d7734 |
26 |
|
27 |
diff --git a/dev-db/mongodb/mongodb-3.2.12.ebuild b/dev-db/mongodb/mongodb-3.2.12.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..7c5b156 |
30 |
--- /dev/null |
31 |
+++ b/dev-db/mongodb/mongodb-3.2.12.ebuild |
32 |
@@ -0,0 +1,193 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
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 pax-utils 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 >dev-cpp/yaml-cpp-0.5.2 ) |
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 |
+ >=sys-devel/gcc-4.8.2:* |
70 |
+ sys-libs/ncurses |
71 |
+ sys-libs/readline |
72 |
+ debug? ( dev-util/valgrind ) |
73 |
+ kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
74 |
+ test? ( |
75 |
+ dev-python/pymongo |
76 |
+ dev-python/pyyaml |
77 |
+ )" |
78 |
+PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
79 |
+ |
80 |
+S=${WORKDIR}/${MY_P} |
81 |
+ |
82 |
+pkg_pretend() { |
83 |
+ if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
84 |
+ ewarn "To upgrade an existing MongoDB deployment to 3.2, you must be" |
85 |
+ ewarn "running a 3.0-series release. Please update to the latest 3.0" |
86 |
+ ewarn "release before continuing if wish to keep your data." |
87 |
+ fi |
88 |
+} |
89 |
+ |
90 |
+pkg_setup() { |
91 |
+ enewgroup mongodb |
92 |
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
93 |
+ |
94 |
+ # Maintainer notes |
95 |
+ # |
96 |
+ # --use-system-tcmalloc is strongly NOT recommended: |
97 |
+ # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
98 |
+ |
99 |
+ scons_opts=( |
100 |
+ CC="$(tc-getCC)" |
101 |
+ CXX="$(tc-getCXX)" |
102 |
+ |
103 |
+ --disable-warnings-as-errors |
104 |
+ --use-system-boost |
105 |
+ --use-system-pcre |
106 |
+ --use-system-snappy |
107 |
+ --use-system-stemmer |
108 |
+ --use-system-yaml |
109 |
+ --use-system-zlib |
110 |
+ ) |
111 |
+ |
112 |
+ # wiredtiger not supported on 32bit platforms #572166 |
113 |
+ use x86 && scons_opts+=( --wiredtiger=off ) |
114 |
+ |
115 |
+ if use debug; then |
116 |
+ scons_opts+=( --dbg=on ) |
117 |
+ fi |
118 |
+ |
119 |
+ if use prefix; then |
120 |
+ scons_opts+=( |
121 |
+ --cpppath="${EPREFIX}/usr/include" |
122 |
+ --libpath="${EPREFIX}/usr/$(get_libdir)" |
123 |
+ ) |
124 |
+ fi |
125 |
+ |
126 |
+ if use kerberos; then |
127 |
+ scons_opts+=( --use-sasl-client ) |
128 |
+ fi |
129 |
+ |
130 |
+ if use ssl; then |
131 |
+ scons_opts+=( --ssl ) |
132 |
+ fi |
133 |
+} |
134 |
+ |
135 |
+src_prepare() { |
136 |
+ epatch \ |
137 |
+ "${FILESDIR}/${PN}-3.2.0-fix-scons.patch" \ |
138 |
+ "${FILESDIR}/${PN}-3.2.4-boost-1.60.patch" |
139 |
+ if has_version ">=dev-libs/boost-1.62"; then |
140 |
+ epatch "${FILESDIR}/${PN}-3.2.10-boost-1.62.patch" |
141 |
+ fi |
142 |
+ epatch_user |
143 |
+} |
144 |
+ |
145 |
+src_compile() { |
146 |
+ # respect mongoDB upstream's basic recommendations |
147 |
+ # see bug #536688 and #526114 |
148 |
+ if ! use debug; then |
149 |
+ filter-flags '-m*' |
150 |
+ filter-flags '-O?' |
151 |
+ fi |
152 |
+ escons "${scons_opts[@]}" core tools |
153 |
+} |
154 |
+ |
155 |
+src_install() { |
156 |
+ escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
157 |
+ |
158 |
+ for x in /var/{lib,log}/${PN}; do |
159 |
+ keepdir "${x}" |
160 |
+ fowners mongodb:mongodb "${x}" |
161 |
+ done |
162 |
+ |
163 |
+ doman debian/mongo*.1 |
164 |
+ dodoc README docs/building.md |
165 |
+ |
166 |
+ newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
167 |
+ newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
168 |
+ newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
169 |
+ newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
170 |
+ |
171 |
+ insinto /etc |
172 |
+ newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
173 |
+ newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
174 |
+ |
175 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
176 |
+ |
177 |
+ insinto /etc/logrotate.d/ |
178 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
179 |
+ |
180 |
+ # see bug #526114 |
181 |
+ pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
182 |
+} |
183 |
+ |
184 |
+pkg_preinst() { |
185 |
+ # wrt bug #461466 |
186 |
+ if [[ "$(get_libdir)" == "lib64" ]]; then |
187 |
+ rmdir "${ED}"/usr/lib/ &>/dev/null |
188 |
+ fi |
189 |
+} |
190 |
+ |
191 |
+src_test() { |
192 |
+ # this one test fails |
193 |
+ rm jstests/core/repl_write_threads_start_param.js |
194 |
+ |
195 |
+ ./buildscripts/resmoke.py --dbpathPrefix=test --suites core || die "Tests failed" |
196 |
+} |
197 |
+ |
198 |
+pkg_postinst() { |
199 |
+ local v |
200 |
+ for v in ${REPLACING_VERSIONS}; do |
201 |
+ if ! version_is_at_least 3.0 ${v}; then |
202 |
+ ewarn "!! IMPORTANT !!" |
203 |
+ ewarn " " |
204 |
+ ewarn "${PN} configuration files have changed !" |
205 |
+ ewarn " " |
206 |
+ ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
207 |
+ ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
208 |
+ ewarn " " |
209 |
+ ewarn "Make sure you also follow the upgrading process :" |
210 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
211 |
+ ewarn " " |
212 |
+ ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
213 |
+ ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
214 |
+ ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
215 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
216 |
+ break |
217 |
+ fi |
218 |
+ done |
219 |
+ |
220 |
+ ewarn "Make sure to read the release notes and follow the upgrade process:" |
221 |
+ ewarn " https://docs.mongodb.org/manual/release-notes/3.2/" |
222 |
+ ewarn " https://docs.mongodb.org/master/release-notes/3.2-upgrade/" |
223 |
+ ewarn |
224 |
+ ewarn " Starting in 3.2, MongoDB uses the WiredTiger as the default storage engine." |
225 |
+} |