From 5cbc6e0f6e16087469f2ddca4d27ec3b52cc20b1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:24:01 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.8.9-1mamba;Sun Jun 01 2014] --- README.md | 2 ++ redis.service | 13 +++++++++ redis.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 redis.service create mode 100644 redis.spec diff --git a/README.md b/README.md index 330bd39..14033df 100644 --- a/README.md +++ b/README.md @@ -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. + diff --git a/redis.service b/redis.service new file mode 100644 index 0000000..108e71f --- /dev/null +++ b/redis.service @@ -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 diff --git a/redis.spec b/redis.spec new file mode 100644 index 0000000..338df86 --- /dev/null +++ b/redis.spec @@ -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 +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 2.8.9-1mamba +- package created using the webbuild interface