Ticket #12108: Portfile.diff

File Portfile.diff, 1.3 KB (added by markd@…, 17 years ago)
  • Portfile

    old new  
    380380}
    381381
    382382post-install {
    383         ui_msg "\nIf this is your first install, you might want"
    384        
    385383        if { [variant_isset apache] } {
    386                 ui_msg " * enable php in apache :\n"
     384                ui_msg "To enable php in Apache:\n"
    387385       
    388386                ui_msg "cd ${prefix}/libexec/apache"
    389387                ui_msg "${prefix}/apache/bin/apxs -a -e -n \"php5\" libphp5.so\n"
    390                 ui_msg "* copy  ${prefix}/etc/php.ini-dist to  ${prefix}/etc/php.ini"
     388                ui_msg "Copy  ${prefix}/etc/php.ini-dist to  ${prefix}/etc/php.ini"
    391389        }
    392390       
    393391        if { [variant_isset apache2] } {
     392                ui_msg "To enable php in Apache v2:\n"
     393
    394394                ui_msg "cd ${prefix}/apache2/modules"
    395395                ui_msg "${prefix}/apache2/bin/apxs -a -e -n \"php5\" libphp5.so\n"
    396                 ui_msg "* copy  ${prefix}/etc/php.ini-dist to  ${prefix}/etc/php.ini"
     396                ui_msg "Copy  ${prefix}/etc/php.ini-dist to  ${prefix}/etc/php.ini"
    397397        }
    398398       
    399 #       ui_msg "* copy  ${prefix}/etc/pear.conf.sample to  ${prefix}/etc/pear.conf"
     399        if { [variant_isset apache] || [variant_isset apache2] } {
     400                ui_msg "Then make sure these statements are in your httpd.conf:\n"
     401               
     402                ui_msg "AddType application/x-httpd-php .php\n"
     403                ui_msg "AddType application/x-httpd-php-source .phps\n"
     404        }
     405
     406#       ui_msg "Copy  ${prefix}/etc/pear.conf.sample to  ${prefix}/etc/pear.conf"
    400407}
    401408
    402409livecheck.check     regex