1 |
commit: 1ce016bbb2fd85a3051c776008f7ef1e43be48dc |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 21 15:17:34 2015 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 21 15:17:46 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ce016bb |
7 |
|
8 |
dev-db/mongodb: version bump |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
|
12 |
dev-db/mongodb/Manifest | 1 + |
13 |
dev-db/mongodb/mongodb-3.0.8.ebuild | 156 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 157 insertions(+) |
15 |
|
16 |
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest |
17 |
index ab28e67..d1d69ed 100644 |
18 |
--- a/dev-db/mongodb/Manifest |
19 |
+++ b/dev-db/mongodb/Manifest |
20 |
@@ -6,3 +6,4 @@ DIST mongodb-src-r2.6.8.tar.gz 14545274 SHA256 1997f60d9de17320f22c604d8aa1cbe5f |
21 |
DIST mongodb-src-r3.0.5.tar.gz 26332788 SHA256 05b16a7991aa65b1d396a3dc622107fba3216fffa8b9ed0817e76ae95f5f7fdb SHA512 17c66f9501e6517feba069f85bb468a421c45300306977ebfed71e6ce120e2bed64f14698e470c644360e23f40132171d64ac85f0962aa3ba824a48cf228775a WHIRLPOOL 7ed1f2b0daf7cb9ff081e69823e79504b8c99a221c74c2a541d673febacad9e555ef34eb4f2e97effe7e6fddafb81b903ab5a4ac8c4e8951640a0f2c6828ba14 |
22 |
DIST mongodb-src-r3.0.6.tar.gz 26241944 SHA256 609f6bd416ed11898b49406332b8ff301de239ba72df0bdbf1603233229c822d SHA512 1990e9011ae586e30aef28be58f9fc6d8b7f45b787dbde9785c82eff6fb0a70ea45152e450c032a898e6464bbb9b1683082f2a072ba874f7532e167330658175 WHIRLPOOL 4090cfb5912f81e6329d3c3680009037f22cd406611f78dc0ddd6fc9a63ee5261c7751fe83c60add2d5917f57b2a3c2796c48abb6f633157a8811d0571793a35 |
23 |
DIST mongodb-src-r3.0.7.tar.gz 26261343 SHA256 2d25bae7c3bfb3c0e168fcad526dc212da72faaeae6d1573db631cacb172a7e7 SHA512 183691c5dc137ea4b86d53d24d2935fd66ed8de60fbf5eca0a0a39c159be1f29043cd655cde1a213a98a76b2b3e6369dbccf790b02a1cc4b622c067ad3c0c91b WHIRLPOOL 986d962e76122142ca810eb7fe13ef66c88c7e354f066292836fc1207fa64c8bbb7fc49d1392db503c8a594d2593e2a19d831d7367462fcfa43eea38768e6323 |
24 |
+DIST mongodb-src-r3.0.8.tar.gz 26245612 SHA256 3574f2f577e212ff1876485e1502c91f70f996fbbcc5a4657fe440ac76bd97a5 SHA512 3b8578ed2a6196cda0867d219214e1dc9fe95ecaa8320cdee3766c9a8a78e9cf66013769a3fbbf03ccf9a35d97e02a1eaa5fe8fc7429a0d76dd78486db7520ac WHIRLPOOL ded0b84b940c66b8a7ef6b363f179a4b2c1ddc23a3077b9cadb01f76c2a90956f0a720e713d4806db6132ac96b1026b82c2bf966ec3869af095e12590ea04d0e |
25 |
|
26 |
diff --git a/dev-db/mongodb/mongodb-3.0.8.ebuild b/dev-db/mongodb/mongodb-3.0.8.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..1e9188c |
29 |
--- /dev/null |
30 |
+++ b/dev-db/mongodb/mongodb-3.0.8.ebuild |
31 |
@@ -0,0 +1,156 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+SCONS_MIN_VERSION="2.3.0" |
38 |
+CHECKREQS_DISK_BUILD="2400M" |
39 |
+CHECKREQS_DISK_USR="512M" |
40 |
+CHECKREQS_MEMORY="1024M" |
41 |
+ |
42 |
+inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs |
43 |
+ |
44 |
+MY_P=${PN}-src-r${PV/_rc/-rc} |
45 |
+ |
46 |
+DESCRIPTION="A high-performance, open source, schema-free document-oriented database" |
47 |
+HOMEPAGE="http://www.mongodb.org" |
48 |
+SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="AGPL-3 Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="debug kerberos libressl mms-agent ssl +tools" |
54 |
+ |
55 |
+RDEPEND="app-arch/snappy |
56 |
+ >=dev-cpp/yaml-cpp-0.5.1 |
57 |
+ >=dev-libs/boost-1.57[threads(+)] |
58 |
+ >=dev-libs/libpcre-8.30[cxx] |
59 |
+ dev-libs/snowball-stemmer |
60 |
+ net-libs/libpcap |
61 |
+ sys-libs/zlib |
62 |
+ mms-agent? ( app-admin/mms-agent ) |
63 |
+ ssl? ( |
64 |
+ !libressl? ( >=dev-libs/openssl-1.0.1g:0= ) |
65 |
+ libressl? ( dev-libs/libressl:= ) |
66 |
+ )" |
67 |
+DEPEND="${RDEPEND} |
68 |
+ >=sys-devel/gcc-4.8.2:* |
69 |
+ sys-libs/ncurses |
70 |
+ sys-libs/readline |
71 |
+ kerberos? ( dev-libs/cyrus-sasl[kerberos] )" |
72 |
+PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" |
73 |
+ |
74 |
+S=${WORKDIR}/${MY_P} |
75 |
+ |
76 |
+pkg_setup() { |
77 |
+ enewgroup mongodb |
78 |
+ enewuser mongodb -1 -1 /var/lib/${PN} mongodb |
79 |
+ |
80 |
+ # Maintainer notes |
81 |
+ # |
82 |
+ # --use-system-tcmalloc is strongly NOT recommended: |
83 |
+ # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ |
84 |
+ # |
85 |
+ # --c++11 is required by scons instead of auto detection: |
86 |
+ # https://jira.mongodb.org/browse/SERVER-19661 |
87 |
+ |
88 |
+ scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11" |
89 |
+ scons_opts+=" --disable-warnings-as-errors" |
90 |
+ scons_opts+=" --use-system-boost" |
91 |
+ scons_opts+=" --use-system-pcre" |
92 |
+ scons_opts+=" --use-system-snappy" |
93 |
+ scons_opts+=" --use-system-stemmer" |
94 |
+ scons_opts+=" --use-system-yaml" |
95 |
+ |
96 |
+ if use debug; then |
97 |
+ scons_opts+=" --dbg=on" |
98 |
+ fi |
99 |
+ |
100 |
+ if use prefix; then |
101 |
+ scons_opts+=" --cpppath=${EPREFIX}/usr/include" |
102 |
+ scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)" |
103 |
+ fi |
104 |
+ |
105 |
+ if use kerberos; then |
106 |
+ scons_opts+=" --use-sasl-client" |
107 |
+ fi |
108 |
+ |
109 |
+ if use ssl; then |
110 |
+ scons_opts+=" --ssl" |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+src_prepare() { |
115 |
+ epatch "${FILESDIR}/${PN}-3.0.0-fix-scons.patch" |
116 |
+} |
117 |
+ |
118 |
+src_compile() { |
119 |
+ # respect mongoDB upstream's basic recommendations |
120 |
+ # see bug #536688 and #526114 |
121 |
+ if ! use debug; then |
122 |
+ filter-flags '-m*' |
123 |
+ filter-flags '-O?' |
124 |
+ fi |
125 |
+ escons ${scons_opts} core tools |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ escons ${scons_opts} --nostrip install --prefix="${ED}"/usr |
130 |
+ |
131 |
+ for x in /var/{lib,log}/${PN}; do |
132 |
+ keepdir "${x}" |
133 |
+ fowners mongodb:mongodb "${x}" |
134 |
+ done |
135 |
+ |
136 |
+ doman debian/mongo*.1 |
137 |
+ dodoc README docs/building.md |
138 |
+ |
139 |
+ newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} |
140 |
+ newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} |
141 |
+ newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} |
142 |
+ newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} |
143 |
+ |
144 |
+ insinto /etc |
145 |
+ newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf |
146 |
+ newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf |
147 |
+ |
148 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
149 |
+ |
150 |
+ insinto /etc/logrotate.d/ |
151 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
152 |
+ |
153 |
+ # see bug #526114 |
154 |
+ pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} |
155 |
+} |
156 |
+ |
157 |
+pkg_preinst() { |
158 |
+ # wrt bug #461466 |
159 |
+ if [[ "$(get_libdir)" == "lib64" ]]; then |
160 |
+ rmdir "${ED}"/usr/lib/ &>/dev/null |
161 |
+ fi |
162 |
+} |
163 |
+ |
164 |
+src_test() { |
165 |
+ escons ${scons_opts} dbtest |
166 |
+ "${S}"/dbtest --dbpath=unittest || die "dbtest failed" |
167 |
+ escons ${scons_opts} smokeCppUnittests --smokedbprefix="smokecpptest" || die "smokeCppUnittests tests failed" |
168 |
+} |
169 |
+ |
170 |
+pkg_postinst() { |
171 |
+ if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then |
172 |
+ ewarn "!! IMPORTANT !!" |
173 |
+ ewarn " " |
174 |
+ ewarn "${PN} configuration files have changed !" |
175 |
+ ewarn " " |
176 |
+ ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" |
177 |
+ ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" |
178 |
+ ewarn " " |
179 |
+ ewarn "Make sure you also follow the upgrading process :" |
180 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" |
181 |
+ ewarn " " |
182 |
+ ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." |
183 |
+ ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." |
184 |
+ ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" |
185 |
+ ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" |
186 |
+ fi |
187 |
+} |