source: trunk/dports/www/cherokee/Portfile

Last change on this file was 139229, checked in by jeremyhu@…, 2 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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