1 | # c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name wikkawiki |
---|
7 | set major_version 1.1.6 |
---|
8 | version ${major_version}.5 |
---|
9 | categories www php |
---|
10 | maintainers wikkawiki.org:brian |
---|
11 | description WikkaWiki is a flexible, standards-compliant and lightweight wiki engine. |
---|
12 | long_description WikkaWiki is a flexible, standards-compliant and \ |
---|
13 | lightweight wiki engine written in PHP, which uses MySQL \ |
---|
14 | to store pages. Forked from WakkaWiki. Designed for \ |
---|
15 | speed, extensibility, and security. For installation \ |
---|
16 | instructions, visit http://docs.wikkawiki.org/MacportInstall |
---|
17 | homepage http://www.wikkawiki.org |
---|
18 | distname Wikka-${version} |
---|
19 | master_sites http://wikkawiki.org/downloads/ |
---|
20 | checksums md5 e1f3b98b98ff5fb6b22fa4848b54317b \ |
---|
21 | sha1 2d2e114d69223f759a5e0261887748112eba24b2 |
---|
22 | platforms darwin freebsd |
---|
23 | |
---|
24 | depends_lib \ |
---|
25 | port:php4 \ |
---|
26 | port:mysql4 |
---|
27 | |
---|
28 | variant php5 description {Use php5 instead of php4 (not fully tested)} { |
---|
29 | depends_lib-append port:php5 |
---|
30 | depends_lib-delete port:php4 |
---|
31 | } |
---|
32 | |
---|
33 | variant mysql5 description {Use mysql5 instead of mysql4 (not fully tested)} { |
---|
34 | depends_lib-append port:mysql5 |
---|
35 | depends_lib-delete port:mysql4 |
---|
36 | } |
---|
37 | |
---|
38 | variant nodeps description {Use existing php/mysql libs} { |
---|
39 | depends_lib-delete port:php4 |
---|
40 | depends_lib-delete port:mysql4 |
---|
41 | } |
---|
42 | |
---|
43 | variant use_osx_docroot conflicts php5 mysql5 requires nodeps description {Create link to /Library/WebServer/Documents} {} |
---|
44 | |
---|
45 | use_configure no |
---|
46 | build {} |
---|
47 | |
---|
48 | set wikkapath ${destroot}${prefix}/www/wikka |
---|
49 | set osxdocpath /Library/WebServer/Documents |
---|
50 | |
---|
51 | 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 | } |
---|
62 | } |
---|
63 | |
---|
64 | post-activate { |
---|
65 | if {[variant_isset use_osx_docroot]} { |
---|
66 | ui_msg "**********************************************************" |
---|
67 | ui_msg "* Point your browser to http://localhost/wikka to continue" |
---|
68 | ui_msg "* installation. Be sure to lock down permissions on" |
---|
69 | ui_msg "* ${osxdocpath}/wikka/wikka.config.php and" |
---|
70 | ui_msg "* ${osxdocpath}/wikka/.htaccess for public sites!" |
---|
71 | ui_msg "* Visit http://docs.wikkawiki.org/MacportInstall for help." |
---|
72 | ui_msg "**********************************************************" |
---|
73 | } else { |
---|
74 | ui_msg "**********************************************************" |
---|
75 | ui_msg "* Point your browser to http://localhost/wikka to continue" |
---|
76 | ui_msg "* installation. Be sure to lock down permissions on" |
---|
77 | ui_msg "* ${prefix}/www/wikka/wikka.config.php and" |
---|
78 | ui_msg "* ${prefix}/www/wikka/.htaccess for public sites!" |
---|
79 | ui_msg "* Visit http://docs.wikkawiki.org/MacportInstall for help." |
---|
80 | ui_msg "**********************************************************" |
---|
81 | } |
---|
82 | } |
---|