1 # Description: SQL database server
2 # URL: http://www.mysql.com
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: tcp_wrappers ncurses zlib openssl cmake libaio
10 source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.5/$name-$version.tar.gz \
11 my.cnf mysqld $name-${version}_valist.patch)
15 patch -p1 -i $SRC/$name-${version}_valist.patch
17 -DBUILD_CONFIG=mysql_release \
18 -DINSTALL_LAYOUT=RPM \
19 -DCMAKE_INSTALL_PREFIX=/usr \
21 -DINSTALL_LIBDIR=lib \
22 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
23 -DINSTALL_MANDIR=man \
29 make DESTDIR=$PKG install
31 rm -r $PKG/usr/share/{mysql-test,info}
32 rm $PKG/usr/share/mysql/charsets/README
33 find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
35 install -d $PKG/var/{lib,log}
37 install -m 600 -o mysql -g mysql mysqld.log $PKG/var/log
38 install -d -m 700 -o mysql -g mysql $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