Changeset 58025


Ignore:
Timestamp:
Sep 21, 2009, 1:34:01 AM (10 years ago)
Author:
alakazam@…
Message:

phpMyAdmin : Fix configuration file creation so that it is created in the default location for phpMyAdmin instead of a custom macports location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/phpmyadmin/Portfile

    r57900 r58025  
    66set my_name         phpMyAdmin
    77version             3.2.2
     8revision            1
    89categories          www php databases
    910maintainers         alakazam
     
    3536
    3637set docroot         ${destroot}${prefix}/www/${name}
    37 set configfile      ${prefix}/etc/${name}.inc.php
     38set configfile      ${prefix}/www/${name}/config.inc.php
    3839
    3940use_configure       no
     
    4344    xinstall -d -m 0755 ${docroot}
    4445    eval copy [glob ${worksrcpath}/*] ${docroot}
    45    
    46     ln -s ${configfile} ${docroot}/config.inc.php
    4746}
    4847
    49 post-activate {   
     48post-activate {
    5049    if {![file exists ${configfile}]} {
    51         xinstall -m 644 ${worksrcpath}/config.sample.inc.php ${configfile}
     50        xinstall -m 644 ${prefix}/www/${name}/config.sample.inc.php ${configfile}
    5251       
    5352        ui_msg "A new configuration file has been created at ${configfile}."
Note: See TracChangeset for help on using the changeset viewer.