Ravenports generated: 04 Dec 2021 21:26
[ravenports.git] / bucket_22 / lighttpd
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               lighttpd
4 VERSION=                1.4.63
5 KEYWORDS=               www
6 VARIANTS=               standard
7 SDESC[standard]=        Lightweight high-performance web server
8 HOMEPAGE=               https://www.lighttpd.net/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://download.lighttpd.net/lighttpd/releases-1.4.x/
13 DISTFILE[1]=            lighttpd-1.4.63.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      LDAP MYSQL GEOIP
18 OPTIONS_STANDARD=       LDAP MYSQL GEOIP
19
20 BUILDRUN_DEPENDS=       libev:single:standard
21
22 USERS=                  wwwraven
23 GROUPS=                 wwwraven
24 USERGROUP_SPKG=         single
25
26 USES=                   autoreconf cpe gmake libtool pkgconfig ssl lua zlib
27                         bz2 pcre
28
29 LICENSE=                BSD3CLAUSE:single
30 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/COPYING
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         www/lighttpd
34
35 MUST_CONFIGURE=         gnu
36 CONFIGURE_ARGS=         --libdir={{PREFIX}}/lib/lighttpd
37                         --with-libev={{LOCALBASE}}
38                         --with-openssl
39                         --with-openssl-includes={{OPENSSLINC}}
40                         --with-openssl-libs={{OPENSSLLIB}}
41                         --with-lua
42                         --with-bzip2
43                         --without-gdbm
44                         --without-krb5
45                         --without-memcached
46                         --without-valgrind
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}}"
51
52 PLIST_SUB=              WWWOWN="wwwraven"
53                         WWWGRP="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}}"
60
61 CFLAGS=                 -std=gnu99
62 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS=--with-attr
63 VAR_OPSYS[linux]=       CONFIGURE_ARGS=--with-attr
64 VAR_OPSYS[dragonfly]=   CONFIGURE_ARGS=--with-attr
65
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
70
71 [GEOIP].DESCRIPTION=                    GeoIP location support
72 [GEOIP].BUILDRUN_DEPENDS_ON=            GeoIP:single:standard
73 [GEOIP].CONFIGURE_WITH_BOTH=            geoip
74
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
79
80 post-patch:
81         ${REINPLACE_CMD} -E \
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
103
104 post-install:
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
114 .endfor
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
122 .endfor
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
126
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.
134
135
136 [FILE:101:distinfo]
137 2aef7f0102ebf54a1241a1c3ea8976892f8684bfb21697c9fffb8de0e2d6eab9      1023568 lighttpd-1.4.63.tar.xz
138
139
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/
167  mod_authn_ldap.so
168  mod_vhostdb_ldap.so
169 %%MYSQL-ON%%lib/lighttpd/
170  mod_authn_mysql.so
171  mod_mysql_vhost.so
172  mod_vhostdb_mysql.so
173 etc/lighttpd/vhosts.d/vhosts.template
174 lib/lighttpd/
175  mod_access.so
176  mod_accesslog.so
177  mod_ajp13.so
178  mod_alias.so
179  mod_auth.so
180  mod_authn_file.so
181  mod_cgi.so
182  mod_cml.so
183  mod_deflate.so
184  mod_dirlisting.so
185  mod_evasive.so
186  mod_evhost.so
187  mod_expire.so
188  mod_extforward.so
189  mod_fastcgi.so
190  mod_flv_streaming.so
191  mod_indexfile.so
192  mod_magnet.so
193  mod_openssl.so
194  mod_proxy.so
195  mod_redirect.so
196  mod_rewrite.so
197  mod_rrdtool.so
198  mod_scgi.so
199  mod_secdownload.so
200  mod_setenv.so
201  mod_simple_vhost.so
202  mod_sockproxy.so
203  mod_ssi.so
204  mod_staticfile.so
205  mod_status.so
206  mod_uploadprogress.so
207  mod_userdir.so
208  mod_usertrack.so
209  mod_vhostdb.so
210  mod_webdav.so
211  mod_wstunnel.so
212 sbin/
213  lighttpd
214  lighttpd-angel
215 share/man/man8/
216  lighttpd-angel.8.gz
217  lighttpd.8.gz
218 @dir %%WWWDIR%%
219 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%CACHEDIR%%
220 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%HOMEDIR%%/sockets
221 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%LOGDIR%%
222
223
224 [FILE:371:patches/patch-src_ck.h]
225 --- src/ck.h.orig       2021-12-04 14:40:24 UTC
226 +++ src/ck.h
227 @@ -18,11 +18,12 @@
228  #endif
229  #endif
230  #include "first.h"
231 -#ifdef __FreeBSD__
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;
236  #endif
237 +#include <stdlib.h>
238  #include <errno.h>
239  #endif
240  
241
242
243 [FILE:3257:files/lighttpd.in]
244 #!/bin/sh
245 #
246 # PROVIDE: lighttpd
247 # REQUIRE: %%REQUIRE%%
248 # KEYWORD: shutdown
249 #
250 # Add the following lines to /etc/rc.conf to enable lighttpd:
251 #
252 # lighttpd_enable (bool):       Set it to "YES" to enable lighttpd
253 #                               Default is "NO".
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".
258 #
259 # Add the following lines to /etc/rc.conf for multiple instances:
260 # (overrides lighttpd_conf and lighttpd_pidfile from above)
261 #
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".
268 #
269
270 . /etc/rc.subr
271
272 name="lighttpd"
273 rcvar=lighttpd_enable
274
275 load_rc_config $name
276
277 : ${lighttpd_enable="NO"}
278 : ${lighttpd_pidfile="/var/run/${name}.pid"}
279
280 # Compatibility for old configuration file location
281 deprecated_conf=
282 if [ -z "${lighttpd_conf}" ]; then
283         if [ -f "%%PREFIX%%/etc/lighttpd.conf" ]; then
284                 deprecated_conf=1
285                 lighttpd_conf="%%PREFIX%%/etc/lighttpd.conf"
286         else
287                 lighttpd_conf="%%ETCDIR%%/lighttpd.conf"
288         fi
289 fi
290
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}
302
303 lighttpd_check_deprecated()
304 {
305         if [ -n "${deprecated_conf}" ]; then
306                 echo ""
307                 echo "*** NOTICE: ***"
308                 echo "The default location of %%PREFIX%%/etc/lighttpd.conf is deprecated"
309                 echo "Please consider moving to %%ETCDIR%%/lighttpd.conf"
310                 echo ""
311         fi
312 }
313
314 lighttpd_checkconfig()
315 {
316         echo "Performing sanity check on ${name} configuration:"
317         eval "${command} ${command_args} -tt"
318 }
319
320 lighttpd_gracefulstop()
321 {
322         echo "Stopping ${name} gracefully."
323         sig_reload="INT"
324         run_rc_command reload
325 }
326
327 lighttpd_graceful()
328 {
329         lighttpd_gracefulstop
330         rm -f ${pidfile}
331         run_rc_command start
332 }
333
334 lighttpd_run_instance()
335 {
336         _i="$1"
337         _rcmd="$2"
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}
346 }
347
348 stop_postcmd()
349 {
350         rm -f ${pidfile}
351 }
352
353 if [ -n "${lighttpd_instances}" ]; then
354         _orig_name="${name}"
355         _run_cmd="$1"
356         if [ $# -gt 0 ]; then
357                 shift
358         fi
359         if [ -n "$*" ]; then
360                 _run_instances="$*"
361         fi
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}"
367                                 fi
368                         done
369                 done
370         else
371                 _runlist="${lighttpd_instances}"
372         fi
373         for _in in ${_runlist}; do
374                 lighttpd_run_instance $_in $_run_cmd
375         done
376 else
377         start_precmd="lighttpd_check_deprecated"
378         run_rc_command "$1"
379 fi
380
381
382 [FILE:41:files/special.mk]
383 WWWDIR_LIGHTTPD?=       ${PREFIX}/www/lighttpd
384