osc copypac from project:server:database package:regis revision:2
OBS-URL: https://build.opensuse.org/package/show/server:database/redis?expand=0&rev=1
This commit is contained in:
commit
3e98c939bf
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
3
redis-1.2.2.tar.gz
Normal file
3
redis-1.2.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c7a22e92f6f842fee5897415572860a8151f31506befdc4b94565f9ed58e7ece
|
||||||
|
size 203705
|
32
redis-initscript.patch
Normal file
32
redis-initscript.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
Index: utils/redis_init_script
|
||||||
|
===================================================================
|
||||||
|
--- utils/redis_init_script.orig
|
||||||
|
+++ utils/redis_init_script
|
||||||
|
@@ -1,7 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
+### BEGIN INIT INFO
|
||||||
|
+# Provides: redis
|
||||||
|
+# Required-Start: $syslog $remote_fs
|
||||||
|
+# Should-Start:
|
||||||
|
+# Required-Stop: $syslog $remote_fs
|
||||||
|
+# Should-Stop:
|
||||||
|
+# Default-Start: 3 5
|
||||||
|
+# Default-Stop: 0 1 2 6
|
||||||
|
+# Short-Description: Redis server
|
||||||
|
+# Description: Starts the Redis server
|
||||||
|
+### END INIT INFO
|
||||||
|
|
||||||
|
REDISPORT=6379
|
||||||
|
-EXEC=/usr/local/bin/redis-server
|
||||||
|
+EXEC=/usr/sbin/redis-server
|
||||||
|
|
||||||
|
PIDFILE=/var/run/redis_${REDISPORT}.pid
|
||||||
|
CONF="/etc/redis/${REDISPORT}.conf"
|
||||||
|
@@ -33,4 +44,7 @@ case "$1" in
|
||||||
|
echo "Redis stopped"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
+ *)
|
||||||
|
+ echo "Usage: rcredis [start|stop]"
|
||||||
|
+ ;;
|
||||||
|
esac
|
5
redis.changes
Normal file
5
redis.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 21 16:32:45 UTC 2010 - prusnak@suse.cz
|
||||||
|
|
||||||
|
- created package
|
||||||
|
|
69
redis.spec
Normal file
69
redis.spec
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
#
|
||||||
|
# spec file for package __PACKAGE__
|
||||||
|
#
|
||||||
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
#
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: redis
|
||||||
|
Version: 1.2.2
|
||||||
|
Release: 1
|
||||||
|
Url: http://code.google.com/p/redis/
|
||||||
|
License: BSD License
|
||||||
|
Group: Productivity/Databases/Servers
|
||||||
|
Summary: Persistent key-value database with built-in net interface
|
||||||
|
Source: http://redis.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: %{name}-initscript.patch
|
||||||
|
# for init script
|
||||||
|
Requires: netcat-openbsd
|
||||||
|
|
||||||
|
%description
|
||||||
|
Redis is an advanced key-value store. It is similar to memcached but the dataset
|
||||||
|
is not volatile, and values can be strings, exactly like in memcached,
|
||||||
|
but also lists, sets, and ordered sets. All this data types can be manipulated
|
||||||
|
with atomic operations to push/pop elements, add/remove elements, perform server
|
||||||
|
side union, intersection, difference between sets, and so forth. Redis supports
|
||||||
|
different kind of sorting abilities.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0
|
||||||
|
mv doc html
|
||||||
|
|
||||||
|
%build
|
||||||
|
make %{?jobs:-j%jobs}
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -D -m 0755 redis-benchmark $RPM_BUILD_ROOT%{_bindir}/redis-benchmark
|
||||||
|
install -D -m 0755 redis-cli $RPM_BUILD_ROOT%{_bindir}/redis-cli
|
||||||
|
install -D -m 0755 redis-server $RPM_BUILD_ROOT%{_sbindir}/redis-server
|
||||||
|
install -D -m 0755 utils/redis_init_script $RPM_BUILD_ROOT%{_sysconfdir}/init.d/redis
|
||||||
|
ln -s %{_sysconfdir}/init.d/redis $RPM_BUILD_ROOT%{_sbindir}/rcredis
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/redis
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc 00-RELEASENOTES BETATESTING.txt BUGS COPYING Changelog README TODO html
|
||||||
|
%{_bindir}/redis-benchmark
|
||||||
|
%{_bindir}/redis-cli
|
||||||
|
%{_sbindir}/redis-server
|
||||||
|
%{_sbindir}/rcredis
|
||||||
|
%{_sysconfdir}/init.d/redis
|
||||||
|
%dir %{_sysconfdir}/redis
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user