|
|
|
|
@ -37,7 +37,7 @@ Distribution: OpenPKG [BASE]
|
|
|
|
|
Group: Database |
|
|
|
|
License: GPL |
|
|
|
|
Version: %{V_major}.%{V_minor} |
|
|
|
|
Release: 20030103 |
|
|
|
|
Release: 20030109 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_berkeleydb yes |
|
|
|
|
@ -90,9 +90,10 @@ AutoReqProv: no
|
|
|
|
|
%build |
|
|
|
|
# determine additional configure options |
|
|
|
|
case "%{l_target}" in |
|
|
|
|
*-freebsd* ) opt="--with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static" ;; |
|
|
|
|
*-linux* ) opt="--with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static" ;; |
|
|
|
|
*-solaris* ) opt="" ;; # static compiling doesn't work under Solaris because of missing libdl.a |
|
|
|
|
*-freebsd* ) opt="--with-client-ldflags=-static --with-mysqld-ldflags=-static" ;; |
|
|
|
|
*-linux* ) opt="--with-client-ldflags=-static --with-mysqld-ldflags=-static" ;; |
|
|
|
|
*-solaris* ) opt="--with-client-ldflags=-static --with-mysqld-ldflags=-static" ;; |
|
|
|
|
#*-solaris* ) opt="" ;; # static compiling doesn't work under Solaris because of missing libdl.a |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
# configure source tree |
|
|
|
|
@ -188,7 +189,8 @@ AutoReqProv: no
|
|
|
|
|
|
|
|
|
|
%post |
|
|
|
|
# create initial database |
|
|
|
|
$RPM_INSTALL_PREFIX/bin/mysql_install_db |
|
|
|
|
$RPM_INSTALL_PREFIX/bin/mysql_install_db \ |
|
|
|
|
--defaults-file=$RPM_INSTALL_PREFIX/etc/mysql/my.cnf |
|
|
|
|
chown %{l_rusr}:%{l_rgrp} \ |
|
|
|
|
$RPM_INSTALL_PREFIX/etc/mysql/my.cnf \ |
|
|
|
|
$RPM_INSTALL_PREFIX/etc/mysql/my.pwd |
|
|
|
|
|