6de62cde6cc212b5cd1f87e0df848b1d my.cnf
-e6b9f9cb82e990bd8f0474df7462904e mysql-5.5.29.tar.gz
+930970a42d51e48599deb7fe01778a4a mysql-5.5.34.tar.gz
642a596f13ebd7e459c5ff2fd382f06b mysqld
6ca8f727d4e04fbdbe200cb5abfffee5 valist.patch
# Depends on: tcp_wrappers ncurses zlib openssl cmake libaio
name=mysql
-version=5.5.29
+version=5.5.34
release=1
-source=(http://downloads.mysql.com/archives/$name-${version%.*}/$name-$version.tar.gz \
+source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.5/$name-$version.tar.gz \
my.cnf mysqld valist.patch)
build () {
- cd $name-$version
+ cd $name-$version
- patch -p1 -i $SRC/valist.patch
+ patch -p1 -i $SRC/valist.patch
- cmake . \
+ cmake . \
-DBUILD_CONFIG=mysql_release \
-DINSTALL_LAYOUT=RPM \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_SSL=system \
-DWITH_ZLIB=system
- make
- make DESTDIR=$PKG install
+ 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 {} \;
+ 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
+ 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
}