Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/redis: redis-2.2.0_rc4.ebuild ChangeLog
Date: Wed, 26 Jan 2011 02:43:41
Message-Id: 20110126024330.7E7B220057@flycatcher.gentoo.org
1 robbat2 11/01/26 02:43:30
2
3 Modified: redis-2.2.0_rc4.ebuild ChangeLog
4 Log:
5 Drop some of the user changes to the ebuild and keep the code from the 1.2.x series ebuild.
6
7 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 dev-db/redis/redis-2.2.0_rc4.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild?r1=1.2&r2=1.3
15
16 Index: redis-2.2.0_rc4.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -p -w -b -B -u -u -r1.2 -r1.3
22 --- redis-2.2.0_rc4.ebuild 26 Jan 2011 02:26:29 -0000 1.2
23 +++ redis-2.2.0_rc4.ebuild 26 Jan 2011 02:43:30 -0000 1.3
24 @@ -1,6 +1,6 @@
25 -# Copyright 1999-2011 W-Mark Kubacki, Mao Pu
26 +# Copyright 1999-2011 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild,v 1.2 2011/01/26 02:26:29 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild,v 1.3 2011/01/26 02:43:30 robbat2 Exp $
30
31 EAPI="2"
32
33 @@ -9,23 +9,29 @@ inherit autotools eutils flag-o-matic
34 DESCRIPTION="A persistent caching system, key-value and data structures database."
35 HOMEPAGE="http://code.google.com/p/redis/"
36 SRC_URI="http://redis.googlecode.com/files/${PN}-${PV/_/-}.tar.gz"
37 -RESTRICT="primaryuri"
38
39 LICENSE="BSD"
40 KEYWORDS="~amd64 ~x86 ~x86-macos"
41 -IUSE="tcmalloc"
42 +IUSE="tcmalloc test"
43 SLOT="0"
44
45 RDEPEND=""
46 DEPEND=">=sys-devel/autoconf-2.63
47 tcmalloc? ( dev-util/google-perftools )
48 + test? ( dev-lang/tcl )
49 ${RDEPEND}"
50
51 S="${WORKDIR}/${PN}-${PV/_/-}"
52
53 +REDIS_PIDDIR=/var/run/redis/
54 +REDIS_PIDFILE=${REDIS_PIDDIR}/redis.pid
55 +REDIS_DATAPATH=/var/lib/redis
56 +REDIS_LOGPATH=/var/log/redis
57 +REDIS_LOGFILE=${REDIS_LOGPATH}/redis.log
58 +
59 pkg_setup() {
60 enewgroup redis 75 || die "problem adding 'redis' group"
61 - enewuser redis 75 -1 /var/lib/redis redis || die "problem adding 'redis' user"
62 + enewuser redis 75 -1 ${REDIS_DATAPATH} redis || die "problem adding 'redis' user"
63 # set tcmalloc-variable for the build as specified in
64 # https://github.com/antirez/redis/blob/2.2/README. If build system gets
65 # better integrated into autotools, replace with append-flags and
66 @@ -54,24 +60,22 @@ src_prepare() {
67 eautoconf
68 }
69
70 -src_configure() {
71 - if ! ( use x86 || use amd64 ); then
72 - replace-flags "-Os" "-O2"
73 - filter-flags -fomit-frame-pointer "-march=*" "-mtune=*" "-mcpu=*"
74 - fi
75 - econf ${myconf} || die "econf"
76 -}
77 -
78 src_install() {
79 # configuration file rewrites
80 insinto /etc/
81 - doins redis.conf || ewarn "mysteriously the configuration file is missing"
82 - dosed "s:daemonize no:daemonize yes:g" /etc/redis.conf
83 - dosed "s:# bind:bind:g" /etc/redis.conf
84 - dosed "s:dbfilename :dbfilename /var/lib/redis/:g" /etc/redis.conf
85 - dosed "s:dir ./:dir /var/lib/redis/:g" /etc/redis.conf
86 - dosed "s:loglevel debug:loglevel notice:g" /etc/redis.conf
87 - dosed "s:logfile stdout:logfile /var/log/redis/redis.log:g" /etc/redis.conf
88 + sed -r \
89 + -e "/^pidfile\>/s,/var.*,${REDIS_PIDFILE}," \
90 + -e '/^daemonize\>/s,no,yes,' \
91 + -e '/^# bind/s,^# ,,' \
92 + -e '/^# maxmemory\>/s,^# ,,' \
93 + -e '/^maxmemory\>/s,<bytes>,67108864,' \
94 + -e "/^dbfilename\>/s,dump.rdb,${REDIS_DATAPATH}/dump.rdb," \
95 + -e "/^dir\>/s, .*, ${REDIS_DATAPATH}/," \
96 + -e '/^loglevel\>/s:debug:notice:' \
97 + -e "/^logfile\>/s:stdout:${REDIS_LOGFILE}:" \
98 + <redis.conf \
99 + >redis.conf.gentoo
100 + newins redis.conf.gentoo redis.conf
101 use prefix || fowners redis:redis /etc/redis.conf
102 fperms 0644 /etc/redis.conf
103
104 @@ -80,6 +84,7 @@ src_install() {
105
106 dodoc 00-RELEASENOTES BUGS Changelog CONTRIBUTING README TODO
107 dodoc design-documents/*
108 + newdoc client-libraries/README README.client-libraries
109 docinto html
110 dodoc doc/*
111
112 @@ -94,8 +99,7 @@ src_install() {
113 else
114 diropts -m0750 -o redis -g redis
115 fi
116 - dodir /var/lib/redis
117 - dodir /var/log/redis
118 + keepdir ${REDIS_DATAPATH} ${REDIS_LOGPATH} ${REDIS_PIDDIR}
119 }
120
121 pkg_postinst() {
122
123
124
125 1.8 dev-db/redis/ChangeLog
126
127 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.8&view=markup
128 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.8&content-type=text/plain
129 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?r1=1.7&r2=1.8
130
131 Index: ChangeLog
132 ===================================================================
133 RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v
134 retrieving revision 1.7
135 retrieving revision 1.8
136 diff -p -w -b -B -u -u -r1.7 -r1.8
137 --- ChangeLog 26 Jan 2011 02:26:29 -0000 1.7
138 +++ ChangeLog 26 Jan 2011 02:43:30 -0000 1.8
139 @@ -1,6 +1,10 @@
140 # ChangeLog for dev-db/redis
141 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
142 -# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.7 2011/01/26 02:26:29 robbat2 Exp $
143 +# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.8 2011/01/26 02:43:30 robbat2 Exp $
144 +
145 + 26 Jan 2011; Robin H. Johnson <robbat2@g.o> redis-2.2.0_rc4.ebuild:
146 + Drop some of the user changes to the ebuild and keep the code from the 1.2.x
147 + series ebuild.
148
149 26 Jan 2011; Robin H. Johnson <robbat2@g.o> redis-2.2.0_rc4.ebuild:
150 QA cleanup.