Commit 4195aa24 authored by Carlo Landmeter's avatar Carlo Landmeter

extra/mysql: moved mysql client into its own subpkg

parent 81377f88
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
pkgname=mysql
pkgver=5.0.75
pkgrel=4
pkgrel=5
pkgdesc="A fast SQL database server"
url="http://www.mysql.com/"
license='GPL'
depends="readline openssl uclibc++"
makedepends="libtool uclibc++-dev readline-dev openssl-dev"
depends="readline openssl uclibc++ zlib"
makedepends="libtool uclibc++-dev readline-dev openssl-dev ncurses-dev zlib-dev"
source="http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.0/${pkgname}-${pkgver}.tar.gz
$pkgname.initd
$pkgname.mycnf"
subpackages="$pkgname-doc $pkgname-dev $pkgname-test libmysqlclient"
subpackages="$pkgname-doc $pkgname-dev $pkgname-test libmysqlclient $pkgname-client"
build() {
cd "$srcdir/$pkgname-$pkgver"
......@@ -38,7 +38,7 @@ build() {
}
libmysqlclient() {
depends="uclibc"
depends="uclibc openssl zlib"
mkdir -p "$subpkgdir"/usr/lib/mysql
mv "$pkgdir"/usr/lib/mysql/libmysqlclient.so* "$subpkgdir"/usr/lib/mysql
}
......@@ -48,6 +48,21 @@ test() {
mv "$pkgdir"/usr/mysql-test "$subpkgdir"/usr/
}
client() {
depends="libmysqlclient ncurses zlib"
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"
mkdir -p $subpkgdir/usr/bin/
for i in $bins; do
mv $pkgdir/usr/bin/${i} $subpkgdir/usr/bin/
done
}
md5sums="a234f0a60a7f8c290d9875cba3a2c5a2 mysql-5.0.75.tar.gz
3ce9827b22d8fbbb29d83a91cbe98ffc 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