CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
mysql: fixed source and aligned with 2.8 branch
[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
6badf102 8version=5.5.29
825e3023 9release=1
2b8b2741
JB
10source=(http://downloads.mysql.com/archives/$name-${version%.*}/$name-$version.tar.gz \
11 my.cnf mysqld valist.patch)
825e3023
VM
12
13build () {
14 cd $name-$version
2b8b2741
JB
15
16 patch -p1 -i $SRC/valist.patch
17
825e3023
VM
18 cmake . \
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
30 make
31 make DESTDIR=$PKG install
32
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 {} \;
36
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
43}