blob: 4def9e358aad2e5763532c2fa0352ce503410a09 (
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
|
# $Id: PKGBUILD 23595 2009-01-11 13:14:19Z douglas $
# Maintainer: Alexander Baldeck <alexander@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=mysql
pkgver=5.0.75
pkgrel=1
pkgdesc="A fast SQL database server"
arch=(i686 x86_64)
backup=(etc/my.cnf etc/conf.d/mysqld)
depends=("mysql-clients>=${pkgver}" 'tcp_wrappers')
makedepends=('libtool')
url=('http://www.mysql.com/')
options=('!libtool')
optdepends=('perl-dbi' 'perl-dbd-mysql')
license=('GPL')
source=(ftp://ftp.pucpr.br/mysql/Downloads/MySQL-5.0/mysql-${pkgver}.tar.gz
mysql-no-clients.patch
mysqld
my.cnf
mysqld.conf.d)
build() {
# PIC
cd ${startdir}/src/${pkgname}-${pkgver}
patch -Np1 -i ${startdir}/src/mysql-no-clients.patch || return 1
./configure --prefix=/usr --libexecdir=/usr/sbin \
--without-debug --without-docs --without-bench --without-readline \
--with-innodb --enable-local-infile --with-openssl \
--with-charset=latin1 --with-collation=latin1_general_ci \
--with-extra-charsets=complex --enable-thread-safe-client \
--with-libwrap --with-berkeley-db --with-embedded-server
# fixes
sed -i -e 's/^.*HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE.*$/#define\ HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE/g' include/config.h || return 1
sed -i -e 's/size_socket/socklen_t/g' sql/mysqld.cc || return 1
pushd include || return
make || return 1
popd
pushd libmysql
make link_sources get_password.lo || return
popd
make || return 1
make DESTDIR=${startdir}/pkg install
rm -rf ${startdir}/pkg/usr/{mysql-test,sql-bench}
install -D -m644 ../my.cnf ${startdir}/pkg/etc/my.cnf
install -D -m755 ../mysqld ${startdir}/pkg/etc/rc.d/mysqld
install -D -m644 ../mysqld.conf.d ${startdir}/pkg/etc/conf.d/mysqld
rm -f ${startdir}/pkg/usr/bin/mysql_config
}
md5sums=('a234f0a60a7f8c290d9875cba3a2c5a2'
'e892aac36cbeb57f0e003ec0936afb3b'
'247e9fa664bccaca62ca0e42a6cfae20'
'0ee035590ffc61d32de994f461fd2bd2'
'4a9077fc95ec6db1d5420e0cdc74d31c')
|