Commit 8bbc7dc0 authored by Matt Smith's avatar Matt Smith

main/mysql: upgrade to 5.1.56

parent 5301e086
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mysql
pkgver=5.1.54
pkgver=5.1.56
pkgrel=0
pkgdesc="A fast SQL database server"
url="http://www.mysql.com/"
......@@ -41,53 +41,54 @@ build() {
--with-plugins=partition,archive,blackhole,csv,federated,heap,innobase,innodb_plugin,ndbcluster \
--mandir=/usr/share/man \
|| return 1
make
make || return 1
}
package() {
cd $_builddir
make -j1 DESTDIR="$pkgdir/" install
install -Dm 755 "$startdir"/$pkgname.initd $pkgdir/etc/init.d/$pkgname
install -Dm 644 "$startdir"/$pkgname.mycnf $pkgdir/etc/mysql/my.cnf
install -dDo mysql $pkgdir/var/log/mysql
install -dDo mysql $pkgdir/var/run/mysqld
make -j1 DESTDIR="$pkgdir/" install || return 1
install -Dm 755 "$startdir"/$pkgname.initd $pkgdir/etc/init.d/$pkgname \
|| return 1
install -Dm 644 "$startdir"/$pkgname.mycnf $pkgdir/etc/mysql/my.cnf \
|| return 1
install -dDo mysql $pkgdir/var/log/mysql || return 1
install -dDo mysql $pkgdir/var/run/mysqld || return 1
}
libmysqlclient() {
pkgdesc="MySQL client library"
# some files moved
replaces="mysql"
mkdir -p "$subpkgdir"/usr/lib/mysql
mkdir -p "$subpkgdir"/usr/lib/mysql || return 1
mv "$pkgdir"/usr/lib/mysql/libmysqlclient.so* \
"$pkgdir"/usr/lib/mysql/libmysqlclient_r.so* \
"$subpkgdir"/usr/lib/mysql
"$subpkgdir"/usr/lib/mysql || return 1
# make symlinks
cd "$subpkgdir"/usr/lib
cd "$subpkgdir"/usr/lib || return 1
for i in mysql/*; do
ln -s "$i" "${i##*/}"
ln -s "$i" "${i##*/}" || return 1
done
}
test() {
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/mysql-test "$subpkgdir"/usr/
mkdir -p "$subpkgdir"/usr || return 1
mv "$pkgdir"/usr/mysql-test "$subpkgdir"/usr/ || return 1
}
client() {
pkgdesc="client for the MySQL database"
install=""
local bins="myisam_ftdump mysql mysqlaccess mysqladmin mysqlbug mysqlcheck
mysql_client_test mysqldump mysqldumpslow mysql_explain_log mysql_find_rows
mysql_fix_extensions mysqlimport mysqlshow mysql_tableinfo mysqltestmanagerc
mysqltestmanager-pwgen mysql_waitpid"
local bins="myisam_ftdump mysql mysqlaccess mysqladmin mysqlbug
mysqlcheck mysql_client_test mysqldump mysqldumpslow mysql_find_rows
mysql_fix_extensions mysqlimport mysqlshow mysql_waitpid"
mkdir -p "$subpkgdir"/usr/bin/
mkdir -p "$subpkgdir"/usr/bin/ || return 1
for i in $bins; do
mv "$pkgdir"/usr/bin/${i} "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/bin/${i} "$subpkgdir"/usr/bin/ || return 1
done
}
md5sums="2a0f45a2f8b5a043b95ce7575796a30b mysql-5.1.54.tar.gz
md5sums="15161d67f4830aad3a8a89e083749d49 mysql-5.1.56.tar.gz
25d08b02bff6aa379dc45859b7a3f28a mysql.initd
15a7e3ddd6a40bf5a1eb3a8c69d9c34c mysql.mycnf"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment