Ignore:
Timestamp:
Mar 12, 2012, 1:37:46 AM (8 years ago)
Author:
ryandesign@…
Message:

php-1.0.tcl: rename php.php_ini to php.ini

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/php-1.0.tcl

    r90671 r90672  
    7676options php.extension_dir
    7777default php.extension_dir       {[exec ${php.config} --extension-dir 2>/dev/null]}
     78options php.ini
     79default php.ini                 {${prefix}/etc/${php}/php.ini}
    7880options php.inidir
    7981default php.inidir              {${prefix}/var/db/${php}}
    80 options php.php_ini
    81 default php.php_ini             {${prefix}/etc/${php}/php.ini}
    8282options php.phpize
    8383default php.phpize              {${prefix}/bin/phpize${php.version}}
     
    186186            puts $fp "; Do not edit this file; it is automatically generated by MacPorts."
    187187            puts $fp "; Any changes you make will be lost if you upgrade or uninstall ${name}."
    188             puts $fp "; To configure PHP, edit ${php.php_ini}."
     188            puts $fp "; To configure PHP, edit ${php.ini}."
    189189            foreach extension ${php.extensions} {
    190190                puts $fp "${extension_prefix}${extension}.so"
     
    194194       
    195195        post-install {
    196             if {[file exists ${php.php_ini}]} {
     196            if {[file exists ${php.ini}]} {
    197197                set count 0
    198                 set fp [open ${php.php_ini} r]
     198                set fp [open ${php.ini} r]
    199199                while {![eof $fp]} {
    200200                    set line [gets $fp]
    201201                    regexp {^extension_dir *= *"?([^\"]*)"?} $line -> phpiniextensiondir
    202202                    if {[info exists phpiniextensiondir]} {
    203                         ui_debug "Found extension_dir ${phpiniextensiondir} in ${php.php_ini}"
     203                        ui_debug "Found extension_dir ${phpiniextensiondir} in ${php.ini}"
    204204                        if {${phpiniextensiondir} != ${php.extension_dir}} {
    205205                            if {0 == ${count}} {
    206206                                ui_msg "Your php.ini contains a line that will prevent ${name}"
    207207                                ui_msg "and other PHP extensions from working. To fix this,"
    208                                 ui_msg "edit ${php.php_ini} and delete this line:"
     208                                ui_msg "edit ${php.ini} and delete this line:"
    209209                                ui_msg ""
    210210                            }
Note: See TracChangeset for help on using the changeset viewer.