Ticket #5550: Portfile

File Portfile, 1.6 KB (added by jstetser@…, 19 years ago)

UPDATE: lighttpd-1.4.8 now with conf-file kung fu action

Line 
1# $Id: $
2
3PortSystem 1.0
4name              lighttpd
5version           1.4.8
6categories        www
7maintainers       jstetser@icongarden.com
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         ${distname}.tar.gz md5 7d7790ef95ff5755f73bfcda4f13696d
16depends_lib       lib:libpcre:pcre \
17                  lib:libz.1:zlib
18
19configure.args    --mandir=${prefix}/share/man
20
21post-destroot {         
22      file mkdir "${destroot}${prefix}/etc/${name}/"
23                        xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \
24                                        "${destroot}${prefix}/etc/${name}/lighttpd.conf.default"
25                        }
26
27variant mysql {
28   depends_lib-append    lib:libmysqlclient:mysql4
29   configure.args-append --with-mysql=${prefix}/bin/mysql_config
30
31   post-configure {
32       reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql/mysql.h\"|g" \
33                 "${worksrcpath}/src/mod_mysql_vhost.c"
34   }
35
36}
37
38variant ssl {
39   depends_lib-append   bin:openssl:openssl
40   configure.args-append --with-openssl=${prefix}/include/openssl
41}
42
43variant cml {
44   depends_lib-append   lib:liblua:lua \
45                        bin:memcached:memcached \
46                        bin:pkgconfig:pkgconfig
47                       
48   configure.args-append --with-lua \
49                         --with-memcache
50}
51