Ticket #12108: Portfile.diff
File Portfile.diff, 1.3 KB (added by markd@…, 17 years ago) |
---|
-
Portfile
old new 380 380 } 381 381 382 382 post-install { 383 ui_msg "\nIf this is your first install, you might want"384 385 383 if { [variant_isset apache] } { 386 ui_msg " * enable php in apache:\n"384 ui_msg "To enable php in Apache:\n" 387 385 388 386 ui_msg "cd ${prefix}/libexec/apache" 389 387 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" 391 389 } 392 390 393 391 if { [variant_isset apache2] } { 392 ui_msg "To enable php in Apache v2:\n" 393 394 394 ui_msg "cd ${prefix}/apache2/modules" 395 395 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" 397 397 } 398 398 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" 400 407 } 401 408 402 409 livecheck.check regex