Commit | Line | Data |
---|---|---|
825e3023 | 1 | # Description: SQL database server |
d71454cc VM |
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 | |
825e3023 VM |
6 | |
7 | name=mysql | |
ef78cedf VM |
8 | version=5.6.26 |
9 | release=1 | |
e41262f8 | 10 | source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/$name-$version.tar.gz \ |
2b8b2741 | 11 | my.cnf mysqld valist.patch) |
825e3023 VM |
12 | |
13 | build () { | |
4686b98a | 14 | cd $name-$version |
2b8b2741 | 15 | |
4686b98a | 16 | patch -p1 -i $SRC/valist.patch |
e41262f8 VM |
17 | |
18 | # fix for openssl 1.0.2 | |
19 | sed -i 's/REGEX "^#define/REGEX "^# *define/' cmake/ssl.cmake | |
2b8b2741 | 20 | |
4686b98a | 21 | cmake . \ |
825e3023 VM |
22 | -DBUILD_CONFIG=mysql_release \ |
23 | -DINSTALL_LAYOUT=RPM \ | |
24 | -DCMAKE_INSTALL_PREFIX=/usr \ | |
25 | -DSYSCONFDIR=/etc \ | |
26 | -DINSTALL_LIBDIR=lib \ | |
27 | -DINSTALL_PLUGINDIR=lib/mysql/plugin \ | |
28 | -DINSTALL_MANDIR=man \ | |
29 | -DWITH_LIBWRAP=1 \ | |
30 | -DWITH_SSL=system \ | |
31 | -DWITH_ZLIB=system | |
32 | ||
4686b98a VM |
33 | make |
34 | make DESTDIR=$PKG install | |
825e3023 | 35 | |
4686b98a VM |
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 {} \; | |
825e3023 | 39 | |
9e74ef3a | 40 | install -d -m 700 -o mysql -g mysql $PKG/var/{lib,log,run}/mysql |
4686b98a VM |
41 | install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld |
42 | install -m 600 $SRC/my.cnf $PKG/etc | |
825e3023 | 43 | } |