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