2006-02-23 15:26:10 +00:00
|
|
|
# Description: SQL database server
|
2020-06-06 13:00:05 +02:00
|
|
|
# URL: https://www.mysql.com
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2020-12-20 12:24:17 +01:00
|
|
|
# Depends on: ncurses zlib openssl cmake libaio rpcsvc-proto
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=mysql
|
2021-01-17 12:44:17 +01:00
|
|
|
version=5.7.33
|
2019-07-22 10:49:32 +02:00
|
|
|
release=1
|
2018-09-26 11:57:02 +02:00
|
|
|
source=(https://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.7/$name-boost-$version.tar.gz \
|
2010-08-29 11:19:33 +02:00
|
|
|
my.cnf mysqld)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
2020-11-20 13:09:54 +01:00
|
|
|
|
2020-11-22 11:30:07 +01:00
|
|
|
export CXXFLAGS+=" -Wno-deprecated-declarations"
|
2020-11-20 13:09:54 +01:00
|
|
|
|
2020-07-20 13:23:17 +02:00
|
|
|
cmake -S $name-$version -B build \
|
2020-11-20 13:09:54 +01:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-11-22 11:30:07 +01:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-20 13:09:54 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D BUILD_CONFIG=mysql_release \
|
|
|
|
-D INSTALL_LAYOUT=RPM \
|
|
|
|
-D SYSCONFDIR=/etc \
|
|
|
|
-D INSTALL_LIBDIR=lib \
|
|
|
|
-D INSTALL_PLUGINDIR=lib/mysql/plugin \
|
|
|
|
-D INSTALL_MANDIR=share/man \
|
|
|
|
-D INSTALL_SECURE_PRIVDIR=/var/lib/mysql-files \
|
|
|
|
-D WITH_BOOST=$name-$version/boost \
|
|
|
|
-D WITH_LIBWRAP=0 \
|
|
|
|
-D WITH_SSL=system \
|
|
|
|
-D WITH_ZLIB=system \
|
|
|
|
-Wno-dev
|
2010-06-19 10:23:53 +02:00
|
|
|
|
2020-07-20 13:23:17 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-02-23 15:26:10 +00:00
|
|
|
|
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 {} \;
|
|
|
|
|
2018-03-19 13:00:27 +01:00
|
|
|
install -d -m 700 -o mysql -g mysql $PKG/var/{{lib,log,run}/mysql,lib/mysql-files}
|
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
|
|
|
|
}
|