blob: 9e971efc91dc009691bfe30535f1bd69280d11db (
plain)
1 # Description: SQL database server
2 # URL: http://www.mysql.com
3 # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
4 # Depends on: ncurses readline zlib
5
6 name=mysql
7 version=5.0.81
8 release=1
9 source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.0/$name-$version.tar.gz \
10 my.cnf mysqld)
11
12 build () {
13 cd $name-$version
14 ./configure --prefix=/usr \
15 --sysconfdir=/etc \
16 --libexecdir=/usr/sbin \
17 --localstatedir=/var/lib \
18 --mandir=/usr/man \
19 --enable-assembler \
20 --enable-thread-safe-client \
21 --without-berkeley-db \
22 --enable-innodb \
23 --without-readline \
24 --without-debug \
25 --without-docs \
26 --without-bench
27 make
28 make DESTDIR=$PKG install
29
30 rm -r $PKG/usr/mysql-test
31 rm $PKG/usr/share/mysql/charsets/README
32 find $PKG/usr/share/mysql/* -prune -type f ! -regex '.*\(cnf\|sql\)$' | xargs rm -f {} \;
33 find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
34
35 mkdir -p $PKG/{var/lib,var/log}
36 touch mysqld.log
37 install -m 600 -o daemon -g daemon mysqld.log $PKG/var/log
38 install -d -m 700 -o daemon -g daemon $PKG/var/lib/mysql
39 install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
40 install -m 600 $SRC/my.cnf $PKG/etc
41
42 install -d $PKG/etc/ld.so.conf.d
43 echo "/usr/lib/mysql" > $PKG/etc/ld.so.conf.d/mysql.conf
44 }
|