CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
firefox: updated to 40.0.3
[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.6.26
9 release=1
10 source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/$name-$version.tar.gz \
11 my.cnf mysqld valist.patch)
12
13 build () {
14 cd $name-$version
15
16 patch -p1 -i $SRC/valist.patch
17
18 # fix for openssl 1.0.2
19 sed -i 's/REGEX "^#define/REGEX "^# *define/' cmake/ssl.cmake
20
21 cmake . \
22 -DBUILD_CONFIG=mysql_release \
23 -DINSTALL_LAYOUT=RPM \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DSYSCONFDIR=/etc \
26 -DINSTALL_LIBDIR=lib \
27 -DINSTALL_PLUGINDIR=lib/mysql/plugin \
28 -DINSTALL_MANDIR=man \
29 -DWITH_LIBWRAP=1 \
30 -DWITH_SSL=system \
31 -DWITH_ZLIB=system
32
33 make
34 make DESTDIR=$PKG install
35
36 rm -r $PKG/usr/share/{mysql-test,info}
37 rm $PKG/usr/share/mysql/charsets/README
38 find $PKG/usr/share/mysql/* -type d ! -name english ! -name charsets | xargs rm -rf {} \;
39
40 install -d -m 700 -o mysql -g mysql $PKG/var/{lib,log,run}/mysql
41 install -D -m 755 $SRC/mysqld $PKG/etc/rc.d/mysqld
42 install -m 600 $SRC/my.cnf $PKG/etc
43 }