# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.4.14.ebuild,v 1.2 2012/06/04 06:52:15 zmedico Exp $ EAPI="4" inherit autotools eutils flag-o-matic user DESCRIPTION="A persistent caching system, key-value and data structures database." HOMEPAGE="http://redis.io/" SRC_URI="http://redis.googlecode.com/files/${P}.tar.gz" LICENSE="BSD" KEYWORDS="~amd64 ~x86 ~x86-macos ~x86-solaris" IUSE="+jemalloc tcmalloc test" SLOT="0" RDEPEND="" DEPEND=">=sys-devel/autoconf-2.63 tcmalloc? ( dev-util/google-perftools ) jemalloc? ( /s,/var.*,${REDIS_PIDFILE}," \ -e '/^daemonize\>/s,no,yes,' \ -e '/^# bind/s,^# ,,' \ -e '/^# maxmemory\>/s,^# ,,' \ -e '/^maxmemory\>/s,,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.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 nonfatal dodoc 00-RELEASENOTES BUGS CONTRIBUTING README TODO dobin src/redis-cli dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump 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} }