/[smecontribs]/rpms/smeserver-automysqlbackup/contribs10/smeserver-automysqlbackup.spec
ViewVC logotype

Diff of /rpms/smeserver-automysqlbackup/contribs10/smeserver-automysqlbackup.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by jpp, Sat Apr 17 02:56:42 2021 UTC Revision 1.13 by jcrisp, Mon Aug 22 12:00:43 2022 UTC
# Line 1  Line 1 
1  %define name smeserver-automysqlbackup  %define name smeserver-automysqlbackup
2  %define version 3.0.RC6  %define version 3.0.RC6
3  %define release 17  %define release 29
4  %define rpmver   3.0.RC6  %define rpmver   3.0.RC6
5    
6  epoch: 2  epoch: 2
# Line 14  Source:             %{name}-%{version}.t Line 14  Source:             %{name}-%{version}.t
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 >= 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
# Line 25  Patch3: smeserver-automysqlbackup-update Line 25  Patch3: smeserver-automysqlbackup-update
25  Patch4: smeserver-automysqlbackup-3.0.RC6-bz10806.errorsAndCreateUsers.patch  Patch4: smeserver-automysqlbackup-3.0.RC6-bz10806.errorsAndCreateUsers.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
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    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    
37  %description  %description
38  This RPM is an unofficial addon for the SME Server 9.x.    This RPM is an unofficial addon for the SME Server 10.x.  
39  The target audience is the Linux/E-smith administrator  The target audience is the Linux/E-smith administrator
40  who wants to backup their mysql databases with an automatic way.  who wants to backup their mysql databases with an automatic way.
41  This script is based on automysqlbackup V3.0  This script is based on automysqlbackup V3.0
42    
43    %changelog
44    * Mon Aug 22 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-28.sme
45    - Bump automysqlbackup requires
46    
47    * Mon Aug 15 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-28.sme
48    - Add debug patch to conf files
49    
50    * Mon Aug 15 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-27.sme
51    - Modify cron line again to add -bc option [SME: 11970]
52    - Modify runmysqlbackup to add option and conf input from cron
53    
54    * Mon Aug 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-26.sme
55    - Change cron directories to match templates [SME:11970]
56    
57    * Mon Aug 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-25.sme
58    - Change rc2 to RC6 in config templates [SME:11970]
59    - Fix DONT'T typo
60    
61    * Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-24.sme
62    - Update cron [SME:11970]
63    - Fix SQL in Maria 105
64    - Remove automysql event and leave just smeserver-automysqlbackup-update
65    - Fix some createlinks
66    - Modify inits - but still leaves log errors if version not installed
67    
68    * Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-23.sme
69    - Modify backup directory names [SME: 11970]
70    
71    * Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-22.sme
72    - Fix more typos in templates [SME: 11970]
73    
74    * Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-21.sme
75    - Fix typos in templates [SME: 11970]
76    
77    * Mon May 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-20.sme
78    - Correct template names [SME: 11970]
79    - Add enable instructions
80    
81    * Mon May 09 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-19.sme
82    - Add Maria DB 10.x support [SME: 11970]
83    - Requires Koozali SME Server v10.x
84    
85    * Sat Jun 05 2021 Terry Fage <terryf@ozemail.com.au> 3.0.RC6-18.sme
86    -  mariadb should not backup information_schema [SME: 11622]
87    
 %changelog  
88  * Fri Apr 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 3.0.RC6-17.sme  * Fri Apr 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 3.0.RC6-17.sme
89  - fix automysql freeze server on reboot after post-upgrade event [SME: 11561]  - fix automysql freeze server on reboot after post-upgrade event [SME: 11561]
90    
# Line 99  rm -rf $RPM_BUILD_ROOT Line 149  rm -rf $RPM_BUILD_ROOT
149  %patch4 -p1  %patch4 -p1
150  %patch5 -p1  %patch5 -p1
151  %patch6 -p1  %patch6 -p1
152    %patch7 -p1
153    %patch8 -p1
154    %patch9 -p1
155    %patch10 -p1
156    %patch11 -p1
157    %patch12 -p1
158    %patch13 -p1
159    %patch14 -p1
160    
161  %build  %build
162  perl createlinks  perl createlinks
# Line 136  rm -rf $RPM_BUILD_ROOT Line 194  rm -rf $RPM_BUILD_ROOT
194    
195  #protect the backup folder  #protect the backup folder
196  chmod -R 700 /root/backup  chmod -R 700 /root/backup
197                                
198  %preun  %preun
199  %postun  %postun
200  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
# Line 145  MYSQLUSER=backupuser Line 203  MYSQLUSER=backupuser
203  echo "======================================================================="  echo "======================================================================="
204  echo "  "  echo "  "
205  echo "  delete mysql user and revoke all permissions"  echo "  delete mysql user and revoke all permissions"
206  # This section deletes backupuser  # This section deletes backupuser for the standard DB
207  mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';"  mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';"
208  mysql -u root -e "DROP USER $MYSQLUSER@localhost;"  mysql -u root -e "DROP USER $MYSQLUSER@localhost;"
209  echo "  "  echo "  "
210  echo "Do that for each DB - e.g mysq55, mysql57 etc"  echo "Do that for each DB - e.g mysq55, mysql57, mariadb101, maria105 etc"
211  echo "  "  echo "  "
212  # Delete custom template fragment  # Delete custom template fragment
213  echo "  delete db configuration automysqlbackup"  echo "  Deleting configuration automysqlbackup"
214  echo "  "  echo "  "
215  echo "======================================================================="  echo "======================================================================="
216    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed