Ticket #53223: Portfile

File Portfile, 2.3 KB (added by josephsacco, 7 years ago)

Portfile

Line 
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
3PortSystem              1.0
4
5name                    wordpress
6version                 4.7
7categories              www
8platforms               darwin freebsd
9maintainers             nomaintainer
10supported_archs         noarch
11worksrcdir              ${name}
12
13description             A state-of-the-art semantic personal publishing platform
14
15long_description        WordPress is a state-of-the-art semantic personal publishing platform \
16                        with a focus on aesthetics, web standards, and usability.
17
18homepage                http://wordpress.org/
19master_sites            ${homepage}
20
21checksums               rmd160  8ffa3dce1b36ef68e8d6d03d2dc3d733529509fa \
22                        sha256  7eae27ff70716dae2d2ba58280f2832fd70a208c9cdaf29ab36ac789c14d6977
23
24# The php variants deliberately do not conflict
25
26foreach 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
38if {![variant_isset php55] && ![variant_isset php56] &&
39    ![variant_isset php70] && [variant_isset php71]} {
40    default_variants +php71
41}
42
43livecheck.type          regex
44livecheck.url           ${homepage}
45livecheck.regex         "Download WordPress (\\d+(?:\\.\\d+)*)"
46
47use_configure           no
48build                   {}
49
50destroot {
51    file copy ${worksrcpath} ${destroot}${prefix}/www/${name}
52}
53
54notes "
55If your webserver is already running with php and mysql, connect on http://localhost/wordpress/ to finish the install.
56Temporarily 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
60If Apache is not set, set an alias to the wordpress dir and some access like
61-- ${prefix}/apache2/conf/extra/wordpress.conf
62Alias /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"