blob: 97f49290988149cd726e2254cc69e9e1f61d18ff (
plain)
1 # Description: SQL database server
2 # URL: http://www.mysql.com
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: tcp_wrappers ncurses zlib openssl cmake libaio
5
6 name=mysql
7 version=5.6.26
8 release=1
9 source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/$name-$version.tar.gz \
10 my.cnf mysqld)
11
12 build () {
13 cd $name-$version
14
15 # fix for openssl 1.0.2
16 sed -i 's/REGEX "^#define/REGEX "^# *define/' cmake/ssl.cmake
17
18 cmake . \
19 -DBUILD_CONFIG=mysql_release \
20 -DINSTALL_LAYOUT=RPM \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DSYSCONFDIR=/etc \
23 -DINSTALL_LIBDIR=lib \
24 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
25 -DINSTALL_MANDIR=man \
26 -DWITH_LIBWRAP=1 \
27 -DWITH_SSL=system \
28 -DWITH_ZLIB=system
29
30 make
31 make DESTDIR=$PKG install
32
33 rm -r $PKG/usr/share/{mysql-test,info}
34 rm $PKG/usr/share/mysql/charsets/README
35 find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
36
37 install -d -m 700 -o mysql -g mysql $PKG/var/{lib,log,run}/mysql
38 install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
39 install -m 600 $SRC/my.cnf $PKG/etc
40 }
|