summaryrefslogtreecommitdiff
path: root/mysql/Pkgfile
blob: e73c8e3458ded1c41f437403ff228f9020eef087 (plain)
    1 # Description: SQL database server
    2 # URL:         http://www.mysql.com
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  ncurses zlib openssl cmake libaio
    5 
    6 name=mysql
    7 version=5.7.24
    8 release=1
    9 source=(https://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.7/$name-boost-$version.tar.gz \
   10         my.cnf mysqld)
   11 
   12 build () {
   13     cd $name-$version
   14 
   15     cmake . \
   16         -DBUILD_CONFIG=mysql_release \
   17         -DINSTALL_LAYOUT=RPM \
   18         -DCMAKE_INSTALL_PREFIX=/usr \
   19         -DSYSCONFDIR=/etc \
   20         -DINSTALL_LIBDIR=lib \
   21         -DINSTALL_PLUGINDIR=lib/mysql/plugin \
   22         -DINSTALL_MANDIR=share/man \
   23         -DINSTALL_SECURE_PRIVDIR=/var/lib/mysql-files \
   24         -DWITH_BOOST=./boost \
   25         -DWITH_LIBWRAP=0 \
   26         -DWITH_SSL=system \
   27         -DWITH_ZLIB=system
   28 
   29     make
   30     make DESTDIR=$PKG install
   31 
   32     rm -r $PKG/usr/share/{mysql-test,info}
   33     rm $PKG/usr/share/mysql/charsets/README
   34     find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
   35 
   36     install -d -m 700 -o mysql -g mysql $PKG/var/{{lib,log,run}/mysql,lib/mysql-files}
   37     install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
   38     install -m 600 $SRC/my.cnf $PKG/etc
   39 }

Generated by cgit