1 |
djc 11/07/04 08:17:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: redis-2.2.11.ebuild |
5 |
Log: |
6 |
Version bump redis to 2.2.11 (bug 373591). |
7 |
|
8 |
(Portage version: 2.1.10.4/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.21 dev-db/redis/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.21&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.21&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?r1=1.20&r2=1.21 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v |
20 |
retrieving revision 1.20 |
21 |
retrieving revision 1.21 |
22 |
diff -u -r1.20 -r1.21 |
23 |
--- ChangeLog 12 Jun 2011 13:51:27 -0000 1.20 |
24 |
+++ ChangeLog 4 Jul 2011 08:17:29 -0000 1.21 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-db/redis |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.20 2011/06/12 13:51:27 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.21 2011/07/04 08:17:29 djc Exp $ |
30 |
+ |
31 |
+*redis-2.2.11 (04 Jul 2011) |
32 |
+ |
33 |
+ 04 Jul 2011; Dirkjan Ochtman <djc@g.o> +redis-2.2.11.ebuild: |
34 |
+ Version bump to 2.2.11, add doc use flag (bug 373591). |
35 |
|
36 |
12 Jun 2011; Pawel Hajdan jr <phajdan.jr@g.o> redis-2.2.6.ebuild: |
37 |
x86 stable wrt bug #370241 |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-db/redis/redis-2.2.11.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.2.11.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.2.11.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: redis-2.2.11.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.2.11.ebuild,v 1.1 2011/07/04 08:17:29 djc Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit autotools eutils flag-o-matic |
55 |
|
56 |
DESCRIPTION="A persistent caching system, key-value and data structures database." |
57 |
HOMEPAGE="http://code.google.com/p/redis/" |
58 |
SRC_URI="http://redis.googlecode.com/files/${PN}-${PV/_/-}.tar.gz" |
59 |
|
60 |
LICENSE="BSD" |
61 |
KEYWORDS="~amd64 ~x86 ~x86-macos ~x86-solaris" |
62 |
IUSE="doc tcmalloc test" |
63 |
SLOT="0" |
64 |
|
65 |
RDEPEND="" |
66 |
DEPEND=">=sys-devel/autoconf-2.63 |
67 |
tcmalloc? ( dev-util/google-perftools ) |
68 |
test? ( dev-lang/tcl ) |
69 |
${RDEPEND}" |
70 |
|
71 |
S="${WORKDIR}/${PN}-${PV/_/-}" |
72 |
|
73 |
REDIS_PIDDIR=/var/run/redis/ |
74 |
REDIS_PIDFILE=${REDIS_PIDDIR}/redis.pid |
75 |
REDIS_DATAPATH=/var/lib/redis |
76 |
REDIS_LOGPATH=/var/log/redis |
77 |
REDIS_LOGFILE=${REDIS_LOGPATH}/redis.log |
78 |
|
79 |
pkg_setup() { |
80 |
enewgroup redis 75 || die "problem adding 'redis' group" |
81 |
enewuser redis 75 -1 ${REDIS_DATAPATH} redis || die "problem adding 'redis' user" |
82 |
# set tcmalloc-variable for the build as specified in |
83 |
# https://github.com/antirez/redis/blob/2.2/README. If build system gets |
84 |
# better integrated into autotools, replace with append-flags and |
85 |
# append-ldflags in src_configure() |
86 |
use tcmalloc && export EXTRA_EMAKE="${EXTRA_EMAKE} USE_TCMALLOC=yes" |
87 |
} |
88 |
|
89 |
src_prepare() { |
90 |
# now we will rewrite present Makefiles |
91 |
local makefiles="" |
92 |
for MKF in $(find -name 'Makefile' | cut -b 3-); do |
93 |
mv "${MKF}" "${MKF}.in" |
94 |
sed -i -e 's:$(CC):@CC@:g' \ |
95 |
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \ |
96 |
-e 's: $(DEBUG)::g' \ |
97 |
-e 's:$(OBJARCH)::g' \ |
98 |
-e 's:ARCH:TARCH:g' \ |
99 |
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \ |
100 |
"${MKF}.in" \ |
101 |
|| die "Sed failed for ${MKF}" |
102 |
makefiles+=" ${MKF}" |
103 |
done |
104 |
# autodetection of compiler and settings; generates the modified Makefiles |
105 |
cp "${FILESDIR}"/configure.ac-2.2 configure.ac |
106 |
sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ |
107 |
configure.ac || die "Sed failed for configure.ac" |
108 |
eautoconf |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
# configuration file rewrites |
113 |
insinto /etc/ |
114 |
sed -r \ |
115 |
-e "/^pidfile\>/s,/var.*,${REDIS_PIDFILE}," \ |
116 |
-e '/^daemonize\>/s,no,yes,' \ |
117 |
-e '/^# bind/s,^# ,,' \ |
118 |
-e '/^# maxmemory\>/s,^# ,,' \ |
119 |
-e '/^maxmemory\>/s,<bytes>,67108864,' \ |
120 |
-e "/^dbfilename\>/s,dump.rdb,${REDIS_DATAPATH}/dump.rdb," \ |
121 |
-e "/^dir\>/s, .*, ${REDIS_DATAPATH}/," \ |
122 |
-e '/^loglevel\>/s:debug:notice:' \ |
123 |
-e "/^logfile\>/s:stdout:${REDIS_LOGFILE}:" \ |
124 |
<redis.conf \ |
125 |
>redis.conf.gentoo |
126 |
newins redis.conf.gentoo redis.conf |
127 |
use prefix || fowners redis:redis /etc/redis.conf |
128 |
fperms 0644 /etc/redis.conf |
129 |
|
130 |
newconfd "${FILESDIR}/redis.confd" redis |
131 |
newinitd "${FILESDIR}/redis.initd" redis |
132 |
|
133 |
dodoc 00-RELEASENOTES BUGS Changelog CONTRIBUTING README TODO |
134 |
if use doc; then |
135 |
dodoc design-documents/* |
136 |
newdoc client-libraries/README README.client-libraries |
137 |
docinto html |
138 |
dodoc doc/* |
139 |
fi |
140 |
|
141 |
dobin src/redis-cli || die "redis-cli could not be found" |
142 |
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump \ |
143 |
|| die "some redis executables could not be found" |
144 |
fperms 0750 /usr/sbin/redis-benchmark |
145 |
|
146 |
if use prefix; then |
147 |
diropts -m0750 |
148 |
else |
149 |
diropts -m0750 -o redis -g redis |
150 |
fi |
151 |
keepdir ${REDIS_DATAPATH} ${REDIS_LOGPATH} ${REDIS_PIDDIR} |
152 |
} |
153 |
|
154 |
pkg_postinst() { |
155 |
einfo "New features of Redis you want to consider enabling in redis.conf:" |
156 |
einfo " * unix sockets (using this is highly recommended)" |
157 |
einfo " * logging to syslog" |
158 |
einfo " * VM aka redis' own swap mechanism" |
159 |
} |