opt/mysql/Pkgfile
Juergen Daubert f9ddf50af9 [notify] mysql: update to 5.5.10
Incompatible Change: The shared library version of the client library
was increased to 18 to reflect ABI changes, and avoid compatibility
problems with the client library in MySQL 5.1. Note that this is an
incompatible change between 5.5.10 and earlier 5.5 versions, so client
programs that use the 5.5 client library should be recompiled against
the 5.5.10 client library.

Extract from http://dev.mysql.com/doc/refman/5.5/en/news-5-5-10.html
2011-03-16 09:38:02 +01:00

41 lines
1.2 KiB
Plaintext

# Description: SQL database server
# URL: http://www.mysql.com
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: tcp_wrappers ncurses zlib openssl cmake libaio
name=mysql
version=5.5.10
release=1
source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.5/$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=man \
-DWITH_LIBWRAP=1 \
-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 $PKG/var/{lib,log}
touch mysqld.log
install -m 600 -o mysql -g mysql mysqld.log $PKG/var/log
install -d -m 700 -o mysql -g mysql $PKG/var/lib/mysql
install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
install -m 600 $SRC/my.cnf $PKG/etc
}