From e70b28ee3512a08775dcfb7b599775e26cf89ba8 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 7 Sep 2024 21:00:19 +1000 Subject: [PATCH] initial commit of file from CVS for smeserver-redis on Sat Sep 7 21:00:19 AEST 2024 --- .gitignore | 4 +++ Makefile | 21 ++++++++++++++ README.md | 16 ++++++++-- contriborbase | 1 + createlinks | 22 ++++++++++++++ smeserver-redis.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 createlinks create mode 100644 smeserver-redis.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3503b2b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.createlinks diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2fe32bd --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-redis +# $Id: Makefile,v 1.1 2022/06/24 03:43:39 jpp Exp $ +NAME := smeserver-redis +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 4b2f02c..d466006 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-redis +# smeserver-redis -SMEServer Koozali developed git repo for smeserver-redis smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-redis smecontribs + +## Wiki +
https://wiki.koozali.org/Redis + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-redis&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..ede4190 --- /dev/null +++ b/createlinks @@ -0,0 +1,22 @@ +#!/usr/bin/perl +use strict; +use esmith::Build::CreateLinks qw(:all); + +my $pkg= "smeserver-redis"; +my $event = "${pkg}-update"; + +event_actions($event, qw( + systemd-default 88 + systemd-reload 89 +)); + +#event_templates($event, qw( +#)); + +event_services($event, qw( + redis restart +)); + +#use esmith::Build::Backup qw(:all); +#backup_includes($pkg, qw( )); + diff --git a/smeserver-redis.spec b/smeserver-redis.spec new file mode 100644 index 0000000..43207b9 --- /dev/null +++ b/smeserver-redis.spec @@ -0,0 +1,69 @@ + +Name: smeserver-redis +Version: 1.2.0 +Release: 2%{?dist} +Summary: Koozali SME Server integration of Redis +License: GPL +URL: http://supervisord.org/ +#Source0: %{name}-%{version}.tar.gz +Source: createlinks +BuildArch: noarch +BuildRequires: e-smith-devtools +Requires: redis + +%description +Koozali SME Server integration of Redis +Redis is an in-memory data structure store, used as a distributed, +in-memory key–value database, cache and message broker, with optional durability. +Redis supports different kinds of abstract data structures, such as strings, +lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indices. +License: BSD 3-clause + +%prep +%setup -c -n %{name}-%{version} -T +mkdir -p root +cp %SOURCE0 . + +%build +#cd %{name}-%{version} +perl createlinks + +# could be an archive +mkdir -p root/usr/lib/systemd/system/redis.service.d/ +printf "[Install] +WantedBy=sme-server.target" > root/usr/lib/systemd/system/redis.service.d/50-koozali.conf +mkdir -p root/etc/e-smith/db/configuration/defaults/redis +echo "enabled" > root/etc/e-smith/db/configuration/defaults/redis/status +echo "service" > root/etc/e-smith/db/configuration/defaults/redis/type +echo "6379" > root/etc/e-smith/db/configuration/defaults/redis/TCPPPort +echo "private" > root/etc/e-smith/db/configuration/defaults/redis/access + +%install +rm -rf %{buildroot} +(cd root ; find . -depth -print | cpio -dump %{buildroot}) +/sbin/e-smith/genfilelist %{buildroot} > %{name}-%{version}-%{release}-filelist + + + +%files -f %{name}-%{version}-%{release}-filelist +%defattr(-,root,root) + + + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 1.2.0-2.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Thu Jun 23 2022 Jean-Philippe Pialasse 1.2.0-1.sme +- initial Koozali SME 10 version + +* Thu Jul 07 2016 Stefano Fancello - 1.1.0-1 +- First NS7 release + +* Wed Jul 31 2013 Giacomo Sanchietti - 1.0.0-1.ns6 +- First release #2090 +