[102051] trunk/dports
ryandesign at macports.org
ryandesign at macports.org
Sat Jan 26 04:45:42 PST 2013
Revision: 102051
https://trac.macports.org/changeset/102051
Author: ryandesign at macports.org
Date: 2013-01-26 04:45:42 -0800 (Sat, 26 Jan 2013)
Log Message:
-----------
php-mysql: reword message about how to set the socket path in php.ini (#29853); use notes instead of ui_msgs to display it
Modified Paths:
--------------
trunk/dports/lang/php/Portfile
trunk/dports/php/php5-mysql/Portfile
Modified: trunk/dports/lang/php/Portfile
===================================================================
--- trunk/dports/lang/php/Portfile 2013-01-26 12:43:24 UTC (rev 102050)
+++ trunk/dports/lang/php/Portfile 2013-01-26 12:45:42 UTC (rev 102051)
@@ -668,14 +668,18 @@
configure.cppflags-append -I${worksrcpath}
- post-install {
- set phpini ${prefix}/etc/${php}/php.ini
- if {1} {
- ui_msg "To use mysqlnd with a local MySQL server, edit ${phpini} and set"
- ui_msg "mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket"
- ui_msg "to ${prefix}/var/run/mysql5/mysqld.sock"
- }
- }
+ set phpini ${prefix}/etc/${php}/php.ini
+ notes "
+To use mysqlnd with a local MySQL server, edit ${phpini} and set\
+mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket\
+to the path to your MySQL server's socket file.
+
+For mysql5, use ${prefix}/var/run/mysql5/mysqld.sock
+For mysql51, use ${prefix}/var/run/mysql51/mysqld.sock
+For mysql55, use ${prefix}/var/run/mysql55/mysqld.sock
+For mariadb, use ${prefix}/var/run/mariadb/mysqld.sock
+For percona, use ${prefix}/var/run/percona/mysqld.sock
+"
}
variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
Modified: trunk/dports/php/php5-mysql/Portfile
===================================================================
--- trunk/dports/php/php5-mysql/Portfile 2013-01-26 12:43:24 UTC (rev 102050)
+++ trunk/dports/php/php5-mysql/Portfile 2013-01-26 12:45:42 UTC (rev 102051)
@@ -30,14 +30,19 @@
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd
configure.cppflags-append -I${worksrcpath}
- post-install {
- set phpini ${prefix}/etc/php5/php.ini
- if {1} {
- ui_msg "To use mysqlnd with a local MySQL server, edit ${phpini} and set"
- ui_msg "mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket"
- ui_msg "to ${prefix}/var/run/mysql5/mysqld.sock"
- }
- }
+
+ set phpini ${prefix}/etc/php5/php.ini
+ notes "
+To use mysqlnd with a local MySQL server, edit ${phpini} and set\
+mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket\
+to the path to your MySQL server's socket file.
+
+For mysql5, use ${prefix}/var/run/mysql5/mysqld.sock
+For mysql51, use ${prefix}/var/run/mysql51/mysqld.sock
+For mysql55, use ${prefix}/var/run/mysql55/mysqld.sock
+For mariadb, use ${prefix}/var/run/mariadb/mysqld.sock
+For percona, use ${prefix}/var/run/percona/mysqld.sock
+"
}
variant mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130126/b3f7cce7/attachment-0001.html>
More information about the macports-changes
mailing list