1 |
jpp |
1.1 |
Summary: smeserver specific mysql57 configuration and templates. |
2 |
|
|
%define name smeserver-mysql57 |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 2.0.0 |
5 |
jpp |
1.6 |
%define release 15 |
6 |
jpp |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
Group: Networking/Daemons |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
Patch0: smeserver-mysql57-2.0.0-SME10096.patch |
12 |
|
|
Patch1: smeserver-mysql57-2.0.0-SME10145-phmyadminFragment.patch |
13 |
|
|
Patch2: smeserver-mysql57-2.0.0-SME10146-aliases.patch |
14 |
|
|
Patch3: smeserver-mysql57-2.0.0-SME10147-rhpath.patch |
15 |
|
|
Patch4: smeserver-mysql57-2.0.0-SME10148.patch |
16 |
|
|
Patch5: smeserver-mysql57-2.0.0-SME10148-initializeDB.patch |
17 |
|
|
Patch6: smeserver-mysql57-2.0.0-SME10148-initializeDB2.patch |
18 |
|
|
Patch7: smeserver-mysql57-2.0.0-SME10197.patch |
19 |
|
|
Patch8: smeserver-mysql57-2.0.0-SME10202-prebackup.patch |
20 |
|
|
Patch9: smeserver-mysql57-2.0.0-SME10830-user.frm.patch |
21 |
jpp |
1.2 |
Patch10: smeserver-mysql57-2.0.0-bz11877-systemd.patch |
22 |
jpp |
1.6 |
Patch11: smeserver-mysql57-2.0.0-bz11896-initscripts.patch |
23 |
jpp |
1.1 |
|
24 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
25 |
|
|
BuildArchitectures: noarch |
26 |
|
|
Requires: rh-mysql57 |
27 |
|
|
Requires: e-smith-base |
28 |
|
|
Requires: e-smith-lib >= 1.15.1-19 |
29 |
|
|
|
30 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
31 |
|
|
AutoReqProv: no |
32 |
|
|
|
33 |
|
|
%changelog |
34 |
jpp |
1.6 |
* Sat Mar 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-15.sme |
35 |
|
|
- fix mysql.init and few other scripts [SME: 11896] |
36 |
|
|
|
37 |
jpp |
1.5 |
* Thu Feb 24 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-14.sme |
38 |
|
|
- expand phpmyadmin config file on install [SME: 11877] |
39 |
|
|
|
40 |
jpp |
1.2 |
* Wed Feb 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-13.sme |
41 |
|
|
- adapt for SME10 [SME: 11877] |
42 |
|
|
systemd service files |
43 |
|
|
update event |
44 |
|
|
changing paths |
45 |
|
|
|
46 |
jpp |
1.1 |
* Thu Nov 21 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-12.sme |
47 |
|
|
- fix reload dump when should not [SME: 10830] |
48 |
|
|
|
49 |
|
|
* Mon Apr 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-11.sme |
50 |
|
|
- fix pre-backup failure [SME: 10202] |
51 |
|
|
|
52 |
|
|
* Thu Mar 30 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-10.sme |
53 |
|
|
- fix initialize and load table [SME: 10197] |
54 |
|
|
|
55 |
|
|
* Wed Mar 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-9.sme |
56 |
|
|
- some more modification to allow initialization [SME: 10148] |
57 |
|
|
- error log was missing stoping initialization |
58 |
|
|
- tweaking log format for system time |
59 |
|
|
|
60 |
|
|
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-7.sme |
61 |
|
|
- update run file and template paths [SME: 10148] |
62 |
|
|
- r8: add link for configuration ln -s /etc/opt/rh/rh-mysql57 /opt/rh/rh-mysql57/root/etc |
63 |
|
|
- update run, set.password and my.cnf for rh-mysql57 |
64 |
|
|
|
65 |
|
|
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme |
66 |
|
|
- fix wrong path /opt/rh/mysql57/ [SME: 10147] |
67 |
|
|
|
68 |
|
|
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme |
69 |
|
|
- NFR new aliases for fast use: mysql57 mysqlshow57 mysqladmin57 mysqldump57 mysqlimport57 mysqlbinlog57 [SME: 10146] |
70 |
|
|
|
71 |
|
|
* Sun Mar 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme |
72 |
|
|
- fix conflict with mysql55 phpmyadmin fragment [SME: 10145] |
73 |
|
|
|
74 |
|
|
* Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme |
75 |
|
|
- fix init57 not used by dedicated mysql.init [SME: 10096] |
76 |
|
|
|
77 |
|
|
* Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme |
78 |
|
|
- fix requires rh-myql57 |
79 |
|
|
|
80 |
|
|
* Sun Feb 19 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-1.sme |
81 |
|
|
- first version forked from smeserver-mysql57-2.0.0-5 |
82 |
|
|
|
83 |
|
|
|
84 |
|
|
%description |
85 |
|
|
This package adds necessary startup and configuration items for |
86 |
|
|
mysql57. |
87 |
|
|
|
88 |
|
|
%prep |
89 |
|
|
%setup |
90 |
|
|
%patch0 -p1 |
91 |
|
|
%patch1 -p1 |
92 |
|
|
%patch2 -p1 |
93 |
|
|
%patch3 -p1 |
94 |
|
|
%patch4 -p1 |
95 |
|
|
%patch5 -p1 |
96 |
|
|
%patch6 -p1 |
97 |
|
|
%patch7 -p1 |
98 |
|
|
%patch8 -p1 |
99 |
|
|
%patch9 -p1 |
100 |
jpp |
1.2 |
%patch10 -p1 |
101 |
jpp |
1.6 |
%patch11 -p1 |
102 |
jpp |
1.1 |
|
103 |
|
|
%build |
104 |
|
|
mkdir -p root/etc/e-smith/sql/init57 |
105 |
jpp |
1.2 |
#mkdir -p root/opt/rh/rh-mysql57/root |
106 |
jpp |
1.1 |
perl createlinks |
107 |
|
|
|
108 |
|
|
# add this for mysql.com rpm compatibility |
109 |
|
|
#mkdir -p root/var/run/mysql57-mysqld |
110 |
|
|
# we hould we rather link to the actual dir in opt , done in createlinks |
111 |
|
|
|
112 |
jpp |
1.2 |
#mkdir -p root/etc/rc.d/init.d/supervise |
113 |
|
|
#ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql57-mysqld |
114 |
jpp |
1.1 |
|
115 |
jpp |
1.2 |
#mkdir -p root/etc/rc.d/rc7.d |
116 |
|
|
#ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql57-mysqld |
117 |
|
|
#ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql57-mysql.init |
118 |
|
|
|
119 |
|
|
#mkdir -p root/service |
120 |
|
|
#ln -s /var/service/mysql57-mysqld root/service |
121 |
|
|
#touch root/var/service/mysql57-mysqld/down |
122 |
jpp |
1.1 |
|
123 |
jpp |
1.2 |
rm -rf root/var/service |
124 |
jpp |
1.1 |
mkdir -p root/var/log/mysql57-mysqld |
125 |
|
|
mkdir -p root/home/e-smith/db/mysql57 |
126 |
jpp |
1.2 |
rm -rf root/etc/e-smith/templates.metadata/var/service |
127 |
jpp |
1.3 |
rm -rf root/service |
128 |
jpp |
1.4 |
rm -rf root/etc/e-smith/templates/opt |
129 |
|
|
rm -rf root/etc/e-smith/templates/var/service |
130 |
jpp |
1.1 |
|
131 |
|
|
%install |
132 |
|
|
rm -rf $RPM_BUILD_ROOT |
133 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
134 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
135 |
jpp |
1.2 |
--file /sbin/e-smith/systemd/mysql57-initialize 'attr(0757,mysql,mysql)' \ |
136 |
|
|
--file /sbin/e-smith/systemd/mysql57-mysql.init 'attr(0757,mysql,mysql)' \ |
137 |
|
|
--dir /var/log/mysql57-mysqld 'attr(2750,root,root)' \ |
138 |
|
|
--dir /home/e-smith/db/mysql57 'attr(0750,root,root)' \ |
139 |
jpp |
1.4 |
| grep -vP '/opt/rh/rh-mysql57$' \ |
140 |
|
|
| grep -vP '/opt/rh/rh-mysql57/root$' \ |
141 |
jpp |
1.1 |
> %{name}-%{version}-filelist |
142 |
jpp |
1.2 |
#--dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \ |
143 |
jpp |
1.1 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
144 |
jpp |
1.4 |
# /opt/rh/rh-mysql57 and /opt/rh/rh-mysql57/root conflicts |
145 |
|
|
|
146 |
jpp |
1.1 |
|
147 |
|
|
%clean |
148 |
|
|
rm -rf $RPM_BUILD_ROOT |
149 |
|
|
|
150 |
|
|
%pre |
151 |
|
|
%preun |
152 |
|
|
|
153 |
|
|
%post |
154 |
|
|
## mysql.com compatibility |
155 |
|
|
#[ -e /etc/rc.d/init.d/mysql57-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql57-mysqld |
156 |
|
|
|
157 |
|
|
%postun |
158 |
|
|
#if [ "$1" == 0 ]; then |
159 |
|
|
# [ -L /etc/rc.d/init.d/mysql57-mysqld ] && rm /etc/rc.d/init.d/mysql57-mysqld || : |
160 |
|
|
#fi |
161 |
|
|
|
162 |
|
|
%files -f %{name}-%{version}-filelist |
163 |
|
|
%defattr(-,root,root) |