39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# Description: SQL database server
|
|
# URL: http://www.mysql.com
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: ncurses zlib openssl cmake libaio
|
|
|
|
name=mysql
|
|
version=5.6.37
|
|
release=1
|
|
source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/$name-$version.tar.gz \
|
|
my.cnf mysqld)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
cmake . \
|
|
-DBUILD_CONFIG=mysql_release \
|
|
-DINSTALL_LAYOUT=RPM \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DSYSCONFDIR=/etc \
|
|
-DINSTALL_LIBDIR=lib \
|
|
-DINSTALL_PLUGINDIR=lib/mysql/plugin \
|
|
-DINSTALL_MANDIR=share/man \
|
|
-DWITH_LIBWRAP=0 \
|
|
-DWITH_SSL=system \
|
|
-DWITH_ZLIB=system
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/share/{mysql-test,info}
|
|
rm $PKG/usr/share/mysql/charsets/README
|
|
find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
|
|
|
|
install -d -m 700 -o mysql -g mysql $PKG/var/{lib,log,run}/mysql
|
|
install -d -m 700 -o mysql -g mysql $PKG/var/lib/mysql-files
|
|
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
|
|
install -m 600 $SRC/my.cnf $PKG/etc
|
|
}
|