source: trunk/dports/www/lighttpd-devel/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: 3.8 KB
Line 
1# $Id: Portfile 139229 2015-08-08 03:10:35Z ryandesign@macports.org $
2
3PortSystem 1.0
4name              lighttpd-devel
5version           1.5.0-r1691
6revision          1
7categories        www
8platforms         darwin
9maintainers       ryandesign
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. \
15                  This is the 1.5.x pre-release version.
16homepage          http://www.lighttpd.net/
17master_sites      ${homepage}assets/2007/2/23/
18distname          lighttpd-${version}
19worksrcdir        lighttpd-1.5.0
20checksums         ${distname}.tar.gz \
21                    md5 529909adbafee7e2c26bb427226f1457 \
22                    sha1 afe4ce968fc898404cd9e61e8e48b2ea3f6db5ca \
23                    rmd160 fc3bb80265e0090fce622822d4658568a5aa536c
24depends_build     port:pkgconfig
25depends_lib       port:pcre \
26                  port:zlib \
27                  path:lib/pkgconfig/glib-2.0.pc:glib2
28patchfiles        patch-doc-lighttpd.conf \
29                  patch-src-settings.h
30
31post-patch {
32        reinplace "s|__PREFIX|${prefix}|g" "${worksrcpath}/doc/lighttpd.conf"
33}
34
35configure.args    --mandir=${prefix}/share/man
36
37# Startup item.
38set lighttpd_config_name   lighttpd.conf
39set lighttpd_config        ${prefix}/etc/${name}/${lighttpd_config_name}
40set lighttpd_pidfile_name  lighttpd.pid
41set lighttpd_pidfile       ${prefix}/var/run/${lighttpd_pidfile_name}
42
43startupitem.create  yes
44startupitem.init    "PIDFILE=${lighttpd_pidfile}"
45startupitem.start   "${prefix}/sbin/lighttpd -f ${lighttpd_config}"
46startupitem.stop    "kill \$(cat \$PIDFILE)"
47
48post-destroot {
49   file mkdir "${destroot}${prefix}/etc/${name}/"
50   xinstall -m 644 -v "${worksrcpath}/doc/lighttpd.conf" \
51                      "${destroot}${lighttpd_config}.default"
52}
53
54post-install {
55  ui_msg "\n Before starting lighttpd it must be configured.\n\
56    Lighttpd is configured by editing ${lighttpd_config}\n\
57    There's a sample config file at ${lighttpd_config}.default.\n\
58    Please note that the launchd daemon relies on the PID being at\n\
59    ${lighttpd_pidfile}."
60}
61
62variant mysql4 conflicts mysql5 {
63   depends_lib-append    port:mysql4
64   configure.args-append --with-mysql=${prefix}/bin/mysql_config
65
66   post-configure {
67      reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql/mysql.h\"|g" \
68                "${worksrcpath}/src/mod_mysql_vhost.c"
69   }
70}
71
72variant mysql5 conflicts mysql4 {
73   depends_lib-append    path:bin/mysql_config5:mysql5
74   configure.args-append --with-mysql=${prefix}/bin/mysql_config5
75
76   post-configure {
77      reinplace "s|<mysql/mysql.h>|\"${prefix}/include/mysql5/mysql/mysql.h\"|g" \
78                "${worksrcpath}/src/mod_mysql_vhost.c"
79   }
80}
81
82variant ssl {
83   depends_lib-append   path:lib/libssl.dylib:openssl
84   configure.args-append --with-openssl=${prefix}/include/openssl
85}
86
87variant cml {
88   depends_lib-append   port:lua \
89                        port:libmemcache \
90                        port:memcached \
91                        port:pkgconfig
92                       
93   configure.args-append --with-lua=${prefix} \
94                         --with-memcache
95}
96
97variant davprops {
98   depends_lib-append   port:libxml2 \
99                        port:sqlite3 \
100                        port:pkgconfig
101                       
102   configure.args-append --with-webdav-props
103}
104
105variant bzip2 {
106   depends_lib-append   port:bzip2
107                       
108   configure.args-append --with-bzip2
109}
110
111variant attr {
112   configure.args-append --with-attr
113}
114
115default_variants        +bzip2
116
117livecheck.type  regex
118livecheck.url   http://www.lighttpd.net/2007/2/3/lighttpd-1-5-0-pre
119livecheck.regex {<a href="http://www.lighttpd.net/assets/.*/lighttpd-(.*?).tar.gz">lighttpd-\1.tar.gz</a>}
Note: See TracBrowser for help on using the repository browser.