2006-02-23 16:26:10 +01:00
|
|
|
# Description: SQL database server
|
|
|
|
# URL: http://www.mysql.com
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2008-08-08 09:12:34 +02:00
|
|
|
# Depends on: ncurses readline zlib
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=mysql
|
2009-05-28 10:13:00 +02:00
|
|
|
version=5.0.82
|
2008-12-22 18:12:16 +01:00
|
|
|
release=1
|
2007-06-01 15:13:49 +02:00
|
|
|
source=(http://mirror.switch.ch/mirror/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 \
|
2009-02-17 15:48:55 +01:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 16:26:10 +01:00
|
|
|
--enable-assembler \
|
|
|
|
--enable-thread-safe-client \
|
|
|
|
--without-berkeley-db \
|
2006-02-24 09:17:08 +01:00
|
|
|
--enable-innodb \
|
2008-08-08 09:12:34 +02:00
|
|
|
--without-readline \
|
2006-02-23 16:26:10 +01:00
|
|
|
--without-debug \
|
|
|
|
--without-docs \
|
2008-12-22 18:12:16 +01:00
|
|
|
--without-bench
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
rm -r $PKG/usr/mysql-test
|
2006-08-04 17:05:43 +02:00
|
|
|
rm $PKG/usr/share/mysql/charsets/README
|
2006-02-23 16:26:10 +01:00
|
|
|
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
|
2008-10-23 11:52:18 +02:00
|
|
|
|
|
|
|
install -d $PKG/etc/ld.so.conf.d
|
|
|
|
echo "/usr/lib/mysql" > $PKG/etc/ld.so.conf.d/mysql.conf
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|