Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/redis: ChangeLog redis-2.4.18.ebuild redis-2.6.7.ebuild
Date: Wed, 26 Dec 2012 11:15:57
Message-Id: 20121226111546.778792171E@flycatcher.gentoo.org
1 djc 12/12/26 11:15:46
2
3 Modified: ChangeLog redis-2.4.18.ebuild
4 Added: redis-2.6.7.ebuild
5 Log:
6 Version bump redis to 2.6.7 (bug 439354), fix up 2.4.18 patch name.
7
8 (Portage version: 2.1.11.27/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)
9
10 Revision Changes Path
11 1.55 dev-db/redis/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.55&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?rev=1.55&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/ChangeLog?r1=1.54&r2=1.55
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v
20 retrieving revision 1.54
21 retrieving revision 1.55
22 diff -u -r1.54 -r1.55
23 --- ChangeLog 26 Dec 2012 11:05:46 -0000 1.54
24 +++ ChangeLog 26 Dec 2012 11:15:46 -0000 1.55
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-db/redis
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.54 2012/12/26 11:05:46 djc Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/ChangeLog,v 1.55 2012/12/26 11:15:46 djc Exp $
30 +
31 +*redis-2.6.7 (26 Dec 2012)
32 +
33 + 26 Dec 2012; Dirkjan Ochtman <djc@g.o> redis-2.4.18.ebuild,
34 + +redis-2.6.7.ebuild, +files/redis-2.6.7-config.patch,
35 + +files/redis-2.6.7-shared.patch:
36 + Version bump to 2.6.7 (bug 439354), fix up 2.4.18 patch name.
37
38 *redis-2.4.18 (26 Dec 2012)
39
40
41
42
43 1.2 dev-db/redis/redis-2.4.18.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.4.18.ebuild?rev=1.2&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.4.18.ebuild?rev=1.2&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.4.18.ebuild?r1=1.1&r2=1.2
48
49 Index: redis-2.4.18.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.4.18.ebuild,v
52 retrieving revision 1.1
53 retrieving revision 1.2
54 diff -u -r1.1 -r1.2
55 --- redis-2.4.18.ebuild 26 Dec 2012 11:05:46 -0000 1.1
56 +++ redis-2.4.18.ebuild 26 Dec 2012 11:15:46 -0000 1.2
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2012 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.4.18.ebuild,v 1.1 2012/12/26 11:05:46 djc Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.4.18.ebuild,v 1.2 2012/12/26 11:15:46 djc Exp $
62
63 EAPI="4"
64
65 @@ -37,7 +37,7 @@
66 }
67
68 src_prepare() {
69 - epatch "${FILESDIR}/${P}-shared.patch"
70 + epatch "${FILESDIR}/redis-2.4.17-shared.patch"
71 epatch "${FILESDIR}/redis-2.4.4-tcmalloc.patch"
72
73 # now we will rewrite present Makefiles
74
75
76
77 1.1 dev-db/redis/redis-2.6.7.ebuild
78
79 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.6.7.ebuild?rev=1.1&view=markup
80 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/redis-2.6.7.ebuild?rev=1.1&content-type=text/plain
81
82 Index: redis-2.6.7.ebuild
83 ===================================================================
84 # Copyright 1999-2012 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86 # $Header: /var/cvsroot/gentoo-x86/dev-db/redis/redis-2.6.7.ebuild,v 1.1 2012/12/26 11:15:46 djc Exp $
87
88 EAPI=4
89
90 inherit autotools eutils flag-o-matic user
91
92 DESCRIPTION="A persistent caching system, key-value and data structures database."
93 HOMEPAGE="http://redis.io/"
94 SRC_URI="http://redis.googlecode.com/files/${P}.tar.gz"
95
96 LICENSE="BSD"
97 KEYWORDS="~amd64 ~x86 ~x86-macos ~x86-solaris"
98 IUSE="+jemalloc tcmalloc test"
99 SLOT="0"
100
101 RDEPEND="tcmalloc? ( dev-util/google-perftools )
102 jemalloc? ( >=dev-libs/jemalloc-3.2 )"
103 DEPEND=">=sys-devel/autoconf-2.63
104 test? ( dev-lang/tcl )
105 ${RDEPEND}"
106 REQUIRED_USE="tcmalloc? ( !jemalloc )
107 jemalloc? ( !tcmalloc )"
108
109 S="${WORKDIR}/${PN}-${PV/_/-}"
110
111 pkg_setup() {
112 enewgroup redis 75
113 enewuser redis 75 -1 /var/lib/redis redis
114 }
115
116 src_prepare() {
117 epatch "${FILESDIR}/${P}"-{shared,config}.patch
118 # now we will rewrite present Makefiles
119 local makefiles=""
120 for MKF in $(find -name 'Makefile' | cut -b 3-); do
121 mv "${MKF}" "${MKF}.in"
122 sed -i -e 's:$(CC):@CC@:g' \
123 -e 's:$(CFLAGS):@AM_CFLAGS@:g' \
124 -e 's: $(DEBUG)::g' \
125 -e 's:$(OBJARCH)::g' \
126 -e 's:ARCH:TARCH:g' \
127 -e '/^CCOPT=/s:$: $(LDFLAGS):g' \
128 "${MKF}.in" \
129 || die "Sed failed for ${MKF}"
130 makefiles+=" ${MKF}"
131 done
132 # autodetection of compiler and settings; generates the modified Makefiles
133 cp "${FILESDIR}"/configure.ac-2.2 configure.ac
134 sed -i -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
135 configure.ac || die "Sed failed for configure.ac"
136 eautoconf
137 }
138
139 src_compile() {
140 local myconf=""
141
142 if use tcmalloc ; then
143 myconf="${myconf} USE_TCMALLOC=yes"
144 elif use jemalloc ; then
145 myconf="${myconf} JEMALLOC_SHARED=yes"
146 else
147 myconf="${myconf} MALLOC=yes"
148 fi
149
150 emake ${myconf}
151 }
152
153 src_install() {
154 insinto /etc/
155 doins redis.conf sentinel.conf
156 use prefix || fowners redis:redis /etc/{redis,sentinel}.conf
157 fperms 0644 /etc/{redis,sentinel}.conf
158
159 newconfd "${FILESDIR}/redis.confd" redis
160 newinitd "${FILESDIR}/redis.initd" redis
161
162 nonfatal dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README
163
164 dobin src/redis-cli
165 dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-dump
166 fperms 0750 /usr/sbin/redis-benchmark
167 dosym /usr/sbin/redis-server /usr/sbin/redis-sentinel
168
169 if use prefix; then
170 diropts -m0750
171 else
172 diropts -m0750 -o redis -g redis
173 fi
174 keepdir /var/{log,lib}/redis
175 }