summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2015-03-17 14:55:25 +0100
committerUltrabug <ultrabug@gentoo.org>2015-03-17 14:55:25 +0100
commit908b66316d6be35f636fe335590e503b8915d1f5 (patch)
tree2e587cf4f85ccf8f4d22523b1411c9367bada0a9 /dev-db
parentversion bump, release soon (diff)
downloadultrabug-908b66316d6be35f636fe335590e503b8915d1f5.tar.gz
ultrabug-908b66316d6be35f636fe335590e503b8915d1f5.tar.bz2
ultrabug-908b66316d6be35f636fe335590e503b8915d1f5.zip
moved to portage tree
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mongodb/Manifest12
-rw-r--r--dev-db/mongodb/files/mongodb-3.0.0-fix-scons.patch35
-rw-r--r--dev-db/mongodb/files/mongodb.conf-r334
-rw-r--r--dev-db/mongodb/files/mongodb.confd-r212
-rw-r--r--dev-db/mongodb/files/mongodb.initd-r227
-rw-r--r--dev-db/mongodb/files/mongodb.logrotate13
-rw-r--r--dev-db/mongodb/files/mongodb.service10
-rw-r--r--dev-db/mongodb/files/mongos.conf-r230
-rw-r--r--dev-db/mongodb/files/mongos.confd-r212
-rw-r--r--dev-db/mongodb/files/mongos.initd-r227
-rw-r--r--dev-db/mongodb/metadata.xml30
-rw-r--r--dev-db/mongodb/mongodb-3.0.1.ebuild145
12 files changed, 0 insertions, 387 deletions
diff --git a/dev-db/mongodb/Manifest b/dev-db/mongodb/Manifest
deleted file mode 100644
index 21bddd6..0000000
--- a/dev-db/mongodb/Manifest
+++ /dev/null
@@ -1,12 +0,0 @@
-AUX mongodb-3.0.0-fix-scons.patch 1455 SHA256 195fdc32d431d23420c33d25b6ebbaedba4a37bd21b6f5698fa3421db70b0a4d SHA512 2dcf2679a520028babda9dd05a593dcb8c935b7232477cb31bb6f3c4240de333f8b463134a27776bd1fe1ac346fe7a44a559d65c47885712b20620ef70654a92 WHIRLPOOL 736b26c4724440729c5f748493655ffff5e9153ee10e2982ab054799a33fe0d4389a0efa922a891816168eaec7c237a3836efe682ee9f13efde22150cb29a4d9
-AUX mongodb.conf-r3 722 SHA256 b4009296b3e794fa1686aec0502b01431e94fc4754cb66d1f00bad64dcb24e72 SHA512 ef193bfed673477aa0e868114bd52be6675492c164f218c71ccd02c4a620b5c4799ea1d18df0c3f2b364027b9f25e60ac4475bb216b25e1dc10bfd00a9f5d45d WHIRLPOOL f536abc8102f20c94bf19c9691345a31eaed84768a413d508437b0aab5100e36cb29f193e0d90e1b76d13892789bd9a9bd815d0f76491df0db375315df7a135e
-AUX mongodb.confd-r2 549 SHA256 6275df7b1bbee218545331d68da3814d0e0fa89d3b30e21370bbeb776dd19e0a SHA512 75f11e8350e98b90eccafd577d794e4b05f36ede8d95e7839e9fa1eb77ea7bd9cdd2fdd07719abb78a714cd7d72109c177d265d6417ef198a4217453c0a4db68 WHIRLPOOL 974eeb5dd58d52670121b2e8e687250cae4d5c49ec020dc30746bf39356762d63f41371526744f2b9fdd657134e7570d7501a3ce5995e830e039cc9eeb8a427e
-AUX mongodb.initd-r2 767 SHA256 0b626b9961dbf4b30e41831305718db4091d781cc773df7abba852a3ed1307fc SHA512 f3e6c247e7d368d1ffba04aab4a555235dcac8c0982c256448f37368f87acea467eee8e63cdb92884de8db560e1a7ccd25abe9c747c2d467bdf43836aa8ea9ca WHIRLPOOL a7909eb3bcaff5ac74e0fb46589e88b0e7b7f197106546b77f5840865914fbc6855ab3a995d3e32ecb59ebaa55d75303042c43ad477afdb445a28811d98a254a
-AUX mongodb.logrotate 205 SHA256 76994c32d999def5c925bd7be3f96687b3406f1d67b89aa6a4df8053025b1e01 SHA512 8c089b1a11f494e4148fb4646265964c925bf937633a65e395ee1361d42facf837871dd493a9a2e0f480ae0e0829dbd3ed60794c5334e2716332e131fc5c2c51 WHIRLPOOL c1d94339a6e58363ba37bfd0f878ea6db403eaee02aa030891bfd54af1a61e34622286e560ba5217201435a745217b2da55d857fece83d5a94b12d915ad2940c
-AUX mongodb.service 220 SHA256 19f55ab28652b3817e98fc3f15cc2f6f3255a5e1dfd7b0d5a27c9ba22fd2703e SHA512 177251404b2e818ae2b546fe8b13cb76e348c99e85c7bef22a04b0f07b600fd515a309ede50214f4198594388a6d2b31f46e945b9dae84aabb4dfa13b1123bb9 WHIRLPOOL 0f6e032acbc7f625b03dcec990126cef064925a341e38c27cddbed5a951c8cfeded00ee3b8b0d9044245c833e86748262434665342e6baa98500fb02c07f4281
-AUX mongos.conf-r2 648 SHA256 d1bf479cee999b4e59e5100c134cd3e7af4bb126342418100cf8f9a08a26f6a7 SHA512 5aa8ced8d83572358e008c0df45dbe72a2e9c0003c9f49514d6b91bf9b75d4fb48b189ffe00d14e5675679943a05215a9873c5c9bde9ab1be4ed4813e75714e3 WHIRLPOOL f1036ea1bd7efa54d28d131dd1bfd1e06c1c3ffbf247ee68a33eee0383d87bf3bfa6639040e6b68a0a14cce0bd77bd5b91a8e245f615007fccccb0cbe2becd84
-AUX mongos.confd-r2 546 SHA256 1378a880ffde0efae213ac6d6d4bbe2181c92fbb06535a58c2dab06ef88ee8e3 SHA512 30e208690b5f28bd0442b7ed302d9be991aedd27203f24e5849201d33291ad7f0f9153ae3a00b55697d79a45c40d7b3792ff45f0c24ef2cf4e88222f88ea1400 WHIRLPOOL 68b8eed779e19261c4d13ebd6be8c11b6df94e748bb8f03d632ecbfc5fcd151a693e51c5a4ad4f0af9439d07dedafc29bd9b86b5a532bad48d570fca73002987
-AUX mongos.initd-r2 766 SHA256 673c0662c0638a77cb5f630605a828a6191abd0c4e9bd295b43d7b4aefeb2e1a SHA512 620062890f13bee96a1ff3b1c6900b8e08358481aae7476187eddee8f56f89e4a3d4351df88c9264fdf5e773f57e1c28337b6086a33fa97246005bfd027e0b6d WHIRLPOOL 74094c383596a1c24ced57aea1943ec86e6c98dad3a615fbf9bfc59969aaee2571c7f99a44de879864466fba9efd780f7187a5a95da04faf094f0ce3cd8031f7
-DIST mongodb-src-r3.0.1.tar.gz 26574442 SHA256 68980641996a3a4b5440e12d343c2de98bb7f350fbc0c8327a674094d6e11213 SHA512 90a32181b472c5852b3839d2b22fe88dbaeb2f7621142ee05a0b35834b7f231b6099d8e0f077c0622fb65604e0140e154a5ff9b9c6f281e189cb251e18497025 WHIRLPOOL 98518a2a91ddc6dd8edf784226fa72c1ff2ae7dc3c2857c505de8d33d902805f1f35d4b94513651adf784ad2f4a0983cb42013ccbfea942fdef804b3fbcb94b2
-EBUILD mongodb-3.0.1.ebuild 4015 SHA256 2e3ba9d40e54b03f0bedf0e3c0c73d9b7dd29acbbd47e7d29f54699ae3b4f70a SHA512 f954384adb013532854429ed7ff376051d06952c58871826951ad9024c91d55c6a0108dd39d96996b2d754d655d4fb07516e46bfe2951d8d51c72a32cee0beb6 WHIRLPOOL 362171dfa6c4ae2eb2380e5d2b79acd6fa62d4a5c7c62f68f246aa80db42dc9d76d2893ca6a08535e84d0909e81cab2944b683f43e939fc5b22308abc6b4098b
-MISC metadata.xml 1213 SHA256 e075011c04c3f1e03af1cf4c671cb77b8133cfbdb611e69a00535c81b97009cd SHA512 3b73629af9bacdc1164530b7fb6f2df09b22d3f653cbfbc1bcc2c10affb24128ca972619fa2164e3c3af728c4aac1ae2b150e7e2918f264aaa0cdbe1c60f44ca WHIRLPOOL 35c5870bc4cc70e7103cbaf0a358f25ef307bc52284d51d31436bb6c7ebd0fbdac62f7963f9d38b8065fea18b8c6c46dafa067726166cea14641449da16b3923
diff --git a/dev-db/mongodb/files/mongodb-3.0.0-fix-scons.patch b/dev-db/mongodb/files/mongodb-3.0.0-fix-scons.patch
deleted file mode 100644
index b7378d8..0000000
--- a/dev-db/mongodb/files/mongodb-3.0.0-fix-scons.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- SConstruct.orig 2015-02-05 16:33:41.000000000 +0000
-+++ SConstruct 2015-02-18 08:21:23.120134258 +0000
-@@ -1008,7 +1008,6 @@
- # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
- env.Append( CCFLAGS=["-fPIC",
- "-fno-strict-aliasing",
-- "-ggdb",
- "-pthread",
- "-Wall",
- "-Wsign-compare",
-@@ -1016,13 +1015,13 @@
- "-Winvalid-pch"] )
- # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
- if linux or darwin:
-- env.Append( CCFLAGS=["-pipe"] )
- if not has_option("disable-warnings-as-errors"):
- env.Append( CCFLAGS=["-Werror"] )
-
- env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
-- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
- env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
-+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
-+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
-
- # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
- # startup.
-@@ -1039,7 +1038,7 @@
- if not darwin:
- env.Append( LINKFLAGS=["-rdynamic"] )
-
-- env.Append( LIBS=[] )
-+ env.Append( LIBS=['pcre', 'pcrecpp', 'snappy', 'yaml-cpp'] )
-
- #make scons colorgcc friendly
- for key in ('HOME', 'TERM'):
diff --git a/dev-db/mongodb/files/mongodb.conf-r3 b/dev-db/mongodb/files/mongodb.conf-r3
deleted file mode 100644
index 83b4cc0..0000000
--- a/dev-db/mongodb/files/mongodb.conf-r3
+++ /dev/null
@@ -1,34 +0,0 @@
-# !! IMPORTANT !!
-#
-# This file uses the YAML format as described in the documentation:
-# http://docs.mongodb.org/manual/reference/configuration-options/
-
-storage:
- dbPath: "/var/lib/mongodb"
- #engine: wiredTiger
-
-systemLog:
- destination: file
- path: "/var/log/mongodb/mongodb.log"
- quiet: true
- logAppend: true
-
-net:
- port: 27017
- bindIp: 127.0.0.1
- #ssl:
- # mode: disabled
-
-#security:
- #keyFile:
- #clusterAuthMode:
-
-#replication:
- #replSetName:
-
-# Specifies one of the MongoDB parameters described here:
-# http://docs.mongodb.org/manual/reference/parameters/
-#
-# You can specify multiple setParameter fields such as:
-# setParameter: {enableTestCommands: 1}
-#setParameter:
diff --git a/dev-db/mongodb/files/mongodb.confd-r2 b/dev-db/mongodb/files/mongodb.confd-r2
deleted file mode 100644
index dddb67e..0000000
--- a/dev-db/mongodb/files/mongodb.confd-r2
+++ /dev/null
@@ -1,12 +0,0 @@
-# !! IMPORTANT !!
-#
-# This file is ONLY used to override some of the init script configuration.
-#
-# You should NOT use this file to configure your mongodb instance,
-# see the /etc/mongodb.conf file instead.
-#
-# Available init script modifiers :
-# - config_file : the configuration file to use (default : /etc/mongodb.conf)
-# - user : the user used to run your mongodb instance (default : mongodb)
-# - group : the group used to run your mongodb instance (default : mongodb)
-# - run_dir : the run directory for your PID files (default : /run/mongodb)
diff --git a/dev-db/mongodb/files/mongodb.initd-r2 b/dev-db/mongodb/files/mongodb.initd-r2
deleted file mode 100644
index 7a9d4f3..0000000
--- a/dev-db/mongodb/files/mongodb.initd-r2
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/files/mongodb.initd-r2,v 1.2 2014/05/26 08:03:45 ultrabug Exp $
-
-config_file=${config_file:-/etc/${SVCNAME}.conf}
-run_dir=${run_dir:-/run/mongodb}
-
-command="/usr/bin/mongod"
-command_args="--config ${config_file}"
-command_background="true"
-pidfile=${run_dir}/${SVCNAME}.pid
-user=${user:-mongodb}
-group=${group:-mongodb}
-start_stop_daemon_args="--user ${user} --group ${group}"
-
-depend() {
- use net
-}
-
-start_pre() {
- checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}"
- if [ ! -f ${config_file} ]; then
- eerror "Missing configuration file ${config_file}"
- return 1
- fi
-}
diff --git a/dev-db/mongodb/files/mongodb.logrotate b/dev-db/mongodb/files/mongodb.logrotate
deleted file mode 100644
index f95a438..0000000
--- a/dev-db/mongodb/files/mongodb.logrotate
+++ /dev/null
@@ -1,13 +0,0 @@
-# Default log rotation / compression keeps 1 year of logs.
-/var/log/mongodb/*.log {
- daily
- rotate 365
- dateext
- copytruncate
- delaycompress
- compress
- notifempty
- extension gz
- sharedscripts
- missingok
-}
diff --git a/dev-db/mongodb/files/mongodb.service b/dev-db/mongodb/files/mongodb.service
deleted file mode 100644
index 78d5511..0000000
--- a/dev-db/mongodb/files/mongodb.service
+++ /dev/null
@@ -1,10 +0,0 @@
-[Unit]
-Description=High-performance, schema-free document-oriented database
-After=network.target
-
-[Service]
-User=mongodb
-ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf
-
-[Install]
-WantedBy=multi-user.target
diff --git a/dev-db/mongodb/files/mongos.conf-r2 b/dev-db/mongodb/files/mongos.conf-r2
deleted file mode 100644
index fc00689..0000000
--- a/dev-db/mongodb/files/mongos.conf-r2
+++ /dev/null
@@ -1,30 +0,0 @@
-# !! IMPORTANT !!
-#
-# This file uses the YAML format as described in the documentation:
-# http://docs.mongodb.org/manual/reference/configuration-options/
-
-systemLog:
- destination: file
- path: "/var/log/mongodb/mongos.log"
- quiet: true
- logAppend: true
-
-net:
- port: 27017
- bindIp: 127.0.0.1
- ssl:
- mode: disabled
-
-#security:
- #keyFile:
- #clusterAuthMode:
-
-#sharding:
- #configDB:
-
-# Specifies one of the MongoDB parameters described here:
-# http://docs.mongodb.org/manual/reference/parameters/
-#
-# You can specify multiple setParameter fields such as:
-# setParameter: {enableTestCommands: 1}
-#setParameter:
diff --git a/dev-db/mongodb/files/mongos.confd-r2 b/dev-db/mongodb/files/mongos.confd-r2
deleted file mode 100644
index 0dc2a18..0000000
--- a/dev-db/mongodb/files/mongos.confd-r2
+++ /dev/null
@@ -1,12 +0,0 @@
-# !! IMPORTANT !!
-#
-# This file is ONLY used to override some of the init script configuration.
-#
-# You should NOT use this file to configure your mongos instance,
-# see the /etc/mongos.conf file instead.
-#
-# Available init script modifiers :
-# - config_file : the configuration file to use (default : /etc/mongos.conf)
-# - user : the user used to run your mongodb instance (default : mongodb)
-# - group : the group used to run your mongodb instance (default : mongodb)
-# - run_dir : the run directory for your PID files (default : /run/mongodb)
diff --git a/dev-db/mongodb/files/mongos.initd-r2 b/dev-db/mongodb/files/mongos.initd-r2
deleted file mode 100644
index eb26393..0000000
--- a/dev-db/mongodb/files/mongos.initd-r2
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/files/mongos.initd-r2,v 1.2 2014/05/26 08:03:45 ultrabug Exp $
-
-config_file=${config_file:-/etc/${SVCNAME}.conf}
-run_dir=${run_dir:-/run/mongodb}
-
-command="/usr/bin/mongos"
-command_args="--config ${config_file}"
-command_background="true"
-pidfile=${run_dir}/${SVCNAME}.pid
-user=${user:-mongodb}
-group=${group:-mongodb}
-start_stop_daemon_args="--user ${user} --group ${group}"
-
-depend() {
- use net
-}
-
-start_pre() {
- checkpath -d -m 0750 -o "${user}":"${group}" "${run_dir}"
- if [ ! -f ${config_file} ]; then
- eerror "Missing configuration file ${config_file}"
- return 1
- fi
-}
diff --git a/dev-db/mongodb/metadata.xml b/dev-db/mongodb/metadata.xml
deleted file mode 100644
index e184e5d..0000000
--- a/dev-db/mongodb/metadata.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>proxy-maintainers</herd>
- <maintainer>
- <email>ultrabug@gentoo.org</email>
- <name>Alexys Jacob</name>
- </maintainer>
- <maintainer>
- <email>bugs@bergstroem.nu</email>
- <name>Johan Bergström</name>
- <description>Proxy Maintainer. CC on bugs</description>
- </maintainer>
- <longdescription lang="en">
- MongoDB (from "humongous") is a scalable, high-performance, open source,
- schema-free, document-oriented database. Written in C++, MongoDB features:
-
- MongoDB bridges the gap between key-value stores (which are fast and highly
- scalable) and traditional RDBMS systems (which provide structured schemas
- and powerful queries).
- </longdescription>
- <use>
- <flag name="mms-agent">Install the MongoDB Monitoring Service agent</flag>
- <flag name="sharedclient">build client shared library libmongoclient.so</flag>
- <flag name="spidermonkey">Use embedded SpiderMonkey engine
- (<pkg>dev-lang/spidermonkey</pkg>) instead of v8</flag>
- <flag name="tools">Install the MongoDB tools (mongoimport, mongodump...)
- from <pkg>app-admin/mongo-tools</pkg></flag>
- </use>
-</pkgmetadata>
diff --git a/dev-db/mongodb/mongodb-3.0.1.ebuild b/dev-db/mongodb/mongodb-3.0.1.ebuild
deleted file mode 100644
index e93ee29..0000000
--- a/dev-db/mongodb/mongodb-3.0.1.ebuild
+++ /dev/null
@@ -1,145 +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.8.ebuild,v 1.1 2015/02/27 09:55:48 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
- dev-util/google-perftools[-minimal]
- net-libs/libpcap
- 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
-
- 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"
-
- 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} test
- "${S}"/test --dbpath=unittest || die
-}
-
-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
-}