Update to 2.8.13
This commit is contained in:
parent
fef61ff500
commit
0e8a54a517
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@
|
|||||||
/redis-2.6.16.tar.gz
|
/redis-2.6.16.tar.gz
|
||||||
/redis-2.8.11.tar.gz
|
/redis-2.8.11.tar.gz
|
||||||
/redis-2.8.12.tar.gz
|
/redis-2.8.12.tar.gz
|
||||||
|
/redis-2.8.13.tar.gz
|
||||||
|
@ -26,7 +26,7 @@ start() {
|
|||||||
touch $PIDFILE
|
touch $PIDFILE
|
||||||
chown redis:redis $RUNDIR $PIDFILE
|
chown redis:redis $RUNDIR $PIDFILE
|
||||||
chmod 750 $RUNDIR
|
chmod 750 $RUNDIR
|
||||||
daemon --user ${REDIS_USER-redis} --pidfile=$PIDFILE "$EXEC $SENTINEL_CONFIG --sentinel"
|
daemon --user ${REDIS_USER-redis} --pidfile=$PIDFILE "$EXEC $SENTINEL_CONFIG"
|
||||||
retval=$?
|
retval=$?
|
||||||
echo
|
echo
|
||||||
[ $retval -eq 0 ] && touch $lockfile
|
[ $retval -eq 0 ] && touch $lockfile
|
||||||
|
@ -4,7 +4,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=/usr/bin/mkdir -p /var/lib/redis
|
ExecStartPre=/usr/bin/mkdir -p /var/lib/redis
|
||||||
ExecStart=/usr/sbin/redis-sentinel /etc/sentinel.conf
|
ExecStart=/usr/bin/redis-sentinel /etc/sentinel.conf
|
||||||
ExecStop=/usr/bin/redis-cli shutdown
|
ExecStop=/usr/bin/redis-cli shutdown
|
||||||
User=redis
|
User=redis
|
||||||
Group=redis
|
Group=redis
|
||||||
|
@ -4,7 +4,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=/usr/bin/mkdir -p /var/lib/redis
|
ExecStartPre=/usr/bin/mkdir -p /var/lib/redis
|
||||||
ExecStart=/usr/sbin/redis-server /etc/redis.conf
|
ExecStart=/usr/bin/redis-server /etc/redis.conf
|
||||||
ExecStop=/usr/bin/redis-cli shutdown
|
ExecStop=/usr/bin/redis-cli shutdown
|
||||||
User=redis
|
User=redis
|
||||||
Group=redis
|
Group=redis
|
||||||
|
18
redis.spec
18
redis.spec
@ -3,7 +3,9 @@
|
|||||||
%global with_perftools 0
|
%global with_perftools 0
|
||||||
|
|
||||||
# Prior to redis 2.8 sentinel didn't work correctly.
|
# Prior to redis 2.8 sentinel didn't work correctly.
|
||||||
|
%if 0%{?fedora} >= 21 || 0%{?el} >= 7
|
||||||
%global with_sentinel 1
|
%global with_sentinel 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} >= 15 || 0%{?el} >= 7
|
%if 0%{?fedora} >= 15 || 0%{?el} >= 7
|
||||||
%global with_systemd 1
|
%global with_systemd 1
|
||||||
@ -19,7 +21,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: redis
|
Name: redis
|
||||||
Version: 2.8.12
|
Version: 2.8.13
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A persistent caching system, key-value and data structures database
|
Summary: A persistent caching system, key-value and data structures database
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -91,8 +93,7 @@ You can use Redis from most programming languages also.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
rm -rvf deps/jemalloc
|
rm -frv deps/jemalloc
|
||||||
|
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
@ -113,7 +114,7 @@ sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/linenoise/Makefile
|
|||||||
sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/linenoise/Makefile
|
sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/linenoise/Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} \
|
%make_build \
|
||||||
DEBUG="" \
|
DEBUG="" \
|
||||||
LDFLAGS="%{?__global_ldflags}" \
|
LDFLAGS="%{?__global_ldflags}" \
|
||||||
CFLAGS+="%{optflags}" \
|
CFLAGS+="%{optflags}" \
|
||||||
@ -184,7 +185,9 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
%systemd_post %{name}-server.service
|
%systemd_post %{name}-server.service
|
||||||
%else
|
%else
|
||||||
|
%if 0%{?with_sentinel}
|
||||||
chkconfig --add %{name}-sentinel
|
chkconfig --add %{name}-sentinel
|
||||||
|
%endif
|
||||||
chkconfig --add %{name}-server
|
chkconfig --add %{name}-server
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -196,8 +199,10 @@ chkconfig --add %{name}-server
|
|||||||
%systemd_preun %{name}-server.service
|
%systemd_preun %{name}-server.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
|
%if 0%{?with_sentinel}
|
||||||
service %{name}-sentinel stop &> /dev/null
|
service %{name}-sentinel stop &> /dev/null
|
||||||
chkconfig --del %{name}-sentinel &> /dev/null
|
chkconfig --del %{name}-sentinel &> /dev/null
|
||||||
|
%endif
|
||||||
service %{name}-server stop &> /dev/null
|
service %{name}-server stop &> /dev/null
|
||||||
chkconfig --del %{name}-server &> /dev/null
|
chkconfig --del %{name}-server &> /dev/null
|
||||||
%endif
|
%endif
|
||||||
@ -210,7 +215,9 @@ chkconfig --del %{name}-server &> /dev/null
|
|||||||
%systemd_postun_with_restart %{name}-server.service
|
%systemd_postun_with_restart %{name}-server.service
|
||||||
%else
|
%else
|
||||||
if [ "$1" -ge "1" ] ; then
|
if [ "$1" -ge "1" ] ; then
|
||||||
|
%if 0%{?with_sentinel}
|
||||||
service %{name}-sentinel condrestart >/dev/null 2>&1 || :
|
service %{name}-sentinel condrestart >/dev/null 2>&1 || :
|
||||||
|
%endif
|
||||||
service %{name}-server condrestart >/dev/null 2>&1 || :
|
service %{name}-server condrestart >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
@ -240,6 +247,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 16 2014 Christopher Meng <rpm@cicku.me> - 2.8.13-1
|
||||||
|
- Update to 2.8.13
|
||||||
|
|
||||||
* Tue Jun 24 2014 Christopher Meng <rpm@cicku.me> - 2.8.12-1
|
* Tue Jun 24 2014 Christopher Meng <rpm@cicku.me> - 2.8.12-1
|
||||||
- Update to 2.8.12
|
- Update to 2.8.12
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user