CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
mysql: updated to 5.5.34
[ports/opt-arm.git] / mysql / Pkgfile
CommitLineData
825e3023 1# Description: SQL database server
d71454cc
VM
2# URL: http://www.mysql.com
3# Maintainer: Juergen Daubert, jue at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5# Depends on: tcp_wrappers ncurses zlib openssl cmake libaio
825e3023
VM
6
7name=mysql
4686b98a 8version=5.5.34
825e3023 9release=1
4686b98a 10source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.5/$name-$version.tar.gz \
2b8b2741 11 my.cnf mysqld valist.patch)
825e3023
VM
12
13build () {
4686b98a 14 cd $name-$version
2b8b2741 15
4686b98a 16 patch -p1 -i $SRC/valist.patch
2b8b2741 17
4686b98a 18 cmake . \
825e3023
VM
19 -DBUILD_CONFIG=mysql_release \
20 -DINSTALL_LAYOUT=RPM \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DSYSCONFDIR=/etc \
23 -DINSTALL_LIBDIR=lib \
24 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
25 -DINSTALL_MANDIR=man \
26 -DWITH_LIBWRAP=1 \
27 -DWITH_SSL=system \
28 -DWITH_ZLIB=system
29
4686b98a
VM
30 make
31 make DESTDIR=$PKG install
825e3023 32
4686b98a
VM
33 rm -r $PKG/usr/share/{mysql-test,info}
34 rm $PKG/usr/share/mysql/charsets/README
35 find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
825e3023 36
4686b98a
VM
37 install -d $PKG/var/{lib,log}
38 touch mysqld.log
39 install -m 600 -o mysql -g mysql mysqld.log $PKG/var/log
40 install -d -m 700 -o mysql -g mysql $PKG/var/lib/mysql
41 install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
42 install -m 600 $SRC/my.cnf $PKG/etc
825e3023 43}