2019-04-26 19:46:05 +02:00
|
|
|
# Description: SQL database server, drop-in replacement for MySQL
|
2021-02-24 16:30:07 +01:00
|
|
|
# URL: https://mariadb.org/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2021-08-17 14:29:41 +02:00
|
|
|
# Depends on: ncurses zlib openssl cmake libaio linux-pam libpcre2
|
2019-03-08 15:10:47 +01:00
|
|
|
|
|
|
|
name=mariadb
|
2021-08-07 17:13:14 +02:00
|
|
|
version=10.6.4
|
2021-08-30 19:35:45 +02:00
|
|
|
release=3
|
2019-11-09 13:49:34 +01:00
|
|
|
source=(https://downloads.mariadb.com/MariaDB//$name-$version/source/$name-$version.tar.gz
|
2021-02-24 16:30:07 +01:00
|
|
|
mariadb.rc mariadb.pam
|
|
|
|
pre-install)
|
2019-03-08 15:10:47 +01:00
|
|
|
|
|
|
|
build() {
|
2020-07-20 13:12:25 +02:00
|
|
|
cmake -S $name-$version -B build \
|
2020-11-09 14:45:12 +01:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-15 14:06:58 +01:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-09 14:45:12 +01:00
|
|
|
-D INSTALL_LAYOUT=RPM \
|
|
|
|
-D INSTALL_LIBDIR=lib \
|
|
|
|
-D INSTALL_PLUGINDIR=lib/mysql/plugin \
|
|
|
|
-D INSTALL_PCDIR=/usr/lib/pkgconfig \
|
|
|
|
-D INSTALL_PAMDIR=/lib/security \
|
|
|
|
-D MYSQL_DATADIR=/var/lib/mysql \
|
|
|
|
-D MYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
|
|
|
|
-D WITH_READLINE=ON \
|
|
|
|
-D WITH_ZLIB=system \
|
|
|
|
-D WITH_SSL=system \
|
2021-08-17 14:29:41 +02:00
|
|
|
-D WITH_PCRE=system \
|
2020-11-09 14:45:12 +01:00
|
|
|
-D WITH_EXTRA_CHARSETS=complex \
|
|
|
|
-D WITH_EMBEDDED_SERVER=ON \
|
|
|
|
-D WITH_UNIT_TESTS=OFF \
|
|
|
|
-D SKIP_TESTS=ON
|
2019-03-08 15:10:47 +01:00
|
|
|
|
2020-07-20 13:12:25 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-03-08 15:10:47 +01:00
|
|
|
|
|
|
|
rm -r $PKG/etc/{init.d,logrotate.d}
|
|
|
|
rm -r $PKG/usr/share/{doc,groonga*,mysql-test}
|
|
|
|
rm $PKG/usr/sbin/rcmysql
|
|
|
|
rm $PKG/usr/share/man/man1/mysql-test-run.pl.1
|
|
|
|
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}/mysql
|
|
|
|
install -d -m 755 -o mysql -g mysql $PKG/var/run/mysqld
|
2020-01-31 16:59:31 +01:00
|
|
|
|
|
|
|
install -D -m 755 $SRC/mariadb.rc $PKG/etc/rc.d/mariadb
|
|
|
|
install -D -m 644 $SRC/mariadb.pam $PKG/etc/pam.d/mysql
|
2019-03-08 15:10:47 +01:00
|
|
|
}
|