# $Id: Portfile 58296 2009-09-25 13:46:41Z arthurk@macports.org $ PortSystem 1.0 name cherokee version 1.0.1 revision 0 categories www platforms darwin maintainers davidfavor.com:david description Cherokee web server long_description \ Cherokee is a relatively new HTTP server designed to be as\ performant as Apache and lighttpd, but much easier to \ configure and maintain. It ships out-of-the-box SCGI \ support, making it ideal for deploying dynamic websites. homepage http://www.cherokee-project.com/ master_sites http://www.cherokee-project.com/download/1.0/${version} distname ${name}-${version} checksums md5 fd2e93e1b6d9a3ec6ee243d3426c76b5 \ sha1 22287677ed03087f1f4eb99302dac8dd97b43ef7 \ rmd160 df09d878a898837fde0060eaa79930b0ef564dc5 depends_lib port:pcre \ port:zlib \ port:libgeoip \ port:rrdtool configure.args --mandir=${prefix}/share/man # Startup item. set cherokee_config_name cherokee.conf set cherokee_config ${prefix}/etc/${name}/${cherokee_config_name} set cherokee_pidfile_name cherokee.pid set cherokee_pidfile ${prefix}/var/run/${cherokee_pidfile_name} startupitem.create yes startupitem.init "PIDFILE=${cherokee_config}" startupitem.start "${prefix}/sbin/cherokee -C ${cherokee_config}" startupitem.stop "kill \$(cat \$PIDFILE)" variant no_startupitem description {Do not create a startup item} { startupitem.create no } variant ssl description {Add SSL (HTTPS) support to the server} { depends_lib-append port:openssl configure.args-append --enable-tls=openssl \ --with-openssl=${prefix}/include/openssl } variant no_ipv6 description {Disable IPv6 support} { configure.args-append --disable-ipv6 } variant no_pam description {Disable PAM support} { configure.args-append --disable-pam } variant trace description {Allows debugging options} { configure.args-append --enable-trace } variant no_epoll description {Disable epoll() support} { configure.args-append --disable-epoll } variant no_pthread description {Disable threading support} { configure.args-append --disable-pthread } variant no_readdir_r description {Disable readdir_r usage} { configure.args-append --disable-readdir_r } variant no_admin description {Skips cherokee-admin installation} { configure.args-append --disable-admin } pre-destroot { xinstall -m 755 -d ${destroot}${prefix}/var/log destroot.keepdirs-append ${destroot}${prefix}/var/log }