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