2006-02-23 16:26:10 +01: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
|
2011-02-07 18:34:05 +01:00
|
|
|
# Depends on: tcp_wrappers ncurses zlib openssl cmake libaio
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=mysql
|
2014-05-31 19:28:17 +02:00
|
|
|
version=5.5.38
|
2011-03-16 09:33:10 +01:00
|
|
|
release=1
|
2012-07-05 23:01:21 +02:00
|
|
|
source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.5/$name-$version.tar.gz \
|
2010-08-29 11:19:33 +02:00
|
|
|
my.cnf mysqld)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
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 \
|
2011-02-07 18:34:05 +01:00
|
|
|
-DINSTALL_MANDIR=man \
|
|
|
|
-DWITH_LIBWRAP=1 \
|
|
|
|
-DWITH_SSL=system \
|
|
|
|
-DWITH_ZLIB=system
|
2010-06-19 10:23:53 +02:00
|
|
|
|
2006-02-23 16:26:10 +01: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 17:05:43 +02:00
|
|
|
rm $PKG/usr/share/mysql/charsets/README
|
2006-02-23 16:26:10 +01:00
|
|
|
find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
|
|
|
|
|
2009-06-13 23:15:46 +02:00
|
|
|
install -d $PKG/var/{lib,log}
|
2006-02-23 16:26:10 +01:00
|
|
|
touch mysqld.log
|
2009-06-13 23:15:46 +02:00
|
|
|
install -m 600 -o mysql -g mysql mysqld.log $PKG/var/log
|
|
|
|
install -d -m 700 -o mysql -g mysql $PKG/var/lib/mysql
|
2006-02-23 16:26:10 +01:00
|
|
|
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
|
|
|
|
install -m 600 $SRC/my.cnf $PKG/etc
|
|
|
|
}
|