source: trunk/dports/www/lighttpd/Portfile @ 58230

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

rewrite mysql5 dependency so mysql5-devel can satisfy it

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 58230 2009-09-24 16:45:22Z ryandesign@macports.org $
3
4PortSystem 1.0
5name              lighttpd
6version           1.4.22
7categories        www
8platforms         darwin
9maintainers       kallisys.net:pguyot
10description       A secure, fast, compliant and flexible web-server
11long_description  lighttpd is a secure, fast, compliant and very flexible\
12                  web-server which has been optimized for high-performance\
13                  environments. It has a very low memory footprint\
14                  compared to other webservers and takes care of cpu-load.
15homepage          http://www.lighttpd.net/
16master_sites      ${homepage}/download/
17checksums         md5     949c33a81e83f7718a47280bef21b90c \
18                  sha1    e5268929dff832c7786e3b623ca67e6bb0c2913e \
19                  rmd160  0762e55c52cbc8e5c20faecc45817db5885462d4
20depends_lib       port:pcre \
21                  port:zlib
22patchfiles        patch-doc-lighttpd.conf.diff
23
24post-patch {
25    reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
26}
27
28configure.args    --mandir=${prefix}/share/man
29
30# Startup item.
31set lighttpd_config_name   lighttpd.conf
32set lighttpd_config        ${prefix}/etc/${name}/${lighttpd_config_name}
33set lighttpd_pidfile_name  lighttpd.pid
34set lighttpd_pidfile       ${prefix}/var/run/${lighttpd_pidfile_name}
35
36startupitem.create  yes
37startupitem.init    "PIDFILE=${lighttpd_pidfile}"
38startupitem.start   "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
39startupitem.stop    "kill \$(cat \$PIDFILE)"
40
41destroot.keepdirs   ${destroot}${prefix}/var/log/lighttpd \
42                    ${destroot}${prefix}/www/htdocs \
43                    ${destroot}${prefix}/var/run/lighttpd \
44                    ${destroot}${prefix}/var/lib/lighttpd \
45                    ${destroot}${prefix}/var/cache/lighttpd/compress
46post-destroot {
47   file mkdir "${destroot}${prefix}/etc/${name}/"
48   xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \
49                      "${destroot}${lighttpd_config}.default"
50}
51
52post-install {
53  ui_msg "\n Before starting lighttpd it must be configured.\n\
54    Lighttpd is configured by editing ${lighttpd_config}\n\
55    There's a sample config file at ${lighttpd_config}.default.\n\
56    Please note that the launchd daemon relies on the PID being at\n\
57    ${lighttpd_pidfile}."
58}
59
60
61variant mysql4 {
62   depends_lib-append    port:mysql4
63   configure.args-append --with-mysql=${prefix}/bin/mysql_config
64
65   post-configure {
66      reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql/mysql.h\"|g" \
67                "${worksrcpath}/src/mod_mysql_vhost.c"
68   }
69}
70
71variant mysql5 {
72   depends_lib-append    path:bin/mysql_config5:mysql5
73   configure.args-append --with-mysql=${prefix}/bin/mysql_config5
74
75   post-configure {
76      reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql5/mysql/mysql.h\"|g" \
77                "${worksrcpath}/src/mod_mysql_vhost.c"
78   }
79}
80
81variant ssl {
82   depends_lib-append   port:openssl
83   configure.args-append --with-openssl=${prefix}/include/openssl
84}
85
86variant cml {
87   depends_lib-append   port:lua \
88                        port:libmemcache \
89                        port:memcached \
90                        port:pkgconfig
91                       
92   configure.args-append --with-lua \
93                         --with-memcache
94}
95
96variant davprops {
97   depends_lib-append   port:libxml2 \
98                        port:sqlite3 \
99                        port:pkgconfig
100                       
101   configure.args-append --with-webdav-props
102}
Note: See TracBrowser for help on using the repository browser.