summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2015-03-29 12:19:36 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2015-03-29 12:19:36 +0000
commitdf80b15bc313ecb1542235ed2edb4b8e42b9dafa (patch)
treef57ab772ac68c9db9b76c72e60e7d8c2f183d773 /dev-db
parentStable for x86, wrt bug #539532 (diff)
downloadhistorical-df80b15bc313ecb1542235ed2edb4b8e42b9dafa.tar.gz
historical-df80b15bc313ecb1542235ed2edb4b8e42b9dafa.tar.bz2
historical-df80b15bc313ecb1542235ed2edb4b8e42b9dafa.zip
drop vulnerable
Package-Manager: portage-2.2.17/cvs/Linux x86_64 Manifest-Sign-Key: 0xB658FA13
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mongodb/ChangeLog6
-rw-r--r--dev-db/mongodb/Manifest23
-rw-r--r--dev-db/mongodb/mongodb-2.4.6-r2.ebuild146
-rw-r--r--dev-db/mongodb/mongodb-2.6.7.ebuild173
4 files changed, 9 insertions, 339 deletions
diff --git a/dev-db/mongodb/ChangeLog b/dev-db/mongodb/ChangeLog
index 743cea8f9dc3..1fbfa57dcacf 100644
--- a/dev-db/mongodb/ChangeLog
+++ b/dev-db/mongodb/ChangeLog
@@ -1,6 +1,10 @@
# 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.114 2015/03/29 12:07:55 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/ChangeLog,v 1.115 2015/03/29 12:19:26 ultrabug Exp $
+
+ 29 Mar 2015; Ultrabug <ultrabug@gentoo.org> -mongodb-2.4.6-r2.ebuild,
+ -mongodb-2.6.7.ebuild:
+ drop vulnerable wrt #542880
29 Mar 2015; Agostino Sarubbo <ago@gentoo.org> mongodb-2.4.13.ebuild,
mongodb-2.6.8.ebuild:
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
index 3a0e508c6197..8ab7f42b3909 100644
--- a/dev-db/mongodb/Manifest
+++ b/dev-db/mongodb/Manifest
@@ -29,36 +29,21 @@ AUX mongos.confd 345 SHA256 2afd582564623da0e928ca667d37bef467334c82d08b49301f1f
AUX mongos.confd-r2 546 SHA256 1378a880ffde0efae213ac6d6d4bbe2181c92fbb06535a58c2dab06ef88ee8e3 SHA512 30e208690b5f28bd0442b7ed302d9be991aedd27203f24e5849201d33291ad7f0f9153ae3a00b55697d79a45c40d7b3792ff45f0c24ef2cf4e88222f88ea1400 WHIRLPOOL 68b8eed779e19261c4d13ebd6be8c11b6df94e748bb8f03d632ecbfc5fcd151a693e51c5a4ad4f0af9439d07dedafc29bd9b86b5a532bad48d570fca73002987
AUX mongos.initd-r1 1370 SHA256 d4c9f32f0f001ae7cfe2b35034fd8e5a24a83fd1bc89941550c68fd98a3c9454 SHA512 28aea696b53bb557d41c5cb501ae30a72470750eb49e59442df67e98b087008fdc75e41d516443b7cc5cb5eb9aa710b98455d7955a4c1b76869ef841e67417b4 WHIRLPOOL db36b6250ef6fdbd4aec5bd249593ba81a2af44aefc26ad3ab2b04af5a4b6e84e416e0b90c4f3bb98dcaf182aeb1eab93bb8bebcdbe539881ca2c595e3e5d137
AUX mongos.initd-r2 766 SHA256 673c0662c0638a77cb5f630605a828a6191abd0c4e9bd295b43d7b4aefeb2e1a SHA512 620062890f13bee96a1ff3b1c6900b8e08358481aae7476187eddee8f56f89e4a3d4351df88c9264fdf5e773f57e1c28337b6086a33fa97246005bfd027e0b6d WHIRLPOOL 74094c383596a1c24ced57aea1943ec86e6c98dad3a615fbf9bfc59969aaee2571c7f99a44de879864466fba9efd780f7187a5a95da04faf094f0ce3cd8031f7
-DIST 20130821-10gen-mms-agent.zip 31918 SHA256 b48f35fe2ad058dc4ebcab01dad1229c0597e78a9011b57cd1030a05cdd16e7c SHA512 9467d229829076733a023d81e377479e1e4c71c4d2c1d163928abf7215bc87809a304768f83b531b6f585d19b18585f9d0d35fd74762cf180586be11536eb1a8 WHIRLPOOL d632c1761d1f47f2139a046d58af09641a0c8d9f3168d7ebc99dac5c6a3b5b0846cba8eac581b67d35c5e7580c6910759503b85e7ca74e5930c0e0dac3d77c97
DIST 20140409-mms-monitoring-agent.zip 40122 SHA256 9c4f89cfba10b4604512ab21eb082248104aeabe7e813b852db2b86f47d7ecb2 SHA512 5290a813c407251b5e4def813ce6fe7e09d6c3a1907fd409e326b15b07aed39f7db3a28710ecdaffe2771136c9433253c5d1857c823844a4b75dd38f1d15eefd WHIRLPOOL ce80870e2618f3d9ed80af41b1069ed5bd97af475089564eed1bc111e820c048bc5cbaa03f859349e772fe232f876127e0627c75c135a9b2e196ab13258ed9f1
DIST mongodb-src-r2.4.13.tar.gz 14183056 SHA256 9ad8a3b58457c35b6dd020ca2364ee605e30b839f5475449a229fdcd4115866c SHA512 26256410593f2072e8a8728fbb2665bb98d4c73f3601136e8306d1d6b421421827f66e4073515fea7dfbc0a27f5615cd30f8a85e5980ea3dd46f2f06366946cb WHIRLPOOL 6e64a8ba466da74342f7eabd41b8eb86a3d1cd99c5665e54872642230ec0ed86216c0e533b08d21e0c6b6c20b7d7887a34aad0679ba32523dd3ca0e464190348
-DIST mongodb-src-r2.4.6.tar.gz 14141660 SHA256 b5f397abc92d36d84a85753d15fb5d7dab6545ce9dfd9fb7685c630e6b050acb SHA512 73921d439f1bc2b6c1f358ab96f05f5f082db7b2c09f8964f2e3cc2d3cfd059e0c923d228a77fbfb8c8613eee1fbf16a35d5347b6316219aed3b0357dec97eae WHIRLPOOL 4c5c9b8b7530a58f5fab62c414054939014a38cb49429ff619059b7305b29eb41c8ec3977a3b4490391afe963384d4560097a7ef536679c42c9d0ecc1677c958
-DIST mongodb-src-r2.6.7.tar.gz 14540119 SHA256 512254d1adeaf19cc8188032ac75ce01ac114811b5a27ef3a95dc79eeedd6bc9 SHA512 c74b87d85339e27742054d4ce190e290a5116d48a39b334b6e7be62b2e35f75af99da6b8a899d8c4794b0d953f2c46bcbe5b77ce28e5194c3a0429dc813df04e WHIRLPOOL 964b4249c46199a02972c7860063dfb4a3e3db357f0694504efc1f9e9e5e4d9336430116feb2fb490a6ab5ac398bece7a8ac91ab429e0a6250bdcbe4110855ed
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.1.tar.gz 26574442 SHA256 68980641996a3a4b5440e12d343c2de98bb7f350fbc0c8327a674094d6e11213 SHA512 90a32181b472c5852b3839d2b22fe88dbaeb2f7621142ee05a0b35834b7f231b6099d8e0f077c0622fb65604e0140e154a5ff9b9c6f281e189cb251e18497025 WHIRLPOOL 98518a2a91ddc6dd8edf784226fa72c1ff2ae7dc3c2857c505de8d33d902805f1f35d4b94513651adf784ad2f4a0983cb42013ccbfea942fdef804b3fbcb94b2
EBUILD mongodb-2.4.13.ebuild 3918 SHA256 bcb513ea98c5df8a6bead80aec926365b93f200567d147dcb27bbd2062896556 SHA512 22e249560cc03efd9442f9309844f379e6fb64afd6fcae1c00102eb29c3f7379dc10455554d448d8d386a9e4da5b02e3e4e47fa7781fd5d5f2d9a10f8afc5fd7 WHIRLPOOL 61938d4838aac8c8c8a431c5609b6a966b91ea391e65aaea6751f56af6299dfe76bc09fd808737f1830d2371e084a1182c0928d58185022ceb5c729d23007ea2
-EBUILD mongodb-2.4.6-r2.ebuild 3733 SHA256 b7cdc682f6ae451dc252827a05a8b0a69ae1c78b48520512d698a61faf034c59 SHA512 07c32f6dfef084956ba6592555b13e53188718eecf55ba929e0ec5d4fd36e5d844e6cea30e1467b58d5318f668d86128a2e06019032e4f767b4cab7d535fe98c WHIRLPOOL 1a15f756fbb9a4d76e3d88e5f3a54876f93d8a963fcea4413adc25f1ff795e8c27892ee68865bdb9b747f91354a926cc609088630ab0a71c6ef67b600f0b4f14
-EBUILD mongodb-2.6.7.ebuild 4560 SHA256 34bc349ceb2f73a2d4a29eb7d5c062bc0a4498c03362d51d0ab6336b789dea98 SHA512 4048fdd1e720dbc7369a7ae0ccc471410bc7bd157fcf584f145c546d289ed78bfdc0522afbaf52567746d9cee15eac1a00c81a35c5551f415a6e9f3918e07f04 WHIRLPOOL ff1b654ff4ba4d9040dac0e2fd89bc57fc2f0c3b3da995b15cffa067b0bccca4d874ab9c3ddcb0648c2343e44abd8bcee84a91e49c5e00313b6855a9627b9aab
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.1.ebuild 4146 SHA256 2f091771fd242c2ab17b104dacbbd2fbd3d88c747f54ef58e12486b99a487d0a SHA512 3c617971f11929017f2ae90cc5daa5c6c5526777edf62ba145a41bbf6084673b4f58db7063fd184912f6f384893eb64b016c351f5aa821edf87903af063708b3 WHIRLPOOL 5932c0824f029423fa45c02577ae5859697351744f3c515f803c1a132215411252698c13a7468039bde317433664a740b0aceb9dc07a1f3d05af0b7273788d0d
-MISC ChangeLog 23781 SHA256 b775210300ff57fd1f84298e1f239b0cf3126ce1b6de8e4aeb064a1c43915377 SHA512 37f86a6622c91cd87849af92ee87b6db47b4ee561e736adc12f0878cb922168a0c83d6e8a926f6c03a258b44d9899106f838a918fce0fc99f4ed13040ff35287 WHIRLPOOL 3eee11998ac1d66b6774432522915e88995c005452fd4458eb84977cbcca4da170f453c01579dcc48e2cadee10b1cf4704611b6a4c2a16b4924019ec3ad66044
+MISC ChangeLog 23914 SHA256 339ead03e2bb2573abe78363191583795e8b23162d525e800d85babccdbb93cb SHA512 bd3520076e145751afb980af2656fd17cdabdefdc0ab0bb51251d61e9efb248322f14d1b7782b048085d8d0a4f658fcfaf0a6f644df0e04340008ee322c1f81a WHIRLPOOL 0c1cce9731e5d66e30423e94f2d1e324d2459463f3129854127da93f9a218b5ebf4f707b5fee87d34915e622bb0537e0899de5d46cd47fcd4c8b12f7203a0ef3
MISC metadata.xml 1213 SHA256 e075011c04c3f1e03af1cf4c671cb77b8133cfbdb611e69a00535c81b97009cd SHA512 3b73629af9bacdc1164530b7fb6f2df09b22d3f653cbfbc1bcc2c10affb24128ca972619fa2164e3c3af728c4aac1ae2b150e7e2918f264aaa0cdbe1c60f44ca WHIRLPOOL 35c5870bc4cc70e7103cbaf0a358f25ef307bc52284d51d31436bb6c7ebd0fbdac62f7963f9d38b8065fea18b8c6c46dafa067726166cea14641449da16b3923
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJVF+scAAoJELp701BxlEWfu28P/0K4ZM/R1ySLWqQfqvXOTtes
-iU8zLiNX91yUwIGLbFtciKD4E3XEMoHZOLtZWQSJnd0P0Ri8gMmGO1kjG3FUw6fi
-gPa915yqUKrgUbjo3v19zFMSAolz7TiMeyv6wUBR947EE6jHY2SHVxqlYDKJ4gV3
-bZ3djZW30J7UX7UwU1Erikiz+LlydCzLt6bVZYvCX7NutvgB6K+JYILoas+eg/to
-aiL3VlamFqll1Vyh1lKg2N7kRr0ayjmqbOxV4lleAK3LSETtKv4gpVErpocTQVke
-Zf7qFd7BOpddk+M1oyLsBrD4RGPhREC7g+FdfA6Hitrn/abjBNkNT/O9z4jEg0MD
-IcbyqjlFt61/2ZyZfHV4Y9l3Hra4ZHGRyc/7v/MNbDFN+w8dI2KNDymUfrJPH+oP
-hIHhcjYcSacVfZyp+tCH4P8/+5NL1oX2ToHw4493XfZsTw3esTLZzQ36W/jmEG31
-UqjsiZXJtMaIdyfWHGWYqMIRia0obnYoX4WFUs5b9JfrcBrdCElGIK296hNkhWfb
-4OfmjVVGLBb/193cORnqjYuMj3zsDzm0kjbzlSXOtUfYADKsEsXpl7u9F9pWftL5
-dXnQhsn1o7xHbuwIifUucktBZ8x2hAzaSx+ob1rDjsY2z6JAz8PcGh2lmdE6Hbz/
-7xXnDDhfH82hy9BWnmZD
-=ooE4
+iF4EAREIAAYFAlUX7dMACgkQKiQSS7ZY+hPJNAD+PPRmNT/x18o4+IWDxDg4c+Ii
+vgWeqCrH7D6cmVZ09j4BAIDIckRNBDGPaCaNSTnVZ/PNRGMzPHhphKGTPP9x05+Z
+=5rI+
-----END PGP SIGNATURE-----
diff --git a/dev-db/mongodb/mongodb-2.4.6-r2.ebuild b/dev-db/mongodb/mongodb-2.4.6-r2.ebuild
deleted file mode 100644
index 8e0f7813c6d5..000000000000
--- a/dev-db/mongodb/mongodb-2.4.6-r2.ebuild
+++ /dev/null
@@ -1,146 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.4.6-r2.ebuild,v 1.8 2014/05/26 11:08:23 ultrabug Exp $
-
-EAPI=4
-SCONS_MIN_VERSION="1.2.0"
-CHECKREQS_DISK_BUILD="2400M"
-CHECKREQS_DISK_USR="512M"
-
-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
- mms-agent? ( http://dev.gentoo.org/~ultrabug/20130821-10gen-mms-agent.zip )"
-
-LICENSE="AGPL-3 Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="kerberos mms-agent sharedclient spidermonkey ssl static-libs"
-
-PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
-RDEPEND="
- >=dev-libs/boost-1.50[threads(+)]
- dev-libs/libpcre[cxx]
- dev-util/google-perftools
- net-libs/libpcap
- app-arch/snappy
- ssl? ( >=dev-libs/openssl-1.0.1c )"
-DEPEND="${RDEPEND}
- sys-libs/readline
- sys-libs/ncurses
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- enewgroup mongodb
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb
-
- scons_opts=" --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
- scons_opts+=" --use-system-tcmalloc"
- scons_opts+=" --use-system-pcre"
- scons_opts+=" --use-system-snappy"
- scons_opts+=" --use-system-boost"
-
- 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 sharedclient; then
- scons_opts+=" --sharedclient"
- fi
-
- if use spidermonkey; then
- scons_opts+=" --usesm"
- else
- scons_opts+=" --usev8"
- fi
-
- if use ssl; then
- scons_opts+=" --ssl"
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${PN}-2.4.5-fix-scons.patch"
- epatch "${FILESDIR}/${PN}-2.2-r1-fix-boost.patch"
- epatch "${FILESDIR}/${PN}-2.4-fix-v8-pythonpath.patch"
-
- # bug #462606
- sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
-
- # bug #482576
- sed -i -e "/-Werror/d" src/third_party/v8/SConscript || die
-}
-
-src_compile() {
- escons ${scons_opts} all
-}
-
-src_install() {
- escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
-
- use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
-
- if ! use spidermonkey; then
- pax-mark m "${ED}"/usr/bin/{mongo,mongod}
- fi
-
- 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-r1" ${PN}
- newconfd "${FILESDIR}/${PN}.confd" ${PN}
- newinitd "${FILESDIR}/${PN/db/s}.initd-r1" ${PN/db/s}
- newconfd "${FILESDIR}/${PN/db/s}.confd" ${PN/db/s}
- systemd_dounit "${FILESDIR}"/${PN}.service
- insinto /etc
- doins "${FILESDIR}"/${PN}.conf
-
- insinto /etc/logrotate.d/
- newins "${FILESDIR}/${PN}.logrotate" ${PN}
-
- if use mms-agent; then
- local MY_PN="mms-agent"
- local MY_D="/opt/${MY_PN}"
- insinto ${MY_D}
- doins "${WORKDIR}/${MY_PN}/"*
- fowners -R mongodb:mongodb ${MY_D}
- newinitd "${FILESDIR}/${MY_PN}.initd" ${MY_PN}
- newconfd "${FILESDIR}/${MY_PN}.confd" ${MY_PN}
- fi
-}
-
-pkg_preinst() {
- # wrt bug #461466
- if [[ "$(get_libdir)" == "lib64" ]]; then
- rmdir "${ED}"/usr/lib/ &>/dev/null
- fi
-}
-
-src_test() {
- escons ${scons_opts} test
- "${S}"/test --dbpath=unittest || die
-}
-
-pkg_postinst() {
- if [[ ${REPLACING_VERSIONS} < 2.4 ]]; then
- ewarn "You just upgraded from a previous version of mongodb !"
- ewarn "Make sure you run 'mongod --upgrade' before using this version."
- fi
- elog "Journaling is now enabled by default, see /etc/conf.d/${PN}"
-}
diff --git a/dev-db/mongodb/mongodb-2.6.7.ebuild b/dev-db/mongodb/mongodb-2.6.7.ebuild
deleted file mode 100644
index 2865ced89599..000000000000
--- a/dev-db/mongodb/mongodb-2.6.7.ebuild
+++ /dev/null
@@ -1,173 +0,0 @@
-# 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-2.6.7.ebuild,v 1.3 2015/02/15 14:24:38 pacho Exp $
-
-EAPI=5
-SCONS_MIN_VERSION="1.2.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
- mms-agent? ( http://dev.gentoo.org/~ultrabug/20140409-mms-monitoring-agent.zip )"
-
-LICENSE="AGPL-3 Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="debug kerberos mms-agent ssl static-libs"
-
-PDEPEND="mms-agent? ( dev-python/pymongo app-arch/unzip )"
-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
- dev-util/google-perftools[-minimal]
- net-libs/libpcap
- ssl? ( >=dev-libs/openssl-1.0.1g )"
-DEPEND="${RDEPEND}
- sys-libs/ncurses
- sys-libs/readline
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )"
-
-S=${WORKDIR}/${MY_P}
-
-pkg_setup() {
- enewgroup mongodb
- enewuser mongodb -1 -1 /var/lib/${PN} mongodb
-
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
- scons_opts+=" --disable-warnings-as-errors"
- scons_opts+=" --use-system-boost"
- scons_opts+=" --use-system-pcre"
- scons_opts+=" --use-system-snappy"
- scons_opts+=" --use-system-stemmer"
- scons_opts+=" --use-system-tcmalloc"
- scons_opts+=" --use-system-yaml"
- scons_opts+=" --usev8"
-
- 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}-2.6.2-fix-scons.patch"
- epatch "${FILESDIR}/${PN}-2.4-fix-v8-pythonpath.patch"
-
- # fix yaml-cpp detection
- sed -i -e "s/\[\"yaml\"\]/\[\"yaml-cpp\"\]/" SConstruct || die
-
- # bug #462606
- sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
-
- # bug #482576
- sed -i -e "/-Werror/d" src/third_party/v8/SConscript || die
-}
-
-src_compile() {
- escons ${scons_opts} all
-}
-
-src_install() {
- escons ${scons_opts} --full --nostrip install --prefix="${ED}"/usr
-
- use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
-
- 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-r2" ${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}
-
- if use mms-agent; then
- local MY_PN="mms-agent"
- local MY_D="/opt/${MY_PN}"
-
- insinto /etc
- newins "${WORKDIR}/${MY_PN}/settings.py" mms-agent.conf
- rm "${WORKDIR}/${MY_PN}/settings.py"
-
- insinto ${MY_D}
- doins "${WORKDIR}/${MY_PN}/"*
- dosym /etc/mms-agent.conf ${MY_D}/settings.py
-
- fowners -R mongodb:mongodb ${MY_D}
- newinitd "${FILESDIR}/${MY_PN}.initd-r2" ${MY_PN}
- fi
-}
-
-pkg_preinst() {
- # wrt bug #461466
- if [[ "$(get_libdir)" == "lib64" ]]; then
- rmdir "${ED}"/usr/lib/ &>/dev/null
- fi
-}
-
-src_test() {
- escons ${scons_opts} test
- "${S}"/test --dbpath=unittest || die
-}
-
-pkg_postinst() {
- if [[ ${REPLACING_VERSIONS} < 2.6 ]]; 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/2.6-upgrade/"
- ewarn " "
- if use mms-agent; then
- ewarn "MMS Agent configuration file has been moved to :"
- ewarn " /etc/mms-agent.conf"
- fi
- else
- if use mms-agent; then
- elog "Edit your MMS Agent configuration file :"
- elog " /etc/mms-agent.conf"
- fi
- fi
-}