Commit 9024b25e authored by Natanael Copa's avatar Natanael Copa

testing/mysql: create libmysqlclient subpackage

parent 1b6cdb73
...@@ -10,7 +10,7 @@ makedepends="libtool uclibc++-dev readline-dev openssl-dev" ...@@ -10,7 +10,7 @@ makedepends="libtool uclibc++-dev readline-dev openssl-dev"
source="http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.0/${pkgname}-${pkgver}.tar.gz source="http://sunsite.informatik.rwth-aachen.de/mysql/Downloads/MySQL-5.0/${pkgname}-${pkgver}.tar.gz
$pkgname.initd $pkgname.initd
$pkgname.mycnf" $pkgname.mycnf"
subpackages="$pkgname-doc $pkgname-dev $pkgname-test" subpackages="$pkgname-doc $pkgname-dev $pkgname-test libmysqlclient"
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
...@@ -30,6 +30,16 @@ build() { ...@@ -30,6 +30,16 @@ build() {
install -Dm 644 "$startdir"/$pkgname.mycnf $pkgdir/etc/mysql/my.cnf install -Dm 644 "$startdir"/$pkgname.mycnf $pkgdir/etc/mysql/my.cnf
install -dDo mysql $pkgdir/var/log/mysql install -dDo mysql $pkgdir/var/log/mysql
install -dDo mysql $pkgdir/var/run/mysqld install -dDo mysql $pkgdir/var/run/mysqld
# we dont want this be pulled in in the make depends resolving but we
# want it in the binary package dependency so we add it late.
depends="$depends libmysqlclient"
}
libmysqlclient() {
depends="uclibc"
mkdir -p "$subpkgdir"/usr/lib/mysql
mv "$pkgdir"/usr/lib/mysql/libmysqlclient.so* "$subpkgdir"/usr/lib/mysql
} }
test() { test() {
......
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