source: trunk/dports/www/cherokee/Portfile @ 91225

Last change on this file since 91225 was 91225, checked in by ryandesign@…, 7 years ago

cherokee: update to 1.2.101; remove unnecessary configure.args and distname directive; new maintainer; GPL-2 license; see #33750

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