0
0
Fork 0
Commit Graph

3 Commits

Author SHA1 Message Date
fbrosson 59c43b62f6 lighttpd: bump to 1.4.42, with mod_geoip and 6 other modules. (#851)
* This release of lighttpd comes with 7 new modules: mod_deflate,
  mod_authn_{file,gssapi,ldap,mysql}, mod_uploadprogress and
  mod_geoip.
* The GeoIP module is being added in a separate sub-package to limit
  the dependency on the geoip package to that sub-package only.
* Add a quickstart-geoip.txt and a demo geoip page for novice users.
* In lighttpd.conf don't use paths that change when the package is
  updated.
* Keep lighttpd.pid in /var/run instead of /var.
* Switch SOURCE_URI from tar.gz to tar.xz ;-)
2016-11-02 18:56:16 -04:00
fbrosson efdc75f1b9 lighttpd: bump to 1.4.40, drop x86_gcc2, add x86 secondary arch. (#721)
* Configure with more options: --with-libxml --with-ldap --with-lua
  --with-sqlite --with-uuid --with-webdav-locks
* Create a read-only copy of system/settings/lighttpd/ in
  system/data/lighttpd/template-settings/.
* Rename index.shtml to index.lighttpd.shtml to make it easier to
  share the same document-root with other web servers.
* Add quickstart.txt in $docDir with some useful information.
2016-07-24 17:23:36 -04:00
fbrosson cf8807bd7f lighttpd: improve recipe to make it work out-of-the-box.
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.
2016-03-06 16:02:38 +00:00