1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Lightweight high-performance web server
8 HOMEPAGE= https://www.lighttpd.net/
12 SITES[main]= http://download.lighttpd.net/lighttpd/releases-1.4.x/
13 DISTFILE[1]= lighttpd-1.4.50.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= LDAP MYSQL GEOIP
18 OPTIONS_STANDARD= LDAP MYSQL GEOIP
20 BUILD_DEPENDS= pcre:static:standard
22 BUILDRUN_DEPENDS= pcre:shared:standard
28 USERGROUP_SPKG= single
30 USES= autoreconf cpe gmake libtool pkgconfig ssl lua zlib
32 LICENSE= BSD3CLAUSE:single
33 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/COPYING
36 FPC_EQUIVALENT= www/lighttpd
39 CONFIGURE_ARGS= --libdir={{PREFIX}}/lib/lighttpd
40 --with-libev={{LOCALBASE}}
42 --with-openssl-includes={{OPENSSLINC}}
43 --with-openssl-libs={{OPENSSLLIB}}
50 --without-webdav-props
51 --without-webdav-locks
52 CONFIGURE_ENV= LUA_CFLAGS="-I{{LUA_INCDIR}}"
53 LUA_LIBS="-L{{LUA_LIBDIR}} -llua-{{LUA_VER}}"
55 PLIST_SUB= WWWOWN="wwwraven"
57 WWWDIR="{{WWWDIR_LIGHTTPD}}"
58 CACHEDIR="/var/cache/lighttpd"
59 HOMEDIR="/var/run/lighttpd"
60 LOGDIR="/var/log/lighttpd"
61 RC_SUBR= lighttpd:single
62 SUB_LIST= REQUIRE="DAEMON {{REQUIRES}}"
65 VAR_OPSYS[freebsd]= CONFIGURE_ARGS=--with-attr
66 VAR_OPSYS[linux]= CONFIGURE_ARGS=--with-attr
67 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=--with-attr
69 [MYSQL].DESCRIPTION= MySQL support (mod_authn_mysql, mod_mysql_vhost)
70 [MYSQL].CONFIGURE_WITH_BOTH= mysql
71 [MYSQL].MAKEFILE_ON= REQUIRES+=mysql
72 [MYSQL].USES_ON= mysql
74 [GEOIP].DESCRIPTION= GeoIP location support
75 [GEOIP].BUILDRUN_DEPENDS_ON= GeoIP:single:standard
76 [GEOIP].CONFIGURE_WITH_BOTH= geoip
78 [LDAP].DESCRIPTION= LDAP authentication (mod_authn_ldap)
79 [LDAP].BUILDRUN_DEPENDS_ON= openldap:client:standard
80 [LDAP].CONFIGURE_WITH_BOTH= ldap
81 [LDAP].MAKEFILE_ON= REQUIRES+=slapd
84 ${REINPLACE_CMD} -e 's|-std=gnu99||' \
85 ${WRKSRC}/configure ${WRKSRC}/configure.ac
87 -e 's|^(server.document-root.*=).*|\1 "${PREFIX}/www" + "/data"|' \
88 -e "s|/etc/lighttpd|${PREFIX}/etc/lighttpd|g" \
89 -e 's|^(server.event-handler.*=).*|\1 "libev"|' \
90 -e 's|^(server.network-backend.*=).*|\1 "writev"|' \
91 -e "s|^(server.username.*=).*|\1 \"wwwraven\"|" \
92 -e "s|^(server.groupname.*=).*|\1 \"wwwraven\"|" \
93 -e "s|^(var.log_root.*=).*|\1 \"/var/log/lighttpd\"|" \
94 -e "s|^(var.server_root.*=).*|\1 \"${WWWDIR_LIGHTTPD}\"|" \
95 -e "s|^(var.home_dir.*=).*|\1 \"/var/run/lighttpd\"|" \
96 -e "s|^(var.cache_dir.*=).*|\1 \"/var/cache/lighttpd\"|" \
97 ${WRKSRC}/doc/config/lighttpd.conf
98 ${REINPLACE_CMD} -e "s|/etc/lighttpd|${PREFIX}/etc/lighttpd|g" \
99 ${WRKSRC}/doc/config/conf.d/auth.conf
100 ${REINPLACE_CMD} -e "s|/usr/bin/python|${LOCALBASE}/bin/python2.7|" \
101 ${WRKSRC}/doc/config/conf.d/cgi.conf \
102 ${WRKSRC}/tests/*.conf
103 ${ECHO} >> ${WRKSRC}/doc/config/lighttpd.conf
104 ${ECHO} "# IPv4 listening socket" >> \
105 ${WRKSRC}/doc/config/lighttpd.conf
106 ${ECHO} "\$$SERVER[\"socket\"] == \"0.0.0.0:80\" { }" >> \
107 ${WRKSRC}/doc/config/lighttpd.conf
110 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d
111 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/vhosts.d
112 ${MKDIR} ${STAGEDIR}${WWWDIR_LIGHTTPD}
113 ${MKDIR} -m 0700 ${STAGEDIR}/var/cache/lighttpd
114 ${MKDIR} -m 0700 ${STAGEDIR}/var/run/lighttpd/sockets
115 ${MKDIR} -m 0700 ${STAGEDIR}/var/log/lighttpd
116 .for FILE in lighttpd.conf modules.conf
117 ${INSTALL_DATA} ${WRKSRC}/doc/config/${FILE} \
118 ${STAGEDIR}${PREFIX}/etc/lighttpd/${FILE}.sample
120 .for FILE in access_log.conf auth.conf cgi.conf cml.conf compress.conf \
121 debug.conf dirlisting.conf evhost.conf expire.conf fastcgi.conf \
122 magnet.conf mime.conf mysql_vhost.conf proxy.conf rrdtool.conf \
123 scgi.conf secdownload.conf simple_vhost.conf ssi.conf status.conf \
124 trigger_b4_dl.conf userdir.conf webdav.conf
125 ${INSTALL_DATA} ${WRKSRC}/doc/config/conf.d/${FILE} \
126 ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d/${FILE}.sample
128 ${INSTALL_DATA} ${WRKSRC}/doc/config/vhosts.d/vhosts.template \
129 ${STAGEDIR}${PREFIX}/etc/lighttpd/vhosts.d/vhosts.template
130 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lighttpd/*.so
132 [FILE:406:descriptions/desc.single]
133 lighttpd a secure, fast, compliant and very flexible web-server which
134 has been optimized for high-performance environments. It has a very
135 low memory footprint compared to other webservers and takes care of
136 cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression,
137 URL-Rewriting and many more) make lighttpd the perfect webserver-software
138 for every server that is suffering load problems.
142 29378312d8887cbc14ffe8a7fadef2d5a08c7e7e1be942795142346ad95629eb 718480 lighttpd-1.4.50.tar.xz
145 [FILE:2274:manifests/plist.single]
146 @sample etc/lighttpd/conf.d/access_log.conf.sample
147 @sample etc/lighttpd/conf.d/auth.conf.sample
148 @sample etc/lighttpd/conf.d/cgi.conf.sample
149 @sample etc/lighttpd/conf.d/cml.conf.sample
150 @sample etc/lighttpd/conf.d/compress.conf.sample
151 @sample etc/lighttpd/conf.d/debug.conf.sample
152 @sample etc/lighttpd/conf.d/dirlisting.conf.sample
153 @sample etc/lighttpd/conf.d/evhost.conf.sample
154 @sample etc/lighttpd/conf.d/expire.conf.sample
155 @sample etc/lighttpd/conf.d/fastcgi.conf.sample
156 @sample etc/lighttpd/conf.d/magnet.conf.sample
157 @sample etc/lighttpd/conf.d/mime.conf.sample
158 @sample etc/lighttpd/conf.d/mysql_vhost.conf.sample
159 @sample etc/lighttpd/conf.d/proxy.conf.sample
160 @sample etc/lighttpd/conf.d/rrdtool.conf.sample
161 @sample etc/lighttpd/conf.d/scgi.conf.sample
162 @sample etc/lighttpd/conf.d/secdownload.conf.sample
163 @sample etc/lighttpd/conf.d/simple_vhost.conf.sample
164 @sample etc/lighttpd/conf.d/ssi.conf.sample
165 @sample etc/lighttpd/conf.d/status.conf.sample
166 @sample etc/lighttpd/conf.d/trigger_b4_dl.conf.sample
167 @sample etc/lighttpd/conf.d/userdir.conf.sample
168 @sample etc/lighttpd/conf.d/webdav.conf.sample
169 @sample etc/lighttpd/lighttpd.conf.sample
170 @sample etc/lighttpd/modules.conf.sample
171 %%GEOIP-ON%%lib/lighttpd/mod_geoip.so
172 %%LDAP-ON%%lib/lighttpd/
175 %%MYSQL-ON%%lib/lighttpd/
179 etc/lighttpd/vhosts.d/vhosts.template
212 mod_uploadprogress.so
225 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%CACHEDIR%%
226 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%HOMEDIR%%/sockets
227 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%LOGDIR%%
230 [FILE:3257:files/lighttpd.in]
234 # REQUIRE: %%REQUIRE%%
237 # Add the following lines to /etc/rc.conf to enable lighttpd:
239 # lighttpd_enable (bool): Set it to "YES" to enable lighttpd
241 # lighttpd_conf (path): Set full path to configuration file.
242 # Default is "%%ETCDIR%%/lighttpd.conf".
243 # lighttpd_pidfile (path): Set full path to pid file.
244 # Default is "/var/run/lighttpd.pid".
246 # Add the following lines to /etc/rc.conf for multiple instances:
247 # (overrides lighttpd_conf and lighttpd_pidfile from above)
249 # lighttpd_instances (string): Instances of lighttpd
250 # Default is "" (no instances).
251 # lighttpd_${i}_conf (path): Set full path to instance configuration file.
252 # Default is "%%ETCDIR%%/${i}.conf".
253 # lighttpd_${i}_pidfile (path): Set full path to instance pid file
254 # Default is "/var/run/lighttpd_${i}.pid".
260 rcvar=lighttpd_enable
264 : ${lighttpd_enable="NO"}
265 : ${lighttpd_pidfile="/var/run/${name}.pid"}
267 # Compatibility for old configuration file location
269 if [ -z "${lighttpd_conf}" ]; then
270 if [ -f "%%PREFIX%%/etc/lighttpd.conf" ]; then
272 lighttpd_conf="%%PREFIX%%/etc/lighttpd.conf"
274 lighttpd_conf="%%ETCDIR%%/lighttpd.conf"
278 command=%%PREFIX%%/sbin/lighttpd
279 stop_postcmd=stop_postcmd
280 restart_precmd="lighttpd_checkconfig"
281 graceful_precmd="lighttpd_checkconfig"
282 graceful_cmd="lighttpd_graceful"
283 gracefulstop_cmd="lighttpd_gracefulstop"
284 configtest_cmd="lighttpd_checkconfig"
285 extra_commands="reload graceful gracefulstop configtest"
286 command_args="-f ${lighttpd_conf}"
287 pidfile=${lighttpd_pidfile}
288 required_files=${lighttpd_conf}
290 lighttpd_check_deprecated()
292 if [ -n "${deprecated_conf}" ]; then
294 echo "*** NOTICE: ***"
295 echo "The default location of %%PREFIX%%/etc/lighttpd.conf is deprecated"
296 echo "Please consider moving to %%ETCDIR%%/lighttpd.conf"
301 lighttpd_checkconfig()
303 echo "Performing sanity check on ${name} configuration:"
304 eval "${command} ${command_args} -tt"
307 lighttpd_gracefulstop()
309 echo "Stopping ${name} gracefully."
311 run_rc_command reload
316 lighttpd_gracefulstop
321 lighttpd_run_instance()
325 name=${_orig_name}_${_i}
326 eval ${name}_enable=${lighttpd_enable}
327 eval lighttpd_conf=\"\${lighttpd_${_i}_conf:-"%%ETCDIR%%/${_i}.conf"}\"
328 eval lighttpd_pidfile=\"\${lighttpd_${_i}_pidfile:-"/var/run/lighttpd_${_i}.pid"}\"
329 command_args="-f ${lighttpd_conf}"
330 pidfile=${lighttpd_pidfile}
331 required_files=${lighttpd_conf}
332 run_rc_command ${_rcmd}
340 if [ -n "${lighttpd_instances}" ]; then
343 if [ $# -gt 0 ]; then
349 if [ -n "${_run_instances}" ]; then
350 for _a in $_run_instances; do
351 for _in in ${lighttpd_instances}; do
352 if [ "$_a" = "$_in" ]; then
353 _runlist="${_runlist} ${_a}"
358 _runlist="${lighttpd_instances}"
360 for _in in ${_runlist}; do
361 lighttpd_run_instance $_in $_run_cmd
364 start_precmd="lighttpd_check_deprecated"
369 [FILE:41:files/special.mk]
370 WWWDIR_LIGHTTPD?= ${PREFIX}/www/lighttpd