From b93946762023acd4cc15a288c801400a834cde0d Mon Sep 17 00:00:00 2001 From: Brian Read Date: Wed, 12 Jul 2023 08:47:56 +0100 Subject: [PATCH] initial commit of file from CVS for e-smith on Wed 12 Jul 08:47:56 BST 2023 --- .gitattributes | 1 + .gitignore | 3 + Makefile | 21 +++++++ README.md | 10 +++- contriborbase | 1 + e-smith-5.6.0.tar.xz | 3 + e-smith.spec | 140 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 e-smith-5.6.0.tar.xz create mode 100644 e-smith.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1177240 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.xz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e28fd6b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: e-smith +# $Id: Makefile,v 1.1 2016/02/04 18:26:20 vip-ire Exp $ +NAME := e-smith +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 3f83ec5..c6ce355 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # e-smith -3rd Party (Maintained by Koozali) git repo for e-smith smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for e-smith smeserver + +## 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* +
+ +e-smith is a Linux-based server operating system developed by e-smith, Inc. It includes a web-based management console for server administration, as well as tools for network and system management. e-smith provides an easy to use, secure, and reliable platform for hosting web sites, email services, file storage, and more. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/e-smith-5.6.0.tar.xz b/e-smith-5.6.0.tar.xz new file mode 100644 index 0000000..5784f7e --- /dev/null +++ b/e-smith-5.6.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:269babaa90e2fe90d91a6a09148b2a08585a8c3f3c2b57066a481f430d42272d +size 6648 diff --git a/e-smith.spec b/e-smith.spec new file mode 100644 index 0000000..e0fc210 --- /dev/null +++ b/e-smith.spec @@ -0,0 +1,140 @@ +# $Id: e-smith.spec,v 1.1 2016/02/04 18:26:20 vip-ire Exp $ + +Summary: e-smith server and gateway +Name: e-smith +%define version 5.6.0 +%define release 1 +Version: %{version} +Release: %{release}%{?dist} +License: GPL +Group: Networking/Daemons +Source: %{name}-%{version}.tar.xz +BuildArch: noarch +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +Requires(pre): /usr/sbin/useradd +AutoReqProv: no + +%changelog +* Wed Jul 12 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Thu Feb 4 2016 Daniel Berteaud - 5.6.0-1.sme +- Roll new stream for sme10 + +* Sun May 19 2013 Ian Wells 5.4.0-5.sme +- Update the full names of users added in %pre [SME: 3550] + +* Sun May 05 2013 Ian Wells 5.4.0-4.sme +- Fix uid and gid to be the same for the users added in %pre [SME: 7547] +- Changed Prereq to Requires(pre) as Prereq is deprecated + +* Sat Mar 9 2013 Shad L. Lords 5.4.0-3.sme +- Ensure group www exists before user [SME: 7319] + +* Wed Mar 6 2013 Shad L. Lords 5.4.0-2.sme +- Fix pre script to make www and apache the same [SME: 7319] + +* Fri Jan 25 2013 Shad L. Lords 5.4.0-1.sme +- Roll new stream for sme9 + +* Tue Oct 7 2008 Shad L. Lords 5.2.0-1.sme +- Roll new stream to separate sme7/sme8 trees [SME: 4633] + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Wed Nov 30 2005 Gordon Rowell 4.2.0-08 +- Bump release number only + +* Fri Jan 14 2005 Charlie Brady 4.2.0-07 +- Re-add user and group creation. [MN00063589] + +* Fri Aug 17 2001 gordonr +- [4.2.0-06] +- Autorebuild by rebuildRPM + +* Fri Jul 27 2001 Charlie Brady +- [4.2.0-05] +- Put defattr directive in the right spot. + +* Fri Jul 6 2001 Peter Samuel +- [4.2.0-04] +- Including GPL license with package + +* Fri May 04 2001 Jason Miller +- [4.2.0-03] +- Commenting out the harmful 'useradd' part of %pre section + +* Thu Feb 8 2001 Adrian Chung +- [4.2.0-02] +- Rolling release number for GPG signing. + +* Thu Jan 25 2001 Peter Samuel +- [4.2.0-01] +- Rolled version to 4.2.0 to indicate a stable release. Includes patches + upto 4.1.0-1 + +* Wed Dec 6 2000 Adrian Chung +- Branched for 4.1 release to 4.1.0 + +* Mon Oct 16 2000 Charlie Brady +- Need to add www user before trying to add admin user to + group www. + +* Mon Oct 16 2000 Charlie Brady +- Add %pre clause to add admin, www etc. + +%description +e-smith server and gateway software. This is an empty +RPM provided so that upgrading e-smith 3.x -> e-smith 4.x +can work. Contents are now included in e-smith-base RPM. + +%prep +%setup + +%build + +%pre +#-------------------------------------------------- +# add admin, public and www user accounts +#-------------------------------------------------- +/usr/sbin/groupadd \ + -g 500 shared 2>/dev/null || : +/usr/sbin/groupadd \ + -g 102 -o www 2>/dev/null || : +/usr/sbin/useradd \ + -u 102 -g 102 -o -c 'SME Server web server' -d /home/e-smith \ + -G shared -M -s /bin/false www || : +/usr/sbin/groupadd \ + -g 102 -o apache 2>/dev/null || : +/usr/sbin/useradd \ + -u 102 -g 102 -o -c 'Apache' -d /var/www \ + -M -s /sbin/nologin apache || : +/usr/sbin/groupadd \ + -g 101 -o admin 2>/dev/null || : +/usr/sbin/useradd \ + -u 101 -g 101 -c 'SME Server administrator' -d /home/e-smith \ + -G shared,root,www -M -s /sbin/e-smith/console admin || : +/usr/sbin/groupadd \ + -g 103 -o public 2>/dev/null || : +/usr/sbin/useradd \ + -u 103 -g 103 -c 'SME Server guest' -d /home/e-smith \ + -G shared -M -s /bin/false public || : +/usr/sbin/groupadd \ + -g 1002 -o smelog 2>/dev/null || : +/usr/sbin/useradd \ + -u 1002 -g 1002 -c 'SME Server log user' -d /var/log/smelog \ + -M -s /bin/false smelog || : + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc COPYING