1 |
commit: a0e57095f57a6ce4df8ddd4c99e41cc65bc7429f |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 11 16:42:24 2018 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 11 16:42:41 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0e57095 |
7 |
|
8 |
dev-db/mongodb: version bump |
9 |
|
10 |
dev-db/mongodb/Manifest | 1 + |
11 |
dev-db/mongodb/mongodb-3.4.13.ebuild | 196 +++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 197 insertions(+) |
13 |
|
14 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
15 |
index 663d7836fff..69d5cefab3a 100644 |
16 |
--- a/dev-db/mongodb/Manifest |
17 |
+++ b/dev-db/mongodb/Manifest |
18 |
@@ -5,4 +5,5 @@ DIST mongodb-src-r3.2.13.tar.gz 29273616 BLAKE2B 9fb9851953ef1561340bcb33cac6a2c |
19 |
DIST mongodb-src-r3.2.16.tar.gz 29293555 BLAKE2B e2863ed0210bc66fcf2c80e28668674c254e78ee750a0eb84c45569c2224157f1db65aca5296a0ed0c32ef83ab6269de25bd69dbf1f0ef54b021bb0aecd2e46a SHA512 ba57aae430959f7df036b7e19e1b7d81956184bededd35631616c6e3dc9423dc79a50ab3265bc48b06d198a7043bca902aee2ea75954e38151ebead5b5ab2db2 |
20 |
DIST mongodb-src-r3.2.17.tar.gz 29295394 BLAKE2B 3fa9d8fa0b50b72c3b2aa86980dd4d46bd053f23d044e321d6f98f5edb76c566bf00455cf745110a8c39355843664d9d1fbbdf554fc8696de73db2b270446adc SHA512 0d6a01278bc61805afd164e4a29abe150a5a96d551ed2c7c5d385b269924a7c5f065315e4f19c0ab070aa275ac03447959af45f33826457e5db0c5f98e623512 |
21 |
DIST mongodb-src-r3.4.10.tar.gz 39959937 BLAKE2B f14f081525f694b939bc21f8cb6364c2a37573c0e1867322dd2062dc167b112751579c3e2d76730b3ff07b0c6bbfd36666bbea99162b7c10eef62d92eb1b0850 SHA512 6293dde40a8433477ba3b1cf77abbdb32b28ce58279cc616b488647c8ab71b5ab3eab2146058c4a74b9e00f0938f1415020e2f26ea01f2b29dd78a1a38d58c3a |
22 |
+DIST mongodb-src-r3.4.13.tar.gz 39992720 BLAKE2B 5620711c5ffddd9a96c29be1f2801a37f30536d1b7afe5a7b339a41cacf1f97caf8d03aafdf1d6b71cc488e48f5066ebc49a63a6bf318483d552863cd47a0c0e SHA512 295dbb38d44c99e0dce46c5e4aa5d73c64d813a3767e71a7187aff05e30f896d283ca7ef19c0a7bbd036eecf3d419e38ea3bc7d98ba93d12296c49e565df0f66 |
23 |
DIST mongodb-src-r3.6.2.tar.gz 39999539 BLAKE2B 3e38917ebaf79b63bf054279fbb91a648fe52e69d8194998dc74453ad6766688929a80456f6cb4801f2806ac938a5dfc0407e5f46345b47a80ecce0ba03d7fde SHA512 7acfbcc68c1bd4e6e63eee09be1dfbb064be6f8b0144418105100a065f8162cafc9b776fe0429fd64c79b958561aa42d0bdef56588dda65acee27ccc98631f39 |
24 |
|
25 |
diff --git a/dev-db/mongodb/mongodb-3.4.13.ebuild b/dev-db/mongodb/mongodb-3.4.13.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..af49188d6fd |
28 |
--- /dev/null |
29 |
+++ b/dev-db/mongodb/mongodb-3.4.13.ebuild |
30 |
@@ -0,0 +1,196 @@ |
31 |
+# Copyright 1999-2018 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" |
54 |
+IUSE="debug kerberos libressl mms-agent ssl test +tools" |
55 |
+ |
56 |
+RDEPEND=">=app-arch/snappy-1.1.3 |
57 |
+ >=dev-cpp/yaml-cpp-0.5.3 |
58 |
+ >=dev-libs/boost-1.60:=[threads(+)] |
59 |
+ >=dev-libs/libpcre-8.41[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-5.3.0:* |
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.4.0-fix-scons.patch" |
84 |
+ "${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch" |
85 |
+ "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
86 |
+) |
87 |
+ |
88 |
+S=${WORKDIR}/${MY_P} |
89 |
+ |
90 |
+pkg_pretend() { |
91 |
+ if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
92 |
+ ewarn "To upgrade from a version earlier than the 3.0-series, you must" |
93 |
+ ewarn "successively upgrade major releases until you have upgraded" |
94 |
+ ewarn "to 3.2-series. Then upgrade to 3.4 series." |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+pkg_setup() { |
99 |
+ enewgroup mongodb |
100 |
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
101 |
+ |
102 |
+ # Maintainer notes |
103 |
+ # |
104 |
+ # --use-system-tcmalloc is strongly NOT recommended: |
105 |
+ # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
106 |
+ |
107 |
+ scons_opts=( |
108 |
+ CC="$(tc-getCC)" |
109 |
+ CXX="$(tc-getCXX)" |
110 |
+ |
111 |
+ --disable-warnings-as-errors |
112 |
+ --use-system-boost |
113 |
+ --use-system-pcre |
114 |
+ --use-system-snappy |
115 |
+ --use-system-stemmer |
116 |
+ --use-system-yaml |
117 |
+ --use-system-zlib |
118 |
+ ) |
119 |
+ |
120 |
+ # wiredtiger not supported on 32bit platforms #572166 |
121 |
+ use x86 && scons_opts+=( --wiredtiger=off ) |
122 |
+ |
123 |
+ if use debug; then |
124 |
+ scons_opts+=( --dbg=on ) |
125 |
+ fi |
126 |
+ |
127 |
+ if use prefix; then |
128 |
+ scons_opts+=( |
129 |
+ --cpppath="${EPREFIX}/usr/include" |
130 |
+ --libpath="${EPREFIX}/usr/$(get_libdir)" |
131 |
+ ) |
132 |
+ fi |
133 |
+ |
134 |
+ if use kerberos; then |
135 |
+ scons_opts+=( --use-sasl-client ) |
136 |
+ fi |
137 |
+ |
138 |
+ if use ssl; then |
139 |
+ scons_opts+=( --ssl ) |
140 |
+ fi |
141 |
+ |
142 |
+ python-any-r1_pkg_setup |
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 |
+ local x |
159 |
+ for x in /var/{lib,log}/${PN}; do |
160 |
+ keepdir "${x}" |
161 |
+ fowners mongodb:mongodb "${x}" |
162 |
+ fperms 0750 "${x}" |
163 |
+ done |
164 |
+ |
165 |
+ doman debian/mongo*.1 |
166 |
+ dodoc README docs/building.md |
167 |
+ |
168 |
+ newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
169 |
+ newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
170 |
+ newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
171 |
+ newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s} |
172 |
+ |
173 |
+ insinto /etc |
174 |
+ newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
175 |
+ newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
176 |
+ |
177 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
178 |
+ |
179 |
+ insinto /etc/logrotate.d/ |
180 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
181 |
+ |
182 |
+ # see bug #526114 |
183 |
+ pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
184 |
+} |
185 |
+ |
186 |
+pkg_preinst() { |
187 |
+ # wrt bug #461466 |
188 |
+ if [[ "$(get_libdir)" == "lib64" ]]; then |
189 |
+ rmdir "${ED}"/usr/lib/ &>/dev/null |
190 |
+ fi |
191 |
+} |
192 |
+ |
193 |
+# FEATURES="test -usersandbox" emerge dev-db/mongodb |
194 |
+src_test() { |
195 |
+ # this one test fails |
196 |
+ rm jstests/core/jsHeapLimit.js || die |
197 |
+ |
198 |
+ "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
199 |
+} |
200 |
+ |
201 |
+pkg_postinst() { |
202 |
+ local v |
203 |
+ for v in ${REPLACING_VERSIONS}; do |
204 |
+ if ! version_is_at_least 3.0 ${v}; then |
205 |
+ ewarn "!! IMPORTANT !!" |
206 |
+ ewarn " " |
207 |
+ ewarn "${PN} configuration files have changed !" |
208 |
+ ewarn " " |
209 |
+ ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
210 |
+ ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
211 |
+ ewarn " " |
212 |
+ ewarn "Make sure you also follow the upgrading process :" |
213 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
214 |
+ ewarn " " |
215 |
+ ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
216 |
+ ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
217 |
+ ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
218 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
219 |
+ break |
220 |
+ fi |
221 |
+ done |
222 |
+ |
223 |
+ ewarn "Make sure to read the release notes and follow the upgrade process:" |
224 |
+ ewarn " https://docs.mongodb.org/manual/release-notes/3.4/" |
225 |
+ ewarn " https://docs.mongodb.com/manual/release-notes/3.4/#upgrade-procedures" |
226 |
+} |