opt/mysql/Pkgfile
Juergen Daubert cec6297154 [notify] mysql: update to 5.5.9
even though we have a major new version with this release the
update is mostly backwards compatible, but please note:

- new runtime dependency opt/libaio
- new buildtime dependency cmake
- ImmoDB is now the default database engine, the supplied
  /etc/my.conf still sets MyISAM as the default and skips
  InnoDB. Don't reject /etc/my.cnf without inspection.
- after the upgrade fix or rejmerge /etc/my.cnf, start
  the server and run mysql_upgrade to adjust the mysql
  system database tables.
2011-02-07 18:34:05 +01:00

39 lines
1.1 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.9
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_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
}