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.6/$name-$version.tar.gz \
11 my.cnf mysqld valist.patch)
16 patch -p1 -i $SRC/valist.patch
18 # fix for openssl 1.0.2
19 sed -i 's/REGEX "^#define/REGEX "^# *define/' cmake/ssl.cmake
22 -DBUILD_CONFIG=mysql_release \
23 -DINSTALL_LAYOUT=RPM \
24 -DCMAKE_INSTALL_PREFIX=/usr \
26 -DINSTALL_LIBDIR=lib \
27 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
28 -DINSTALL_MANDIR=man \
34 make DESTDIR=$PKG install
36 rm -r $PKG/usr/share/{mysql-test,info}
37 rm $PKG/usr/share/mysql/charsets/README
38 find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
40 install -d -m 700 -o mysql -g mysql $PKG/var/{lib,log,run}/mysql
41 install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
42 install -m 600 $SRC/my.cnf $PKG/etc