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.63.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= LDAP MYSQL GEOIP
18 OPTIONS_STANDARD= LDAP MYSQL GEOIP
20 BUILDRUN_DEPENDS= libev:single:standard
24 USERGROUP_SPKG= single
26 USES= autoreconf cpe gmake libtool pkgconfig ssl lua zlib
29 LICENSE= BSD3CLAUSE:single
30 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/COPYING
33 FPC_EQUIVALENT= www/lighttpd
36 CONFIGURE_ARGS= --libdir={{PREFIX}}/lib/lighttpd
37 --with-libev={{LOCALBASE}}
39 --with-openssl-includes={{OPENSSLINC}}
40 --with-openssl-libs={{OPENSSLLIB}}
47 --without-webdav-props
48 --without-webdav-locks
49 CONFIGURE_ENV= LUA_CFLAGS="-I{{LUA_INCDIR}}"
50 LUA_LIBS="-L{{LUA_LIBDIR}} -llua-{{LUA_VER}}"
52 PLIST_SUB= WWWOWN="wwwraven"
54 WWWDIR="{{WWWDIR_LIGHTTPD}}"
55 CACHEDIR="/var/cache/lighttpd"
56 HOMEDIR="/var/run/lighttpd"
57 LOGDIR="/var/log/lighttpd"
58 RC_SUBR= lighttpd:single
59 SUB_LIST= REQUIRE="DAEMON {{REQUIRES}}"
62 VAR_OPSYS[freebsd]= CONFIGURE_ARGS=--with-attr
63 VAR_OPSYS[linux]= CONFIGURE_ARGS=--with-attr
64 VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=--with-attr
66 [MYSQL].DESCRIPTION= MySQL support (mod_authn_mysql, mod_mysql_vhost)
67 [MYSQL].CONFIGURE_WITH_BOTH= mysql
68 [MYSQL].MAKEFILE_ON= REQUIRES+=mysql
69 [MYSQL].USES_ON= mysql
71 [GEOIP].DESCRIPTION= GeoIP location support
72 [GEOIP].BUILDRUN_DEPENDS_ON= GeoIP:single:standard
73 [GEOIP].CONFIGURE_WITH_BOTH= geoip
75 [LDAP].DESCRIPTION= LDAP authentication (mod_authn_ldap)
76 [LDAP].BUILDRUN_DEPENDS_ON= openldap:client:standard
77 [LDAP].CONFIGURE_WITH_BOTH= ldap
78 [LDAP].MAKEFILE_ON= REQUIRES+=slapd
82 -e 's|^(server.document-root.*=).*|\1 "${PREFIX}/www" + "/data"|' \
83 -e "s|/etc/lighttpd|${PREFIX}/etc/lighttpd|g" \
84 -e 's|^(server.event-handler.*=).*|\1 "libev"|' \
85 -e 's|^(server.network-backend.*=).*|\1 "writev"|' \
86 -e "s|^(server.username.*=).*|\1 \"wwwraven\"|" \
87 -e "s|^(server.groupname.*=).*|\1 \"wwwraven\"|" \
88 -e "s|^(var.log_root.*=).*|\1 \"/var/log/lighttpd\"|" \
89 -e "s|^(var.server_root.*=).*|\1 \"${WWWDIR_LIGHTTPD}\"|" \
90 -e "s|^(var.home_dir.*=).*|\1 \"/var/run/lighttpd\"|" \
91 -e "s|^(var.cache_dir.*=).*|\1 \"/var/cache/lighttpd\"|" \
92 ${WRKSRC}/doc/config/lighttpd.conf
93 ${REINPLACE_CMD} -e "s|/etc/lighttpd|${PREFIX}/etc/lighttpd|g" \
94 ${WRKSRC}/doc/config/conf.d/auth.conf
95 ${REINPLACE_CMD} -e "s|/usr/bin/python|${LOCALBASE}/bin/python2.7|" \
96 ${WRKSRC}/doc/config/conf.d/cgi.conf \
97 ${WRKSRC}/tests/*.conf
98 ${ECHO} >> ${WRKSRC}/doc/config/lighttpd.conf
99 ${ECHO} "# IPv4 listening socket" >> \
100 ${WRKSRC}/doc/config/lighttpd.conf
101 ${ECHO} "\$$SERVER[\"socket\"] == \"0.0.0.0:80\" { }" >> \
102 ${WRKSRC}/doc/config/lighttpd.conf
105 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d
106 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/vhosts.d
107 ${MKDIR} ${STAGEDIR}${WWWDIR_LIGHTTPD}
108 ${MKDIR} -m 0700 ${STAGEDIR}/var/cache/lighttpd
109 ${MKDIR} -m 0700 ${STAGEDIR}/var/run/lighttpd/sockets
110 ${MKDIR} -m 0700 ${STAGEDIR}/var/log/lighttpd
111 .for FILE in lighttpd.conf modules.conf
112 ${INSTALL_DATA} ${WRKSRC}/doc/config/${FILE} \
113 ${STAGEDIR}${PREFIX}/etc/lighttpd/${FILE}.sample
115 .for FILE in access_log.conf auth.conf cgi.conf cml.conf \
116 debug.conf dirlisting.conf evhost.conf expire.conf fastcgi.conf \
117 magnet.conf mime.conf mysql_vhost.conf proxy.conf rrdtool.conf \
118 scgi.conf secdownload.conf simple_vhost.conf ssi.conf status.conf \
119 trigger_b4_dl.conf userdir.conf webdav.conf
120 ${INSTALL_DATA} ${WRKSRC}/doc/config/conf.d/${FILE} \
121 ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d/${FILE}.sample
123 ${INSTALL_DATA} ${WRKSRC}/doc/config/vhosts.d/vhosts.template \
124 ${STAGEDIR}${PREFIX}/etc/lighttpd/vhosts.d/vhosts.template
125 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lighttpd/*.so
127 [FILE:406:descriptions/desc.single]
128 lighttpd a secure, fast, compliant and very flexible web-server which
129 has been optimized for high-performance environments. It has a very
130 low memory footprint compared to other webservers and takes care of
131 cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression,
132 URL-Rewriting and many more) make lighttpd the perfect webserver-software
133 for every server that is suffering load problems.
137 2aef7f0102ebf54a1241a1c3ea8976892f8684bfb21697c9fffb8de0e2d6eab9 1023568 lighttpd-1.4.63.tar.xz
140 [FILE:2222:manifests/plist.single]
141 @sample etc/lighttpd/conf.d/access_log.conf.sample
142 @sample etc/lighttpd/conf.d/auth.conf.sample
143 @sample etc/lighttpd/conf.d/cgi.conf.sample
144 @sample etc/lighttpd/conf.d/cml.conf.sample
145 @sample etc/lighttpd/conf.d/debug.conf.sample
146 @sample etc/lighttpd/conf.d/dirlisting.conf.sample
147 @sample etc/lighttpd/conf.d/evhost.conf.sample
148 @sample etc/lighttpd/conf.d/expire.conf.sample
149 @sample etc/lighttpd/conf.d/fastcgi.conf.sample
150 @sample etc/lighttpd/conf.d/magnet.conf.sample
151 @sample etc/lighttpd/conf.d/mime.conf.sample
152 @sample etc/lighttpd/conf.d/mysql_vhost.conf.sample
153 @sample etc/lighttpd/conf.d/proxy.conf.sample
154 @sample etc/lighttpd/conf.d/rrdtool.conf.sample
155 @sample etc/lighttpd/conf.d/scgi.conf.sample
156 @sample etc/lighttpd/conf.d/secdownload.conf.sample
157 @sample etc/lighttpd/conf.d/simple_vhost.conf.sample
158 @sample etc/lighttpd/conf.d/ssi.conf.sample
159 @sample etc/lighttpd/conf.d/status.conf.sample
160 @sample etc/lighttpd/conf.d/trigger_b4_dl.conf.sample
161 @sample etc/lighttpd/conf.d/userdir.conf.sample
162 @sample etc/lighttpd/conf.d/webdav.conf.sample
163 @sample etc/lighttpd/lighttpd.conf.sample
164 @sample etc/lighttpd/modules.conf.sample
165 %%GEOIP-ON%%lib/lighttpd/mod_geoip.so
166 %%LDAP-ON%%lib/lighttpd/
169 %%MYSQL-ON%%lib/lighttpd/
173 etc/lighttpd/vhosts.d/vhosts.template
206 mod_uploadprogress.so
219 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%CACHEDIR%%
220 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%HOMEDIR%%/sockets
221 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%LOGDIR%%
224 [FILE:371:patches/patch-src_ck.h]
225 --- src/ck.h.orig 2021-12-04 14:40:24 UTC
232 +#if defined __FreeBSD__ || defined __DragonFly__
233 #ifndef _RSIZE_T_DEFINED /* expecting __EXT1_VISIBLE 1 and _RSIZE_T_DEFINED */
234 #define _RSIZE_T_DEFINED
235 typedef size_t rsize_t;
243 [FILE:3257:files/lighttpd.in]
247 # REQUIRE: %%REQUIRE%%
250 # Add the following lines to /etc/rc.conf to enable lighttpd:
252 # lighttpd_enable (bool): Set it to "YES" to enable lighttpd
254 # lighttpd_conf (path): Set full path to configuration file.
255 # Default is "%%ETCDIR%%/lighttpd.conf".
256 # lighttpd_pidfile (path): Set full path to pid file.
257 # Default is "/var/run/lighttpd.pid".
259 # Add the following lines to /etc/rc.conf for multiple instances:
260 # (overrides lighttpd_conf and lighttpd_pidfile from above)
262 # lighttpd_instances (string): Instances of lighttpd
263 # Default is "" (no instances).
264 # lighttpd_${i}_conf (path): Set full path to instance configuration file.
265 # Default is "%%ETCDIR%%/${i}.conf".
266 # lighttpd_${i}_pidfile (path): Set full path to instance pid file
267 # Default is "/var/run/lighttpd_${i}.pid".
273 rcvar=lighttpd_enable
277 : ${lighttpd_enable="NO"}
278 : ${lighttpd_pidfile="/var/run/${name}.pid"}
280 # Compatibility for old configuration file location
282 if [ -z "${lighttpd_conf}" ]; then
283 if [ -f "%%PREFIX%%/etc/lighttpd.conf" ]; then
285 lighttpd_conf="%%PREFIX%%/etc/lighttpd.conf"
287 lighttpd_conf="%%ETCDIR%%/lighttpd.conf"
291 command=%%PREFIX%%/sbin/lighttpd
292 stop_postcmd=stop_postcmd
293 restart_precmd="lighttpd_checkconfig"
294 graceful_precmd="lighttpd_checkconfig"
295 graceful_cmd="lighttpd_graceful"
296 gracefulstop_cmd="lighttpd_gracefulstop"
297 configtest_cmd="lighttpd_checkconfig"
298 extra_commands="reload graceful gracefulstop configtest"
299 command_args="-f ${lighttpd_conf}"
300 pidfile=${lighttpd_pidfile}
301 required_files=${lighttpd_conf}
303 lighttpd_check_deprecated()
305 if [ -n "${deprecated_conf}" ]; then
307 echo "*** NOTICE: ***"
308 echo "The default location of %%PREFIX%%/etc/lighttpd.conf is deprecated"
309 echo "Please consider moving to %%ETCDIR%%/lighttpd.conf"
314 lighttpd_checkconfig()
316 echo "Performing sanity check on ${name} configuration:"
317 eval "${command} ${command_args} -tt"
320 lighttpd_gracefulstop()
322 echo "Stopping ${name} gracefully."
324 run_rc_command reload
329 lighttpd_gracefulstop
334 lighttpd_run_instance()
338 name=${_orig_name}_${_i}
339 eval ${name}_enable=${lighttpd_enable}
340 eval lighttpd_conf=\"\${lighttpd_${_i}_conf:-"%%ETCDIR%%/${_i}.conf"}\"
341 eval lighttpd_pidfile=\"\${lighttpd_${_i}_pidfile:-"/var/run/lighttpd_${_i}.pid"}\"
342 command_args="-f ${lighttpd_conf}"
343 pidfile=${lighttpd_pidfile}
344 required_files=${lighttpd_conf}
345 run_rc_command ${_rcmd}
353 if [ -n "${lighttpd_instances}" ]; then
356 if [ $# -gt 0 ]; then
362 if [ -n "${_run_instances}" ]; then
363 for _a in $_run_instances; do
364 for _in in ${lighttpd_instances}; do
365 if [ "$_a" = "$_in" ]; then
366 _runlist="${_runlist} ${_a}"
371 _runlist="${lighttpd_instances}"
373 for _in in ${_runlist}; do
374 lighttpd_run_instance $_in $_run_cmd
377 start_precmd="lighttpd_check_deprecated"
382 [FILE:41:files/special.mk]
383 WWWDIR_LIGHTTPD?= ${PREFIX}/www/lighttpd