|
|
@@ -40,7 +40,7 @@ Class: BASE
|
|
|
Group: Database
|
|
|
License: GPL
|
|
|
Version: %{V_opkg}
|
|
|
-Release: 20070912
|
|
|
+Release: 20071005
|
|
|
|
|
|
# package options
|
|
|
%option with_server yes
|
|
|
@@ -239,18 +239,19 @@ AutoReqProv: no
|
|
|
|
|
|
# install global configuration
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/mysql
|
|
|
- %{l_shtool} install%{l_nil} -c -m 644 %{l_value -s -a} \
|
|
|
+ sed <%{SOURCE my.cnf} >my.cnf \
|
|
|
%if "%{with_bdb}" == "yes"
|
|
|
-e '/<\/\{0,1\}with_bdb>/d' \
|
|
|
%else
|
|
|
-e '/<with_bdb>/,/<\/with_bdb>/d' \
|
|
|
%endif
|
|
|
%if "%{with_innobase}" == "yes"
|
|
|
- -e '/<\/\{0,1\}with_innobase>/d' \
|
|
|
+ -e '/<\/\{0,1\}with_innobase>/d'
|
|
|
%else
|
|
|
- -e '/<with_innobase>/,/<\/with_innobase>/d' \
|
|
|
+ -e '/<with_innobase>/,/<\/with_innobase>/d'
|
|
|
%endif
|
|
|
- %{SOURCE my.cnf} \
|
|
|
+ %{l_shtool} install -c -m 644 %{l_value -s -a} \
|
|
|
+ my.cnf \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/mysql/
|
|
|
%{l_shtool} install -c -m 600 \
|
|
|
%{SOURCE my.pwd} \
|