Ticket #26622: Portfile

File Portfile, 2.5 KB (added by felix.bellanger@…, 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.8
7categories      www
8platforms       darwin
9maintainers     gmail.com:leidel
10description     Cherokee web server
11long_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.
16homepage        http://www.cherokee-project.com/
17master_sites    http://www.cherokee-project.com/download/1.0/${version}
18distname        ${name}-${version}
19checksums       md5     12117a80c2a970173bd32660439c2db0 \
20                sha1    28b2e2b192c713aa9c43737ae8376a55effa7336
21depends_lib     port:pcre \
22                port:zlib \
23                port:libgeoip \
24                port:rrdtool
25
26configure.args    --mandir=${prefix}/share/man
27
28# Startup item.
29set cherokee_config_name   cherokee.conf
30set cherokee_config        ${prefix}/etc/${name}/${cherokee_config_name}
31set cherokee_pidfile_name  cherokee.pid
32set cherokee_pidfile       ${prefix}/var/run/${cherokee_pidfile_name}
33
34startupitem.create  yes
35startupitem.init    "PIDFILE=${cherokee_pidfile}"
36startupitem.start   "${prefix}/sbin/cherokee -C ${cherokee_config}"
37startupitem.stop    "kill \$(cat \$PIDFILE)"
38
39variant no_startupitem description {Do not create a startup item} {
40    startupitem.create  no
41}
42
43variant 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
49variant no_ipv6 description {Disable IPv6 support} {
50    configure.args-append --disable-ipv6
51}
52
53variant no_pam description {Disable PAM support} {
54    configure.args-append --disable-pam
55}
56
57variant trace description {Allows debugging options} {
58    configure.args-append --enable-trace
59}
60
61variant no_epoll description {Disable epoll() support} {
62    configure.args-append --disable-epoll
63}
64
65variant no_pthread description {Disable threading support} {
66    configure.args-append --disable-pthread
67}
68
69variant no_readdir_r description {Disable readdir_r usage} {
70    configure.args-append --disable-readdir_r
71}
72
73variant no_admin description {Skips cherokee-admin installation} {
74    configure.args-append --disable-admin
75}
76
77pre-destroot {
78    xinstall -m 755 -d ${destroot}${prefix}/var/log
79    destroot.keepdirs-append ${destroot}${prefix}/var/log
80}
81