diff options
author | Alexys Jacob <ultrabug@gentoo.org> | 2015-08-04 17:31:54 +0000 |
---|---|---|
committer | Alexys Jacob <ultrabug@gentoo.org> | 2015-08-04 17:31:54 +0000 |
commit | 457d0f93388ed815b9603b1ba0a0ddb292f6fe9d (patch) | |
tree | a8c6e64c4a35ecd29c602bd768bf1c3b2d20a321 | |
parent | Forcing -j1, not worth debugging for this package (diff) | |
download | historical-457d0f93388ed815b9603b1ba0a0ddb292f6fe9d.tar.gz historical-457d0f93388ed815b9603b1ba0a0ddb292f6fe9d.tar.bz2 historical-457d0f93388ed815b9603b1ba0a0ddb292f6fe9d.zip |
version bump fix #556548
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Manifest-Sign-Key: 0xB658FA13
-rw-r--r-- | dev-db/mongodb/ChangeLog | 7 | ||||
-rw-r--r-- | dev-db/mongodb/Manifest | 10 | ||||
-rw-r--r-- | dev-db/mongodb/mongodb-3.0.5.ebuild | 154 |
3 files changed, 166 insertions, 5 deletions
diff --git a/dev-db/mongodb/ChangeLog b/dev-db/mongodb/ChangeLog index c5bb419a3aab..2a6985c4ccec 100644 --- a/dev-db/mongodb/ChangeLog +++ b/dev-db/mongodb/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-db/mongodb # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/ChangeLog,v 1.122 2015/08/03 10:30:44 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/ChangeLog,v 1.123 2015/08/04 17:31:47 ultrabug Exp $ + +*mongodb-3.0.5 (04 Aug 2015) + + 04 Aug 2015; Ultrabug <ultrabug@gentoo.org> +mongodb-3.0.5.ebuild: + version bump, 3.x shouldn't use system tcmalloc, fix #556548 03 Aug 2015; Ultrabug <ultrabug@gentoo.org> mongodb-2.6.10.ebuild, +files/mongodb-2.6.10-fix-boost-1.57.patch: diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest index 7ba925c5fc5e..c84d35e46fb7 100644 --- a/dev-db/mongodb/Manifest +++ b/dev-db/mongodb/Manifest @@ -37,18 +37,20 @@ DIST mongodb-src-r2.6.10.tar.gz 16456717 SHA256 74228a22aaf99570e706ecde20658165 DIST mongodb-src-r2.6.8.tar.gz 14545274 SHA256 1997f60d9de17320f22c604d8aa1cbe5f38d877142cd0e9130fe3dae7b311a06 SHA512 6fa69750debb40d0be4d5d057125320d97e882e30c43c664fcb6ec6a9e6a8bff5e63637fc8952a6d898556b2c2ce84254d135387dc0879bf65dbd5e91b8732ef WHIRLPOOL ba87ca07258ad4df90c92bc300da6cc661117a98f254a8ba62ac362a857ecc2462eb9ddf1d929a6e2187853233053e975aa02139f880d736e47e542a9504bd28 DIST mongodb-src-r2.6.9.tar.gz 15491620 SHA256 aa3d92defa6938f115700d7d158f34b979cdb1f5870dcacd4feeb1ee4aefec6a SHA512 e03f58b9b7185dbb82e3c93f724b628050d506e564ba09a76684bd6bf3e7cca876c22b04979d93c4cf592213ad70830ee63e22c60e63f8e62fdb3f77524ea3c3 WHIRLPOOL ce6eabcb24388020506b3e2f31c4cd85039cbb2d5cf3881f0284d3bb93cbcefebae7c8da19b2551daaa6c63f13b392b5043ef47b2af2f64063c7c868e758e8e0 DIST mongodb-src-r3.0.4.tar.gz 26615962 SHA256 6de7aa8b12ad892ee3852ac949069fda8cb87b3ee606a88226817505e2864360 SHA512 bd35a252cd351a2d755edf5e20c69c904de326d7e47aebc055cd0160476ecf966cf53f3263410c32f70e108ff2a019f86a21e1a71917246c2f13db9251082bc3 WHIRLPOOL 224ca39c0411b1608f75191eb14d86256434d3e5ce293a9ac5d1febc3d0285bf79db0875e97fd5559f47734c7f97fedc1bcff3a28aec0a39924da1a4cc24744d +DIST mongodb-src-r3.0.5.tar.gz 26332788 SHA256 05b16a7991aa65b1d396a3dc622107fba3216fffa8b9ed0817e76ae95f5f7fdb SHA512 17c66f9501e6517feba069f85bb468a421c45300306977ebfed71e6ce120e2bed64f14698e470c644360e23f40132171d64ac85f0962aa3ba824a48cf228775a WHIRLPOOL 7ed1f2b0daf7cb9ff081e69823e79504b8c99a221c74c2a541d673febacad9e555ef34eb4f2e97effe7e6fddafb81b903ab5a4ac8c4e8951640a0f2c6828ba14 EBUILD mongodb-2.4.13.ebuild 3918 SHA256 bcb513ea98c5df8a6bead80aec926365b93f200567d147dcb27bbd2062896556 SHA512 22e249560cc03efd9442f9309844f379e6fb64afd6fcae1c00102eb29c3f7379dc10455554d448d8d386a9e4da5b02e3e4e47fa7781fd5d5f2d9a10f8afc5fd7 WHIRLPOOL 61938d4838aac8c8c8a431c5609b6a966b91ea391e65aaea6751f56af6299dfe76bc09fd808737f1830d2371e084a1182c0928d58185022ceb5c729d23007ea2 EBUILD mongodb-2.4.14.ebuild 3925 SHA256 5938aae0ea6b9adcabec51f7a4c24e812978fad374c7c60f35671c0fc62b4d50 SHA512 ea3e1bcaf45ecff0008d480372293102c07fa9f3732f822f1f717c1ebe4de43e0c9065547fc1cbe43a5fb2e1263d5e20e4701cd60757d0f31e4c274f12b94477 WHIRLPOOL 3cc8405936e35c833231a0c5464eb0f51696b19493fdfdb465d1924508c67f097c69f2d413f69343dab9e41322bb078ff0b46b9bddf8f1e6575df364f0b0b85c EBUILD mongodb-2.6.10.ebuild 4719 SHA256 60d10364233860aacfcaa86f5acdbf47e676e230391fed27ddb2a447c310e516 SHA512 1f2811b56210dde2ee5daaa96005cd5b3f3927b3b0d9ef91c2f968b88034ef67da87bed2ae252431f40369be58bb44073c89e3fc7887e53d0d28dd0630ecc180 WHIRLPOOL 9d248d0df87a81e8f0e33a63db6d9826b79fbd7c68439bd27fd1be5123061fc72f23b3389a36c8071eb6561b957c6294484611c800e0acd25631c9ad9c44d1e4 EBUILD mongodb-2.6.8.ebuild 4655 SHA256 947b63f077194215c5bfc8c576d64b6b24a4721aa8e488060006e321063627aa SHA512 5da89a57ea840e8574aa3d9c5ec0c72ff032e191b35af8f1957c41e7f606ad5136b1b43bfe2ed82bdfa7f8fecf95865489abff5a071ef91fe8a09f7e88636dc1 WHIRLPOOL 5dfc561671482d29b106ccd375fa03c8daa22c0deb5a1f16155234ad3c3fbc242be86b99f2c8e531e5494d2944c50ef2bca35b3550ada77a72c476f7d989a943 EBUILD mongodb-2.6.9.ebuild 4662 SHA256 80305ccf9b2839f98d4235db07977e1af532b4138810fbc7e85249a77e44741a SHA512 b58b4bef06c3b90e4dd61a73b3c15d439becddca4086d219665a5dc06e3fc2d20c02ab7e010d723ecd2964695bb3a1702e58e5a54a5b10fbd2e576a089a9c93c WHIRLPOOL f9d5c53209a86555c8123ec02d16f4bd1919b69663c18304ddf19009eae8e9a6b3bcdf3a842b7fd32cd5aa40cd6b490ea34d9380612bb10230a797fb61be03de EBUILD mongodb-3.0.4.ebuild 4161 SHA256 46a367b9c6915fd4666f6ebe6346c5d127b4d2838e3e6fac89f7ca8cbc0a883e SHA512 35175abbb1fb47f6e0da59ead971754465b4b1d2dc0e96e9b2e9580e26214e2790493fe77a27a6205c9f6e2e4ec7ad92a293a1b9c6c8fd3716642f44891bf873 WHIRLPOOL a85278cd086c4fcb6aee58f27d5140bb7fb1edac3dfe76aa1ded50af9cdaca51785881dbe66602c01b1a1ebfd93784247bd4ccb1727a4979ceb83f0a01977bc5 -MISC ChangeLog 24942 SHA256 9e8de78013a14cd019522e485ee13119c5edd540d7f624c38c0a39d45b56f989 SHA512 d9ca1dd5701de1f9fe2677516b4ce63e6704c8a27866183a7561d1804890847594b35394fbf21a0c7309a892634ed635da7e5a33aada3af5a82fa1cf28125fa8 WHIRLPOOL a280e6ded9f3e3a193afebfe8df6452ff47372752614366f74cbd3a5d0c52837a3b477b88b0ec0b9c613dde18845e134f1ba13d836bcf6cdc430274b169e984d +EBUILD mongodb-3.0.5.ebuild 4399 SHA256 9a083a473b4ff01dd62013ff18c9bf504e2389e3a1234520f3d7763342b6ea87 SHA512 0b6915e5c4cb4bcba6e66f2cca2d46dce4ea3a830822bac3613f761333732062678c5ec8b3220ab098fad17d728033529962677352eadf2cd001666cd9f18692 WHIRLPOOL a83ea2fd39097434cb87d9ece8a2bf4dd980315cadf38335ea140f4e4a8ef27c0ea02e97f4a7f44e29de2828e93e519a535a90bf8ad6950ca2edddfc7eef68ec +MISC ChangeLog 25105 SHA256 6d140ced121b3d7adaf6b03ac35864adc7163cc6479cb3402cb45377eed85f0a SHA512 51b8cd19c23b8fcda0f41e2ed7016da8dfdc5923ca42647d5be61502bcef988e77de2caec26acb1b490a72f0063c9ec5d0c86c2d0b89856b2b41c3d8df255e65 WHIRLPOOL 4b617865b1bb10ffe5551cc5a1941671e6768baf4a4f701dd1c13c757c5998981191007a940c5a4214e4511dfff943871ccc5572f6bf36c5b0cf7fdd63863769 MISC metadata.xml 1213 SHA256 e075011c04c3f1e03af1cf4c671cb77b8133cfbdb611e69a00535c81b97009cd SHA512 3b73629af9bacdc1164530b7fb6f2df09b22d3f653cbfbc1bcc2c10affb24128ca972619fa2164e3c3af728c4aac1ae2b150e7e2918f264aaa0cdbe1c60f44ca WHIRLPOOL 35c5870bc4cc70e7103cbaf0a358f25ef307bc52284d51d31436bb6c7ebd0fbdac62f7963f9d38b8065fea18b8c6c46dafa067726166cea14641449da16b3923 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iF4EAREIAAYFAlW/QtUACgkQKiQSS7ZY+hN6dwEA2kADZxiisvyvyEeSca9HaQXZ -KatCq8mL0uMQ7e5NkF4A/i+USjbVloDLjF5aZzH5v4WMLsb8RlTVZzrIVTKxhQNg -=aCn6 +iF4EAREIAAYFAlXA9wQACgkQKiQSS7ZY+hM1bAEAjrHX+gRJRlCFqCQhecvw93t/ +UbioTbD45kzYro05t14BALr7+r2xhDQJKJXXBSUlOMhwa/fHZOJOlbzBQ/as9wWd +=e36m -----END PGP SIGNATURE----- diff --git a/dev-db/mongodb/mongodb-3.0.5.ebuild b/dev-db/mongodb/mongodb-3.0.5.ebuild new file mode 100644 index 000000000000..763cc9ff2a43 --- /dev/null +++ b/dev-db/mongodb/mongodb-3.0.5.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-3.0.5.ebuild,v 1.1 2015/08/04 17:31:47 ultrabug Exp $ + +EAPI=5 +SCONS_MIN_VERSION="2.3.0" +CHECKREQS_DISK_BUILD="2400M" +CHECKREQS_DISK_USR="512M" +CHECKREQS_MEMORY="1024M" + +inherit eutils flag-o-matic multilib pax-utils scons-utils systemd user versionator check-reqs + +MY_P=${PN}-src-r${PV/_rc/-rc} + +DESCRIPTION="A high-performance, open source, schema-free document-oriented database" +HOMEPAGE="http://www.mongodb.org" +SRC_URI="http://downloads.mongodb.org/src/${MY_P}.tar.gz" + +LICENSE="AGPL-3 Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug kerberos mms-agent ssl +tools" + +RDEPEND="app-arch/snappy + >=dev-cpp/yaml-cpp-0.5.1 + >=dev-libs/boost-1.50[threads(+)] + >=dev-libs/libpcre-8.30[cxx] + dev-libs/snowball-stemmer + net-libs/libpcap + sys-libs/zlib + mms-agent? ( app-admin/mms-agent ) + ssl? ( >=dev-libs/openssl-1.0.1g:= )" +DEPEND="${RDEPEND} + >=sys-devel/gcc-4.8.2:* + sys-libs/ncurses + sys-libs/readline + kerberos? ( dev-libs/cyrus-sasl[kerberos] )" +PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + enewgroup mongodb + enewuser mongodb -1 -1 /var/lib/${PN} mongodb + + # Maintainer notes + # + # --use-system-tcmalloc is strongly NOT recommended: + # https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/ + # + # --c++11 is required by scons instead of auto detection: + # https://jira.mongodb.org/browse/SERVER-19661 + + scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX) --c++11" + scons_opts+=" --disable-warnings-as-errors" + scons_opts+=" --use-system-boost" + scons_opts+=" --use-system-pcre" + scons_opts+=" --use-system-boost" + scons_opts+=" --use-system-snappy" + scons_opts+=" --use-system-stemmer" + scons_opts+=" --use-system-yaml" + + if use debug; then + scons_opts+=" --dbg=on" + fi + + if use prefix; then + scons_opts+=" --cpppath=${EPREFIX}/usr/include" + scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)" + fi + + if use kerberos; then + scons_opts+=" --use-sasl-client" + fi + + if use ssl; then + scons_opts+=" --ssl" + fi +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-3.0.0-fix-scons.patch" +} + +src_compile() { + # respect mongoDB upstream's basic recommendations + # see bug #536688 and #526114 + if ! use debug; then + filter-flags '-m*' + filter-flags '-O?' + fi + escons ${scons_opts} core tools +} + +src_install() { + escons ${scons_opts} --nostrip install --prefix="${ED}"/usr + + for x in /var/{lib,log}/${PN}; do + keepdir "${x}" + fowners mongodb:mongodb "${x}" + done + + doman debian/mongo*.1 + dodoc README docs/building.md + + newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} + newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} + newinitd "${FILESDIR}/${PN/db/s}.initd-r2" ${PN/db/s} + newconfd "${FILESDIR}/${PN/db/s}.confd-r2" ${PN/db/s} + + insinto /etc + newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf + newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf + + systemd_dounit "${FILESDIR}/${PN}.service" + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + # see bug #526114 + pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos} +} + +pkg_preinst() { + # wrt bug #461466 + if [[ "$(get_libdir)" == "lib64" ]]; then + rmdir "${ED}"/usr/lib/ &>/dev/null + fi +} + +src_test() { + escons ${scons_opts} dbtest + "${S}"/dbtest --dbpath=unittest || die "dbtest failed" + escons ${scons_opts} smokeCppUnittests --smokedbprefix="smokecpptest" || die "smokeCppUnittests tests failed" +} + +pkg_postinst() { + if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then + ewarn "!! IMPORTANT !!" + ewarn " " + ewarn "${PN} configuration files have changed !" + ewarn " " + ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/manual/reference/configuration-options/" + ewarn " " + ewarn "Make sure you also follow the upgrading process :" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/" + ewarn " " + ewarn "MongoDB 3.0 introduces the WiredTiger storage engine." + ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it." + ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf" + ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger" + fi +} |