2008-05-07 19:43:07 +02:00
|
|
|
# Description: MySQL module for PHP
|
|
|
|
# URL: http://www.php.net
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2010-03-01 18:03:37 +01:00
|
|
|
# Depends on: mysql
|
2008-05-07 19:43:07 +02:00
|
|
|
|
|
|
|
name=php-mysql
|
2020-05-15 16:40:05 +02:00
|
|
|
version=7.4.6
|
2008-05-07 19:43:07 +02:00
|
|
|
release=1
|
2014-09-19 13:27:37 +02:00
|
|
|
source=(http://php.net/distributions/php-$version.tar.xz)
|
2008-05-07 19:43:07 +02:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
|
|
|
|
2013-02-25 13:12:33 +01:00
|
|
|
./configure --disable-all \
|
|
|
|
--enable-pdo=shared \
|
[notify] php-mysql: update to 5.4.13, extend configuration
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
2013-03-17 13:49:06 +01:00
|
|
|
--enable-mysqlnd=shared \
|
|
|
|
--with-mysqli=shared,mysqlnd \
|
|
|
|
--with-pdo-mysql=shared,mysqlnd
|
|
|
|
|
2008-05-07 19:43:07 +02:00
|
|
|
make build-modules
|
|
|
|
|
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
[notify] php-mysql: update to 5.4.13, extend configuration
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
2013-03-17 13:49:06 +01:00
|
|
|
install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions
|
2013-02-25 13:12:33 +01:00
|
|
|
|
2018-03-30 12:50:09 +02:00
|
|
|
printf 'extension=%s\n' {mysqlnd,mysqli,pdo_mysql}.so \
|
[notify] php-mysql: update to 5.4.13, extend configuration
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
2013-03-17 13:49:06 +01:00
|
|
|
> $PKG/etc/php/conf.d/mysql.ini
|
2008-05-07 19:43:07 +02:00
|
|
|
}
|