CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
mysql: fixed patch name
[ports/opt-arm.git] / mysql / Pkgfile
1 # Description: SQL database server
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
6
7 name=mysql
8 version=5.5.18
9 release=1
10 source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.5/$name-$version.tar.gz \
11 my.cnf mysqld $name-${version}_valist.patch)
12
13 build () {
14 cd $name-$version
15 patch -p1 -i $SRC/$name-${version}_valist.patch
16 cmake . \
17 -DBUILD_CONFIG=mysql_release \
18 -DINSTALL_LAYOUT=RPM \
19 -DCMAKE_INSTALL_PREFIX=/usr \
20 -DSYSCONFDIR=/etc \
21 -DINSTALL_LIBDIR=lib \
22 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
23 -DINSTALL_MANDIR=man \
24 -DWITH_LIBWRAP=1 \
25 -DWITH_SSL=system \
26 -DWITH_ZLIB=system
27
28 make
29 make DESTDIR=$PKG install
30
31 rm -r $PKG/usr/share/{mysql-test,info}
32 rm $PKG/usr/share/mysql/charsets/README
33 find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
34
35 install -d $PKG/var/{lib,log}
36 touch mysqld.log
37 install -m 600 -o mysql -g mysql mysqld.log $PKG/var/log
38 install -d -m 700 -o mysql -g mysql $PKG/var/lib/mysql
39 install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
40 install -m 600 $SRC/my.cnf $PKG/etc
41 }