1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/lighttpd/lighttpd.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ $prefix_auto = 1 ]; then
17 var_append confopt ' ' "--enable-fastcgi"
19 pkginstalled pcre && var_append confopt ' ' "--with-pcre"
20 pkginstalled bzip2 && var_append confopt ' ' "--with-bzip2"
21 pkginstalled openssl && var_append confopt ' ' "--with-openssl"
23 if pkginstalled openldap; then
25 var_append confopt ' ' "--with-ldap"
26 var_append LDAP_LIB ':' "$( pkgprefix libdir openldap )"
27 var_append LBER_LIB ':' "$( pkgprefix libdir openldap )"
28 export LDAP_LIB LBER_LIB
31 if pkginstalled mysql; then
32 var_append confopt ' ' "--with-mysql"
35 if pkginstalled gdbm; then
36 var_append confopt ' ' "--with-gdbm"
39 if pkginstalled fam; then
40 var_append confopt ' ' "--with-fam"
43 if pkginstalled libmemcache; then
44 var_append confopt ' ' "--with-memcache"
47 if pkginstalled lua; then
48 var_append confopt ' ' "--with-lua"
51 # copy default config file
52 hook_add postmake 5 "cp -vp doc/config/lighttpd.conf $root$sysconfdir/"
54 # pcre cross-build support, patched configure.in
55 atstage cross && hook_add preconf 5 autoconf