1 |
%define name smeserver-automysqlbackup |
%define name smeserver-automysqlbackup |
2 |
%define version 3.0.RC6 |
%define version 3.0.RC6 |
3 |
%define release 24 |
%define release 31 |
4 |
%define rpmver 3.0.RC6 |
%define rpmver 3.0.RC6 |
5 |
|
|
6 |
epoch: 2 |
epoch: 2 |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
17 |
Requires: e-smith-base, e-smith-release >= 10 |
Requires: e-smith-base, e-smith-release >= 10 |
18 |
Requires: pax |
Requires: pax |
19 |
Requires: automysqlbackup |
Requires: automysqlbackup >= 3.0.RC6-8 |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
21 |
Patch0: smeserver-automysqlbackup-AdjustableCronJob.patch |
Patch0: smeserver-automysqlbackup-AdjustableCronJob.patch |
22 |
Patch1: smeserver-automysqlbackup-enhanced-templates.patch |
Patch1: smeserver-automysqlbackup-enhanced-templates.patch |
29 |
Patch8: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-support.patch |
Patch8: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-support.patch |
30 |
Patch9: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-rename-templates.patch |
Patch9: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-rename-templates.patch |
31 |
Patch10: smeserver-automysqlbackup-3.0.RC6-bz11970.update-cron.patch |
Patch10: smeserver-automysqlbackup-3.0.RC6-bz11970.update-cron.patch |
32 |
|
Patch11: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-fix-typos.patch |
33 |
|
Patch12: smeserver-automysqlbackup-3.0.RC6-bz11970.Add-Maria-10x-rename-cron-directories.patch |
34 |
|
Patch13: smeserver-automysqlbackup-3.0.RC6-bz11970.update-cron.2.patch |
35 |
|
Patch14: smeserver-automysqlbackup-3.0.RC6-bz11970.Add.Debug.patch |
36 |
|
Patch15: smeserver-automysqlbackup-3.0.RC6-remove-myserver-conf-template.patch |
37 |
|
|
38 |
%description |
%description |
39 |
This RPM is an unofficial addon for the SME Server 10.x. |
This RPM is an unofficial addon for the SME Server 10.x. |
41 |
who wants to backup their mysql databases with an automatic way. |
who wants to backup their mysql databases with an automatic way. |
42 |
This script is based on automysqlbackup V3.0 |
This script is based on automysqlbackup V3.0 |
43 |
|
|
|
|
|
44 |
%changelog |
%changelog |
45 |
|
* Tue Oct 04 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-31.sme |
46 |
|
- Remove myserver.conf template expansion as template no longer exists |
47 |
|
|
48 |
|
* Mon Aug 22 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-30.sme |
49 |
|
- Forgot to change the version on the Changelog line below |
50 |
|
|
51 |
|
* Mon Aug 22 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-29.sme |
52 |
|
- Bump automysqlbackup requires |
53 |
|
|
54 |
|
* Mon Aug 15 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-28.sme |
55 |
|
- Add debug patch to conf files |
56 |
|
|
57 |
|
* Mon Aug 15 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-27.sme |
58 |
|
- Modify cron line again to add -bc option [SME: 11970] |
59 |
|
- Modify runmysqlbackup to add option and conf input from cron |
60 |
|
|
61 |
|
* Mon Aug 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-26.sme |
62 |
|
- Change cron directories to match templates [SME:11970] |
63 |
|
|
64 |
|
* Mon Aug 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-25.sme |
65 |
|
- Change rc2 to RC6 in config templates [SME:11970] |
66 |
|
- Fix DONT'T typo |
67 |
|
|
68 |
* Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-24.sme |
* Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-24.sme |
69 |
- Update cron [SME:11970] |
- Update cron [SME:11970] |
70 |
- Fix SQL in Maria 105 |
- Fix SQL in Maria 105 |
160 |
%patch8 -p1 |
%patch8 -p1 |
161 |
%patch9 -p1 |
%patch9 -p1 |
162 |
%patch10 -p1 |
%patch10 -p1 |
163 |
|
%patch11 -p1 |
164 |
|
%patch12 -p1 |
165 |
|
%patch13 -p1 |
166 |
|
%patch14 -p1 |
167 |
|
%patch15 -p1 |
168 |
|
|
169 |
%build |
%build |
170 |
perl createlinks |
perl createlinks |
202 |
|
|
203 |
#protect the backup folder |
#protect the backup folder |
204 |
chmod -R 700 /root/backup |
chmod -R 700 /root/backup |
205 |
|
|
206 |
%preun |
%preun |
207 |
%postun |
%postun |
208 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |