1 |
%define version 1.0 |
%define version 1.0 |
2 |
%define release 1 |
%define release 9 |
3 |
Summary: Set up a migration helper script for SME Server. |
Summary: Set up a migration helper script for SME Server. |
4 |
Name: smeserver-migratehelper |
Name: smeserver-migratehelper |
5 |
Version: %{version} |
Version: %{version} |
7 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
8 |
URL: http://www.contribs.org |
URL: http://www.contribs.org |
9 |
Group: SMEserver/addon |
Group: SMEserver/addon |
10 |
Source: %{name}-%{version}.tar.gz |
#Source: %{name}-%{version}.tar.gz |
11 |
|
Source: migratehelper.sh |
12 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
13 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
14 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
16 |
AutoReqProv: no |
AutoReqProv: no |
17 |
|
|
18 |
%description |
%description |
19 |
rpm to setup zoneminder |
rpm backup all contribs data and bare essential to have a working system and then rsync data while the new system is up |
20 |
|
|
21 |
%changelog |
%changelog |
22 |
|
* Sun Nov 14 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 1.0-9.sme |
23 |
|
- Fix JPs typo |
24 |
|
|
25 |
|
* Sun Nov 14 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 1.0-8.sme |
26 |
|
- fix mangled fail2ban conf backup lines |
27 |
|
|
28 |
|
* Sun Nov 14 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 1.0-7.sme |
29 |
|
- remove debug line left by mistake |
30 |
|
|
31 |
|
* Fri Oct 29 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 1.0-6.sme |
32 |
|
- add check/create for a /mnt/backup dir |
33 |
|
- Fix typos |
34 |
|
- Fix bash syntax errors via the IDE plugin |
35 |
|
- Add some switches for help, test, no confirm |
36 |
|
|
37 |
|
* Thu Oct 21 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-5.sme |
38 |
|
- fix missing samba domain user [SME: 11706] |
39 |
|
- fix missing user cron jobs [SME: 11664] |
40 |
|
|
41 |
|
* Tue Jun 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-4.sme |
42 |
|
- fix fail2ban listing [SME: 11576] |
43 |
|
|
44 |
|
* Sun Apr 25 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-3.sme |
45 |
|
- reduce noise for tar [SME: 11576] |
46 |
|
|
47 |
|
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.0-2.sme |
48 |
|
- add backup of spamassassin admin config |
49 |
|
- add search for non rpm owned folder in /usr/local |
50 |
|
|
51 |
* Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme |
* Sat Jan 05 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0-1.sme |
52 |
- initial release [SME: ] |
- initial release [SME: 11275] |
53 |
|
- TODO use SME 10 includes / excludes |
54 |
|
|
55 |
%prep |
%prep |
56 |
%setup |
#%setup |
57 |
|
pwd >&2 |
58 |
|
ls >&2 |
59 |
|
mkdir -p %{name}-%{version}-%{release}/root/usr/bin |
60 |
|
cp %{SOURCE0} %{name}-%{version}-%{release}/root/usr/bin |
61 |
|
cd %{name}-%{version}-%{release} |
62 |
|
|
63 |
%build |
%build |
64 |
perl createlinks |
#perl createlinks |
65 |
|
|
66 |
%install |
%install |
67 |
|
|
68 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
69 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd %{name}-%{version}-%{release}/root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
70 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
71 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
72 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |