From 0c0f0b3483f3ea471b51a25126785e303a4cf105 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 7 Sep 2024 21:06:15 +1000 Subject: [PATCH] initial commit of file from CVS for smeserver-supervisor on Sat Sep 7 21:06:15 AEST 2024 --- .gitignore | 4 +++ Makefile | 21 ++++++++++++++ README.md | 16 +++++++++-- contriborbase | 1 + createlinks | 22 ++++++++++++++ smeserver-supervisor.spec | 60 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 122 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 createlinks create mode 100644 smeserver-supervisor.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..fc5300c --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-supervisor +# $Id: Makefile,v 1.1 2022/06/24 00:47:34 jpp Exp $ +NAME := smeserver-supervisor +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 77c713c..3f67b8c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-supervisor +# smeserver-supervisor -SMEServer Koozali developed git repo for smeserver-supervisor smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-supervisor smecontribs + +## Wiki +
https://wiki.koozali.org/Supervisor + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-supervisor&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..a5f7cc2 --- /dev/null +++ b/createlinks @@ -0,0 +1,22 @@ +#!/usr/bin/perl +use strict; +use esmith::Build::CreateLinks qw(:all); + +my $pkg= "smeserver-supervisor"; +my $event = "${pkg}-update"; + +event_actions($event, qw( + systemd-default 88 + systemd-reload 89 +)); + +#event_templates($event, qw( +#)); + +event_services($event, qw( + supervisord restart +)); + +#use esmith::Build::Backup qw(:all); +#backup_includes($pkg, qw( )); + diff --git a/smeserver-supervisor.spec b/smeserver-supervisor.spec new file mode 100644 index 0000000..3540f23 --- /dev/null +++ b/smeserver-supervisor.spec @@ -0,0 +1,60 @@ + +Name: smeserver-supervisor +Version: 1.0.0 +Release: 2%{?dist} +Summary: Koozali SME Server integration of supevisord +License: GPL +URL: http://supervisord.org/ +#Source0: %{name}-%{version}.tar.gz +Source: createlinks +BuildArch: noarch +BuildRequires: e-smith-devtools +Requires: supervisor + +%description +Koozali SME Server integration of supervisord +The supervisor is a client/server system that allows its users to control a +number of processes on UNIX-like operating systems. +licence ZPLv2.1 and BSD and MIT + +%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/supervisord.service.d/ +printf "[Install] +WantedBy=sme-server.target" > root/usr/lib/systemd/system/supervisord.service.d/50-koozali.conf +mkdir -p root/etc/e-smith/db/configuration/defaults/supervisord +echo "enabled" > root/etc/e-smith/db/configuration/defaults/supervisord/status +echo "service" > root/etc/e-smith/db/configuration/defaults/supervisord/type + +%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.0.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.0.0-1.sme +- initial Koozali SME 10 version + +