1 |
commit: d01595e75b3738512ccba7e9ee47d68e12c53366 |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 2 06:52:04 2018 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 2 14:33:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d01595e7 |
7 |
|
8 |
dev-db/mongodb: bump to 3.6.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-db/mongodb/Manifest | 1 + |
13 |
dev-db/mongodb/mongodb-3.6.3.ebuild | 170 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 171 insertions(+) |
15 |
|
16 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
17 |
index 69d5cefab3a..22810fb9ec9 100644 |
18 |
--- a/dev-db/mongodb/Manifest |
19 |
+++ b/dev-db/mongodb/Manifest |
20 |
@@ -7,3 +7,4 @@ DIST mongodb-src-r3.2.17.tar.gz 29295394 BLAKE2B 3fa9d8fa0b50b72c3b2aa86980dd4d4 |
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 |
+DIST mongodb-src-r3.6.3.tar.gz 40093607 BLAKE2B bb21bf0487661eec6140ade22526617b26b2499bd36e138d955d14a4b13a0685ec7308bccfc11ef17c785cd8a71c5b6cd9d154d461b8973410b03952b93953ec SHA512 94aa9955f99d5f6bbbe65dc3755583952525398308ca7cb9224b91d1fa403de5bb3abb63a651583815cbecaff58966b5cfe7334a36ef6583f73d8c213410ddbc |
25 |
|
26 |
diff --git a/dev-db/mongodb/mongodb-3.6.3.ebuild b/dev-db/mongodb/mongodb-3.6.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5297f47b0f1 |
29 |
--- /dev/null |
30 |
+++ b/dev-db/mongodb/mongodb-3.6.3.ebuild |
31 |
@@ -0,0 +1,170 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+ |
39 |
+SCONS_MIN_VERSION="2.5.0" |
40 |
+CHECKREQS_DISK_BUILD="2400M" |
41 |
+CHECKREQS_DISK_USR="512M" |
42 |
+CHECKREQS_MEMORY="1024M" |
43 |
+ |
44 |
+inherit check-reqs eutils flag-o-matic multilib multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user versionator |
45 |
+ |
46 |
+MY_P=${PN}-src-r${PV/_rc/-rc} |
47 |
+ |
48 |
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
49 |
+HOMEPAGE="https://www.mongodb.com" |
50 |
+SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="AGPL-3 Apache-2.0" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64" |
55 |
+IUSE="debug kerberos libressl mms-agent ssl test +tools" |
56 |
+ |
57 |
+RDEPEND=">=app-arch/snappy-1.1.3 |
58 |
+ >=dev-cpp/yaml-cpp-0.5.3 |
59 |
+ >=dev-libs/boost-1.60:=[threads(+)] |
60 |
+ >=dev-libs/libpcre-8.41[cxx] |
61 |
+ dev-libs/snowball-stemmer |
62 |
+ net-libs/libpcap |
63 |
+ >=sys-libs/zlib-1.2.8:= |
64 |
+ mms-agent? ( app-admin/mms-agent ) |
65 |
+ ssl? ( |
66 |
+ !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
67 |
+ libressl? ( dev-libs/libressl:0= ) |
68 |
+ )" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ ${PYTHON_DEPS} |
71 |
+ dev-python/cheetah[${PYTHON_USEDEP}] |
72 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
73 |
+ dev-python/typing[${PYTHON_USEDEP}] |
74 |
+ <dev-util/scons-3 |
75 |
+ sys-libs/ncurses |
76 |
+ sys-libs/readline |
77 |
+ debug? ( dev-util/valgrind ) |
78 |
+ kerberos? ( dev-libs/cyrus-sasl[kerberos] ) |
79 |
+ test? ( |
80 |
+ dev-python/pymongo[${PYTHON_USEDEP}] |
81 |
+ )" |
82 |
+PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
83 |
+ |
84 |
+PATCHES=( |
85 |
+ "${FILESDIR}/${PN}-3.4.7-no-boost-check.patch" |
86 |
+ "${FILESDIR}/${PN}-3.6.1-fix-scons.patch" |
87 |
+ "${FILESDIR}/${PN}-3.6.1-no-compass.patch" |
88 |
+) |
89 |
+ |
90 |
+S=${WORKDIR}/${MY_P} |
91 |
+ |
92 |
+pkg_pretend() { |
93 |
+ if [[ -n ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.4 ]]; then |
94 |
+ ewarn "To upgrade from a version earlier than the 3.4-series, you must" |
95 |
+ ewarn "successively upgrade major releases until you have upgraded" |
96 |
+ ewarn "to 3.4-series. Then upgrade to 3.6 series." |
97 |
+ elif [[ -n ${REPLACING_VERSIONS} ]]; then |
98 |
+ ewarn "Be sure to set featureCompatibilityVersion to 3.4 before upgrading." |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+pkg_setup() { |
103 |
+ enewgroup mongodb |
104 |
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
105 |
+ |
106 |
+ python-single-r1_pkg_setup |
107 |
+} |
108 |
+ |
109 |
+src_prepare() { |
110 |
+ default |
111 |
+ |
112 |
+ # remove bundled libs |
113 |
+ rm -rv src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die |
114 |
+ |
115 |
+ # remove compass |
116 |
+ rm -rv src/mongo/installer/compass || die |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ # https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source |
121 |
+ # --use-system-icu fails tests |
122 |
+ # --use-system-tcmalloc is strongly NOT recommended: |
123 |
+ scons_opts=( |
124 |
+ CC="$(tc-getCC)" |
125 |
+ CXX="$(tc-getCXX)" |
126 |
+ |
127 |
+ --disable-warnings-as-errors |
128 |
+ --use-system-boost |
129 |
+ --use-system-pcre |
130 |
+ --use-system-snappy |
131 |
+ --use-system-stemmer |
132 |
+ --use-system-yaml |
133 |
+ --use-system-zlib |
134 |
+ ) |
135 |
+ |
136 |
+ use debug && scons_opts+=( --dbg=on ) |
137 |
+ use kerberos && scons_opts+=( --use-sasl-client ) |
138 |
+ use ssl && scons_opts+=( --ssl ) |
139 |
+ |
140 |
+ # respect mongoDB upstream's basic recommendations |
141 |
+ # see bug #536688 and #526114 |
142 |
+ if ! use debug; then |
143 |
+ filter-flags '-m*' |
144 |
+ filter-flags '-O?' |
145 |
+ fi |
146 |
+ |
147 |
+ default |
148 |
+} |
149 |
+ |
150 |
+src_compile() { |
151 |
+ escons "${scons_opts[@]}" core tools |
152 |
+} |
153 |
+ |
154 |
+# FEATURES="test -usersandbox" emerge dev-db/mongodb |
155 |
+src_test() { |
156 |
+ "${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed" |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr |
161 |
+ |
162 |
+ local x |
163 |
+ for x in /var/{lib,log}/${PN}; do |
164 |
+ keepdir "${x}" |
165 |
+ fowners mongodb:mongodb "${x}" |
166 |
+ fperms 0750 "${x}" |
167 |
+ done |
168 |
+ |
169 |
+ doman debian/mongo*.1 |
170 |
+ dodoc README docs/building.md |
171 |
+ |
172 |
+ newinitd "${FILESDIR}/${PN}.initd-r3" ${PN} |
173 |
+ newconfd "${FILESDIR}/${PN}.confd-r3" ${PN} |
174 |
+ newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s} |
175 |
+ newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${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 |
+pkg_postinst() { |
198 |
+ ewarn "Make sure to read the release notes and follow the upgrade process:" |
199 |
+ ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/" |
200 |
+ ewarn " https://docs.mongodb.com/manual/release-notes/$(get_version_component_range 1-2)/#upgrade-procedures" |
201 |
+} |