Ravenports generated: 08 Feb 2020 13:29
[ravenports.git] / bucket_22 / lighttpd
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               lighttpd
4 VERSION=                1.4.55
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.55.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 BUILD_DEPENDS=          pcre:static:standard
21                         bzip2:static:standard
22 BUILDRUN_DEPENDS=       pcre:shared:standard
23                         bzip2:shared:standard
24                         libev:single:standard
25
26 USERS=                  wwwraven
27 GROUPS=                 wwwraven
28 USERGROUP_SPKG=         single
29
30 USES=                   autoreconf cpe gmake libtool pkgconfig ssl lua zlib
31
32 LICENSE=                BSD3CLAUSE:single
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-gdbm
47                         --without-krb5
48                         --without-memcached
49                         --without-valgrind
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}}"
54
55 PLIST_SUB=              WWWOWN="wwwraven"
56                         WWWGRP="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}}"
63
64 CFLAGS=                 -std=gnu99
65 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS=--with-attr
66 VAR_OPSYS[linux]=       CONFIGURE_ARGS=--with-attr
67 VAR_OPSYS[dragonfly]=   CONFIGURE_ARGS=--with-attr
68
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
73
74 [GEOIP].DESCRIPTION=                    GeoIP location support
75 [GEOIP].BUILDRUN_DEPENDS_ON=            GeoIP:single:standard
76 [GEOIP].CONFIGURE_WITH_BOTH=            geoip
77
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
82
83 post-patch:
84         ${REINPLACE_CMD} -e 's|-std=gnu99||' \
85                 ${WRKSRC}/configure ${WRKSRC}/configure.ac
86         ${REINPLACE_CMD} -E \
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
108
109 post-install:
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
119 .endfor
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
127 .endfor
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
131
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.
139
140
141 [FILE:101:distinfo]
142 6a0b50e9c9d5cc3d9e48592315c25a2d645858f863e1ccd120507a30ce21e927       765660 lighttpd-1.4.55.tar.xz
143
144
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/
173  mod_authn_ldap.so
174  mod_vhostdb_ldap.so
175 %%MYSQL-ON%%lib/lighttpd/
176  mod_authn_mysql.so
177  mod_mysql_vhost.so
178  mod_vhostdb_mysql.so
179 etc/lighttpd/vhosts.d/vhosts.template
180 lib/lighttpd/
181  mod_access.so
182  mod_accesslog.so
183  mod_alias.so
184  mod_auth.so
185  mod_authn_file.so
186  mod_cgi.so
187  mod_cml.so
188  mod_compress.so
189  mod_deflate.so
190  mod_dirlisting.so
191  mod_evasive.so
192  mod_evhost.so
193  mod_expire.so
194  mod_extforward.so
195  mod_fastcgi.so
196  mod_flv_streaming.so
197  mod_indexfile.so
198  mod_magnet.so
199  mod_openssl.so
200  mod_proxy.so
201  mod_redirect.so
202  mod_rewrite.so
203  mod_rrdtool.so
204  mod_scgi.so
205  mod_secdownload.so
206  mod_setenv.so
207  mod_simple_vhost.so
208  mod_sockproxy.so
209  mod_ssi.so
210  mod_staticfile.so
211  mod_status.so
212  mod_uploadprogress.so
213  mod_userdir.so
214  mod_usertrack.so
215  mod_vhostdb.so
216  mod_webdav.so
217  mod_wstunnel.so
218 sbin/
219  lighttpd
220  lighttpd-angel
221 share/man/man8/
222  lighttpd-angel.8.gz
223  lighttpd.8.gz
224 @dir %%WWWDIR%%
225 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%CACHEDIR%%
226 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%HOMEDIR%%/sockets
227 @dir(%%WWWOWN%%,%%WWWGRP%%,700) %%LOGDIR%%
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