1 |
unnilennium |
1.1 |
Summary: smeserver specific mysql55 configuration and templates. |
2 |
|
|
%define name smeserver-mysql55 |
3 |
|
|
Name: %{name} |
4 |
unnilennium |
1.2 |
%define version 2.0.0 |
5 |
unnilennium |
1.8 |
%define release 6 |
6 |
unnilennium |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
Group: Networking/Daemons |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
unnilennium |
1.5 |
Patch0: smeserver-mysql55-2.0.0-SME10094.patch |
12 |
unnilennium |
1.6 |
Patch1: smeserver-mysql55-2.0.0-SME10095-phpmyadmin.patch |
13 |
unnilennium |
1.7 |
Patch2: smeserver-mysql55-2.0.0-SME10099-prebackupdump.patch |
14 |
unnilennium |
1.8 |
Patch3: smeserver-mysql55-2.0.0-SME1096.patch |
15 |
unnilennium |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
|
|
BuildArchitectures: noarch |
17 |
|
|
Requires: mysql55-mysql-server |
18 |
|
|
Requires: mysql55-mysql |
19 |
|
|
Requires: mysql55-runtime |
20 |
|
|
Requires: mysql55-mysql-libs |
21 |
|
|
Requires: mysql55 |
22 |
|
|
Requires: e-smith-base |
23 |
|
|
Requires: e-smith-lib >= 1.15.1-19 |
24 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
25 |
|
|
AutoReqProv: no |
26 |
|
|
|
27 |
|
|
%changelog |
28 |
unnilennium |
1.8 |
* Wed Mar 08 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-6.sme |
29 |
|
|
- fix init55 not used by dedicated mysql.init [SME: 1096] |
30 |
|
|
|
31 |
unnilennium |
1.7 |
* Sat Feb 18 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-5.sme |
32 |
|
|
- fix failure to dump mysql55 table on pre-backup event [SME: 1099] |
33 |
|
|
|
34 |
unnilennium |
1.6 |
* Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-4.sme |
35 |
|
|
- added template for phpmyadmin direct support [SME: 10095] |
36 |
|
|
- you can access directly to your mysql55 db with the phpmyadmin contrib |
37 |
|
|
|
38 |
unnilennium |
1.5 |
* Thu Feb 16 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-3.sme |
39 |
|
|
- fix incorrect startup script [SME: 10094] |
40 |
|
|
- MYSQL55_MYSQLD_SCLS_ENABLED is now MYSQL55_SCLS_ENABLED |
41 |
|
|
|
42 |
unnilennium |
1.4 |
* Wed Feb 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.0.0-2.sme |
43 |
unnilennium |
1.2 |
- first import to SME9 |
44 |
|
|
- mysql55 scl only available for x86_64 |
45 |
|
|
|
46 |
unnilennium |
1.1 |
* Wed Nov 04 2015 JP Pialasse <tests@pialasse.com> 1.0.0-5.sme |
47 |
|
|
- fixed root pass link typo [SME: 8527] |
48 |
|
|
|
49 |
|
|
* Mon May 19 2014 JP Pialasse <tests@pialasse.com> 1.0.0-4.sme |
50 |
|
|
- initial release from e-smith-mysql 2.0.0-4 |
51 |
|
|
|
52 |
|
|
%description |
53 |
|
|
This package adds necessary startup and configuration items for |
54 |
|
|
mysql55. |
55 |
|
|
|
56 |
|
|
%prep |
57 |
|
|
%setup |
58 |
unnilennium |
1.5 |
%patch0 -p1 |
59 |
unnilennium |
1.6 |
%patch1 -p1 |
60 |
unnilennium |
1.7 |
%patch2 -p1 |
61 |
unnilennium |
1.8 |
%patch3 -p1 |
62 |
unnilennium |
1.1 |
|
63 |
|
|
%build |
64 |
|
|
mkdir -p root/etc/e-smith/sql/init55 |
65 |
|
|
perl createlinks |
66 |
|
|
|
67 |
|
|
# add this for mysql.com rpm compatibility |
68 |
|
|
#mkdir -p root/var/run/mysql55-mysqld |
69 |
|
|
# we hould we rather link to the actual dir in opt , done in createlinks |
70 |
|
|
|
71 |
|
|
mkdir -p root/etc/rc.d/init.d/supervise |
72 |
|
|
ln -s ../daemontools root/etc/rc.d/init.d/supervise/mysql55-mysqld |
73 |
|
|
|
74 |
|
|
mkdir -p root/etc/rc.d/rc7.d |
75 |
|
|
ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S50mysql55-mysqld |
76 |
|
|
ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S99mysql55-mysql.init |
77 |
|
|
|
78 |
|
|
mkdir -p root/service |
79 |
|
|
ln -s /var/service/mysql55-mysqld root/service |
80 |
|
|
touch root/var/service/mysql55-mysqld/down |
81 |
|
|
|
82 |
|
|
mkdir -p root/var/log/mysql55-mysqld |
83 |
|
|
mkdir -p root/home/e-smith/db/mysql55 |
84 |
|
|
|
85 |
|
|
|
86 |
|
|
%install |
87 |
|
|
rm -rf $RPM_BUILD_ROOT |
88 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
89 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
90 |
|
|
--dir /var/run/mysql55-mysqld 'attr(0755,mysql,mysql)' \ |
91 |
|
|
--file /var/service/mysql55-mysqld/run 'attr(0755,root,root)' \ |
92 |
|
|
--file /var/service/mysql55-mysqld/control/t 'attr(0750,root,root)' \ |
93 |
|
|
--file /var/service/mysql55-mysqld/control/d 'attr(0750,root,root)' \ |
94 |
|
|
--file /var/service/mysql55-mysqld/control/i 'attr(0750,root,root)' \ |
95 |
|
|
--file /var/service/mysql55-mysqld/control/q 'attr(0750,root,root)' \ |
96 |
|
|
--file /var/service/mysql55-mysqld/log/run 'attr(0755,root,root)' \ |
97 |
|
|
--dir '/var/log/mysql55-mysqld' 'attr(2750,smelog,smelog)' \ |
98 |
|
|
--dir '/home/e-smith/db/mysql55' 'attr(0750,root,root)' \ |
99 |
|
|
> %{name}-%{version}-filelist |
100 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
101 |
|
|
|
102 |
|
|
%clean |
103 |
|
|
rm -rf $RPM_BUILD_ROOT |
104 |
|
|
|
105 |
|
|
%pre |
106 |
|
|
%preun |
107 |
|
|
|
108 |
|
|
%post |
109 |
|
|
## mysql.com compatibility |
110 |
|
|
#[ -e /etc/rc.d/init.d/mysql55-mysqld ] || ln -s ./mysql /etc/rc.d/init.d/mysql55-mysqld |
111 |
|
|
|
112 |
|
|
%postun |
113 |
|
|
#if [ "$1" == 0 ]; then |
114 |
|
|
# [ -L /etc/rc.d/init.d/mysql55-mysqld ] && rm /etc/rc.d/init.d/mysql55-mysqld || : |
115 |
|
|
#fi |
116 |
|
|
|
117 |
|
|
%files -f %{name}-%{version}-filelist |
118 |
|
|
%defattr(-,root,root) |