diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9dd8602 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cc3bdc2 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-migratehelper +# $Id: Makefile,v 1.1 2020/12/19 21:27:07 brianr Exp $ +NAME := smeserver-migratehelper +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 107467b..6956815 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ -# smeserver-migratehelper +# smeserver-migratehelper -SMEServer Koozali developed git repo for smeserver-migratehelper smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-migratehelper smecontribs + +## Wiki +
https://wiki.koozali.org/Migratehelper +
https://wiki.koozali.org/Migratehelper/fr + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-migratehelper&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/smeserver-migratehelper.spec b/smeserver-migratehelper.spec new file mode 100644 index 0000000..deb2a27 --- /dev/null +++ b/smeserver-migratehelper.spec @@ -0,0 +1,92 @@ +%define version 1.0 +%define release 11 +Summary: Set up a migration helper script for SME Server. +Name: smeserver-migratehelper +Version: %{version} +Release: %{release}%{?dist} +License: GNU GPL version 2 +URL: http://www.contribs.org +Group: SMEserver/addon +#Source: %{name}-%{version}.tar.gz +Source: migratehelper.sh +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot +BuildArchitectures: noarch +BuildRequires: e-smith-devtools >= 1.13.1-03 +Requires: e-smith-release >= 8.0 +AutoReqProv: no + +%description +rpm backup all contribs data and bare essential to have a working system and then rsync data while the new system is up + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 1.0-11.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 Dec 02 2021 Jean-Philippe Pialasse 1.0-10.sme +- remove non existing standard path /home/e-smith/home + +* Sun Nov 14 2021 John Crisp 1.0-9.sme +- Fix JPs typo + +* Sun Nov 14 2021 John Crisp 1.0-8.sme +- fix mangled fail2ban conf backup lines + +* Sun Nov 14 2021 John Crisp 1.0-7.sme +- remove debug line left by mistake + +* Fri Oct 29 2021 John Crisp 1.0-6.sme +- add check/create for a /mnt/backup dir +- Fix typos +- Fix bash syntax errors via the IDE plugin +- Add some switches for help, test, no confirm + +* Thu Oct 21 2021 Jean-Philippe Pialasse 1.0-5.sme +- fix missing samba domain user [SME: 11706] +- fix missing user cron jobs [SME: 11664] + +* Tue Jun 01 2021 Jean-Philippe Pialasse 1.0-4.sme +- fix fail2ban listing [SME: 11576] + +* Sun Apr 25 2021 Jean-Philippe Pialasse 1.0-3.sme +- reduce noise for tar [SME: 11576] + +* Thu Apr 01 2021 Jean-Philippe Pialasse 1.0-2.sme +- add backup of spamassassin admin config +- add search for non rpm owned folder in /usr/local + +* Sat Jan 05 2019 Jean-Philipe Pialasse 1.0-1.sme +- initial release [SME: 11275] +- TODO use SME 10 includes / excludes + +%prep +#%setup +pwd >&2 +ls >&2 +mkdir -p %{name}-%{version}-%{release}/root/usr/bin +cp %{SOURCE0} %{name}-%{version}-%{release}/root/usr/bin +cd %{name}-%{version}-%{release} + +%build +#perl createlinks + +%install + +rm -rf $RPM_BUILD_ROOT +(cd %{name}-%{version}-%{release}/root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + > %{name}-%{version}-filelist + +%clean +rm -rf $RPM_BUILD_ROOT + +%post + +%postun + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root)