2006-02-23 15:26:10 +00:00
|
|
|
# Description: SQL database server
|
|
|
|
# URL: http://www.mysql.com
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2015-06-27 17:38:49 +02:00
|
|
|
# Depends on: ncurses zlib openssl cmake libaio
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=mysql
|
2016-04-12 16:52:11 +02:00
|
|
|
version=5.6.30
|
2015-07-27 10:01:33 +02:00
|
|
|
release=1
|
2014-12-08 15:02:52 +01:00
|
|
|
source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/$name-$version.tar.gz \
|
2010-08-29 11:19:33 +02:00
|
|
|
my.cnf mysqld)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2014-12-08 15:02:52 +01:00
|
|
|
|
2011-02-07 18:34:05 +01:00
|
|
|
cmake . \
|
|
|
|
-DBUILD_CONFIG=mysql_release \
|
|
|
|
-DINSTALL_LAYOUT=RPM \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DSYSCONFDIR=/etc \
|
2011-02-12 17:51:44 +01:00
|
|
|
-DINSTALL_LIBDIR=lib \
|
|
|
|
-DINSTALL_PLUGINDIR=lib/mysql/plugin \
|
2015-12-06 18:23:01 +01:00
|
|
|
-DINSTALL_MANDIR=share/man \
|
2015-06-27 17:38:49 +02:00
|
|
|
-DWITH_LIBWRAP=0 \
|
2011-02-07 18:34:05 +01:00
|
|
|
-DWITH_SSL=system \
|
|
|
|
-DWITH_ZLIB=system
|
2010-06-19 10:23:53 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2011-02-07 18:34:05 +01:00
|
|
|
rm -r $PKG/usr/share/{mysql-test,info}
|
2006-08-04 15:05:43 +00:00
|
|
|
rm $PKG/usr/share/mysql/charsets/README
|
2006-02-23 15:26:10 +00:00
|
|
|
find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
|
|
|
|
|
2015-06-29 15:35:17 +02:00
|
|
|
install -d -m 700 -o mysql -g mysql $PKG/var/{lib,log,run}/mysql
|
2006-02-23 15:26:10 +00:00
|
|
|
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
|
|
|
|
install -m 600 $SRC/my.cnf $PKG/etc
|
|
|
|
}
|