/[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.4 by jcrisp, Mon May 9 15:08:17 2022 UTC Revision 1.16 by jcrisp, Fri Jun 16 12:39:15 2023 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 19  %define release 32
4  %define rpmver   3.0.RC6  %define rpmver   3.0.RC6
5    
6  epoch: 2  epoch: 2
# Line 15  URL:                http://sourceforge.n Line 15  URL:                http://sourceforge.n
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 >= 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
# Line 27  Patch5: smeserver-automysqlbackup-3.0.RC Line 27  Patch5: smeserver-automysqlbackup-3.0.RC
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  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    Patch15: smeserver-automysqlbackup-3.0.RC6-remove-myserver-conf-template.patch
37    Patch16: smeserver-automysqlbackup-3.0.RC6-bz12368-add-create-database.patch
38    
39  %description  %description
40  This RPM is an unofficial addon for the SME Server 10.x.    This RPM is an unofficial addon for the SME Server 10.x.  
# Line 34  The target audience is the Linux/E-smith Line 42  The target audience is the Linux/E-smith
42  who wants to backup their mysql databases with an automatic way.  who wants to backup their mysql databases with an automatic way.
43  This script is based on automysqlbackup V3.0  This script is based on automysqlbackup V3.0
44    
   
45  %changelog  %changelog
46  * Mon May 09 2022 John Crisp <jcrisp@safeandsoundit.co.uk>  * Wed Jun 14 2023 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-32.sme
47    - Add create_database to backups
48    
49    * Tue Oct 04 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-31.sme
50    - Remove myserver.conf template expansion as template no longer exists
51    
52    * Mon Aug 22 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-30.sme
53    - Forgot to change the version on the Changelog line below
54    
55    * Mon Aug 22 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-29.sme
56    - Bump automysqlbackup requires
57    
58    * Mon Aug 15 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-28.sme
59    - Add debug patch to conf files
60    
61    * Mon Aug 15 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-27.sme
62    - Modify cron line again to add -bc option [SME: 11970]
63    - Modify runmysqlbackup to add option and conf input from cron
64    
65    * Mon Aug 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-26.sme
66    - Change cron directories to match templates [SME:11970]
67    
68    * Mon Aug 08 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-25.sme
69    - Change rc2 to RC6 in config templates [SME:11970]
70    - Fix DONT'T typo
71    
72    * Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-24.sme
73    - Update cron [SME:11970]
74    - Fix SQL in Maria 105
75    - Remove automysql event and leave just smeserver-automysqlbackup-update
76    - Fix some createlinks
77    - Modify inits - but still leaves log errors if version not installed
78    
79    * Tue Jun 07 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-23.sme
80    - Modify backup directory names [SME: 11970]
81    
82    * Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-22.sme
83    - Fix more typos in templates [SME: 11970]
84    
85    * Tue May 31 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-21.sme
86    - Fix typos in templates [SME: 11970]
87    
88    * Mon May 30 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-20.sme
89    - Correct template names [SME: 11970]
90    - Add enable instructions
91    
92    * Mon May 09 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.0.RC6-19.sme
93  - Add Maria DB 10.x support [SME: 11970]  - Add Maria DB 10.x support [SME: 11970]
94  - Requires Koozali SME Server v10.x  - Requires Koozali SME Server v10.x
95    
# Line 109  rm -rf $RPM_BUILD_ROOT Line 162  rm -rf $RPM_BUILD_ROOT
162  %patch6 -p1  %patch6 -p1
163  %patch7 -p1  %patch7 -p1
164  %patch8 -p1  %patch8 -p1
165    %patch9 -p1
166    %patch10 -p1
167    %patch11 -p1
168    %patch12 -p1
169    %patch13 -p1
170    %patch14 -p1
171    %patch15 -p1
172    %patch16 -p1
173    
174  %build  %build
175  perl createlinks  perl createlinks
# Line 143  rm -rf $RPM_BUILD_ROOT Line 204  rm -rf $RPM_BUILD_ROOT
204  %pre  %pre
205    
206  %post  %post
   
207  #protect the backup folder  #protect the backup folder
208  chmod -R 700 /root/backup  chmod -R 700 /root/backup
209                                echo "======================================================================="
210    echo "  "
211    echo "  To update your templates please run"
212    echo "  'signal-event smeserver-automysqlbackup-update'"
213    echo "  "
214    echo "======================================================================="
215    
216  %preun  %preun
217  %postun  %postun
218  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
# Line 155  MYSQLUSER=backupuser Line 221  MYSQLUSER=backupuser
221  echo "======================================================================="  echo "======================================================================="
222  echo "  "  echo "  "
223  echo "  delete mysql user and revoke all permissions"  echo "  delete mysql user and revoke all permissions"
224  # This section deletes backupuser  # This section deletes backupuser for the standard DB
225  mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';"  mysql -u root -e "REVOKE ALL PRIVILEGES ON *.* FROM '$MYSQLUSER'@'localhost';"
226  mysql -u root -e "DROP USER $MYSQLUSER@localhost;"  mysql -u root -e "DROP USER $MYSQLUSER@localhost;"
227  echo "  "  echo "  "
228  echo "Do that for each DB - e.g mysq55, mysql57 etc"  echo "Do that for each DB - e.g mysq55, mysql57, mariadb101, maria105 etc"
229  echo "  "  echo "  "
230  # Delete custom template fragment  # Delete custom template fragment
231  echo "  delete db configuration automysqlbackup"  echo "  Deleting configuration automysqlbackup"
232  echo "  "  echo "  "
233  echo "======================================================================="  echo "======================================================================="
234    


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