package created using the webbuild interface [release 2.8.9-1mamba;Sun Jun 01 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 17:24:01 +01:00
parent f2f60b4eef
commit 5cbc6e0f6e
3 changed files with 92 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# redis
Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

13
redis.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Redis Server
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/redis-server /etc/redis.conf
ExecStop=/bin/kill -15 $MAINPID
PIDFile=/var/run/redis.pid
Restart=always
[Install]
WantedBy=multi-user.target

77
redis.spec Normal file
View File

@ -0,0 +1,77 @@
Name: redis
Version: 2.8.9
Release: 1mamba
Summary: An open source, BSD licensed, advanced key-value store
Group: System/Database
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://redis.io/
Source: http://download.redis.io/releases/redis-%{version}.tar.gz
Source1: redis.service
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
%debug_package
%prep
%setup -q
%build
%make
#make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall PREFIX=%{buildroot}%{_prefix}
install -D -m0644 redis.conf %{buildroot}%{_sysconfdir}/redis.conf
install -D -m0644 sentinel.conf %{buildroot}%{_sysconfdir}/sentinel.conf
install -D -m0644 %{SOURCE1} %{buildroot}/lib/systemd/system/redis.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
systemctl -q enable redis
systemctl -q restart redis
fi
:
%preun
if [ $1 -eq 0 ]; then
systemctl -q stop redis
systemctl -q disable redis
fi
:
%postun
if [ $1 -eq 0 ]; then
systemctl -q daemon-reload
fi
:
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/redis.conf
%config(noreplace) %{_sysconfdir}/sentinel.conf
%{_bindir}/redis-benchmark
%{_bindir}/redis-check-aof
%{_bindir}/redis-check-dump
%{_bindir}/redis-cli
%{_bindir}/redis-server
/lib/systemd/system/redis.service
%doc COPYING
%changelog
* Sun Jun 01 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.9-1mamba
- package created using the webbuild interface