1 | --- /macports/var/macports/sources/rsync.macports.org/release/ports/php/php5-mysql/Portfile 2011-03-18 02:00:19.000000000 +0100 |
---|
2 | +++ portfiles/php/php5-mysql/Portfile 2011-06-16 15:55:33.000000000 +0200 |
---|
3 | @@ -2,7 +2,7 @@ |
---|
4 | # $Id: Portfile 77011 2011-03-18 00:57:15Z ryandesign@macports.org $ |
---|
5 | |
---|
6 | PortSystem 1.0 |
---|
7 | -PortGroup php5extension 1.0 |
---|
8 | +PortGroup php5extension 1.1 |
---|
9 | PortGroup archcheck 1.0 |
---|
10 | |
---|
11 | php5extension.setup {mysql mysqli pdo_mysql} 5.3.6 bundled |
---|
12 | @@ -29,13 +29,9 @@ |
---|
13 | --with-mysqli=mysqlnd \ |
---|
14 | --with-pdo-mysql=mysqlnd |
---|
15 | configure.cppflags-append -I${worksrcpath} |
---|
16 | - post-install { |
---|
17 | - set phpini ${prefix}/etc/php5/php.ini |
---|
18 | - if {1} { |
---|
19 | - ui_msg "To use mysqlnd with a local MySQL server, edit ${phpini} and set" |
---|
20 | - ui_msg "mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket" |
---|
21 | - ui_msg "to ${prefix}/var/run/mysql5/mysqld.sock" |
---|
22 | - } |
---|
23 | + post-destroot { |
---|
24 | + exec cat ${filespath}/mysqlnd_default.ini >> ${php5extension.iniFile} |
---|
25 | + reinplace "s|PREFIX|${prefix}|" ${php5extension.iniFile} |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|