1 |
robbat2 11/01/26 02:25:33 |
2 |
|
3 |
Modified: metadata.xml ChangeLog redis-1.2.6.ebuild |
4 |
Added: redis-2.2.0_rc4.ebuild |
5 |
Log: |
6 |
Bug #321487: Version bump. Bug #352266: Prefix support. Bug #335366: Respect LDFLAGS. |
7 |
|
8 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 dev-db/redis/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/metadata.xml?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/metadata.xml?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/metadata.xml?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/metadata.xml,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -p -w -b -B -u -u -r1.2 -r1.3 |
23 |
--- metadata.xml 25 Mar 2010 19:01:03 -0000 1.2 |
24 |
+++ metadata.xml 26 Jan 2011 02:25:32 -0000 1.3 |
25 |
@@ -8,4 +8,10 @@ |
26 |
<maintainer> |
27 |
<email>lu_zero@g.o</email> |
28 |
</maintainer> |
29 |
+ <use> |
30 |
+ <flag name="tcmalloc"> |
31 |
+ Use the <pkg>dev-util/google-perftools</pkg> libraries to |
32 |
+ replace the malloc() implementation with a possibly faster one. |
33 |
+ </flag> |
34 |
+ </use> |
35 |
</pkgmetadata> |
36 |
|
37 |
|
38 |
|
39 |
1.6 dev-db/redis/ChangeLog |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.6&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.6&content-type=text/plain |
43 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?r1=1.5&r2=1.6 |
44 |
|
45 |
Index: ChangeLog |
46 |
=================================================================== |
47 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v |
48 |
retrieving revision 1.5 |
49 |
retrieving revision 1.6 |
50 |
diff -p -w -b -B -u -u -r1.5 -r1.6 |
51 |
--- ChangeLog 17 May 2010 21:32:23 -0000 1.5 |
52 |
+++ ChangeLog 26 Jan 2011 02:25:32 -0000 1.6 |
53 |
@@ -1,6 +1,13 @@ |
54 |
# ChangeLog for dev-db/redis |
55 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.5 2010/05/17 21:32:23 lu_zero Exp $ |
57 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
58 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.6 2011/01/26 02:25:32 robbat2 Exp $ |
59 |
+ |
60 |
+*redis-2.2.0_rc4 (26 Jan 2011) |
61 |
+ |
62 |
+ 26 Jan 2011; Robin H. Johnson <robbat2@g.o> redis-1.2.6.ebuild, |
63 |
+ +files/configure.ac-2.2, +redis-2.2.0_rc4.ebuild, metadata.xml: |
64 |
+ Bug #321487: Version bump. Bug #352266: Prefix support. Bug #335366: Respect |
65 |
+ LDFLAGS. |
66 |
|
67 |
*redis-1.2.6 (17 May 2010) |
68 |
|
69 |
|
70 |
|
71 |
|
72 |
1.2 dev-db/redis/redis-1.2.6.ebuild |
73 |
|
74 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-1.2.6.ebuild?rev=1.2&view=markup |
75 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-1.2.6.ebuild?rev=1.2&content-type=text/plain |
76 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-1.2.6.ebuild?r1=1.1&r2=1.2 |
77 |
|
78 |
Index: redis-1.2.6.ebuild |
79 |
=================================================================== |
80 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/redis-1.2.6.ebuild,v |
81 |
retrieving revision 1.1 |
82 |
retrieving revision 1.2 |
83 |
diff -p -w -b -B -u -u -r1.1 -r1.2 |
84 |
--- redis-1.2.6.ebuild 17 May 2010 21:32:23 -0000 1.1 |
85 |
+++ redis-1.2.6.ebuild 26 Jan 2011 02:25:32 -0000 1.2 |
86 |
@@ -1,6 +1,6 @@ |
87 |
-# Copyright 1999-2010 Gentoo Foundation |
88 |
+# Copyright 1999-2011 Gentoo Foundation |
89 |
# Distributed under the terms of the GNU General Public License v2 |
90 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-1.2.6.ebuild,v 1.1 2010/05/17 21:32:23 lu_zero Exp $ |
91 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-1.2.6.ebuild,v 1.2 2011/01/26 02:25:32 robbat2 Exp $ |
92 |
|
93 |
EAPI=2 |
94 |
|
95 |
@@ -41,6 +41,7 @@ src_prepare() { |
96 |
-e 's: $(DEBUG)::g' \ |
97 |
-e 's:ARCH:GCC_ARCH_FLAG:g' \ |
98 |
-e 's:PROF:GCC_PROF_FLAG:g' \ |
99 |
+ -e '/^CCOPT=/s:$: $(LDFLAGS):g' \ |
100 |
Makefile.in \ |
101 |
|| die "sed failed!" |
102 |
|
103 |
|
104 |
|
105 |
|
106 |
1.1 dev-db/redis/redis-2.2.0_rc4.ebuild |
107 |
|
108 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild?rev=1.1&view=markup |
109 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild?rev=1.1&content-type=text/plain |
110 |
|
111 |
Index: redis-2.2.0_rc4.ebuild |
112 |
=================================================================== |
113 |
# Copyright 2010-2011 W-Mark Kubacki, Mao Pu |
114 |
# Distributed under the terms of the GNU General Public License v2 |
115 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.2.0_rc4.ebuild,v 1.1 2011/01/26 02:25:32 robbat2 Exp $ |
116 |
|
117 |
EAPI="2" |
118 |
WANT_AUTOCONF="latest" |
119 |
|
120 |
inherit autotools eutils flag-o-matic |
121 |
|
122 |
DESCRIPTION="A persistent caching system, key-value and data structures database." |
123 |
HOMEPAGE="http://code.google.com/p/redis/" |
124 |
SRC_URI="http://redis.googlecode.com/files/${PN}-${PV/_/-}.tar.gz" |
125 |
RESTRICT="primaryuri" |
126 |
|
127 |
LICENSE="BSD" |
128 |
KEYWORDS="~amd64 ~x86 ~x86-macos" |
129 |
IUSE="tcmalloc" |
130 |
SLOT="0" |
131 |
|
132 |
RDEPEND="" |
133 |
DEPEND=">=sys-devel/autoconf-2.63 |
134 |
tcmalloc? ( dev-util/google-perftools ) |
135 |
${RDEPEND}" |
136 |
|
137 |
S="${WORKDIR}/${PN}-${PV/_/-}" |
138 |
|
139 |
pkg_setup() { |
140 |
enewgroup redis 75 || die "problem adding 'redis' group" |
141 |
enewuser redis 75 -1 /var/lib/redis redis || die "problem adding 'redis' user" |
142 |
# set tcmalloc-variable for the build as specified in |
143 |
# https://github.com/antirez/redis/blob/2.2/README. If build system gets |
144 |
# better integrated into autotools, replace with append-flags and |
145 |
# append-ldflags in src_configure() |
146 |
use tcmalloc && export EXTRA_EMAKE="${EXTRA_EMAKE} USE_TCMALLOC=yes" |
147 |
} |
148 |
|
149 |
src_prepare() { |
150 |
cd "${S}" |
151 |
# now we will rewrite present Makefiles |
152 |
local makefiles="" |
153 |
for MKF in $(find -name 'Makefile' | cut -b 3-); do |
154 |
mv "${MKF}" "${MKF}.in" |
155 |
sed -i -e 's:$(CC):@CC@:g' \ |
156 |
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \ |
157 |
-e 's: $(DEBUG)::g' \ |
158 |
-e 's:ARCH:TARCH:g' \ |
159 |
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \ |
160 |
"${MKF}.in" \ |
161 |
|| die "Sed failed for ${MKF}" |
162 |
makefiles+=" ${MKF}" |
163 |
done |
164 |
# autodetection of compiler and settings; generates the modified Makefiles |
165 |
cp "${FILESDIR}"/configure.ac-2.2 configure.ac |
166 |
sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ |
167 |
configure.ac || die "Sed failed for configure.ac" |
168 |
eautoconf |
169 |
} |
170 |
|
171 |
src_configure() { |
172 |
if ! ( use x86 || use amd64 ); then |
173 |
replace-flags "-Os" "-O2" |
174 |
filter-flags -fomit-frame-pointer "-march=*" "-mtune=*" "-mcpu=*" |
175 |
fi |
176 |
econf ${myconf} || die "econf" |
177 |
} |
178 |
|
179 |
|
180 |
src_install() { |
181 |
# configuration file rewrites |
182 |
insinto /etc/ |
183 |
doins redis.conf || ewarn "mysteriously the configuration file is missing" |
184 |
dosed "s:daemonize no:daemonize yes:g" /etc/redis.conf |
185 |
dosed "s:# bind:bind:g" /etc/redis.conf |
186 |
dosed "s:dbfilename :dbfilename /var/lib/redis/:g" /etc/redis.conf |
187 |
dosed "s:dir ./:dir /var/lib/redis/:g" /etc/redis.conf |
188 |
dosed "s:loglevel debug:loglevel notice:g" /etc/redis.conf |
189 |
dosed "s:logfile stdout:logfile /var/log/redis/redis.log:g" /etc/redis.conf |
190 |
use prefix || fowners redis:redis /etc/redis.conf |
191 |
fperms 0644 /etc/redis.conf |
192 |
|
193 |
newconfd "${FILESDIR}/redis.confd" redis |
194 |
newinitd "${FILESDIR}/redis.initd" redis |
195 |
|
196 |
dodoc 00-RELEASENOTES BUGS Changelog CONTRIBUTING COPYING README TODO |
197 |
dodoc design-documents/* |
198 |
docinto html |
199 |
dodoc doc/* |
200 |
|
201 |
dobin src/redis-cli \ |
202 |
|| die "the redis command line client could not be found" |
203 |
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump \ |
204 |
|| die "some redis executables could not be found" |
205 |
fperms 0750 /usr/sbin/redis-benchmark |
206 |
|
207 |
if use prefix; then |
208 |
diropts -m0750 |
209 |
else |
210 |
diropts -m0750 -o redis -g redis |
211 |
fi |
212 |
dodir /var/lib/redis |
213 |
dodir /var/log/redis |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
einfo "New features of Redis you want to consider enabling in redis.conf:" |
218 |
einfo " * unix sockets (using this is highly recommended)" |
219 |
einfo " * logging to syslog" |
220 |
einfo " * VM aka redis' own swap mechanism" |
221 |
} |