Ticket #18455: patch-wikkawiki.5.diff
File patch-wikkawiki.5.diff, 3.5 KB (added by brian@…, 16 years ago) |
---|
-
Portfile
old new 1 # c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=42 # $Id: Portfile .macports,v 1.1 2009/02/14 05:07:53 brian Exp brian$1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 # $Id: Portfile,v 1.1 2008/12/21 02:55:40 brian Exp $ 3 3 4 4 PortSystem 1.0 5 5 6 name wikkawiki 6 name wikkawiki 7 7 set major_version 1.1.6 8 8 version ${major_version}.5 9 9 categories www php … … 25 25 port:php4 \ 26 26 port:mysql4 27 27 28 set wikkapath ${prefix}/www/wikka 29 set osxdocpath /Library/WebServer/Documents 30 28 31 variant php5 description {Use php5 instead of php4 (not fully tested)} { 29 depends_lib-append p ort:php532 depends_lib-append path:bin/php:php5 30 33 depends_lib-delete port:php4 31 34 } 32 35 33 36 variant mysql5 description {Use mysql5 instead of mysql4 (not fully tested)} { 34 depends_lib-append p ort:mysql537 depends_lib-append path:bin/mysql_config5:mysql5 35 38 depends_lib-delete port:mysql4 36 39 } 37 40 … … 40 43 depends_lib-delete port:mysql4 41 44 } 42 45 43 variant use_osx_docroot conflicts php5 mysql5 requires nodeps description {Create link to /Library/WebServer/Documents} {} 46 variant use_osx_docroot conflicts php5 mysql5 requires nodeps description {Create link to /Library/WebServer/Documents} { 47 post-destroot { 48 xinstall -d ${destroot}${osxdocpath} 49 ln -s ${wikkapath} ${destroot}${osxdocpath}/wikka 50 } 44 51 45 use_configure no 46 build {} 52 post-activate { 53 } 54 } 47 55 48 set wikkapath ${destroot}${prefix}/www/wikka 49 set osxdocpath /Library/WebServer/Documents 56 use_configure no 57 build {} 50 58 51 59 destroot { 52 xinstall -d -m 0755 ${wikkapath} 53 eval file copy [glob ${worksrcpath}/*] ${wikkapath} 54 xinstall -m 0666 ${worksrcpath}/.htaccess ${wikkapath} 55 touch ${wikkapath}/wikka.config.php 56 file attributes ${wikkapath}/wikka.config.php -permissions 0666 57 58 if {[variant_isset use_osx_docroot]} { 59 file delete -force ${osxdocpath}/wikka 60 ln -s ${prefix}/www/wikka ${osxdocpath}/wikka 61 } 60 xinstall -d -m 0755 ${destroot}${wikkapath} 61 eval file copy [glob ${worksrcpath}/*] ${destroot}${wikkapath} 62 xinstall -m 0666 ${worksrcpath}/.htaccess ${destroot}${wikkapath} 63 touch ${destroot}${wikkapath}/wikka.config.php 64 file attributes ${destroot}${wikkapath}/wikka.config.php -permissions 0666 62 65 } 63 66 64 67 post-activate { 65 68 if {[variant_isset use_osx_docroot]} { 66 69 ui_msg "**********************************************************" 67 ui_msg "* Point your browser to http://localhost/wikka to continue" 70 ui_msg "* Point your browser to http://localhost/wikka to continue" 68 71 ui_msg "* installation. Be sure to lock down permissions on" 69 72 ui_msg "* ${osxdocpath}/wikka/wikka.config.php and" 70 73 ui_msg "* ${osxdocpath}/wikka/.htaccess for public sites!" … … 72 75 ui_msg "**********************************************************" 73 76 } else { 74 77 ui_msg "**********************************************************" 75 ui_msg "* Point your browser to http://localhost/wikka to continue" 78 ui_msg "* Point your browser to http://localhost/wikka to continue" 76 79 ui_msg "* installation. Be sure to lock down permissions on" 77 80 ui_msg "* ${prefix}/www/wikka/wikka.config.php and" 78 81 ui_msg "* ${prefix}/www/wikka/.htaccess for public sites!"