1 |
commit: c322da911c14a988867ebf144d86968b28121bbd |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 27 09:41:54 2016 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 27 09:42:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c322da91 |
7 |
|
8 |
dev-db/mongodb: drop old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
app-admin/mongo-tools/Manifest | 3 - |
13 |
app-admin/mongo-tools/mongo-tools-3.0.5.ebuild | 53 --------- |
14 |
app-admin/mongo-tools/mongo-tools-3.0.6.ebuild | 53 --------- |
15 |
app-admin/mongo-tools/mongo-tools-3.0.7.ebuild | 53 --------- |
16 |
dev-db/mongodb/Manifest | 3 - |
17 |
dev-db/mongodb/mongodb-3.0.5.ebuild | 153 ------------------------ |
18 |
dev-db/mongodb/mongodb-3.0.6-r1.ebuild | 156 ------------------------- |
19 |
dev-db/mongodb/mongodb-3.0.6.ebuild | 153 ------------------------ |
20 |
dev-db/mongodb/mongodb-3.0.7.ebuild | 156 ------------------------- |
21 |
9 files changed, 783 deletions(-) |
22 |
|
23 |
diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest |
24 |
index 284904c..0aed106 100644 |
25 |
--- a/app-admin/mongo-tools/Manifest |
26 |
+++ b/app-admin/mongo-tools/Manifest |
27 |
@@ -1,6 +1,3 @@ |
28 |
-DIST mongo-tools-3.0.5.tar.gz 2160877 SHA256 a0a46dabe493d32bda8dec4ca2e4b06c150b405d8184769d50936eb9bc6d126e SHA512 6434708f60c3edc08f439ecd1ae06f634a1897449f1244d9dc3c3024d6146329cfdadaff14a50ba7f35a4bee2bb302b00141d9f388d99a50c4391218c5e9d3e3 WHIRLPOOL d66563c12021bc84a951c7bd125827f958808e577c391252d815a89916fdb86187269d75f9d36a33828132d98040d328cc090ff4fdbc764e3bab15f5fcdb623c |
29 |
-DIST mongo-tools-3.0.6.tar.gz 2161424 SHA256 ed4ebb42efe99f1eeac5ed128f4ae9b10e172396ad06eaae61d3a30c301c2a12 SHA512 ad9e635a6be911116e4a5ddaa4f509c6418036bf9fa4e1ea3940ce3bcc1a5479b403d26d2865b9938a66ed5b38ec4830b307baa7552cc4cf46cc0353dea8853f WHIRLPOOL 29e5364825795c5661ca595e294115d2a06ea43f0b0039bd56d31fd50c1325709a053ebbfc23d54954c4783229be218a6b426ffc6f301149fd946927aad62283 |
30 |
-DIST mongo-tools-3.0.7.tar.gz 2183495 SHA256 3136b8df6e7c81b5cf6609b3cd6113d69ea6c067d5bfd25b2e0dbabef9173ca0 SHA512 ff410f25a42e76f55716e6e478564aaeefd3999cf0e9db718969877709974d099c479690e81d6f639c27b0a4d9b59d193c43f1c31dc027b594f1fef33129cb5a WHIRLPOOL 3e3ac13de56c7abd5fd80dcfe5f94090aa78d240598ed0c879365b275bfab5da07aaf8c5b94ad27e3a6f7c0d24d6a68bbb5e54612b4fa2928efbf880c5c40dfc |
31 |
DIST mongo-tools-3.0.8.tar.gz 2185550 SHA256 b9860339ed59ed57bb29b26c820578c690baa2aaec98fe743561cc95023815f1 SHA512 95ea8377aef747f66ce827300cbc38bfa5b660ad25e4d66cf0dc9899cfe81ff2a67e9383a22c08158fed2d622a6f4d3b315e1234fb6118f246ef17f9cffa129a WHIRLPOOL 00298e54c8fd17a51a3293101defee94219c46929862695e08b2c21a66e59290b341f07c89add38dacfa8295c3fe83ce61cd3911e7489ddd75c2a65721910cce |
32 |
DIST mongo-tools-3.0.9.tar.gz 2185557 SHA256 41705fe815d189d6985ac6abad0b7467186488600cc3031732a25fea5c69a09f SHA512 d4b8d89242a0ab5b678eec7f9a75ad8cf199769046a399741960c605c7d0dc34d5f5e30d956ff4d51b01bc93b1841e132dc2daf6dade9b32d035f2c2f261e520 WHIRLPOOL ce8911d89d9874f1fbc18b63546b641866e94a7160edd705aece48f05b63a67dfc111cd44940a0956bc1d1e42431b33ea69d5f24eb216e99fcb080b55281ec89 |
33 |
DIST mongo-tools-3.2.1.tar.gz 2226762 SHA256 e2a0527b8987ae954fc9ca071987b4c58ff53aa2bc0a4d8b03337f4d8aff1d89 SHA512 52e7402c232915e8bc481598a5f3a311ef7f4058448735ed14e142da180baf19aac95e641dbe58d0c71e114f35889d1cfa6a321114e4cf21edf7c525bf548249 WHIRLPOOL d0e30417f478c8f0aa7936638c0bec87f01dc278946dcde3187dbb060631126eaee2f0cdc535212cd2ad350f0c281d7398d66cb6416b7a0906d6c8e5d3cc5e19 |
34 |
|
35 |
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild |
36 |
deleted file mode 100644 |
37 |
index 658782f..0000000 |
38 |
--- a/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,53 +0,0 @@ |
41 |
-# Copyright 1999-2015 Gentoo Foundation |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
-# $Id$ |
44 |
- |
45 |
-EAPI=5 |
46 |
- |
47 |
-inherit eutils |
48 |
- |
49 |
-MY_PV=${PV/_rc/-rc} |
50 |
-MY_P=${PN}-r${MY_PV} |
51 |
- |
52 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
53 |
-HOMEPAGE="http://www.mongodb.org" |
54 |
-SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" |
55 |
- |
56 |
-LICENSE="Apache-2.0" |
57 |
-SLOT="0" |
58 |
-KEYWORDS="~amd64 ~x86" |
59 |
-IUSE="sasl ssl" |
60 |
- |
61 |
-# Maintainer note: |
62 |
-# openssl DEPEND constraint, see: |
63 |
-# https://github.com/mongodb/mongo-tools/issues/11 |
64 |
- |
65 |
-RDEPEND="!<dev-db/mongodb-3.0.0" |
66 |
-DEPEND="${RDEPEND} |
67 |
- dev-lang/go:= |
68 |
- sasl? ( dev-libs/cyrus-sasl ) |
69 |
- ssl? ( dev-libs/openssl )" |
70 |
- |
71 |
-S=${WORKDIR}/${MY_P} |
72 |
- |
73 |
-src_prepare() { |
74 |
- epatch "${FILESDIR}/${PN}-3.0.0-build.patch" |
75 |
-} |
76 |
- |
77 |
-src_compile() { |
78 |
- local myconf |
79 |
- |
80 |
- if use sasl; then |
81 |
- myconf="${myconf} sasl" |
82 |
- fi |
83 |
- |
84 |
- if use ssl; then |
85 |
- myconf="${myconf} ssl" |
86 |
- fi |
87 |
- |
88 |
- ./build.sh ${myconf} |
89 |
-} |
90 |
- |
91 |
-src_install() { |
92 |
- dobin bin/* |
93 |
-} |
94 |
|
95 |
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild |
96 |
deleted file mode 100644 |
97 |
index 658782f..0000000 |
98 |
--- a/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild |
99 |
+++ /dev/null |
100 |
@@ -1,53 +0,0 @@ |
101 |
-# Copyright 1999-2015 Gentoo Foundation |
102 |
-# Distributed under the terms of the GNU General Public License v2 |
103 |
-# $Id$ |
104 |
- |
105 |
-EAPI=5 |
106 |
- |
107 |
-inherit eutils |
108 |
- |
109 |
-MY_PV=${PV/_rc/-rc} |
110 |
-MY_P=${PN}-r${MY_PV} |
111 |
- |
112 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
113 |
-HOMEPAGE="http://www.mongodb.org" |
114 |
-SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" |
115 |
- |
116 |
-LICENSE="Apache-2.0" |
117 |
-SLOT="0" |
118 |
-KEYWORDS="~amd64 ~x86" |
119 |
-IUSE="sasl ssl" |
120 |
- |
121 |
-# Maintainer note: |
122 |
-# openssl DEPEND constraint, see: |
123 |
-# https://github.com/mongodb/mongo-tools/issues/11 |
124 |
- |
125 |
-RDEPEND="!<dev-db/mongodb-3.0.0" |
126 |
-DEPEND="${RDEPEND} |
127 |
- dev-lang/go:= |
128 |
- sasl? ( dev-libs/cyrus-sasl ) |
129 |
- ssl? ( dev-libs/openssl )" |
130 |
- |
131 |
-S=${WORKDIR}/${MY_P} |
132 |
- |
133 |
-src_prepare() { |
134 |
- epatch "${FILESDIR}/${PN}-3.0.0-build.patch" |
135 |
-} |
136 |
- |
137 |
-src_compile() { |
138 |
- local myconf |
139 |
- |
140 |
- if use sasl; then |
141 |
- myconf="${myconf} sasl" |
142 |
- fi |
143 |
- |
144 |
- if use ssl; then |
145 |
- myconf="${myconf} ssl" |
146 |
- fi |
147 |
- |
148 |
- ./build.sh ${myconf} |
149 |
-} |
150 |
- |
151 |
-src_install() { |
152 |
- dobin bin/* |
153 |
-} |
154 |
|
155 |
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild |
156 |
deleted file mode 100644 |
157 |
index 658782f..0000000 |
158 |
--- a/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild |
159 |
+++ /dev/null |
160 |
@@ -1,53 +0,0 @@ |
161 |
-# Copyright 1999-2015 Gentoo Foundation |
162 |
-# Distributed under the terms of the GNU General Public License v2 |
163 |
-# $Id$ |
164 |
- |
165 |
-EAPI=5 |
166 |
- |
167 |
-inherit eutils |
168 |
- |
169 |
-MY_PV=${PV/_rc/-rc} |
170 |
-MY_P=${PN}-r${MY_PV} |
171 |
- |
172 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
173 |
-HOMEPAGE="http://www.mongodb.org" |
174 |
-SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz" |
175 |
- |
176 |
-LICENSE="Apache-2.0" |
177 |
-SLOT="0" |
178 |
-KEYWORDS="~amd64 ~x86" |
179 |
-IUSE="sasl ssl" |
180 |
- |
181 |
-# Maintainer note: |
182 |
-# openssl DEPEND constraint, see: |
183 |
-# https://github.com/mongodb/mongo-tools/issues/11 |
184 |
- |
185 |
-RDEPEND="!<dev-db/mongodb-3.0.0" |
186 |
-DEPEND="${RDEPEND} |
187 |
- dev-lang/go:= |
188 |
- sasl? ( dev-libs/cyrus-sasl ) |
189 |
- ssl? ( dev-libs/openssl )" |
190 |
- |
191 |
-S=${WORKDIR}/${MY_P} |
192 |
- |
193 |
-src_prepare() { |
194 |
- epatch "${FILESDIR}/${PN}-3.0.0-build.patch" |
195 |
-} |
196 |
- |
197 |
-src_compile() { |
198 |
- local myconf |
199 |
- |
200 |
- if use sasl; then |
201 |
- myconf="${myconf} sasl" |
202 |
- fi |
203 |
- |
204 |
- if use ssl; then |
205 |
- myconf="${myconf} ssl" |
206 |
- fi |
207 |
- |
208 |
- ./build.sh ${myconf} |
209 |
-} |
210 |
- |
211 |
-src_install() { |
212 |
- dobin bin/* |
213 |
-} |
214 |
|
215 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
216 |
index ac362f4..75a57b3 100644 |
217 |
--- a/dev-db/mongodb/Manifest |
218 |
+++ b/dev-db/mongodb/Manifest |
219 |
@@ -1,9 +1,6 @@ |
220 |
DIST 20140409-mms-monitoring-agent.zip 40122 SHA256 9c4f89cfba10b4604512ab21eb082248104aeabe7e813b852db2b86f47d7ecb2 SHA512 5290a813c407251b5e4def813ce6fe7e09d6c3a1907fd409e326b15b07aed39f7db3a28710ecdaffe2771136c9433253c5d1857c823844a4b75dd38f1d15eefd WHIRLPOOL ce80870e2618f3d9ed80af41b1069ed5bd97af475089564eed1bc111e820c048bc5cbaa03f859349e772fe232f876127e0627c75c135a9b2e196ab13258ed9f1 |
221 |
DIST mongodb-src-r2.6.11.tar.gz 16461163 SHA256 e1a64a1ef7114f3e8ed3c7acaa4e97ffe30e2b57a1a5f2a40f0018bad3b8d12f SHA512 43b8c5e1ffde2c7f4bead392a95fdb34169419b8296acf04a17894379647c09bbec91be88037ab447da399f03a2c7c54c9d7613df0baa6e9e48e1267327ca937 WHIRLPOOL 083c897f83992c64a89e595058b7695671ca7e9339be2a54d14cf8a200d5063f4a33c320c02e45f5d3bd6367b5acf67a80677c92abba9a92a647d7310a2e6316 |
222 |
DIST mongodb-src-r2.6.8.tar.gz 14545274 SHA256 1997f60d9de17320f22c604d8aa1cbe5f38d877142cd0e9130fe3dae7b311a06 SHA512 6fa69750debb40d0be4d5d057125320d97e882e30c43c664fcb6ec6a9e6a8bff5e63637fc8952a6d898556b2c2ce84254d135387dc0879bf65dbd5e91b8732ef WHIRLPOOL ba87ca07258ad4df90c92bc300da6cc661117a98f254a8ba62ac362a857ecc2462eb9ddf1d929a6e2187853233053e975aa02139f880d736e47e542a9504bd28 |
223 |
-DIST mongodb-src-r3.0.5.tar.gz 26332788 SHA256 05b16a7991aa65b1d396a3dc622107fba3216fffa8b9ed0817e76ae95f5f7fdb SHA512 17c66f9501e6517feba069f85bb468a421c45300306977ebfed71e6ce120e2bed64f14698e470c644360e23f40132171d64ac85f0962aa3ba824a48cf228775a WHIRLPOOL 7ed1f2b0daf7cb9ff081e69823e79504b8c99a221c74c2a541d673febacad9e555ef34eb4f2e97effe7e6fddafb81b903ab5a4ac8c4e8951640a0f2c6828ba14 |
224 |
-DIST mongodb-src-r3.0.6.tar.gz 26241944 SHA256 609f6bd416ed11898b49406332b8ff301de239ba72df0bdbf1603233229c822d SHA512 1990e9011ae586e30aef28be58f9fc6d8b7f45b787dbde9785c82eff6fb0a70ea45152e450c032a898e6464bbb9b1683082f2a072ba874f7532e167330658175 WHIRLPOOL 4090cfb5912f81e6329d3c3680009037f22cd406611f78dc0ddd6fc9a63ee5261c7751fe83c60add2d5917f57b2a3c2796c48abb6f633157a8811d0571793a35 |
225 |
-DIST mongodb-src-r3.0.7.tar.gz 26261343 SHA256 2d25bae7c3bfb3c0e168fcad526dc212da72faaeae6d1573db631cacb172a7e7 SHA512 183691c5dc137ea4b86d53d24d2935fd66ed8de60fbf5eca0a0a39c159be1f29043cd655cde1a213a98a76b2b3e6369dbccf790b02a1cc4b622c067ad3c0c91b WHIRLPOOL 986d962e76122142ca810eb7fe13ef66c88c7e354f066292836fc1207fa64c8bbb7fc49d1392db503c8a594d2593e2a19d831d7367462fcfa43eea38768e6323 |
226 |
DIST mongodb-src-r3.0.8.tar.gz 26245612 SHA256 3574f2f577e212ff1876485e1502c91f70f996fbbcc5a4657fe440ac76bd97a5 SHA512 3b8578ed2a6196cda0867d219214e1dc9fe95ecaa8320cdee3766c9a8a78e9cf66013769a3fbbf03ccf9a35d97e02a1eaa5fe8fc7429a0d76dd78486db7520ac WHIRLPOOL ded0b84b940c66b8a7ef6b363f179a4b2c1ddc23a3077b9cadb01f76c2a90956f0a720e713d4806db6132ac96b1026b82c2bf966ec3869af095e12590ea04d0e |
227 |
DIST mongodb-src-r3.0.9.tar.gz 26249669 SHA256 5b6f189458739a327a2ad4a5ecab4f733c6a6751ccb067ec8879a0f98f2b97c3 SHA512 4ebcd89394ea0ccbd84adde1a6ce1776d86873bea13520c31bf3a783a922598cadd9ce1c11998f028e5e1affe6cb6639d1a4ff9c0e5771ff88bed873ddf7dc97 WHIRLPOOL a7d6cb51ee62717bcc2e612ae8e72ea43be7c9867c0de3fa2afc1d5c731bc3b1ca04ac70a351feaba71c27e00cf6cbf9b9997c4276362f98a725350aff37b750 |
228 |
DIST mongodb-src-r3.2.1.tar.gz 26397562 SHA256 50431a3ba5ab68bd0bed4a157a8528ca27753a63cf101f13135255e4e9d42f15 SHA512 5ce0af3e70010e3602dd2f7c49c80feee1c89903a694db038543a7f399f4296f2c04bf3aee7089da0b24aa9239aa79823e6f5408bf0f3c6fade6166e94070309 WHIRLPOOL de59175ad56577ffc5a90358e2f387c901a8353bb3b98ef6861d917480d853f926de7645ee4a2d8a704824609f251c82ead6e6cd95e982be18271677cfd6e2b3 |
229 |
|
230 |
diff --git a/dev-db/mongodb/mongodb-3.0.5.ebuild b/dev-db/mongodb/mongodb-3.0.5.ebuild |
231 |
deleted file mode 100644 |
232 |
index 7fa4bb1..0000000 |
233 |
--- a/dev-db/mongodb/mongodb-3.0.5.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,153 +0,0 @@ |
236 |
-# Copyright 1999-2015 Gentoo Foundation |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
-# $Id$ |
239 |
- |
240 |
-EAPI=5 |
241 |
-SCONS_MIN_VERSION="2.3.0" |
242 |
-CHECKREQS_DISK_BUILD="2400M" |
243 |
-CHECKREQS_DISK_USR="512M" |
244 |
-CHECKREQS_MEMORY="1024M" |
245 |
- |
246 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs |
247 |
- |
248 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
249 |
- |
250 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
251 |
-HOMEPAGE="http://www.mongodb.org" |
252 |
-SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" |
253 |
- |
254 |
-LICENSE="AGPL-3 Apache-2.0" |
255 |
-SLOT="0" |
256 |
-KEYWORDS="~amd64 ~x86" |
257 |
-IUSE="debug kerberos mms-agent ssl +tools" |
258 |
- |
259 |
-RDEPEND="app-arch/snappy |
260 |
- >=dev-cpp/yaml-cpp-0.5.1 |
261 |
- >=dev-libs/boost-1.57[threads(+)] |
262 |
- >=dev-libs/libpcre-8.30[cxx] |
263 |
- dev-libs/snowball-stemmer |
264 |
- net-libs/libpcap |
265 |
- sys-libs/zlib |
266 |
- mms-agent? ( app-admin/mms-agent ) |
267 |
- ssl? ( >=dev-libs/openssl-1.0.1g:= )" |
268 |
-DEPEND="${RDEPEND} |
269 |
- >=sys-devel/gcc-4.8.2:* |
270 |
- sys-libs/ncurses |
271 |
- sys-libs/readline |
272 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )" |
273 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
274 |
- |
275 |
-S=${WORKDIR}/${MY_P} |
276 |
- |
277 |
-pkg_setup() { |
278 |
- enewgroup mongodb |
279 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
280 |
- |
281 |
- # Maintainer notes |
282 |
- # |
283 |
- # --use-system-tcmalloc is strongly NOT recommended: |
284 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
285 |
- # |
286 |
- # --c++11 is required by scons instead of auto detection: |
287 |
- # https://jira.mongodb.org/browse/SERVER-19661 |
288 |
- |
289 |
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11" |
290 |
- scons_opts+=" --disable-warnings-as-errors" |
291 |
- scons_opts+=" --use-system-boost" |
292 |
- scons_opts+=" --use-system-pcre" |
293 |
- scons_opts+=" --use-system-snappy" |
294 |
- scons_opts+=" --use-system-stemmer" |
295 |
- scons_opts+=" --use-system-yaml" |
296 |
- |
297 |
- if use debug; then |
298 |
- scons_opts+=" --dbg=on" |
299 |
- fi |
300 |
- |
301 |
- if use prefix; then |
302 |
- scons_opts+=" --cpppath=${EPREFIX}/usr/include" |
303 |
- scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)" |
304 |
- fi |
305 |
- |
306 |
- if use kerberos; then |
307 |
- scons_opts+=" --use-sasl-client" |
308 |
- fi |
309 |
- |
310 |
- if use ssl; then |
311 |
- scons_opts+=" --ssl" |
312 |
- fi |
313 |
-} |
314 |
- |
315 |
-src_prepare() { |
316 |
- epatch "${FILESDIR}/${PN}-3.0.0-fix-scons.patch" |
317 |
-} |
318 |
- |
319 |
-src_compile() { |
320 |
- # respect mongoDB upstream's basic recommendations |
321 |
- # see bug #536688 and #526114 |
322 |
- if ! use debug; then |
323 |
- filter-flags '-m*' |
324 |
- filter-flags '-O?' |
325 |
- fi |
326 |
- escons ${scons_opts} core tools |
327 |
-} |
328 |
- |
329 |
-src_install() { |
330 |
- escons ${scons_opts} --nostrip install --prefix="${ED}"/usr |
331 |
- |
332 |
- for x in /var/{lib,log}/${PN}; do |
333 |
- keepdir "${x}" |
334 |
- fowners mongodb:mongodb "${x}" |
335 |
- done |
336 |
- |
337 |
- doman debian/mongo*.1 |
338 |
- dodoc README docs/building.md |
339 |
- |
340 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
341 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
342 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
343 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
344 |
- |
345 |
- insinto /etc |
346 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
347 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
348 |
- |
349 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
350 |
- |
351 |
- insinto /etc/logrotate.d/ |
352 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
353 |
- |
354 |
- # see bug #526114 |
355 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
356 |
-} |
357 |
- |
358 |
-pkg_preinst() { |
359 |
- # wrt bug #461466 |
360 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
361 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
362 |
- fi |
363 |
-} |
364 |
- |
365 |
-src_test() { |
366 |
- escons ${scons_opts} dbtest |
367 |
- "${S}"/dbtest --dbpath=unittest || die "dbtest failed" |
368 |
- escons ${scons_opts} smokeCppUnittests --smokedbprefix="smokecpptest" || die "smokeCppUnittests tests failed" |
369 |
-} |
370 |
- |
371 |
-pkg_postinst() { |
372 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
373 |
- ewarn "!! IMPORTANT !!" |
374 |
- ewarn " " |
375 |
- ewarn "${PN} configuration files have changed !" |
376 |
- ewarn " " |
377 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
378 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
379 |
- ewarn " " |
380 |
- ewarn "Make sure you also follow the upgrading process :" |
381 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
382 |
- ewarn " " |
383 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
384 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
385 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
386 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
387 |
- fi |
388 |
-} |
389 |
|
390 |
diff --git a/dev-db/mongodb/mongodb-3.0.6-r1.ebuild b/dev-db/mongodb/mongodb-3.0.6-r1.ebuild |
391 |
deleted file mode 100644 |
392 |
index 1e9188c..0000000 |
393 |
--- a/dev-db/mongodb/mongodb-3.0.6-r1.ebuild |
394 |
+++ /dev/null |
395 |
@@ -1,156 +0,0 @@ |
396 |
-# Copyright 1999-2015 Gentoo Foundation |
397 |
-# Distributed under the terms of the GNU General Public License v2 |
398 |
-# $Id$ |
399 |
- |
400 |
-EAPI=5 |
401 |
-SCONS_MIN_VERSION="2.3.0" |
402 |
-CHECKREQS_DISK_BUILD="2400M" |
403 |
-CHECKREQS_DISK_USR="512M" |
404 |
-CHECKREQS_MEMORY="1024M" |
405 |
- |
406 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs |
407 |
- |
408 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
409 |
- |
410 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
411 |
-HOMEPAGE="http://www.mongodb.org" |
412 |
-SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" |
413 |
- |
414 |
-LICENSE="AGPL-3 Apache-2.0" |
415 |
-SLOT="0" |
416 |
-KEYWORDS="~amd64 ~x86" |
417 |
-IUSE="debug kerberos libressl mms-agent ssl +tools" |
418 |
- |
419 |
-RDEPEND="app-arch/snappy |
420 |
- >=dev-cpp/yaml-cpp-0.5.1 |
421 |
- >=dev-libs/boost-1.57[threads(+)] |
422 |
- >=dev-libs/libpcre-8.30[cxx] |
423 |
- dev-libs/snowball-stemmer |
424 |
- net-libs/libpcap |
425 |
- sys-libs/zlib |
426 |
- mms-agent? ( app-admin/mms-agent ) |
427 |
- ssl? ( |
428 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
429 |
- libressl? ( dev-libs/libressl:= ) |
430 |
- )" |
431 |
-DEPEND="${RDEPEND} |
432 |
- >=sys-devel/gcc-4.8.2:* |
433 |
- sys-libs/ncurses |
434 |
- sys-libs/readline |
435 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )" |
436 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
437 |
- |
438 |
-S=${WORKDIR}/${MY_P} |
439 |
- |
440 |
-pkg_setup() { |
441 |
- enewgroup mongodb |
442 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
443 |
- |
444 |
- # Maintainer notes |
445 |
- # |
446 |
- # --use-system-tcmalloc is strongly NOT recommended: |
447 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
448 |
- # |
449 |
- # --c++11 is required by scons instead of auto detection: |
450 |
- # https://jira.mongodb.org/browse/SERVER-19661 |
451 |
- |
452 |
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11" |
453 |
- scons_opts+=" --disable-warnings-as-errors" |
454 |
- scons_opts+=" --use-system-boost" |
455 |
- scons_opts+=" --use-system-pcre" |
456 |
- scons_opts+=" --use-system-snappy" |
457 |
- scons_opts+=" --use-system-stemmer" |
458 |
- scons_opts+=" --use-system-yaml" |
459 |
- |
460 |
- if use debug; then |
461 |
- scons_opts+=" --dbg=on" |
462 |
- fi |
463 |
- |
464 |
- if use prefix; then |
465 |
- scons_opts+=" --cpppath=${EPREFIX}/usr/include" |
466 |
- scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)" |
467 |
- fi |
468 |
- |
469 |
- if use kerberos; then |
470 |
- scons_opts+=" --use-sasl-client" |
471 |
- fi |
472 |
- |
473 |
- if use ssl; then |
474 |
- scons_opts+=" --ssl" |
475 |
- fi |
476 |
-} |
477 |
- |
478 |
-src_prepare() { |
479 |
- epatch "${FILESDIR}/${PN}-3.0.0-fix-scons.patch" |
480 |
-} |
481 |
- |
482 |
-src_compile() { |
483 |
- # respect mongoDB upstream's basic recommendations |
484 |
- # see bug #536688 and #526114 |
485 |
- if ! use debug; then |
486 |
- filter-flags '-m*' |
487 |
- filter-flags '-O?' |
488 |
- fi |
489 |
- escons ${scons_opts} core tools |
490 |
-} |
491 |
- |
492 |
-src_install() { |
493 |
- escons ${scons_opts} --nostrip install --prefix="${ED}"/usr |
494 |
- |
495 |
- for x in /var/{lib,log}/${PN}; do |
496 |
- keepdir "${x}" |
497 |
- fowners mongodb:mongodb "${x}" |
498 |
- done |
499 |
- |
500 |
- doman debian/mongo*.1 |
501 |
- dodoc README docs/building.md |
502 |
- |
503 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
504 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
505 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
506 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
507 |
- |
508 |
- insinto /etc |
509 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
510 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
511 |
- |
512 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
513 |
- |
514 |
- insinto /etc/logrotate.d/ |
515 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
516 |
- |
517 |
- # see bug #526114 |
518 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
519 |
-} |
520 |
- |
521 |
-pkg_preinst() { |
522 |
- # wrt bug #461466 |
523 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
524 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
525 |
- fi |
526 |
-} |
527 |
- |
528 |
-src_test() { |
529 |
- escons ${scons_opts} dbtest |
530 |
- "${S}"/dbtest --dbpath=unittest || die "dbtest failed" |
531 |
- escons ${scons_opts} smokeCppUnittests --smokedbprefix="smokecpptest" || die "smokeCppUnittests tests failed" |
532 |
-} |
533 |
- |
534 |
-pkg_postinst() { |
535 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
536 |
- ewarn "!! IMPORTANT !!" |
537 |
- ewarn " " |
538 |
- ewarn "${PN} configuration files have changed !" |
539 |
- ewarn " " |
540 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
541 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
542 |
- ewarn " " |
543 |
- ewarn "Make sure you also follow the upgrading process :" |
544 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
545 |
- ewarn " " |
546 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
547 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
548 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
549 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
550 |
- fi |
551 |
-} |
552 |
|
553 |
diff --git a/dev-db/mongodb/mongodb-3.0.6.ebuild b/dev-db/mongodb/mongodb-3.0.6.ebuild |
554 |
deleted file mode 100644 |
555 |
index 7fa4bb1..0000000 |
556 |
--- a/dev-db/mongodb/mongodb-3.0.6.ebuild |
557 |
+++ /dev/null |
558 |
@@ -1,153 +0,0 @@ |
559 |
-# Copyright 1999-2015 Gentoo Foundation |
560 |
-# Distributed under the terms of the GNU General Public License v2 |
561 |
-# $Id$ |
562 |
- |
563 |
-EAPI=5 |
564 |
-SCONS_MIN_VERSION="2.3.0" |
565 |
-CHECKREQS_DISK_BUILD="2400M" |
566 |
-CHECKREQS_DISK_USR="512M" |
567 |
-CHECKREQS_MEMORY="1024M" |
568 |
- |
569 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs |
570 |
- |
571 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
572 |
- |
573 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
574 |
-HOMEPAGE="http://www.mongodb.org" |
575 |
-SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" |
576 |
- |
577 |
-LICENSE="AGPL-3 Apache-2.0" |
578 |
-SLOT="0" |
579 |
-KEYWORDS="~amd64 ~x86" |
580 |
-IUSE="debug kerberos mms-agent ssl +tools" |
581 |
- |
582 |
-RDEPEND="app-arch/snappy |
583 |
- >=dev-cpp/yaml-cpp-0.5.1 |
584 |
- >=dev-libs/boost-1.57[threads(+)] |
585 |
- >=dev-libs/libpcre-8.30[cxx] |
586 |
- dev-libs/snowball-stemmer |
587 |
- net-libs/libpcap |
588 |
- sys-libs/zlib |
589 |
- mms-agent? ( app-admin/mms-agent ) |
590 |
- ssl? ( >=dev-libs/openssl-1.0.1g:= )" |
591 |
-DEPEND="${RDEPEND} |
592 |
- >=sys-devel/gcc-4.8.2:* |
593 |
- sys-libs/ncurses |
594 |
- sys-libs/readline |
595 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )" |
596 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
597 |
- |
598 |
-S=${WORKDIR}/${MY_P} |
599 |
- |
600 |
-pkg_setup() { |
601 |
- enewgroup mongodb |
602 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
603 |
- |
604 |
- # Maintainer notes |
605 |
- # |
606 |
- # --use-system-tcmalloc is strongly NOT recommended: |
607 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
608 |
- # |
609 |
- # --c++11 is required by scons instead of auto detection: |
610 |
- # https://jira.mongodb.org/browse/SERVER-19661 |
611 |
- |
612 |
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11" |
613 |
- scons_opts+=" --disable-warnings-as-errors" |
614 |
- scons_opts+=" --use-system-boost" |
615 |
- scons_opts+=" --use-system-pcre" |
616 |
- scons_opts+=" --use-system-snappy" |
617 |
- scons_opts+=" --use-system-stemmer" |
618 |
- scons_opts+=" --use-system-yaml" |
619 |
- |
620 |
- if use debug; then |
621 |
- scons_opts+=" --dbg=on" |
622 |
- fi |
623 |
- |
624 |
- if use prefix; then |
625 |
- scons_opts+=" --cpppath=${EPREFIX}/usr/include" |
626 |
- scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)" |
627 |
- fi |
628 |
- |
629 |
- if use kerberos; then |
630 |
- scons_opts+=" --use-sasl-client" |
631 |
- fi |
632 |
- |
633 |
- if use ssl; then |
634 |
- scons_opts+=" --ssl" |
635 |
- fi |
636 |
-} |
637 |
- |
638 |
-src_prepare() { |
639 |
- epatch "${FILESDIR}/${PN}-3.0.0-fix-scons.patch" |
640 |
-} |
641 |
- |
642 |
-src_compile() { |
643 |
- # respect mongoDB upstream's basic recommendations |
644 |
- # see bug #536688 and #526114 |
645 |
- if ! use debug; then |
646 |
- filter-flags '-m*' |
647 |
- filter-flags '-O?' |
648 |
- fi |
649 |
- escons ${scons_opts} core tools |
650 |
-} |
651 |
- |
652 |
-src_install() { |
653 |
- escons ${scons_opts} --nostrip install --prefix="${ED}"/usr |
654 |
- |
655 |
- for x in /var/{lib,log}/${PN}; do |
656 |
- keepdir "${x}" |
657 |
- fowners mongodb:mongodb "${x}" |
658 |
- done |
659 |
- |
660 |
- doman debian/mongo*.1 |
661 |
- dodoc README docs/building.md |
662 |
- |
663 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
664 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
665 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
666 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
667 |
- |
668 |
- insinto /etc |
669 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
670 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
671 |
- |
672 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
673 |
- |
674 |
- insinto /etc/logrotate.d/ |
675 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
676 |
- |
677 |
- # see bug #526114 |
678 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
679 |
-} |
680 |
- |
681 |
-pkg_preinst() { |
682 |
- # wrt bug #461466 |
683 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
684 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
685 |
- fi |
686 |
-} |
687 |
- |
688 |
-src_test() { |
689 |
- escons ${scons_opts} dbtest |
690 |
- "${S}"/dbtest --dbpath=unittest || die "dbtest failed" |
691 |
- escons ${scons_opts} smokeCppUnittests --smokedbprefix="smokecpptest" || die "smokeCppUnittests tests failed" |
692 |
-} |
693 |
- |
694 |
-pkg_postinst() { |
695 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
696 |
- ewarn "!! IMPORTANT !!" |
697 |
- ewarn " " |
698 |
- ewarn "${PN} configuration files have changed !" |
699 |
- ewarn " " |
700 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
701 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
702 |
- ewarn " " |
703 |
- ewarn "Make sure you also follow the upgrading process :" |
704 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
705 |
- ewarn " " |
706 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
707 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
708 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
709 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
710 |
- fi |
711 |
-} |
712 |
|
713 |
diff --git a/dev-db/mongodb/mongodb-3.0.7.ebuild b/dev-db/mongodb/mongodb-3.0.7.ebuild |
714 |
deleted file mode 100644 |
715 |
index 1e9188c..0000000 |
716 |
--- a/dev-db/mongodb/mongodb-3.0.7.ebuild |
717 |
+++ /dev/null |
718 |
@@ -1,156 +0,0 @@ |
719 |
-# Copyright 1999-2015 Gentoo Foundation |
720 |
-# Distributed under the terms of the GNU General Public License v2 |
721 |
-# $Id$ |
722 |
- |
723 |
-EAPI=5 |
724 |
-SCONS_MIN_VERSION="2.3.0" |
725 |
-CHECKREQS_DISK_BUILD="2400M" |
726 |
-CHECKREQS_DISK_USR="512M" |
727 |
-CHECKREQS_MEMORY="1024M" |
728 |
- |
729 |
-inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs |
730 |
- |
731 |
-MY_P=${PN}-src-r${PV/_rc/-rc} |
732 |
- |
733 |
-DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
734 |
-HOMEPAGE="http://www.mongodb.org" |
735 |
-SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" |
736 |
- |
737 |
-LICENSE="AGPL-3 Apache-2.0" |
738 |
-SLOT="0" |
739 |
-KEYWORDS="~amd64 ~x86" |
740 |
-IUSE="debug kerberos libressl mms-agent ssl +tools" |
741 |
- |
742 |
-RDEPEND="app-arch/snappy |
743 |
- >=dev-cpp/yaml-cpp-0.5.1 |
744 |
- >=dev-libs/boost-1.57[threads(+)] |
745 |
- >=dev-libs/libpcre-8.30[cxx] |
746 |
- dev-libs/snowball-stemmer |
747 |
- net-libs/libpcap |
748 |
- sys-libs/zlib |
749 |
- mms-agent? ( app-admin/mms-agent ) |
750 |
- ssl? ( |
751 |
- !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
752 |
- libressl? ( dev-libs/libressl:= ) |
753 |
- )" |
754 |
-DEPEND="${RDEPEND} |
755 |
- >=sys-devel/gcc-4.8.2:* |
756 |
- sys-libs/ncurses |
757 |
- sys-libs/readline |
758 |
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )" |
759 |
-PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
760 |
- |
761 |
-S=${WORKDIR}/${MY_P} |
762 |
- |
763 |
-pkg_setup() { |
764 |
- enewgroup mongodb |
765 |
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
766 |
- |
767 |
- # Maintainer notes |
768 |
- # |
769 |
- # --use-system-tcmalloc is strongly NOT recommended: |
770 |
- # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
771 |
- # |
772 |
- # --c++11 is required by scons instead of auto detection: |
773 |
- # https://jira.mongodb.org/browse/SERVER-19661 |
774 |
- |
775 |
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11" |
776 |
- scons_opts+=" --disable-warnings-as-errors" |
777 |
- scons_opts+=" --use-system-boost" |
778 |
- scons_opts+=" --use-system-pcre" |
779 |
- scons_opts+=" --use-system-snappy" |
780 |
- scons_opts+=" --use-system-stemmer" |
781 |
- scons_opts+=" --use-system-yaml" |
782 |
- |
783 |
- if use debug; then |
784 |
- scons_opts+=" --dbg=on" |
785 |
- fi |
786 |
- |
787 |
- if use prefix; then |
788 |
- scons_opts+=" --cpppath=${EPREFIX}/usr/include" |
789 |
- scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)" |
790 |
- fi |
791 |
- |
792 |
- if use kerberos; then |
793 |
- scons_opts+=" --use-sasl-client" |
794 |
- fi |
795 |
- |
796 |
- if use ssl; then |
797 |
- scons_opts+=" --ssl" |
798 |
- fi |
799 |
-} |
800 |
- |
801 |
-src_prepare() { |
802 |
- epatch "${FILESDIR}/${PN}-3.0.0-fix-scons.patch" |
803 |
-} |
804 |
- |
805 |
-src_compile() { |
806 |
- # respect mongoDB upstream's basic recommendations |
807 |
- # see bug #536688 and #526114 |
808 |
- if ! use debug; then |
809 |
- filter-flags '-m*' |
810 |
- filter-flags '-O?' |
811 |
- fi |
812 |
- escons ${scons_opts} core tools |
813 |
-} |
814 |
- |
815 |
-src_install() { |
816 |
- escons ${scons_opts} --nostrip install --prefix="${ED}"/usr |
817 |
- |
818 |
- for x in /var/{lib,log}/${PN}; do |
819 |
- keepdir "${x}" |
820 |
- fowners mongodb:mongodb "${x}" |
821 |
- done |
822 |
- |
823 |
- doman debian/mongo*.1 |
824 |
- dodoc README docs/building.md |
825 |
- |
826 |
- newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
827 |
- newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
828 |
- newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
829 |
- newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
830 |
- |
831 |
- insinto /etc |
832 |
- newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
833 |
- newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
834 |
- |
835 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
836 |
- |
837 |
- insinto /etc/logrotate.d/ |
838 |
- newins "${FILESDIR}/${PN}.logrotate" ${PN} |
839 |
- |
840 |
- # see bug #526114 |
841 |
- pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
842 |
-} |
843 |
- |
844 |
-pkg_preinst() { |
845 |
- # wrt bug #461466 |
846 |
- if [[ "$(get_libdir)" == "lib64" ]]; then |
847 |
- rmdir "${ED}"/usr/lib/ &>/dev/null |
848 |
- fi |
849 |
-} |
850 |
- |
851 |
-src_test() { |
852 |
- escons ${scons_opts} dbtest |
853 |
- "${S}"/dbtest --dbpath=unittest || die "dbtest failed" |
854 |
- escons ${scons_opts} smokeCppUnittests --smokedbprefix="smokecpptest" || die "smokeCppUnittests tests failed" |
855 |
-} |
856 |
- |
857 |
-pkg_postinst() { |
858 |
- if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
859 |
- ewarn "!! IMPORTANT !!" |
860 |
- ewarn " " |
861 |
- ewarn "${PN} configuration files have changed !" |
862 |
- ewarn " " |
863 |
- ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
864 |
- ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
865 |
- ewarn " " |
866 |
- ewarn "Make sure you also follow the upgrading process :" |
867 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
868 |
- ewarn " " |
869 |
- ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
870 |
- ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
871 |
- ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
872 |
- ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
873 |
- fi |
874 |
-} |