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