summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2012-06-06 07:44:16 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2012-06-06 07:44:16 +0000
commit8923a8c3e727ff58b3b717ecb4424fee4f083cb1 (patch)
tree38fd24f17da22eeb6a0b3999bf3dd019e0289375 /dev-db/mongodb
parentVersion bump (diff)
downloadgentoo-2-8923a8c3e727ff58b3b717ecb4424fee4f083cb1.tar.gz
gentoo-2-8923a8c3e727ff58b3b717ecb4424fee4f083cb1.tar.bz2
gentoo-2-8923a8c3e727ff58b3b717ecb4424fee4f083cb1.zip
Version bump, drop old. Add logrotate script.
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/mongodb')
-rw-r--r--dev-db/mongodb/ChangeLog9
-rw-r--r--dev-db/mongodb/files/mongodb-2.0.4-fix-utils.patch35
-rw-r--r--dev-db/mongodb/files/mongodb.logrotate13
-rw-r--r--dev-db/mongodb/mongodb-2.0.6.ebuild (renamed from dev-db/mongodb/mongodb-2.0.4.ebuild)11
4 files changed, 27 insertions, 41 deletions
diff --git a/dev-db/mongodb/ChangeLog b/dev-db/mongodb/ChangeLog
index d299c0db7a9e..81dcbdbf8a9b 100644
--- a/dev-db/mongodb/ChangeLog
+++ b/dev-db/mongodb/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-db/mongodb
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/ChangeLog,v 1.39 2012/06/04 06:34:29 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/ChangeLog,v 1.40 2012/06/06 07:44:16 ultrabug Exp $
+
+*mongodb-2.0.6 (06 Jun 2012)
+
+ 06 Jun 2012; Ultrabug <ultrabug@gentoo.org> -mongodb-2.0.4.ebuild,
+ -files/mongodb-2.0.4-fix-utils.patch, +mongodb-2.0.6.ebuild,
+ +files/mongodb.logrotate:
+ Version bump, drop old. Add logrotate script.
04 Jun 2012; Zac Medico <zmedico@gentoo.org> mongodb-1.8.4-r1.ebuild,
mongodb-2.0.4.ebuild, mongodb-2.0.5.ebuild:
diff --git a/dev-db/mongodb/files/mongodb-2.0.4-fix-utils.patch b/dev-db/mongodb/files/mongodb-2.0.4-fix-utils.patch
deleted file mode 100644
index 988814989297..000000000000
--- a/dev-db/mongodb/files/mongodb-2.0.4-fix-utils.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- a/buildscripts/utils.py
-+++ b/buildscripts/utils.py
-@@ -3,6 +3,8 @@ import re
- import socket
- import time
- import os
-+import sys
-+
- # various utilities that are handy
-
- def getAllSourceFiles( arr=None , prefix="." ):
-@@ -139,6 +141,14 @@ def smoke_python_name():
- # then we assume that "python" points to a 2.5 or
- # greater python VM. otherwise, explicitly use 2.5
- # which we assume to be installed.
-+ min_version_tuple = (2, 5)
-+ try:
-+ if sys.version_info >= min_version_tuple:
-+ return sys.executable
-+ except AttributeError:
-+ # In case the version of Python is somehow missing sys.version_info or sys.executable.
-+ pass
-+
- import subprocess
- version = re.compile(r'[Pp]ython ([\d\.]+)', re.MULTILINE)
- binaries = ['python2.5', 'python2.6', 'python2.7', 'python25', 'python26', 'python27', 'python']
-@@ -150,7 +160,7 @@ def smoke_python_name():
- match = version.search(stream)
- if match:
- versiontuple = tuple(map(int, match.group(1).split('.')))
-- if versiontuple >= (2, 5):
-+ if versiontuple >= min_version_tuple:
- return binary
- except:
- pass \ No newline at end of file
diff --git a/dev-db/mongodb/files/mongodb.logrotate b/dev-db/mongodb/files/mongodb.logrotate
new file mode 100644
index 000000000000..f95a438b5b2c
--- /dev/null
+++ b/dev-db/mongodb/files/mongodb.logrotate
@@ -0,0 +1,13 @@
+# 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/mongodb-2.0.4.ebuild b/dev-db/mongodb/mongodb-2.0.6.ebuild
index 28dcb7c11ec1..0d2df6ee7cd3 100644
--- a/dev-db/mongodb/mongodb-2.0.4.ebuild
+++ b/dev-db/mongodb/mongodb-2.0.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.0.4.ebuild,v 1.3 2012/06/04 06:34:29 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.0.6.ebuild,v 1.1 2012/06/06 07:44:16 ultrabug Exp $
EAPI=4
SCONS_MIN_VERSION="1.2.0"
@@ -12,7 +12,7 @@ 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/20111027-10gen-mms-agent.zip )"
+ mms-agent? ( http://dev.gentoo.org/~ultrabug/20120514-10gen-mms-agent.zip )"
LICENSE="AGPL-3 Apache-2.0"
SLOT="0"
@@ -25,8 +25,7 @@ RDEPEND="!v8? ( <dev-lang/spidermonkey-1.8[unicode] )
dev-libs/boost
dev-libs/libpcre[cxx]
net-libs/libpcap
- app-arch/snappy
- "
+ app-arch/snappy"
DEPEND="${RDEPEND}
sys-libs/readline
sys-libs/ncurses"
@@ -47,7 +46,6 @@ pkg_setup() {
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0-fix-scons.patch"
- epatch "${FILESDIR}/${P}-fix-utils.patch"
# drop -Werror
sed -i -e '/Werror/d' SConstruct || die
@@ -82,6 +80,9 @@ src_install() {
newinitd "${FILESDIR}/${PN/db/s}.initd" ${PN/db/s}
newconfd "${FILESDIR}/${PN/db/s}.confd" ${PN/db/s}
+ 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}"