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 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name wordpress |
---|
6 | version 4.7 |
---|
7 | categories www |
---|
8 | platforms darwin freebsd |
---|
9 | maintainers nomaintainer |
---|
10 | supported_archs noarch |
---|
11 | worksrcdir ${name} |
---|
12 | |
---|
13 | description A state-of-the-art semantic personal publishing platform |
---|
14 | |
---|
15 | long_description WordPress is a state-of-the-art semantic personal publishing platform \ |
---|
16 | with a focus on aesthetics, web standards, and usability. |
---|
17 | |
---|
18 | homepage http://wordpress.org/ |
---|
19 | master_sites ${homepage} |
---|
20 | |
---|
21 | checksums rmd160 8ffa3dce1b36ef68e8d6d03d2dc3d733529509fa \ |
---|
22 | sha256 7eae27ff70716dae2d2ba58280f2832fd70a208c9cdaf29ab36ac789c14d6977 |
---|
23 | |
---|
24 | # The php variants deliberately do not conflict |
---|
25 | |
---|
26 | foreach php {php55 php56 php70 php71} { |
---|
27 | eval [subst { |
---|
28 | variant ${php} description "Use ${php}" { |
---|
29 | depends_run-append port:${php}-gd \ |
---|
30 | port:${php}-mbstring \ |
---|
31 | port:${php}-mcrypt \ |
---|
32 | port:${php}-mysql \ |
---|
33 | port:${php}-zip |
---|
34 | } |
---|
35 | }] |
---|
36 | } |
---|
37 | |
---|
38 | if {![variant_isset php55] && ![variant_isset php56] && |
---|
39 | ![variant_isset php70] && [variant_isset php71]} { |
---|
40 | default_variants +php71 |
---|
41 | } |
---|
42 | |
---|
43 | livecheck.type regex |
---|
44 | livecheck.url ${homepage} |
---|
45 | livecheck.regex "Download WordPress (\\d+(?:\\.\\d+)*)" |
---|
46 | |
---|
47 | use_configure no |
---|
48 | build {} |
---|
49 | |
---|
50 | destroot { |
---|
51 | file copy ${worksrcpath} ${destroot}${prefix}/www/${name} |
---|
52 | } |
---|
53 | |
---|
54 | notes " |
---|
55 | If your webserver is already running with php and mysql, connect on http://localhost/wordpress/ to finish the install. |
---|
56 | Temporarily allow the webserver write access so it can create wp-config.php (or do it yourself) |
---|
57 | $ sudo chmod 1777 ${prefix}/www/wordpress |
---|
58 | $ sudo chmod 755 ${prefix}/www/wordpress |
---|
59 | |
---|
60 | If Apache is not set, set an alias to the wordpress dir and some access like |
---|
61 | -- ${prefix}/apache2/conf/extra/wordpress.conf |
---|
62 | Alias /wordpress/ \"${prefix}/www/wordpress/\" |
---|
63 | <Directory \"${prefix}/www/wordpress\"> |
---|
64 | Options Indexes FollowSymLinks |
---|
65 | AllowOverride None |
---|
66 | Order allow,deny |
---|
67 | Allow from all |
---|
68 | </Directory> |
---|
69 | -- |
---|
70 | " |
---|