2006-02-23 16:26:10 +01:00
|
|
|
|
# Description: SQL database server
|
|
|
|
|
# URL: http://www.mysql.com
|
|
|
|
|
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
|
|
|
|
|
# Depends on: ncurses, zlib
|
|
|
|
|
|
|
|
|
|
name=mysql
|
2006-06-01 12:19:08 +02:00
|
|
|
|
version=5.0.22
|
2006-02-23 16:26:10 +01:00
|
|
|
|
release=1
|
2006-02-24 09:17:08 +01:00
|
|
|
|
source=(http://mirrors.sunsite.dk/mysql/Downloads/MySQL-5.0/$name-$version.tar.gz \
|
2006-02-23 16:26:10 +01:00
|
|
|
|
my.cnf mysqld)
|
|
|
|
|
|
|
|
|
|
build () {
|
|
|
|
|
cd $name-$version
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--libexecdir=/usr/sbin \
|
|
|
|
|
--localstatedir=/var/lib \
|
|
|
|
|
--enable-assembler \
|
|
|
|
|
--enable-thread-safe-client \
|
|
|
|
|
--without-berkeley-db \
|
2006-02-24 09:17:08 +01:00
|
|
|
|
--enable-innodb \
|
2006-02-23 16:26:10 +01:00
|
|
|
|
--without-debug \
|
|
|
|
|
--without-docs \
|
|
|
|
|
--without-bench
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
|
|
rm -r $PKG/usr/mysql-test
|
|
|
|
|
find $PKG/usr/share/mysql/* -prune -type f ! -regex '.*\(cnf\|sql\)$' | xargs rm -f {} \;
|
|
|
|
|
find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/{var/lib,var/log}
|
|
|
|
|
touch mysqld.log
|
|
|
|
|
install -m 600 -o daemon -g daemon mysqld.log $PKG/var/log
|
|
|
|
|
install -d -m 700 -o daemon -g daemon $PKG/var/lib/mysql
|
|
|
|
|
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
|
|
|
|
|
install -m 600 $SRC/my.cnf $PKG/etc
|
|
|
|
|
}
|