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