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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

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