* Drop recipe for version 2.82.
* Fix SOURCE_URI for 2.84.
* Add recipe for 2.92 with "--enable-cli" (as it's no longuer enabled
by default) and without "--datadir=$dataDir" which runConfigure
already takes care of.
* Bump version to 3.4.10.
* Drop the --disable-doc switch during configuration and put all docs
in a separate, architecture-independent package, gnutls_doc, in case
we are building for a primary arch. Do not provide a doc package at
all if we are building for a secondary architecture.
* Swap the lines for "cmd:psktool" and "cmd:ocsptool" as they were not
sorted.
* Drop the "cmd:systemkey" line in PROVIDES as it is not installed by
default. There isn't even a configure option to have it installed.
* Bump version to 2.4.44.
* Mark all architectures as tested.
* Remove documentation for secondary architectures.
* Reorder sections.
* Fix PATCH() to avoid replacing "-lnetwork" by "-lnetworkwork".
* bump 1.0.2 series to 1.0.2g with enable-ssl2 to prevent API breakage.
* bump 1.0.1 series to 1.0.1s with enable-ssl2 to prevent API breakage.
* Fix the patchset for the 1.0.1 series:
1. by using a copy of patch "Do not use __INTEL__ to detect x86_64"
from the 1.0.2 series for crypto/evp/e_aes_cbc_hmac_sha1.c.
2. by using a copy of the 2nd chunk of patch "more __intel__ fixes..."
from the 1.0.2 series for crypto/evp/e_rc4_hmac_md5.c.
* Add x86 and x86_64 to ARCHITECTURES as the recipe also works fine for these.
* Add x86_gcc2 to SECONDARY_ARCHITECTURES for use in x86 (gcc4) hybrid.
* Use $portVersion instead of the current version in SOURCE_{URI,DIR}.
* Drop the "r" prefix in version (r475 → 475) and ajust SOURCE_{URI,DIR}.
Use autoconf and patch configure.ac instead of configure.
Declare the recipe as also tested on x86 and x86_64.
Install default configuration (in settings/lighttpd/) with SSI enabled.
Declare data/lighttpd/www/htdocs as the document root.
Install a default index.shtml page that works if SSI is enabled.
Install a default index.lighttpd.html page that is used if SSI is disabled.
Group all modules (mod_*.so) in lib/lighttpd/ instead of installing them in lib.
Make var/log/lighttpd/ the default directory for access.log and error.log.
Remove all lib-related stuff from the devel package and, instead, add all .h files that could be required to build third-party modules in separate recipes. That lists consists of all .h files in src except these: configparser.h network.h proc_open.h request.h
Add --with-{zlib,bzip2} to configure args to enable {zlib,bzip2} support for mod_compress.
Add --with-pcre to configure args to make lighttpd understand regexps in the server configuration.
Add --with-webdav-props to configure args (as well as the required dependencies on libsqlite3 and libxml2) to enable some features of the WebDAV module.
With these changes lighttpd runs out of the box on Haiku.
Launch lighttpd with:
lighttpd -f /system/settings/lighttpd/lighttpd.conf
Monitor the access log with:
tail -f /var/log/lighttpd/access.log
Monitor the error log with:
tail -f /var/log/lighttpd/error.log
Stop lighttpd with:
kill $(cat /var/lighttpd.pid)
Notes:
To have alternate pages served instead of the default page, comment-out the active "var.server_root" line in /system/settings/lighttpd/lighttpd.conf and uncomment the inactive one at the next line, then place the alternate content in /var/www/htdocs/ and restart lighttpd.
Further changes that could be nice to make:
* Find a better way to patch configure.ac for the detection of libnetwork to make it compatible with all other platforms and then send it to upstream.
* Check if USER_SETTINGS_FILES and GLOBAL_WRITABLE_FILES could be improved. In particular, see how "template" works and provide both read-only template config files and user-modifiable "keep-old" copies.
* Check if there is a more appropriate directory for the customized default index.(s)html.
* Suggest a default location for cgi-bin scripts/runtimes.
* Add start/stop scripts and some glue to make lighttpd available as service on Haiku.
* Add glue to auto-rotate logs.