1 | # $Id: Portfile 58296 2009-09-25 13:46:41Z arthurk@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name cherokee |
---|
6 | version 1.0.8 |
---|
7 | categories www |
---|
8 | platforms darwin |
---|
9 | maintainers gmail.com:leidel |
---|
10 | description Cherokee web server |
---|
11 | long_description \ |
---|
12 | Cherokee is a relatively new HTTP server designed to be as\ |
---|
13 | performant as Apache and lighttpd, but much easier to \ |
---|
14 | configure and maintain. It ships out-of-the-box SCGI \ |
---|
15 | support, making it ideal for deploying dynamic websites. |
---|
16 | homepage http://www.cherokee-project.com/ |
---|
17 | master_sites http://www.cherokee-project.com/download/1.0/${version} |
---|
18 | distname ${name}-${version} |
---|
19 | checksums md5 12117a80c2a970173bd32660439c2db0 \ |
---|
20 | sha1 28b2e2b192c713aa9c43737ae8376a55effa7336 |
---|
21 | depends_lib port:pcre \ |
---|
22 | port:zlib \ |
---|
23 | port:libgeoip \ |
---|
24 | port:rrdtool |
---|
25 | |
---|
26 | configure.args --mandir=${prefix}/share/man |
---|
27 | |
---|
28 | # Startup item. |
---|
29 | set cherokee_config_name cherokee.conf |
---|
30 | set cherokee_config ${prefix}/etc/${name}/${cherokee_config_name} |
---|
31 | set cherokee_pidfile_name cherokee.pid |
---|
32 | set cherokee_pidfile ${prefix}/var/run/${cherokee_pidfile_name} |
---|
33 | |
---|
34 | startupitem.create yes |
---|
35 | startupitem.init "PIDFILE=${cherokee_pidfile}" |
---|
36 | startupitem.start "${prefix}/sbin/cherokee -C ${cherokee_config}" |
---|
37 | startupitem.stop "kill \$(cat \$PIDFILE)" |
---|
38 | |
---|
39 | variant no_startupitem description {Do not create a startup item} { |
---|
40 | startupitem.create no |
---|
41 | } |
---|
42 | |
---|
43 | variant ssl description {Add SSL (HTTPS) support to the server} { |
---|
44 | depends_lib-append port:openssl |
---|
45 | configure.args-append --enable-tls=openssl \ |
---|
46 | --with-openssl=${prefix}/include/openssl |
---|
47 | } |
---|
48 | |
---|
49 | variant no_ipv6 description {Disable IPv6 support} { |
---|
50 | configure.args-append --disable-ipv6 |
---|
51 | } |
---|
52 | |
---|
53 | variant no_pam description {Disable PAM support} { |
---|
54 | configure.args-append --disable-pam |
---|
55 | } |
---|
56 | |
---|
57 | variant trace description {Allows debugging options} { |
---|
58 | configure.args-append --enable-trace |
---|
59 | } |
---|
60 | |
---|
61 | variant no_epoll description {Disable epoll() support} { |
---|
62 | configure.args-append --disable-epoll |
---|
63 | } |
---|
64 | |
---|
65 | variant no_pthread description {Disable threading support} { |
---|
66 | configure.args-append --disable-pthread |
---|
67 | } |
---|
68 | |
---|
69 | variant no_readdir_r description {Disable readdir_r usage} { |
---|
70 | configure.args-append --disable-readdir_r |
---|
71 | } |
---|
72 | |
---|
73 | variant no_admin description {Skips cherokee-admin installation} { |
---|
74 | configure.args-append --disable-admin |
---|
75 | } |
---|
76 | |
---|
77 | pre-destroot { |
---|
78 | xinstall -m 755 -d ${destroot}${prefix}/var/log |
---|
79 | destroot.keepdirs-append ${destroot}${prefix}/var/log |
---|
80 | } |
---|
81 | |
---|