1 |
%define name smeserver-automysqlbackup |
%define name smeserver-automysqlbackup |
2 |
%define version 3.0.RC6 |
%define version 3.0.RC6 |
3 |
%define release 18 |
%define release 24 |
4 |
%define rpmver 3.0.RC6 |
%define rpmver 3.0.RC6 |
5 |
|
|
6 |
epoch: 2 |
epoch: 2 |
14 |
URL: http://sourceforge.net/projects/automysqlbackup/ |
URL: http://sourceforge.net/projects/automysqlbackup/ |
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
17 |
Requires: e-smith-base, e-smith-release >= 9 |
Requires: e-smith-base, e-smith-release >= 10 |
18 |
Requires: pax |
Requires: pax |
19 |
Requires: automysqlbackup |
Requires: automysqlbackup |
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 |
26 |
Patch5: smeserver-automysqlbackup-3.0.RC6-Update-MySQL-Init-for-Mariadb.patch |
Patch5: smeserver-automysqlbackup-3.0.RC6-Update-MySQL-Init-for-Mariadb.patch |
27 |
Patch6: smeserver-automysqlbackup-3.0.RC6-bz11561.patch |
Patch6: smeserver-automysqlbackup-3.0.RC6-bz11561.patch |
28 |
Patch7: smeserver-automysqlbackup-3.0.RC6-bz11622.patch |
Patch7: smeserver-automysqlbackup-3.0.RC6-bz11622.patch |
29 |
|
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 |
31 |
|
Patch10: smeserver-automysqlbackup-3.0.RC6-bz11970.update-cron.patch |
32 |
|
|
33 |
%description |
%description |
34 |
This RPM is an unofficial addon for the SME Server 10.x. |
This RPM is an unofficial addon for the SME Server 10.x. |
38 |
|
|
39 |
|
|
40 |
%changelog |
%changelog |
41 |
|
* Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-24.sme |
42 |
|
- Update cron [SME:11970] |
43 |
|
- Fix SQL in Maria 105 |
44 |
|
- Remove automysql event and leave just smeserver-automysqlbackup-update |
45 |
|
- Fix some createlinks |
46 |
|
- Modify inits - but still leaves log errors if version not installed |
47 |
|
|
48 |
|
* Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-23.sme |
49 |
|
- Modify backup directory names [SME: 11970] |
50 |
|
|
51 |
|
* Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-22.sme |
52 |
|
- Fix more typos in templates [SME: 11970] |
53 |
|
|
54 |
|
* Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-21.sme |
55 |
|
- Fix typos in templates [SME: 11970] |
56 |
|
|
57 |
|
* Mon May 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-20.sme |
58 |
|
- Correct template names [SME: 11970] |
59 |
|
- Add enable instructions |
60 |
|
|
61 |
|
* Mon May 09 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-19.sme |
62 |
|
- Add Maria DB 10.x support [SME: 11970] |
63 |
|
- Requires Koozali SME Server v10.x |
64 |
|
|
65 |
* Sat Jun 05 2021 Terry Fage <terryf@ozemail.com.au> 3.0.RC6-18.sme |
* Sat Jun 05 2021 Terry Fage <terryf@ozemail.com.au> 3.0.RC6-18.sme |
66 |
- mariadb should not backup information_schema [SME: 11622] |
- mariadb should not backup information_schema [SME: 11622] |
67 |
|
|
130 |
%patch5 -p1 |
%patch5 -p1 |
131 |
%patch6 -p1 |
%patch6 -p1 |
132 |
%patch7 -p1 |
%patch7 -p1 |
133 |
|
%patch8 -p1 |
134 |
|
%patch9 -p1 |
135 |
|
%patch10 -p1 |
136 |
|
|
137 |
%build |
%build |
138 |
perl createlinks |
perl createlinks |
179 |
echo "=======================================================================" |
echo "=======================================================================" |
180 |
echo " " |
echo " " |
181 |
echo " delete mysql user and revoke all permissions" |
echo " delete mysql user and revoke all permissions" |
182 |
# This section deletes backupuser |
# This section deletes backupuser for the standard DB |
183 |
mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';" |
mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';" |
184 |
mysql -u root -e "DROP USER $MYSQLUSER@localhost;" |
mysql -u root -e "DROP USER $MYSQLUSER@localhost;" |
185 |
echo " " |
echo " " |
186 |
echo "Do that for each DB - e.g mysq55, mysql57 etc" |
echo "Do that for each DB - e.g mysq55, mysql57, mariadb101, maria105 etc" |
187 |
echo " " |
echo " " |
188 |
# Delete custom template fragment |
# Delete custom template fragment |
189 |
echo " delete db configuration automysqlbackup" |
echo " Deleting configuration automysqlbackup" |
190 |
echo " " |
echo " " |
191 |
echo "=======================================================================" |
echo "=======================================================================" |
192 |
|
|