Ticket #25039: cherokee-1.0.1.portfile

File cherokee-1.0.1.portfile, 2.6 KB (added by davidfavor (David Favor), 14 years ago)
Line 
1# $Id: Portfile 58296 2009-09-25 13:46:41Z arthurk@macports.org $
2
3PortSystem 1.0
4
5name            cherokee
6version         1.0.1
7revision        0
8categories      www
9platforms       darwin
10maintainers     davidfavor.com:david
11
12description     Cherokee web server
13long_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
19homepage        http://www.cherokee-project.com/
20master_sites    http://www.cherokee-project.com/download/1.0/${version}
21distname        ${name}-${version}
22
23checksums       md5    fd2e93e1b6d9a3ec6ee243d3426c76b5 \
24                sha1   22287677ed03087f1f4eb99302dac8dd97b43ef7 \
25                rmd160 df09d878a898837fde0060eaa79930b0ef564dc5
26
27depends_lib     port:pcre \
28                port:zlib \
29                port:libgeoip \
30                port:rrdtool
31
32configure.args    --mandir=${prefix}/share/man
33
34# Startup item.
35set cherokee_config_name   cherokee.conf
36set cherokee_config        ${prefix}/etc/${name}/${cherokee_config_name}
37set cherokee_pidfile_name  cherokee.pid
38set cherokee_pidfile       ${prefix}/var/run/${cherokee_pidfile_name}
39
40startupitem.create  yes
41startupitem.init    "PIDFILE=${cherokee_config}"
42startupitem.start   "${prefix}/sbin/cherokee -C ${cherokee_config}"
43startupitem.stop    "kill \$(cat \$PIDFILE)"
44
45variant no_startupitem description {Do not create a startup item} {
46    startupitem.create  no
47}
48
49variant 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
55variant no_ipv6 description {Disable IPv6 support} {
56    configure.args-append --disable-ipv6
57}
58
59variant no_pam description {Disable PAM support} {
60    configure.args-append --disable-pam
61}
62
63variant trace description {Allows debugging options} {
64    configure.args-append --enable-trace
65}
66
67variant no_epoll description {Disable epoll() support} {
68    configure.args-append --disable-epoll
69}
70
71variant no_pthread description {Disable threading support} {
72    configure.args-append --disable-pthread
73}
74
75variant no_readdir_r description {Disable readdir_r usage} {
76    configure.args-append --disable-readdir_r
77}
78
79variant no_admin description {Skips cherokee-admin installation} {
80    configure.args-append --disable-admin
81}
82
83pre-destroot {
84    xinstall -m 755 -d ${destroot}${prefix}/var/log
85    destroot.keepdirs-append ${destroot}${prefix}/var/log
86}
87