1 |
slords |
1.1 |
Summary: e-smith specific mysql configuration and templates. |
2 |
|
|
%define name e-smith-mysql |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.12.0 |
5 |
bytegw |
1.2 |
%define release 15 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
Group: Networking/Daemons |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
Patch0: e-smith-mysql-1.12.0-setpassword.patch2 |
12 |
|
|
Patch1: e-smith-mysql-1.12.0-flushprivssemicolon.patch |
13 |
|
|
Patch2: e-smith-mysql-1.12.0-innodb-optional.patch |
14 |
|
|
Patch3: e-smith-mysql-1.12.0-install_db.patch |
15 |
|
|
Patch4: e-smith-mysql-1.12.0.disabled_pre_backup.patch |
16 |
|
|
Patch5: e-smith-mysql-1.12.0.failed_restore.patch |
17 |
|
|
Patch6: e-smith-mysql-1.12.0-split_backup_db.patch |
18 |
|
|
Patch7: e-smith-mysql-1.12.0-mysqluser.patch |
19 |
|
|
Patch8: e-smith-mysql-1.12.0-max_allowed_packet.patch |
20 |
|
|
Patch9: e-smith-mysql-1.12.0-max_allowed_packet2.patch |
21 |
|
|
Patch10: e-smith-mysql-1.12.0-force_upgrade.patch |
22 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
|
|
BuildArchitectures: noarch |
24 |
|
|
Requires: mysql-server |
25 |
|
|
Requires: mysql |
26 |
|
|
Requires: e-smith-base |
27 |
|
|
Requires: e-smith-lib >= 1.15.1-19 |
28 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
29 |
|
|
AutoReqProv: no |
30 |
|
|
|
31 |
|
|
%changelog |
32 |
bytegw |
1.2 |
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 1.12.0-15 |
33 |
|
|
- quote "$1" in post uninstall script [SME: 349] |
34 |
|
|
|
35 |
slords |
1.1 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
36 |
|
|
- Clean up spec so package can be built by koji/plague |
37 |
|
|
|
38 |
|
|
* Sat Apr 21 2007 Shad L. Lords <slords@mail.com> 1.12.0-14 |
39 |
|
|
- Force upgrade script to run even with errors. [SME: 2530] |
40 |
|
|
|
41 |
|
|
* Mon Apr 9 2007 Stephen Noble <Support@dungog.net> 1.12.0-13 |
42 |
|
|
- Add db settings to max_allowed_packet in my.cnf [SME: 2149] |
43 |
|
|
|
44 |
|
|
* Mon Apr 9 2007 Stephen Noble <Support@dungog.net> 1.12.0-12 |
45 |
|
|
- Add to my.cnf [SME: 2149] |
46 |
|
|
|
47 |
|
|
* Thu Jan 11 2007 Shad L. Lords <slords@mail.com> 1.12.0-11 |
48 |
|
|
- Move user to mysql section. [SME: 1474] |
49 |
|
|
|
50 |
|
|
* Wed Dec 27 2006 Shad L. Lords <slords@mail.com> 1.12.0-10 |
51 |
|
|
- Split backups out by database name [SME: 1677] |
52 |
|
|
|
53 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
54 |
|
|
- Update to new release naming. No functional changes. |
55 |
|
|
- Make Packager generic |
56 |
|
|
|
57 |
|
|
* Thu Nov 9 2006 Charlie Brady <charlie_brady@mitel.com> 1.12.0-08 |
58 |
|
|
- Ensure that failed restore is detected during mysql.init. [SME: 1652] |
59 |
|
|
|
60 |
|
|
* Mon Sep 25 2006 Charlie Brady <charlie_brady@mitel.com> 1.12.0-07 |
61 |
|
|
- Fix pre-backup failure if mysqld is disabled in config db. [SME: 1937] |
62 |
|
|
|
63 |
|
|
* Tue Jun 27 2006 Filippo Carletti <carletti@mobilia.it> 1.12.0-06 |
64 |
|
|
- Execute mysql_install_db using sh [SME: 1654] |
65 |
|
|
|
66 |
|
|
* Sun Apr 30 2006 Charlie Brady <charlie_brady@mitel.com> 1.12.0-05 |
67 |
|
|
- Make innodb optional, and configure it as recommended, if enabled. |
68 |
|
|
[SME: 1013] |
69 |
|
|
|
70 |
|
|
* Tue Apr 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.12.0-04 |
71 |
|
|
- Add missing semi-colon to FLUSH PRIVILEGES statement [SME: 1229] |
72 |
|
|
|
73 |
|
|
* Mon Apr 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.12.0-03 |
74 |
|
|
- Revise last patch - it backed out the db restore [SME: 1229] |
75 |
|
|
|
76 |
|
|
* Mon Apr 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.12.0-02 |
77 |
|
|
- Move expansion of user table into set.password so it works |
78 |
|
|
for command line runs as well as db restores [SME: 1229] |
79 |
|
|
|
80 |
|
|
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.12.0-01 |
81 |
|
|
- Roll stable stream version. [SME: 1016] |
82 |
|
|
|
83 |
|
|
* Mon Feb 13 2006 Charlie Brady <charlie_brady@mitel.com> 1.11.1-16 |
84 |
|
|
- Update dependencies to include mysql-server RPM. Remove obsolete |
85 |
|
|
dependency on e-smith-packetfilter. [SME: 737] |
86 |
|
|
|
87 |
|
|
* Fri Jan 6 2006 Gordon Rowell <gordonr@gormand.com.au> 1.11.1-15 |
88 |
|
|
- Remove explicit permission setting for /home/e-smith/db from |
89 |
|
|
genfilelist call [SME: 371] |
90 |
|
|
|
91 |
|
|
* Sun Jan 1 2006 Charlie Brady <charlieb@e-smith.com> 1.11.1-14 |
92 |
|
|
- Ensure that mysql is restarted after restore, and avoid race conditions |
93 |
|
|
during mysqld restart during fix_privilege_tables. [SME: 73] |
94 |
|
|
- Remove unnecessary mkdirs in build section - they're done by createlinks |
95 |
|
|
script. |
96 |
|
|
|
97 |
|
|
* Wed Dec 14 2005 Gordon Rowell <gordonr@gormand.com.au> 1.11.1-13 |
98 |
|
|
- Call fix_privilege_tables much earlier and call mysqladmin shutdown |
99 |
|
|
after doing so - Thanks Paul Floor [SME: 73] |
100 |
|
|
|
101 |
|
|
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.11.1-12 |
102 |
|
|
- Call mysql fix_privilege_tables in mysql.init [SME: 73] |
103 |
|
|
|
104 |
|
|
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.11.1-11 |
105 |
|
|
- Bump release number only |
106 |
|
|
|
107 |
|
|
* Tue Nov 15 2005 Gordon Rowell <gordonr@e-smith.com> |
108 |
|
|
- [1.11.1-10] |
109 |
|
|
- Reset the format of the MySQL root password for old dumps [SF: 1325378] |
110 |
|
|
|
111 |
|
|
* Wed Aug 31 2005 Charlie Brady <charlieb@e-smith.com> |
112 |
|
|
- [1.11.1-09] |
113 |
|
|
- Avoid error from db-delete action if db files are not present |
114 |
|
|
(e.g. because they have already been deleted). [SF: 1273797] |
115 |
|
|
|
116 |
|
|
* Mon Aug 29 2005 Charlie Brady <charlieb@e-smith.com> |
117 |
|
|
- [1.11.1-08] |
118 |
|
|
- Fix restore of dumped tables after restore from backup. |
119 |
|
|
Reset root password after restore of dumped dbs. [SF: 1273797] |
120 |
|
|
|
121 |
|
|
* Thu Jun 16 2005 Charlie Brady <charlieb@e-smith.com> |
122 |
|
|
- [1.11.1-07] |
123 |
|
|
- Ensure that 'status' property of mysql.init is honoured at |
124 |
|
|
startup. [MN00061795] |
125 |
|
|
|
126 |
|
|
* Tue Jun 14 2005 Charlie Brady <charlieb@e-smith.com> |
127 |
|
|
- [1.11.1-06] |
128 |
|
|
- Work around race condition between mysql startup and |
129 |
|
|
mysql.init. [SF: 1217966] |
130 |
|
|
|
131 |
|
|
* Fri Apr 29 2005 Charlie Brady <charlieb@e-smith.com> |
132 |
|
|
- [1.11.1-05] |
133 |
|
|
- Use -f flag in mysql-delete-dumped-tables so that backup |
134 |
|
|
doesn't fail if the file is missing. |
135 |
|
|
|
136 |
|
|
* Fri Apr 15 2005 Charlie Brady <charlieb@e-smith.com> |
137 |
|
|
- [1.11.1-04] |
138 |
|
|
- Change /root/.my.cnf template to use esmith::util::LdapPassword |
139 |
|
|
rather than read of ldap.pw file, to eliminate ordering |
140 |
|
|
depenendence on ldap.pw template expansion. |
141 |
|
|
|
142 |
|
|
* Fri Apr 15 2005 Charlie Brady <charlieb@e-smith.com> |
143 |
|
|
- [1.11.1-03] |
144 |
|
|
- Restore old mysql.init behaviour, to leave any failed scripts |
145 |
|
|
behind for a later attempt, or for admin investigation. [MN00079643] |
146 |
|
|
|
147 |
|
|
* Wed Apr 13 2005 Charlie Brady <charlieb@e-smith.com> |
148 |
|
|
- [1.11.1-02] |
149 |
|
|
- Fix up import of tables after a restore. Remove a few bogus |
150 |
|
|
symlinks. |
151 |
|
|
|
152 |
|
|
* Wed Apr 13 2005 Charlie Brady <charlieb@e-smith.com> |
153 |
|
|
- [1.11.1-01] |
154 |
|
|
- Roll new development stream - 1.11.1 |
155 |
|
|
|
156 |
|
|
* Mon Apr 11 2005 Charlie Brady <charlieb@e-smith.com> |
157 |
|
|
- [1.11.0-16] |
158 |
|
|
- Fix typo and runtime error in run script. Detect table dump |
159 |
|
|
to be restored and set it up for mysql.init to restore it. |
160 |
|
|
|
161 |
|
|
* Sun Apr 10 2005 Charlie Brady <charlieb@e-smith.com> |
162 |
|
|
- [1.11.0-15] |
163 |
|
|
- Remove trap stuff in run script (which works around mysqld brokenness) |
164 |
|
|
and add custom control/{t,q,d,i} scripts. |
165 |
|
|
|
166 |
|
|
* Sun Apr 10 2005 Charlie Brady <charlieb@e-smith.com> |
167 |
|
|
- [1.11.0-14] |
168 |
|
|
- Remove obsolete e-smith-packetfilter Requires: header. |
169 |
|
|
- Do db initialisation in run script, as required, rather than via |
170 |
|
|
special action script. |
171 |
|
|
- Replace all restart-, start- and reload- actions with calls to |
172 |
|
|
'adjust-services'. Update e-smith-lib version dependency. [MN00065576] |
173 |
|
|
- Use generic_template_expand action where possible, in place |
174 |
|
|
of specific actions. Update e-smith-lib dependency. [MN00064130] |
175 |
|
|
|
176 |
|
|
* Wed Dec 29 2004 Charlie Brady <charlieb@e-smith.com> |
177 |
|
|
- [1.11.0-13] |
178 |
|
|
- Fix permissions on log/run script. Add missing /var/log/mysqld dir. |
179 |
|
|
[charlieb MN00061220] |
180 |
|
|
|
181 |
|
|
* Wed Dec 29 2004 Charlie Brady <charlieb@e-smith.com> |
182 |
|
|
- [1.11.0-12] |
183 |
|
|
- Add missing down file in service directory.. Fix permissions |
184 |
|
|
on run script. [charlieb MN00061220] |
185 |
|
|
|
186 |
|
|
* Tue Dec 28 2004 Charlie Brady <charlieb@e-smith.com> |
187 |
|
|
- [1.11.0-11] |
188 |
|
|
- Add missing /service/mysqld symlink [charlieb MN00061220] |
189 |
|
|
|
190 |
|
|
* Mon Dec 20 2004 Charlie Brady <charlieb@e-smith.com> |
191 |
|
|
- [1.11.0-10] |
192 |
|
|
- Run mysqld under supervise. [charlieb MN00061220] |
193 |
|
|
- Replace deprecated Copyright header with License. [charlieb] |
194 |
|
|
|
195 |
|
|
* Tue Jan 6 2004 Michael Soulier <msoulier@e-smith.com> |
196 |
|
|
- [1.11.0-09] |
197 |
|
|
- Added restart to valid arguments to mysql.init. [msoulier 10866] |
198 |
|
|
|
199 |
|
|
* Tue Jan 6 2004 Michael Soulier <msoulier@e-smith.com> |
200 |
|
|
- [1.11.0-08] |
201 |
|
|
- Fixed mysql.init leaving behind failed scripts, and the lack of proper |
202 |
|
|
initscript command-line arguments. [msoulier 10866] |
203 |
|
|
|
204 |
|
|
* Wed Dec 24 2003 Tony Clayton <apc@e-smith.com> |
205 |
|
|
- [1.11.0-07] |
206 |
|
|
- Updating comments in my.cnf [tonyc 10862] |
207 |
|
|
- Don't show redundant log-error option in mysqld_safe [tonyc 10862] |
208 |
|
|
|
209 |
|
|
* Mon Dec 22 2003 Tony Clayton <apc@e-smith.com> |
210 |
|
|
- [1.11.0-06] |
211 |
|
|
- fixing initscript symlink [tonyc 10862] |
212 |
|
|
|
213 |
|
|
* Mon Dec 22 2003 Tony Clayton <apc@e-smith.com> |
214 |
|
|
- [1.11.0-05] |
215 |
|
|
- Add /var/run/mysqld dir for mysql.com compatibility [tonyc 10862] |
216 |
|
|
- Fix initscript symlink [tonyc 10862] |
217 |
|
|
|
218 |
|
|
* Mon Dec 22 2003 Tony Clayton <apc@e-smith.com> |
219 |
|
|
- [1.11.0-04] |
220 |
|
|
- Add initscript symlink for mysql.com compatibility [tonyc 10862] |
221 |
|
|
- Adding /etc/logrotate.d/mysqld templates [tonyc 8662] |
222 |
|
|
|
223 |
|
|
* Thu Dec 18 2003 Tony Clayton <apc@e-smith.com> |
224 |
|
|
- [1.11.0-03] |
225 |
|
|
- Clean up /etc/my.cnf templates and add comments [tonyc 10862] |
226 |
|
|
- Add a more --user=mysql options to actions for 100% coverage [tonyc 10862] |
227 |
|
|
- Remove redundant basedir/datadir options from actions [tonyc 10862] |
228 |
|
|
- Clean up mysql-preload fork/exec stuff [tonyc 10862] |
229 |
|
|
|
230 |
|
|
* Tue Dec 16 2003 Tony Clayton <apc@e-smith.com> |
231 |
|
|
- [1.11.0-02] |
232 |
|
|
- Add --user=mysql to mysqld args in conf-mysql-password [tonyc 10853] |
233 |
|
|
- Future-proof /etc/my.cnf for s/safe_mysqld/mysqld_safe/ change [tonyc 8662] |
234 |
|
|
|
235 |
|
|
* Tue Dec 16 2003 Tony Clayton <apc@e-smith.com> |
236 |
|
|
- [1.11.0-01] |
237 |
|
|
- Changing version to development stream number - 1.11.0 |
238 |
|
|
|
239 |
|
|
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
240 |
|
|
- [1.10.0-01] |
241 |
|
|
- Changing version to stable stream number - 1.10.0 |
242 |
|
|
|
243 |
|
|
* Wed Apr 23 2003 Charlie Brady <charlieb@e-smith.com> |
244 |
|
|
- [1.9.0-03] |
245 |
|
|
- Remove stray " in mysql-dump-tables. [charlieb 8475] |
246 |
|
|
|
247 |
|
|
* Tue Apr 1 2003 Charlie Brady <charlieb@e-smith.com> |
248 |
|
|
- [1.9.0-02] |
249 |
|
|
- Restrict mysql by default to use only unix domain socket. [charlieb 6430] |
250 |
|
|
- Change mysql dump in pre-backup to use quotes, to fix backup/restore problem. |
251 |
|
|
[charlieb 7953] |
252 |
|
|
- Remove conf-mysql-startup - use db initialisation fragments instead |
253 |
|
|
[charlieb 5665] |
254 |
|
|
|
255 |
|
|
* Tue Apr 1 2003 Charlie Brady <charlieb@e-smith.com> |
256 |
|
|
- [1.9.0-01] |
257 |
|
|
- Roll development version to 1.9.0 |
258 |
|
|
|
259 |
|
|
* Mon Mar 17 2003 Lijie Deng <lijied@e-smith.com> |
260 |
|
|
- [1.8.0-03] |
261 |
|
|
- Deleted template-begin/end file [lijied 3295] |
262 |
|
|
|
263 |
|
|
* Thu Jan 23 2003 Charlie Brady <charlieb@e-smith.com> |
264 |
|
|
- [1.8.0-02] |
265 |
|
|
- Fix typo in mysql-restart action script (mysql => mysqld). [charlieb 4774] |
266 |
|
|
|
267 |
|
|
* Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com> |
268 |
|
|
- [1.8.0-01] |
269 |
|
|
- Rolling stable version number to 1.8.0 |
270 |
|
|
|
271 |
|
|
* Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com> |
272 |
|
|
- [1.8.0-01] |
273 |
|
|
- Rolling stable version number to 1.8.0 |
274 |
|
|
|
275 |
|
|
* Wed Sep 25 2002 Charlie Brady <charlieb@e-smith.com> |
276 |
|
|
- [1.7.4-10] |
277 |
|
|
- Reverse the recent logic change in mysql.init, now that action() function |
278 |
|
|
in /etc/rc.d/init.d/functions is repaired. Replace deprecated use |
279 |
|
|
of backticks. [charlieb 4728] |
280 |
|
|
|
281 |
|
|
* Mon Sep 23 2002 Charlie Brady <charlieb@e-smith.com> |
282 |
|
|
- [1.7.4-09] |
283 |
|
|
- Actually expand /etc/my.cnf template - that's what it's for! [charlieb 4731] |
284 |
|
|
|
285 |
|
|
* Mon Sep 23 2002 Charlie Brady <charlieb@e-smith.com> |
286 |
|
|
- [1.7.4-08] |
287 |
|
|
- Fix logic problem in mysql.init [charlieb 4728] |
288 |
|
|
|
289 |
|
|
* Tue Sep 10 2002 Charlie Brady <charlieb@e-smith.com> |
290 |
|
|
- [1.7.4-07] |
291 |
|
|
- Add fragment to my.cnf template to disable (for now) innoDB tables, and |
292 |
|
|
hence prevent log file noise. [charlieb 4731] |
293 |
|
|
|
294 |
|
|
* Mon Sep 9 2002 Charlie Brady <charlieb@e-smith.com> |
295 |
|
|
- [1.7.4-06] |
296 |
|
|
- Update mysql-restart action and link into timezone-update event |
297 |
|
|
[charlieb 4774] |
298 |
|
|
|
299 |
|
|
* Mon Sep 9 2002 Charlie Brady <charlieb@e-smith.com> |
300 |
|
|
- [1.7.4-05] |
301 |
|
|
- Set $HOME in mysql.init script itself, otherwise it's not set when |
302 |
|
|
run from the rc run script. Fix filenames displayed in progress message. |
303 |
|
|
[charlieb 4782] |
304 |
|
|
- Remove redundant mysql.conf action script [charlieb 4782] |
305 |
|
|
|
306 |
|
|
* Fri Sep 6 2002 Charlie Brady <charlieb@e-smith.com> |
307 |
|
|
- [1.7.4-04] |
308 |
|
|
- Create newly required email-update event directory. [charlieb 4782] |
309 |
|
|
|
310 |
|
|
* Fri Sep 6 2002 Charlie Brady <charlieb@e-smith.com> |
311 |
|
|
- [1.7.4-03] |
312 |
|
|
- Change mysql-dump-tables and mysql-delete-dumps events to pre-backup and |
313 |
|
|
post-backup events. [charlieb 2745] |
314 |
|
|
- Add mysql-start-if-required action, which checks if mysqld is running, |
315 |
|
|
and start it, then runs mysql.init, if not. Linked into email-update event. |
316 |
|
|
[charlieb 4782] |
317 |
|
|
- Redo conf-mysql-startup using ConfigDB and remove no longer necessary |
318 |
|
|
serviceControl() calls. [charlieb 4782] |
319 |
|
|
- Redo mysql-conf using esmith::templates. [charlieb 4782] |
320 |
|
|
- Change mysql.init script so that it can run programs or just load sql. |
321 |
|
|
[charlieb 4782] |
322 |
|
|
|
323 |
|
|
* Wed Aug 28 2002 Charlie Brady <charlieb@e-smith.com> |
324 |
|
|
- [1.7.4-02] |
325 |
|
|
- Create missing /etc/e-smith/sql/init directory [charlieb 4333] |
326 |
|
|
|
327 |
|
|
* Thu Aug 22 2002 Charlie Brady <charlieb@e-smith.com> |
328 |
|
|
- [1.7.4-01] |
329 |
|
|
- Remove 45DenyMySQL template fragment - it's no longer needed since we |
330 |
|
|
are using connection tracking. [charlieb 4499] |
331 |
|
|
|
332 |
|
|
* Tue Aug 20 2002 Charlie Brady <charlieb@e-smith.com> |
333 |
|
|
- [1.7.3-01] |
334 |
|
|
- Add rc7.d symlinks and don't set obsolete InitscriptsOrder property |
335 |
|
|
of services. [charlieb 4458] |
336 |
|
|
|
337 |
|
|
* Wed Jul 17 2002 Charlie Brady <charlieb@e-smith.com> |
338 |
|
|
- [1.7.2-01] |
339 |
|
|
- Change masq script fragment to use iptables. [charlieb 1268] |
340 |
|
|
|
341 |
|
|
* Wed Jun 5 2002 Charlie Brady <charlieb@e-smith.com> |
342 |
|
|
- [1.7.1-01] |
343 |
|
|
- Test build to verify CVS conversion |
344 |
|
|
|
345 |
|
|
* Wed Jun 5 2002 Charlie Brady <charlieb@e-smith.com> |
346 |
|
|
- [1.7.0-01] |
347 |
|
|
- rollRPM: Rolled version number to 1.7.0-01. Includes patches up to 1.6.0-01. |
348 |
|
|
|
349 |
|
|
* Tue Dec 11 2001 Jason Miller <jay@e-smith.com> |
350 |
|
|
- [1.6.0-01] |
351 |
|
|
- rollRPM: Rolled version number to 1.6.0-01. Includes patches up to 1.5.0-03. |
352 |
|
|
|
353 |
|
|
* Thu Dec 6 2001 Adrian Chung <adrianc@e-smith.com> |
354 |
|
|
- [1.5.0-03] |
355 |
|
|
- Adding more verbose error messages to mysql-dump-tables. |
356 |
|
|
- It should exit 0 if an error occurs, it should exit 1, and complain. |
357 |
|
|
|
358 |
|
|
* Wed Oct 31 2001 Adrian Chung <adrianc@e-smith.com> |
359 |
|
|
- [1.5.0-02] |
360 |
|
|
- mysql-restart now restarts mysql if it is running, rather |
361 |
|
|
than only starting it if it is stopped. |
362 |
|
|
- mysql-shutdown has been added |
363 |
|
|
- conf-mysql is now mysql-initialize-db |
364 |
|
|
- new template /etc/my.cnf added |
365 |
|
|
- new action mysql-conf which expands /etc/my.cnf linked to |
366 |
|
|
bootstrap-console-save |
367 |
|
|
|
368 |
|
|
* Mon Oct 29 2001 Adrian Chung <mac@e-smith.com> |
369 |
|
|
- [1.5.0-01] |
370 |
|
|
- Rolled version number to 1.5.0-01. Includes patches upto 1.4.0-03. |
371 |
|
|
- Removed directive to remove post-restore event. |
372 |
|
|
|
373 |
|
|
* Tue Aug 28 2001 Gordon Rowell <gordonr@e-smith.com> |
374 |
|
|
- [1.4.0-03] |
375 |
|
|
- Removed deprecated post-restore event directory |
376 |
|
|
|
377 |
|
|
* Fri Aug 17 2001 gordonr |
378 |
|
|
- [1.4.0-02] |
379 |
|
|
- Autorebuild by rebuildRPM |
380 |
|
|
|
381 |
|
|
* Wed Aug 8 2001 Charlie Brady <charlieb@e-smith.com> |
382 |
|
|
- [1.4.0-01] |
383 |
|
|
- Rolled version number to 1.4.0-01. Includes patches upto 1.3.0-18. |
384 |
|
|
|
385 |
|
|
* Wed Aug 08 2001 Tony Clayton <tonyc@e-smith.com> |
386 |
|
|
- [1.3.0-18] |
387 |
|
|
- force mysql.init to sort files in init directory |
388 |
|
|
|
389 |
|
|
* Tue Aug 7 2001 Charlie Brady <charlieb@e-smith.com> |
390 |
|
|
- [1.3.0-17] |
391 |
|
|
- Fix uninitialised variable problem in masq fragment. |
392 |
|
|
|
393 |
|
|
* Wed Jul 04 2001 Gordon Rowell <gordonr@e-smith.com> |
394 |
|
|
- [1.3.0-16] |
395 |
|
|
- Added use esmith::util to mysql-dump-tables |
396 |
|
|
|
397 |
|
|
* Wed Jul 04 2001 Gordon Rowell <gordonr@e-smith.com> |
398 |
|
|
- [1.3.0-15] |
399 |
|
|
- Use esmith::util::LdapPassword rather than direct file read |
400 |
|
|
|
401 |
|
|
* Tue May 29 2001 Tony Clayton <tonyc@e-smith.com> |
402 |
|
|
- [1.3.0-14] |
403 |
|
|
- fixed actions that had tied %conf when calling serviceControl (2 actions) |
404 |
|
|
|
405 |
|
|
* Sat Apr 07 2001 Gordon Rowell <gordonr@e-smith.com> |
406 |
|
|
- [1.3.0-13] |
407 |
|
|
- Forward port patches from 1.2.0-05 to 1.2.0-08 |
408 |
|
|
|
409 |
|
|
* Fri Apr 06 2001 Tony Clayton <tonyc@e-smith.com> |
410 |
|
|
- [1.2.0-08] |
411 |
|
|
- fixed mkdir calls in mysql-delete-dumped-tables (arguments in wrong order) |
412 |
|
|
|
413 |
|
|
* Thu Apr 05 2001 Tony Clayton <tonyc@e-smith.com> |
414 |
|
|
- [1.3.0-12] |
415 |
|
|
- force mysql.init to print to stderr instead of stout |
416 |
|
|
|
417 |
|
|
* Wed Mar 23 2001 Tony Clayton <tonyc@e-smith.com> |
418 |
|
|
- [1.3.0-11] |
419 |
|
|
- fixed uninitialized value error in conf-mysql-startup |
420 |
|
|
|
421 |
|
|
* Wed Mar 21 2001 Tony Clayton <tonyc@e-smith.com> |
422 |
|
|
- [1.3.0-10] |
423 |
|
|
- fixed error on empty glob in mysql.init |
424 |
|
|
|
425 |
|
|
* Wed Mar 21 2001 Tony Clayton <tonyc@e-smith.com> |
426 |
|
|
- [1.3.0-09] |
427 |
|
|
- fixed harmless errors thrown by mysql.init |
428 |
|
|
|
429 |
|
|
* Wed Mar 21 2001 Tony Clayton <tonyc@e-smith.com> |
430 |
|
|
- [1.3.0-08] |
431 |
|
|
- fixed tie bug in conf-mysql-startup script which prevented the mysqld service |
432 |
|
|
from being initialized properly. |
433 |
|
|
|
434 |
|
|
* Thu Mar 15 2001 Tony Clayton <tonyc@e-smith.com> |
435 |
|
|
- [1.3.0-07] |
436 |
|
|
- created mysql.init initscript |
437 |
|
|
- added serviceControl code for mysql.init in conf-mysql-startup |
438 |
|
|
|
439 |
|
|
* Sat Mar 10 2001 Tony Clayton <tonyc@e-smith.com> |
440 |
|
|
- [1.3.0-06] |
441 |
|
|
- fixed mysql call in /sbin/e-smith/mysql-preload |
442 |
|
|
|
443 |
|
|
* Sat Mar 10 2001 Tony Clayton <tonyc@e-smith.com> |
444 |
|
|
- [1.3.0-05] |
445 |
|
|
- fixed bugs in /sbin/e-smith/mysql-preload |
446 |
|
|
|
447 |
|
|
* Fri Mar 9 2001 Adrian Chung <adrianc@e-smith.com> |
448 |
|
|
- [1.3.0-04] |
449 |
|
|
- added /sbin/e-smith/mysql-preload |
450 |
|
|
|
451 |
|
|
* Sat Mar 3 2001 Charlie Brady <charlieb@e-smith.com> |
452 |
|
|
- [1.2.0-07] |
453 |
|
|
- add packetfilter template fragment to deny tcp/3306 |
454 |
|
|
Make packet filter fragment depend on the service db. Only block |
455 |
|
|
TCP SYN packets. |
456 |
|
|
- add Requires for e-smith-packetfilter. |
457 |
|
|
- Add required permissions parameter to mkdir calls. |
458 |
|
|
|
459 |
|
|
* Thu Mar 1 2001 Charlie Brady <charlieb@e-smith.com> |
460 |
|
|
- [1.3.0-03] |
461 |
|
|
- Make packet filter fragment depend on the service db. Only block |
462 |
|
|
TCP SYN packets. |
463 |
|
|
- Add required permissions parameter to mkdir calls. |
464 |
|
|
|
465 |
|
|
* Thu Mar 1 2001 Adrian Chung <adrianc@e-smith.com> |
466 |
|
|
- [1.3.0-02] |
467 |
|
|
- add packetfilter template fragment to deny tcp/3306 |
468 |
|
|
- add Requires for e-smith-packetfilter. |
469 |
|
|
|
470 |
|
|
* Thu Mar 1 2001 Adrian Chung <adrianc@e-smith.com> |
471 |
|
|
- [1.3.0-01] |
472 |
|
|
- Development stream, includes all patches up to and including |
473 |
|
|
1.2.0-05. |
474 |
|
|
- Ported Charlie's MySQL->mysql requires change to development |
475 |
|
|
stream. Was 1.2.0-06, but not built. |
476 |
|
|
|
477 |
|
|
* Fri Feb 16 2001 Adrian Chung <adrianc@e-smith.com> |
478 |
|
|
- [1.2.0-05] |
479 |
|
|
- changed -C option to useradd to a -c for comments. |
480 |
|
|
|
481 |
|
|
* Thu Feb 8 2001 Adrian Chung <adrianc@e-smith.com> |
482 |
|
|
- Rolling release number for GPG signing. |
483 |
|
|
|
484 |
|
|
* Thu Jan 25 2001 Adrian Chung <adrianc@e-smith.com> |
485 |
|
|
- [1.2.0-03] |
486 |
|
|
- changed conf-mysql-account to 08 instead of 05. |
487 |
|
|
|
488 |
|
|
* Thu Jan 25 2001 Adrian Chung <adrianc@e-smith.com> |
489 |
|
|
- [1.2.0-02] |
490 |
|
|
- remove rc0.d/rc6.d symlinks and replace with links to |
491 |
|
|
e-smith-service instead. |
492 |
|
|
|
493 |
|
|
* Thu Jan 25 2001 Peter Samuel <peters@e-smith.com> |
494 |
|
|
- [1.2.0-01] |
495 |
|
|
- Rolled version number to 1.2.0-01. Includes patches upto 1.1.0-31. |
496 |
|
|
|
497 |
|
|
* Thu Jan 25 2001 Adrian Chung <adrianc@e-smith.com> |
498 |
|
|
- [1.1.0-31] |
499 |
|
|
- take expansion of logrotate.d/mysqld template out |
500 |
|
|
of conf-mysqld |
501 |
|
|
|
502 |
|
|
* Wed Jan 24 2001 Adrian Chung <adrianc@e-smith.com> |
503 |
|
|
- [1.1.0-30] |
504 |
|
|
- leave logrotate.d/mysqld alone now, back out patch |
505 |
|
|
- expanding /root/.my.cnf with the password alleviates |
506 |
|
|
need to pass -p to mysqladmin |
507 |
|
|
|
508 |
|
|
* Wed Jan 24 2001 Adrian Chung <adrianc@e-smith.com> |
509 |
|
|
- [1.1.0-29] |
510 |
|
|
- expand logrotate.d/mysqld template |
511 |
|
|
- add template directory for logrotate.d/mysqld |
512 |
|
|
|
513 |
|
|
* Wed Jan 24 2001 Charlie Brady <charlieb@e-smith.com> |
514 |
|
|
- [1.1.0-28] |
515 |
|
|
- Create new mysql-conf-account script - set up mysql account and add it |
516 |
|
|
to the accounts db. Called from post-install and post-upgrade |
517 |
|
|
|
518 |
|
|
* Wed Jan 17 2001 Adrian Chung <adrianc@e-smith.com> |
519 |
|
|
- [1.1.0-27] |
520 |
|
|
- default mysql to enabled |
521 |
|
|
|
522 |
|
|
* Wed Jan 17 2001 Peter Samuel <peters@e-smith.com> |
523 |
|
|
- [1.1.0-26] |
524 |
|
|
- added mysql-delete-dumped-tables action to post-upgrade event |
525 |
|
|
|
526 |
|
|
* Wed Jan 17 2001 Peter Samuel <peters@e-smith.com> |
527 |
|
|
- [1.1.0-25] |
528 |
|
|
- mysql-dump-tables and mysql-import-tables actions do nothing if mysqld |
529 |
|
|
is not running. |
530 |
|
|
- mysql-dump-tables action does nothing if the dump directory does |
531 |
|
|
not exist. |
532 |
|
|
- mysql-import-tables action does nothing if there is no dump file from |
533 |
|
|
which to import. |
534 |
|
|
- created 2 new events - mysql-delete-dumps and mysql-dump-tables |
535 |
|
|
- removed mysql-import-tables action from post-restore |
536 |
|
|
- added mysql-import-tables action to post-upgrade |
537 |
|
|
- created new action mysql-delete-dumped-tables |
538 |
|
|
- added patch22 to list of patches to be applied - must have been |
539 |
|
|
missed in 1.1.0-24. |
540 |
|
|
|
541 |
|
|
* Sat Jan 13 2001 Adrian Chung <adrianc@e-smith.com> |
542 |
|
|
- [1.1.0-24] |
543 |
|
|
- typo $action => restart |
544 |
|
|
|
545 |
|
|
* Sat Jan 13 2001 Adrian Chung <adrianc@e-smith.com> |
546 |
|
|
- [1.1.0-23] |
547 |
|
|
- mysql-{import,dump}-tables checks for enabled status of mysqld |
548 |
|
|
before attempting to dump/import |
549 |
|
|
|
550 |
|
|
* Fri Jan 12 2001 Adrian Chung <adrianc@e-smith.com> |
551 |
|
|
- [1.1.0-22] |
552 |
|
|
- changed "Couldn't $action mysqld" to "Couldn't restart mysqld". |
553 |
|
|
|
554 |
|
|
* Fri Jan 12 2001 Adrian Chung <adrianc@e-smith.com> |
555 |
|
|
- [1.1.0-21] |
556 |
|
|
- $ in front of ENV{'PATH'} |
557 |
|
|
|
558 |
|
|
* Fri Jan 12 2001 Adrian Chung <adrianc@e-smith.com> |
559 |
|
|
- [1.1.0-20] |
560 |
|
|
- add PATH setting to conf-mysql |
561 |
|
|
|
562 |
|
|
* Fri Jan 12 2001 Adrian Chung <adrianc@e-smith.com> |
563 |
|
|
- [1.1.0-19] |
564 |
|
|
- get rid of --no-defaults |
565 |
|
|
|
566 |
|
|
* Fri Jan 12 2001 Adrian Chung <adrianc@e-smith.com> |
567 |
|
|
- [1.1.0-18] |
568 |
|
|
- --force mysql_install_db |
569 |
|
|
|
570 |
|
|
* Fri Jan 12 2001 Tony Clayton <tonyc@e-smith.com> |
571 |
|
|
- [1.1.0-17] |
572 |
|
|
- converted to using serviceControl |
573 |
|
|
|
574 |
|
|
* Fri Jan 12 2001 Adrian Chung <adrianc@e-smith.com> |
575 |
|
|
- [1.1.0-16] |
576 |
|
|
- conf-mysql needs to run even if the service isn't enabled |
577 |
|
|
so that during runtime, it can be enabled, and just go. |
578 |
|
|
|
579 |
|
|
* Thu Jan 11 2001 Adrian Chung <adrianc@e-smith.com> |
580 |
|
|
- [1.1.0-15] |
581 |
|
|
- datadir check should be /var/lib/mysql/mysql. |
582 |
|
|
|
583 |
|
|
* Thu Jan 11 2001 Adrian Chung <adrianc@e-smith.com> |
584 |
|
|
- [1.1.0-14] |
585 |
|
|
- conf-mysql-password checks for MySQL datadir first |
586 |
|
|
- mysql-{dump,import}-tables moved to |
587 |
|
|
/etc/e-smith/events/actions |
588 |
|
|
- mysql-import-tables added to post-restore action |
589 |
|
|
|
590 |
|
|
* Thu Jan 11 2001 Adrian Chung <adrianc@e-smith.com> |
591 |
|
|
- [1.1.0-13] |
592 |
|
|
- conf-mysql-password resets the root password, and |
593 |
|
|
gets rid of two blank account entries |
594 |
|
|
- /sbin/e-smith/mysql-dump-tables has been added |
595 |
|
|
which dumps mysql.dump to /home/e-smith/db/mysql |
596 |
|
|
- /sbin/e-smith/mysql-import-tables has been added |
597 |
|
|
which imports a mysql.dump text file back into a |
598 |
|
|
running system |
599 |
|
|
|
600 |
|
|
* Thu Jan 11 2001 Adrian Chung <adrianc@e-smith.com> |
601 |
|
|
- [1.1.0-12] |
602 |
|
|
- conf-mysql-password now runs in console-save as well. |
603 |
|
|
- if the system is started up without mysqld enabled, |
604 |
|
|
a password won't be set, since there are no mysql tables |
605 |
|
|
initialized yet. |
606 |
|
|
|
607 |
|
|
* Thu Jan 11 2001 Adrian Chung <adrianc@e-smith.com> |
608 |
|
|
- [1.1.0-11] |
609 |
|
|
- conf-mysql-password runs without checking whether mysql |
610 |
|
|
is enabled. It does not require mysqld to be started, and |
611 |
|
|
should always at least keep the root password in sync, in |
612 |
|
|
case mysqld is enabled, and started during a running system |
613 |
|
|
session. |
614 |
|
|
|
615 |
|
|
* Thu Jan 11 2001 Adrian Chung <adrianc@e-smith.com> |
616 |
|
|
- [1.1.0-10] |
617 |
|
|
- add mysql-conf-startup to post-install/upgrade. |
618 |
|
|
|
619 |
|
|
* Thu Jan 11 2001 Adrian Chung <adrianc@e-smith.com> |
620 |
|
|
- [1.1.0-9] |
621 |
|
|
- make conf-mysql-password set the mysql password, instead of |
622 |
|
|
setting up a once-run script. |
623 |
|
|
|
624 |
|
|
* Wed Jan 10 2001 Charlie Brady <charlieb@e-smith.com> |
625 |
|
|
- [1.1.0-8] |
626 |
|
|
- Create new mysql-conf-startup script - split from mysql-conf |
627 |
|
|
- Create new bootstrap-console-save event and install mysql-conf into it |
628 |
|
|
|
629 |
|
|
* Mon Dec 18 2000 Adrian Chung <adrianc@e-smith.com> |
630 |
|
|
- [1.1.0-7] |
631 |
|
|
- added configuration database to db command.(typo). |
632 |
|
|
|
633 |
|
|
* Mon Dec 18 2000 Adrian Chung <adrianc@e-smith.com> |
634 |
|
|
- [1.1.0-6] |
635 |
|
|
- added UnsavedChanges wrapper around script so that it resets |
636 |
|
|
UnsavedChanges flag appropriately. |
637 |
|
|
|
638 |
|
|
* Fri Dec 15 2000 Adrian Chung <adrianc@e-smith.com> |
639 |
|
|
- Added chmod 0755 for mysqld-password init script. |
640 |
|
|
- Moved /etc/etc/rc.d to /etc/rc.d |
641 |
|
|
|
642 |
|
|
* Fri Dec 15 2000 Adrian Chung <adrianc@e-smith.com> |
643 |
|
|
- Added conf-mysql-password to post-install which sets |
644 |
|
|
up mysqld-password in rc7.d to be run once to set the |
645 |
|
|
password. The mysqld-password script removes it's link |
646 |
|
|
from runlevel 7 and updates the configuration/services |
647 |
|
|
database. |
648 |
|
|
|
649 |
|
|
* Fri Nov 24 2000 Adrian Chung <adrianc@e-smith.com> |
650 |
|
|
- Changed mysql to mysqld. |
651 |
|
|
|
652 |
|
|
* Wed Nov 22 2000 Adrian Chung <adrianc@e-smith.com> |
653 |
|
|
- Minor modifications to conf-mysql script to make it work |
654 |
|
|
with the RH7.0 version of mysql. |
655 |
|
|
|
656 |
|
|
* Wed Nov 22 2000 Adrian Chung <adrianc@e-smith.com> |
657 |
|
|
- Rolled to 1.1.0, for 4.1/7.0 stream. Changed mysql to mysqld. |
658 |
|
|
|
659 |
|
|
* Tue Nov 14 2000 Adrian Chung <adrianc@e-smith.com> |
660 |
|
|
- initial release |
661 |
|
|
|
662 |
|
|
%description |
663 |
|
|
This package adds necessary startup and configuration items for |
664 |
|
|
mysql. |
665 |
|
|
|
666 |
|
|
%prep |
667 |
|
|
%setup |
668 |
|
|
%patch0 -p1 |
669 |
|
|
%patch1 -p1 |
670 |
|
|
%patch2 -p1 |
671 |
|
|
%patch3 -p1 |
672 |
|
|
%patch4 -p1 |
673 |
|
|
%patch5 -p1 |
674 |
|
|
%patch6 -p1 |
675 |
|
|
%patch7 -p1 |
676 |
|
|
%patch8 -p1 |
677 |
|
|
%patch10 -p1 |
678 |
|
|
|
679 |
|
|
%build |
680 |
|
|
mkdir -p root/etc/e-smith/sql/init |
681 |
|
|
perl createlinks |
682 |
|
|
|
683 |
|
|
# add this for mysql.com rpm compatibility |
684 |
|
|
mkdir -p root/var/run/mysqld |
685 |
|
|
|
686 |
|
|
mkdir -p root/etc/rc.d/init.d/supervise |
687 |
|
|
ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysqld |
688 |
|
|
|
689 |
|
|
mkdir -p root/etc/rc.d/rc7.d |
690 |
|
|
ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysqld |
691 |
|
|
ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql.init |
692 |
|
|
|
693 |
|
|
mkdir -p root/service |
694 |
|
|
ln -s /var/service/mysqld root/service |
695 |
|
|
touch root/var/service/mysqld/down |
696 |
|
|
|
697 |
|
|
mkdir -p root/var/log/mysqld |
698 |
|
|
mkdir -p root/home/e-smith/db/mysql |
699 |
|
|
|
700 |
|
|
|
701 |
|
|
%install |
702 |
|
|
rm -rf $RPM_BUILD_ROOT |
703 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
704 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
705 |
|
|
--dir /var/run/mysqld 'attr(0755,mysql,mysql)' \ |
706 |
|
|
--file /var/service/mysqld/run 'attr(0755,root,root)' \ |
707 |
|
|
--file /var/service/mysqld/control/t 'attr(0750,root,root)' \ |
708 |
|
|
--file /var/service/mysqld/control/d 'attr(0750,root,root)' \ |
709 |
|
|
--file /var/service/mysqld/control/i 'attr(0750,root,root)' \ |
710 |
|
|
--file /var/service/mysqld/control/q 'attr(0750,root,root)' \ |
711 |
|
|
--file /var/service/mysqld/log/run 'attr(0755,root,root)' \ |
712 |
|
|
--dir '/var/log/mysqld' 'attr(2750,smelog,smelog)' \ |
713 |
|
|
--dir '/home/e-smith/db/mysql' 'attr(0750,root,root)' \ |
714 |
|
|
> %{name}-%{version}-filelist |
715 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
716 |
|
|
|
717 |
|
|
%clean |
718 |
|
|
rm -rf $RPM_BUILD_ROOT |
719 |
|
|
|
720 |
|
|
%pre |
721 |
|
|
%preun |
722 |
|
|
|
723 |
|
|
%post |
724 |
|
|
# mysql.com compatibility |
725 |
|
|
[ -e /etc/rc.d/init.d/mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysqld |
726 |
|
|
|
727 |
|
|
%postun |
728 |
bytegw |
1.2 |
if [ "$1" == 0 ]; then |
729 |
slords |
1.1 |
[ -l /etc/rc.d/init.d/mysqld ] && rm /etc/rc.d/init.d/mysqld |
730 |
|
|
fi |
731 |
|
|
|
732 |
|
|
%files -f %{name}-%{version}-filelist |
733 |
|
|
%defattr(-,root,root) |