Juergen Daubert
a3898234a6
Configuration changes: ---------------------- - instead of the client library that comes with mysql, libmysql, the native driver provided by PHP, called mysqlnd, is used for all mysql PHP extensions, see [1] - added the extended version of the mysql driver, called mysqli, to the port, see [2] Note: ----- mysqlnd cannot use old-style 16bit passwords [3], you must convert them to use the new hash method introduced with mysql 4.1.1. A short guild how to do this can be found at [4]. [1] http://www.php.net/manual/en/book.mysqlnd.php [2] http://www.php.net/manual/en/book.mysqli.php [3] https://dev.mysql.com/doc/refman/5.5/en/password-hashing.html [4] http://stackoverflow.com/a/14653092
29 lines
799 B
Plaintext
29 lines
799 B
Plaintext
# Description: MySQL module for PHP
|
|
# URL: http://www.php.net
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: mysql
|
|
|
|
name=php-mysql
|
|
version=5.4.13
|
|
release=1
|
|
source=(http://www.php.net/distributions/php-$version.tar.bz2)
|
|
|
|
build () {
|
|
cd php-$version
|
|
|
|
./configure --disable-all \
|
|
--enable-pdo=shared \
|
|
--enable-mysqlnd=shared \
|
|
--with-mysql=shared,mysqlnd \
|
|
--with-mysqli=shared,mysqlnd \
|
|
--with-pdo-mysql=shared,mysqlnd
|
|
|
|
make build-modules
|
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions
|
|
|
|
printf 'extension=%s\n' {mysqlnd,mysql,mysqli,pdo_mysql}.so \
|
|
> $PKG/etc/php/conf.d/mysql.ini
|
|
}
|