Ravenports generated: 18 Jan 2023 01:21
[ravenports.git] / bucket_22 / lighttpd
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               lighttpd
4 VERSION=                1.4.68
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.68.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                         pcre2:primary:standard
22
23 USERS=                  wwwraven
24 GROUPS=                 wwwraven
25 USERGROUP_SPKG=         single
26
27 USES=                   autoreconf cpe gmake libtool pkgconfig ssl lua zlib
28                         bz2
29
30 LICENSE=                BSD3CLAUSE:single
31 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/COPYING
32 LICENSE_SCHEME=         solo
33
34 FPC_EQUIVALENT=         www/lighttpd
35
36 MUST_CONFIGURE=         gnu
37 CONFIGURE_ARGS=         --libdir={{PREFIX}}/lib/lighttpd
38                         --with-libev={{LOCALBASE}}
39                         --with-openssl
40                         --with-openssl-includes={{OPENSSLINC}}
41                         --with-openssl-libs={{OPENSSLLIB}}
42                         --with-lua
43                         --with-bzip2
44                         --without-krb5
45                         --without-valgrind
46                         --without-webdav-props
47                         --without-webdav-locks
48 CONFIGURE_ENV=          LUA_CFLAGS="-I{{LUA_INCDIR}}"
49                         LUA_LIBS="-L{{LUA_LIBDIR}} -llua-{{LUA_VER}}"
50
51 PLIST_SUB=              WWWOWN="wwwraven"
52                         WWWGRP="wwwraven"
53                         WWWDIR="{{WWWDIR_LIGHTTPD}}"
54                         CACHEDIR="/var/cache/lighttpd"
55                         HOMEDIR="/var/run/lighttpd"
56                         LOGDIR="/var/log/lighttpd"
57 RC_SUBR=                lighttpd:single
58 SUB_LIST=               REQUIRE="DAEMON {{REQUIRES}}"
59
60 CFLAGS=                 -std=gnu99
61 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS=--with-attr
62 VAR_OPSYS[linux]=       CONFIGURE_ARGS=--with-attr
63 VAR_OPSYS[dragonfly]=   CONFIGURE_ARGS=--with-attr
64
65 [MYSQL].DESCRIPTION=                    MySQL support (mod_vhostdb_mysql)
66 [MYSQL].CONFIGURE_WITH_BOTH=            mysql
67 [MYSQL].MAKEFILE_ON=                    REQUIRES+=mysql
68 [MYSQL].USES_ON=                        mysql
69
70 [GEOIP].DESCRIPTION=                    GeoIP location support (mod_maxminddb)
71 [GEOIP].BUILDRUN_DEPENDS_ON=            libmaxminddb:single:standard
72 [GEOIP].CONFIGURE_WITH_BOTH=            maxminddb
73
74 [LDAP].DESCRIPTION=                     LDAP authentication (mod_authn_ldap)
75 [LDAP].BUILDRUN_DEPENDS_ON=             openldap:client:standard
76 [LDAP].CONFIGURE_WITH_BOTH=             ldap
77 [LDAP].MAKEFILE_ON=                     REQUIRES+=slapd
78
79 post-patch:
80         ${REINPLACE_CMD} -E \
81                 -e 's|^(server.document-root.*=).*|\1 "${PREFIX}/www" + "/data"|' \
82                 -e "s|/etc/lighttpd|${PREFIX}/etc/lighttpd|g" \
83                 -e 's|^(server.event-handler.*=).*|\1 "libev"|' \
84                 -e 's|^(server.network-backend.*=).*|\1 "writev"|' \
85                 -e "s|^(server.username.*=).*|\1 \"wwwraven\"|" \
86                 -e "s|^(server.groupname.*=).*|\1 \"wwwraven\"|" \
87                 -e "s|^(var.log_root.*=).*|\1 \"/var/log/lighttpd\"|" \
88                 -e "s|^(var.server_root.*=).*|\1 \"${WWWDIR_LIGHTTPD}\"|" \
89                 -e "s|^(var.home_dir.*=).*|\1 \"/var/run/lighttpd\"|" \
90                 -e "s|^(var.cache_dir.*=).*|\1 \"/var/cache/lighttpd\"|" \
91                 ${WRKSRC}/doc/config/lighttpd.conf
92         ${REINPLACE_CMD} -e "s|/etc/lighttpd|${PREFIX}/etc/lighttpd|g" \
93                 ${WRKSRC}/doc/config/conf.d/auth.conf
94         ${REINPLACE_CMD} -e "s|/usr/bin/python|${LOCALBASE}/bin/python2.7|" \
95                 ${WRKSRC}/doc/config/conf.d/cgi.conf \
96                 ${WRKSRC}/tests/*.conf
97         ${ECHO} >> ${WRKSRC}/doc/config/lighttpd.conf
98         ${ECHO} "# IPv4 listening socket" >> \
99                 ${WRKSRC}/doc/config/lighttpd.conf
100         ${ECHO} "\$$SERVER[\"socket\"] == \"0.0.0.0:80\" { }" >> \
101                 ${WRKSRC}/doc/config/lighttpd.conf
102
103 post-install:
104         ${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d
105         ${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/vhosts.d
106         ${MKDIR} ${STAGEDIR}${WWWDIR_LIGHTTPD}
107         ${MKDIR} -m 0700 ${STAGEDIR}/var/cache/lighttpd
108         ${MKDIR} -m 0700 ${STAGEDIR}/var/run/lighttpd/sockets
109         ${MKDIR} -m 0700 ${STAGEDIR}/var/log/lighttpd
110 .for FILE in lighttpd.conf modules.conf
111         ${INSTALL_DATA} ${WRKSRC}/doc/config/${FILE} \
112                 ${STAGEDIR}${PREFIX}/etc/lighttpd/${FILE}.sample
113 .endfor
114 .for FILE in access_log.conf auth.conf cgi.conf \
115         debug.conf dirlisting.conf evhost.conf expire.conf fastcgi.conf \
116         magnet.conf mime.conf proxy.conf rrdtool.conf \
117         scgi.conf secdownload.conf simple_vhost.conf ssi.conf status.conf \
118         userdir.conf webdav.conf
119         ${INSTALL_DATA} ${WRKSRC}/doc/config/conf.d/${FILE} \
120                 ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d/${FILE}.sample
121 .endfor
122         ${INSTALL_DATA} ${WRKSRC}/doc/config/vhosts.d/vhosts.template \
123                 ${STAGEDIR}${PREFIX}/etc/lighttpd/vhosts.d/vhosts.template
124         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lighttpd/*.so
125
126 [FILE:406:descriptions/desc.single]
127 lighttpd a secure, fast, compliant and very flexible web-server which
128 has been optimized for high-performance environments. It has a very
129 low memory footprint compared to other webservers and takes care of
130 cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression,
131 URL-Rewriting and many more) make lighttpd the perfect webserver-software
132 for every server that is suffering load problems.
133
134
135 [FILE:101:distinfo]
136 e56f37ae52b63e1ada4d76ce78005affb6e56eea2f6bdb0ce17d6d36e9583384      1030612 lighttpd-1.4.68.tar.xz
137
138
139 [FILE:1923:manifests/plist.single]
140 @sample etc/lighttpd/conf.d/access_log.conf.sample
141 @sample etc/lighttpd/conf.d/auth.conf.sample
142 @sample etc/lighttpd/conf.d/cgi.conf.sample
143 @sample etc/lighttpd/conf.d/debug.conf.sample
144 @sample etc/lighttpd/conf.d/dirlisting.conf.sample
145 @sample etc/lighttpd/conf.d/evhost.conf.sample
146 @sample etc/lighttpd/conf.d/expire.conf.sample
147 @sample etc/lighttpd/conf.d/fastcgi.conf.sample
148 @sample etc/lighttpd/conf.d/magnet.conf.sample
149 @sample etc/lighttpd/conf.d/mime.conf.sample
150 @sample etc/lighttpd/conf.d/proxy.conf.sample
151 @sample etc/lighttpd/conf.d/rrdtool.conf.sample
152 @sample etc/lighttpd/conf.d/scgi.conf.sample
153 @sample etc/lighttpd/conf.d/secdownload.conf.sample
154 @sample etc/lighttpd/conf.d/simple_vhost.conf.sample
155 @sample etc/lighttpd/conf.d/ssi.conf.sample
156 @sample etc/lighttpd/conf.d/status.conf.sample
157 @sample etc/lighttpd/conf.d/userdir.conf.sample
158 @sample etc/lighttpd/conf.d/webdav.conf.sample
159 @sample etc/lighttpd/lighttpd.conf.sample
160 @sample etc/lighttpd/modules.conf.sample
161 %%GEOIP-ON%%lib/lighttpd/mod_maxminddb.so
162 %%LDAP-ON%%lib/lighttpd/
163  mod_authn_ldap.so
164  mod_vhostdb_ldap.so
165 %%MYSQL-ON%%lib/lighttpd/mod_vhostdb_mysql.so
166 etc/lighttpd/vhosts.d/vhosts.template
167 lib/lighttpd/
168  mod_access.so
169  mod_accesslog.so
170  mod_ajp13.so
171  mod_alias.so
172  mod_auth.so
173  mod_authn_file.so
174  mod_cgi.so
175  mod_deflate.so
176  mod_dirlisting.so
177  mod_evhost.so
178  mod_expire.so
179  mod_extforward.so
180  mod_fastcgi.so
181  mod_indexfile.so
182  mod_magnet.so
183  mod_openssl.so
184  mod_proxy.so
185  mod_redirect.so
186  mod_rewrite.so
187  mod_rrdtool.so
188  mod_scgi.so
189  mod_setenv.so
190  mod_simple_vhost.so
191  mod_sockproxy.so
192  mod_ssi.so
193  mod_staticfile.so
194  mod_status.so
195  mod_userdir.so
196  mod_vhostdb.so
197  mod_webdav.so
198  mod_wstunnel.so
199 sbin/
200  lighttpd
201  lighttpd-angel
202 share/man/man8/
203  lighttpd-angel.8.gz
204  lighttpd.8.gz
205 @dir %%WWWDIR%%
206 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%CACHEDIR%%
207 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%HOMEDIR%%/sockets
208 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%LOGDIR%%
209
210
211 [FILE:415:patches/patch-src_ck.h]
212 --- src/ck.h.orig       2022-08-07 19:03:57 UTC
213 +++ src/ck.h
214 @@ -18,11 +18,12 @@
215  #endif
216  #endif
217  #include "first.h"
218 -#if defined(__FreeBSD__) || defined(__sun)
219 +#if defined(__FreeBSD__) || defined(__sun) || defined(__DragonFly__)
220  #ifndef _RSIZE_T_DEFINED /* expecting __EXT1_VISIBLE 1 and _RSIZE_T_DEFINED */
221  #define _RSIZE_T_DEFINED
222  typedef size_t rsize_t;
223  #endif
224 +#include <stdlib.h>
225  #include <errno.h>
226  #endif
227  
228
229
230 [FILE:3257:files/lighttpd.in]
231 #!/bin/sh
232 #
233 # PROVIDE: lighttpd
234 # REQUIRE: %%REQUIRE%%
235 # KEYWORD: shutdown
236 #
237 # Add the following lines to /etc/rc.conf to enable lighttpd:
238 #
239 # lighttpd_enable (bool):       Set it to "YES" to enable lighttpd
240 #                               Default is "NO".
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".
245 #
246 # Add the following lines to /etc/rc.conf for multiple instances:
247 # (overrides lighttpd_conf and lighttpd_pidfile from above)
248 #
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".
255 #
256
257 . /etc/rc.subr
258
259 name="lighttpd"
260 rcvar=lighttpd_enable
261
262 load_rc_config $name
263
264 : ${lighttpd_enable="NO"}
265 : ${lighttpd_pidfile="/var/run/${name}.pid"}
266
267 # Compatibility for old configuration file location
268 deprecated_conf=
269 if [ -z "${lighttpd_conf}" ]; then
270         if [ -f "%%PREFIX%%/etc/lighttpd.conf" ]; then
271                 deprecated_conf=1
272                 lighttpd_conf="%%PREFIX%%/etc/lighttpd.conf"
273         else
274                 lighttpd_conf="%%ETCDIR%%/lighttpd.conf"
275         fi
276 fi
277
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}
289
290 lighttpd_check_deprecated()
291 {
292         if [ -n "${deprecated_conf}" ]; then
293                 echo ""
294                 echo "*** NOTICE: ***"
295                 echo "The default location of %%PREFIX%%/etc/lighttpd.conf is deprecated"
296                 echo "Please consider moving to %%ETCDIR%%/lighttpd.conf"
297                 echo ""
298         fi
299 }
300
301 lighttpd_checkconfig()
302 {
303         echo "Performing sanity check on ${name} configuration:"
304         eval "${command} ${command_args} -tt"
305 }
306
307 lighttpd_gracefulstop()
308 {
309         echo "Stopping ${name} gracefully."
310         sig_reload="INT"
311         run_rc_command reload
312 }
313
314 lighttpd_graceful()
315 {
316         lighttpd_gracefulstop
317         rm -f ${pidfile}
318         run_rc_command start
319 }
320
321 lighttpd_run_instance()
322 {
323         _i="$1"
324         _rcmd="$2"
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}
333 }
334
335 stop_postcmd()
336 {
337         rm -f ${pidfile}
338 }
339
340 if [ -n "${lighttpd_instances}" ]; then
341         _orig_name="${name}"
342         _run_cmd="$1"
343         if [ $# -gt 0 ]; then
344                 shift
345         fi
346         if [ -n "$*" ]; then
347                 _run_instances="$*"
348         fi
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}"
354                                 fi
355                         done
356                 done
357         else
358                 _runlist="${lighttpd_instances}"
359         fi
360         for _in in ${_runlist}; do
361                 lighttpd_run_instance $_in $_run_cmd
362         done
363 else
364         start_precmd="lighttpd_check_deprecated"
365         run_rc_command "$1"
366 fi
367
368
369 [FILE:41:files/special.mk]
370 WWWDIR_LIGHTTPD?=       ${PREFIX}/www/lighttpd
371