Update to redis 2.4.8
This commit is contained in:
parent
1d7bf05376
commit
2c08c76788
|
@ -1 +1,2 @@
|
|||
/redis-2.0.3.tar.gz
|
||||
/redis-2.4.8.tar.gz
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
diff -up redis-2.0.0/redis.conf.orig redis-2.0.0/redis.conf
|
||||
--- redis-2.0.0/redis.conf.orig 2010-09-04 15:59:16.599206633 -0400
|
||||
+++ redis-2.0.0/redis.conf 2010-09-04 16:01:59.234209087 -0400
|
||||
diff -up redis-2.4.8/redis.conf.orig redis-2.4.8/redis.conf
|
||||
--- redis-2.4.8/redis.conf.orig 2012-02-24 21:59:55.606998781 -0500
|
||||
+++ redis-2.4.8/redis.conf 2012-02-24 22:02:32.598539907 -0500
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
# By default Redis does not run as a daemon. Use 'yes' if you need it.
|
||||
|
@ -13,18 +13,18 @@ diff -up redis-2.0.0/redis.conf.orig redis-2.0.0/redis.conf
|
|||
-pidfile /var/run/redis.pid
|
||||
+pidfile /var/run/redis/redis.pid
|
||||
|
||||
# Accept connections on the specified port, default is 6379
|
||||
port 6379
|
||||
@@ -26,7 +26,7 @@ port 6379
|
||||
# Accept connections on the specified port, default is 6379.
|
||||
# If port 0 is specified Redis will not listen on a TCP socket.
|
||||
@@ -27,7 +27,7 @@ port 6379
|
||||
# If you want you can bind a single interface, if the bind option is not
|
||||
# specified all the interfaces will listen for incoming connections.
|
||||
#
|
||||
-# bind 127.0.0.1
|
||||
+bind 127.0.0.1
|
||||
|
||||
# Close the connection after a client is idle for N seconds (0 to disable)
|
||||
timeout 300
|
||||
@@ -37,12 +37,12 @@ timeout 300
|
||||
# Specify the path for the unix socket that will be used to listen for
|
||||
# incoming connections. There is no default, so Redis will not listen
|
||||
@@ -45,12 +45,12 @@ timeout 0
|
||||
# verbose (many rarely useful info, but not a mess like the debug level)
|
||||
# notice (moderately verbose, what you want in production probably)
|
||||
# warning (only very important / critical messages are logged)
|
||||
|
@ -37,9 +37,9 @@ diff -up redis-2.0.0/redis.conf.orig redis-2.0.0/redis.conf
|
|||
-logfile stdout
|
||||
+logfile /var/log/redis/redis.log
|
||||
|
||||
# Set the number of databases. The default database is DB 0, you can select
|
||||
# a different one on a per-connection basis using SELECT <dbid> where
|
||||
@@ -86,7 +86,7 @@ dbfilename dump.rdb
|
||||
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
|
||||
# and optionally update the other syslog parameters to suit your needs.
|
||||
@@ -104,7 +104,7 @@ dbfilename dump.rdb
|
||||
# Also the Append Only File will be created inside this directory.
|
||||
#
|
||||
# Note that you must specify a directory here, not a file name.
|
47
redis.spec
47
redis.spec
|
@ -2,23 +2,21 @@
|
|||
# http://code.google.com/p/redis/issues/detail?id=202
|
||||
|
||||
Name: redis
|
||||
Version: 2.0.3
|
||||
Release: 2%{?dist}
|
||||
Version: 2.4.8
|
||||
Release: 1%{?dist}
|
||||
Summary: A persistent key-value database
|
||||
|
||||
Group: Applications/Databases
|
||||
License: BSD
|
||||
URL: http://code.google.com/p/redis/
|
||||
URL: http://redis.io
|
||||
Source0: http://redis.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.logrotate
|
||||
Source2: %{name}.init
|
||||
# Update configuration for Fedora
|
||||
Patch0: %{name}-2.0.0-redis.conf.patch
|
||||
# Update configuration
|
||||
Patch0: %{name}-2.4.8-redis.conf.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%if !0%{?el5}
|
||||
BuildRequires: tcl >= 8.5
|
||||
%endif
|
||||
ExcludeArch: ppc64
|
||||
|
||||
Requires: logrotate
|
||||
Requires(post): chkconfig
|
||||
|
@ -38,26 +36,17 @@ different kind of sorting abilities.
|
|||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
# Remove integration tests
|
||||
sed -i '/ execute_tests "integration\/replication"/d' tests/test_helper.tcl
|
||||
sed -i '/ execute_tests "integration\/aof"/d' tests/test_helper.tcl
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} DEBUG="" CFLAGS='%{optflags} -std=c99' all
|
||||
|
||||
%check
|
||||
%if !0%{?el5}
|
||||
tclsh tests/test_helper.tcl
|
||||
%endif
|
||||
make %{?_smp_mflags} \
|
||||
DEBUG='' \
|
||||
CFLAGS='%{optflags}' \
|
||||
V=1 \
|
||||
all
|
||||
|
||||
%install
|
||||
rm -fr %{buildroot}
|
||||
# Install binaries
|
||||
install -p -D -m 755 %{name}-benchmark %{buildroot}%{_bindir}/%{name}-benchmark
|
||||
install -p -D -m 755 %{name}-cli %{buildroot}%{_bindir}/%{name}-cli
|
||||
install -p -D -m 755 %{name}-check-aof %{buildroot}%{_bindir}/%{name}-check-aof
|
||||
install -p -D -m 755 %{name}-check-dump %{buildroot}%{_bindir}/%{name}-check-dump
|
||||
install -p -D -m 755 %{name}-server %{buildroot}%{_sbindir}/%{name}-server
|
||||
make install PREFIX=%{buildroot}%{_prefix}
|
||||
# Install misc other
|
||||
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||
install -p -D -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
|
||||
|
@ -66,6 +55,13 @@ install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
|
|||
install -d -m 755 %{buildroot}%{_localstatedir}/log/%{name}
|
||||
install -d -m 755 %{buildroot}%{_localstatedir}/run/%{name}
|
||||
|
||||
# Fix non-standard-executable-perm error
|
||||
chmod 755 %{buildroot}%{_bindir}/%{name}-*
|
||||
|
||||
# Ensure redis-server location doesn't change
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
mv %{buildroot}%{_bindir}/%{name}-server %{buildroot}%{_sbindir}/%{name}-server
|
||||
|
||||
%clean
|
||||
rm -fr %{buildroot}
|
||||
|
||||
|
@ -87,7 +83,7 @@ fi
|
|||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc 00-RELEASENOTES BUGS COPYING Changelog README TODO doc/
|
||||
%doc 00-RELEASENOTES BUGS CONTRIBUTING COPYING README TODO
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||
%dir %attr(0755, redis, root) %{_localstatedir}/lib/%{name}
|
||||
|
@ -98,6 +94,9 @@ fi
|
|||
%{_initrddir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Feb 24 2012 Silas Sewell <silas@sewell.org> - 2.4.8-1
|
||||
- Update to redis 2.4.8
|
||||
|
||||
* Tue Nov 02 2010 Silas Sewell <silas@sewell.ch> - 2.0.3-2
|
||||
- Use legacy macro for redis home directory in el5
|
||||
|
||||
|
|
Loading…
Reference in New Issue