blob: fbe666b0ff33c4f2cfbe4d6cad62d781ae03fb0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mysql
pkgver=5.0.77
pkgrel=1
pkgdesc="A fast SQL database server"
url="http://www.mysql.com/"
license='GPL'
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 $pkgname-client"
build() {
cd "$srcdir/$pkgname-$pkgver"
export CXX=g++-uc
./configure --prefix=/usr --libexecdir=/usr/sbin \
--localstatedir=/var/lib/mysql \
--disable-assembler --with-pthread \
--without-raid --without-libwrap \
--without-pstack --without-docs \
--without-embedded-server --with-openssl \
--without-mysqlfs --without-vio \
--without-bench --without-debug \
--with-unix-socket-path=/var/run/mysqld/mysqld.sock \
--with-innodb --mandir=/usr/share/man || return 1
make || return 1
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
# 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 openssl zlib"
mkdir -p "$subpkgdir"/usr/lib/mysql
mv "$pkgdir"/usr/lib/mysql/libmysqlclient.so* "$subpkgdir"/usr/lib/mysql
# make symlinks
cd "$subpkgdir"/usr/lib
for i in mysql/*; do
ln -s "$i" "${i##*/}"
done
}
test() {
mkdir -p "$subpkgdir"/usr
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="6c30a20c9059daf053a301e927eb1667 mysql-5.0.77.tar.gz
3ce9827b22d8fbbb29d83a91cbe98ffc mysql.initd
15a7e3ddd6a40bf5a1eb3a8c69d9c34c mysql.mycnf"
|