summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2011-06-06 09:19:25 +0000
committerDirkjan Ochtman <djc@gentoo.org>2011-06-06 09:19:25 +0000
commit03a5279be065b6502957afa2faa0530bbac30a68 (patch)
tree702211004e845d80ecd4c804b07c8315a939bd53 /dev-db
parentFix dependency on pantomime (diff)
downloadhistorical-03a5279be065b6502957afa2faa0530bbac30a68.tar.gz
historical-03a5279be065b6502957afa2faa0530bbac30a68.tar.bz2
historical-03a5279be065b6502957afa2faa0530bbac30a68.zip
Version bump redis to 2.2.8 (bug 368861).
Package-Manager: portage-2.1.9.50/cvs/Linux x86_64
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/redis/ChangeLog7
-rw-r--r--dev-db/redis/Manifest10
-rw-r--r--dev-db/redis/redis-2.2.8.ebuild110
3 files changed, 122 insertions, 5 deletions
diff --git a/dev-db/redis/ChangeLog b/dev-db/redis/ChangeLog
index b89e2ffbc2e7..f20547496b83 100644
--- a/dev-db/redis/ChangeLog
+++ b/dev-db/redis/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/redis
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.17 2011/05/24 15:53:56 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.18 2011/06/06 09:19:25 djc Exp $
+
+*redis-2.2.8 (06 Jun 2011)
+
+ 06 Jun 2011; Dirkjan Ochtman <djc@gentoo.org> +redis-2.2.8.ebuild:
+ Version bump to 2.2.8 (bug 368861).
24 May 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> redis-2.2.2.ebuild:
x86 stable wrt bug #366185
diff --git a/dev-db/redis/Manifest b/dev-db/redis/Manifest
index 0eaab5a1f154..a8f7fb2a143f 100644
--- a/dev-db/redis/Manifest
+++ b/dev-db/redis/Manifest
@@ -6,14 +6,16 @@ AUX redis.confd 450 RMD160 237a72f30b3ba5c77e7dd31d2dfebc2db2cea2ad SHA1 4c29881
AUX redis.initd 859 RMD160 a5718f3b4eab11450223c21bc98ab75d408e932e SHA1 ba3237364dba1da920ec4f14c13ff2cd45062144 SHA256 8b25b60bca695a8393e381078b2a42330c1b6cc2953bbe3c1b7cbd41ca36fe5d
DIST redis-2.2.2.tar.gz 446269 RMD160 a7a21ab6aa07f79e5cdeb991a26dd1d55446e38e SHA1 75b953e4a3067570555c5f3f5e8f481c40489904 SHA256 4c5ff589ec80bf019ebebcf5fb5187939d7e50c34fa9f8a0511e40825a3ec235
DIST redis-2.2.6.tar.gz 447913 RMD160 76ddcd22ba31a7a9dd8a2fb7b465330c933a15c7 SHA1 dd5a5a443327da09483701c48b7ea87e5d160c69 SHA256 64ab9ec01792c50344b030e19dfc2453ff76822cf5845eb6da5654bc1ea09477
+DIST redis-2.2.8.tar.gz 448877 RMD160 91c95512ecd2b83834bbe4ebd562ae7fc4699599 SHA1 30fb67ed71c179a7294d06d2c83c9b074a98fb79 SHA256 d438fde47fd8a34d8b135744a4264214274e57bc7f132d0cf4ee4e98a6551bb3
EBUILD redis-2.2.2.ebuild 3514 RMD160 d6b4ec017fd6befb6f14cf6fe569fbd476961225 SHA1 d3be9363fdc9acb64c39cdd39aac79073aaeca64 SHA256 06dc29f84635803dbbfcb4961c646d3a7f1fdec2a57647dc5aa3246c469e5e45
EBUILD redis-2.2.6.ebuild 3509 RMD160 083c83cffb25bfe735d4c15ea0bd06ae42300c27 SHA1 cb83e8afa3db8b802ed7623d8b2beda51bff0b60 SHA256 785f738f9f36434bc35d07ff5c280460e588c301b549e12ef879b0239de26de3
-MISC ChangeLog 2753 RMD160 20d1870afcc2533285f8138dcef1e47be31256b5 SHA1 65d53698749a9b344feabcfa551f0c4c8298c946 SHA256 95d19144a42cd129a7302b960dca87cf28c96d48cd701eead54b46e4d7bced6a
+EBUILD redis-2.2.8.ebuild 3509 RMD160 a7116ed0473d4d066deb4bcba4815ad1fd08b773 SHA1 4eef2a4c64593c9fceb5682e24a7349d34cf75f1 SHA256 899b63aab6e9d9968ab8f27c7c1078c93f7f86bc46c25a189f21be4b0fadf65f
+MISC ChangeLog 2882 RMD160 2e197ea9b98cba1af1f1f23d54a9fd01b89622dd SHA1 39d53ec29a1aad480ea5482c861ef8c98ceafe70 SHA256 83f8efb5e017517da9437d4eb18405063de1c97f06d1f36bc360d5c06a25ac8a
MISC metadata.xml 553 RMD160 3be3be322cb813db7b6ca636b6fdca13a9a0483c SHA1 7d5dd7d39f782f4903052bc1f78a8baeff06460e SHA256 0533101247089bd059f8740d38b49a326307d60d0c6d66818ab552f3a65f0e34
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk3b1JoACgkQuUQtlDBCeQJkJwCfeGrbM6gh3meOoikrc22JxAnJ
-gZkAn0jSGyLukJ5evR6xY0ynMX+NiQk2
-=7um8
+iEYEARECAAYFAk3sm6YACgkQxeMuLWsGW/tD3gCcDf8sZQz2YqO96Qz9eFD/MSra
+zk4Ani9XzBYsn686C+ylKit9Y6nB7ipu
+=pB0M
-----END PGP SIGNATURE-----
diff --git a/dev-db/redis/redis-2.2.8.ebuild b/dev-db/redis/redis-2.2.8.ebuild
new file mode 100644
index 000000000000..9ae28a543eb2
--- /dev/null
+++ b/dev-db/redis/redis-2.2.8.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.2.8.ebuild,v 1.1 2011/06/06 09:19:25 djc Exp $
+
+EAPI="2"
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="A persistent caching system, key-value and data structures database."
+HOMEPAGE="http://code.google.com/p/redis/"
+SRC_URI="http://redis.googlecode.com/files/${PN}-${PV/_/-}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86 ~x86-macos ~x86-solaris"
+IUSE="tcmalloc test"
+SLOT="0"
+
+RDEPEND=""
+DEPEND=">=sys-devel/autoconf-2.63
+ tcmalloc? ( dev-util/google-perftools )
+ test? ( dev-lang/tcl )
+ ${RDEPEND}"
+
+S="${WORKDIR}/${PN}-${PV/_/-}"
+
+REDIS_PIDDIR=/var/run/redis/
+REDIS_PIDFILE=${REDIS_PIDDIR}/redis.pid
+REDIS_DATAPATH=/var/lib/redis
+REDIS_LOGPATH=/var/log/redis
+REDIS_LOGFILE=${REDIS_LOGPATH}/redis.log
+
+pkg_setup() {
+ enewgroup redis 75 || die "problem adding 'redis' group"
+ enewuser redis 75 -1 ${REDIS_DATAPATH} redis || die "problem adding 'redis' user"
+ # set tcmalloc-variable for the build as specified in
+ # https://github.com/antirez/redis/blob/2.2/README. If build system gets
+ # better integrated into autotools, replace with append-flags and
+ # append-ldflags in src_configure()
+ use tcmalloc && export EXTRA_EMAKE="${EXTRA_EMAKE} USE_TCMALLOC=yes"
+}
+
+src_prepare() {
+ # now we will rewrite present Makefiles
+ local makefiles=""
+ for MKF in $(find -name 'Makefile' | cut -b 3-); do
+ mv "${MKF}" "${MKF}.in"
+ sed -i -e 's:$(CC):@CC@:g' \
+ -e 's:$(CFLAGS):@AM_CFLAGS@:g' \
+ -e 's: $(DEBUG)::g' \
+ -e 's:$(OBJARCH)::g' \
+ -e 's:ARCH:TARCH:g' \
+ -e '/^CCOPT=/s:$: $(LDFLAGS):g' \
+ "${MKF}.in" \
+ || die "Sed failed for ${MKF}"
+ makefiles+=" ${MKF}"
+ done
+ # autodetection of compiler and settings; generates the modified Makefiles
+ cp "${FILESDIR}"/configure.ac-2.2 configure.ac
+ sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
+ configure.ac || die "Sed failed for configure.ac"
+ eautoconf
+}
+
+src_install() {
+ # configuration file rewrites
+ insinto /etc/
+ sed -r \
+ -e "/^pidfile\>/s,/var.*,${REDIS_PIDFILE}," \
+ -e '/^daemonize\>/s,no,yes,' \
+ -e '/^# bind/s,^# ,,' \
+ -e '/^# maxmemory\>/s,^# ,,' \
+ -e '/^maxmemory\>/s,<bytes>,67108864,' \
+ -e "/^dbfilename\>/s,dump.rdb,${REDIS_DATAPATH}/dump.rdb," \
+ -e "/^dir\>/s, .*, ${REDIS_DATAPATH}/," \
+ -e '/^loglevel\>/s:debug:notice:' \
+ -e "/^logfile\>/s:stdout:${REDIS_LOGFILE}:" \
+ <redis.conf \
+ >redis.conf.gentoo
+ newins redis.conf.gentoo redis.conf
+ use prefix || fowners redis:redis /etc/redis.conf
+ fperms 0644 /etc/redis.conf
+
+ newconfd "${FILESDIR}/redis.confd" redis
+ newinitd "${FILESDIR}/redis.initd" redis
+
+ dodoc 00-RELEASENOTES BUGS Changelog CONTRIBUTING README TODO
+ dodoc design-documents/*
+ newdoc client-libraries/README README.client-libraries
+ docinto html
+ dodoc doc/*
+
+ dobin src/redis-cli || die "redis-cli could not be found"
+ dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump \
+ || die "some redis executables could not be found"
+ fperms 0750 /usr/sbin/redis-benchmark
+
+ if use prefix; then
+ diropts -m0750
+ else
+ diropts -m0750 -o redis -g redis
+ fi
+ keepdir ${REDIS_DATAPATH} ${REDIS_LOGPATH} ${REDIS_PIDDIR}
+}
+
+pkg_postinst() {
+ einfo "New features of Redis you want to consider enabling in redis.conf:"
+ einfo " * unix sockets (using this is highly recommended)"
+ einfo " * logging to syslog"
+ einfo " * VM aka redis' own swap mechanism"
+}