Pārlūkot izejas kodu

package/lighttpd: add more compile options

Added dbi, gnutls, libev, libunwind, mbedtls, nettle, and wolfssl.

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Thomas Devoogdt 6 mēneši atpakaļ
vecāks
revīzija
f7bb2765dc
2 mainītis faili ar 95 papildinājumiem un 7 dzēšanām
  1. 46 0
      package/lighttpd/Config.in
  2. 49 7
      package/lighttpd/lighttpd.mk

+ 46 - 0
package/lighttpd/Config.in

@@ -34,6 +34,23 @@ config BR2_PACKAGE_LIGHTTPD_BZIP2
 	help
 	help
 	  Enable bzip2 support for lighttpd mod_deflate.
 	  Enable bzip2 support for lighttpd mod_deflate.
 
 
+config BR2_PACKAGE_LIGHTTPD_DBI
+	bool "dbi support"
+	select BR2_PACKAGE_LIBDBI
+	help
+	  Enable dbi support for lighttpd mod_auth mod_vhostdb_dbi.
+
+config BR2_PACKAGE_LIGHTTPD_GNUTLS
+	bool "gnutls support"
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_USE_WCHAR
+	select BR2_PACKAGE_GNUTLS
+	help
+	  Enable gnutls support for lighttpd mod_auth.
+
+comment "gnutls support needs a toolchain w/ wchar, dynamic library"
+	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
+
 config BR2_PACKAGE_LIGHTTPD_KRB5
 config BR2_PACKAGE_LIGHTTPD_KRB5
 	bool "krb5 support"
 	bool "krb5 support"
 	select BR2_PACKAGE_LIBKRB5
 	select BR2_PACKAGE_LIBKRB5
@@ -50,6 +67,12 @@ config BR2_PACKAGE_LIGHTTPD_LDAP
 comment "ldap support needs a toolchain w/ wchar"
 comment "ldap support needs a toolchain w/ wchar"
 	depends on !BR2_USE_WCHAR
 	depends on !BR2_USE_WCHAR
 
 
+config BR2_PACKAGE_LIGHTTPD_LIBEV
+	bool "libev support"
+	select BR2_PACKAGE_LIBEV
+	help
+	  Enable libev support for lighttpd fdevent handlers.
+
 config BR2_PACKAGE_LIGHTTPD_LUA
 config BR2_PACKAGE_LIGHTTPD_LUA
 	bool "lua support"
 	bool "lua support"
 	depends on BR2_PACKAGE_LUA
 	depends on BR2_PACKAGE_LUA
@@ -62,6 +85,12 @@ config BR2_PACKAGE_LIGHTTPD_MAXMINDDB
 	help
 	help
 	  Enable MaxMind GeoIP2 support. Needed to support mod_maxminddb
 	  Enable MaxMind GeoIP2 support. Needed to support mod_maxminddb
 
 
+config BR2_PACKAGE_LIGHTTPD_MBEDTLS
+	bool "mbedtls support"
+	select BR2_PACKAGE_MBEDTLS
+	help
+	  Enable mbedtls support for lighttpd mod_auth.
+
 config BR2_PACKAGE_LIGHTTPD_MYSQL
 config BR2_PACKAGE_LIGHTTPD_MYSQL
 	bool "mysql support"
 	bool "mysql support"
 	depends on BR2_PACKAGE_MARIADB
 	depends on BR2_PACKAGE_MARIADB
@@ -71,6 +100,12 @@ config BR2_PACKAGE_LIGHTTPD_MYSQL
 comment "mysql support needs mariadb"
 comment "mysql support needs mariadb"
 	depends on !BR2_PACKAGE_MARIADB
 	depends on !BR2_PACKAGE_MARIADB
 
 
+config BR2_PACKAGE_LIGHTTPD_NETTLE
+	bool "nettle support"
+	select BR2_PACKAGE_NETTLE
+	help
+	  Enable nettle support for lighttpd.
+
 config BR2_PACKAGE_LIGHTTPD_OPENSSL
 config BR2_PACKAGE_LIGHTTPD_OPENSSL
 	bool "openssl support"
 	bool "openssl support"
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_OPENSSL
@@ -116,6 +151,17 @@ config BR2_PACKAGE_LIGHTTPD_WEBDAV
 	help
 	help
 	  Enable webdav support. Needed to support mod_webdav
 	  Enable webdav support. Needed to support mod_webdav
 
 
+config BR2_PACKAGE_LIGHTTPD_WOLFSSL
+	bool "wolfssl support"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_WOLFSSL
+	select BR2_PACKAGE_WOLFSSL_ALL
+	help
+	  Enable wolfssl support for lighttpd mod_auth.
+
+comment "wolfssl support needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
 config BR2_PACKAGE_LIGHTTPD_ZLIB
 config BR2_PACKAGE_LIGHTTPD_ZLIB
 	bool "zlib support"
 	bool "zlib support"
 	select BR2_PACKAGE_ZLIB
 	select BR2_PACKAGE_ZLIB

+ 49 - 7
package/lighttpd/lighttpd.mk

@@ -13,17 +13,10 @@ LIGHTTPD_LICENSE_FILES = COPYING
 LIGHTTPD_CPE_ID_VENDOR = lighttpd
 LIGHTTPD_CPE_ID_VENDOR = lighttpd
 LIGHTTPD_DEPENDENCIES = host-pkgconf xxhash
 LIGHTTPD_DEPENDENCIES = host-pkgconf xxhash
 LIGHTTPD_CONF_OPTS = \
 LIGHTTPD_CONF_OPTS = \
-	-Dwith_dbi=disabled \
 	-Dwith_fam=disabled \
 	-Dwith_fam=disabled \
-	-Dwith_gnutls=false \
-	-Dwith_libev=disabled \
-	-Dwith_libunwind=disabled \
-	-Dwith_mbedtls=false \
-	-Dwith_nettle=false \
 	-Dwith_nss=false \
 	-Dwith_nss=false \
 	-Dwith_pcre=disabled \
 	-Dwith_pcre=disabled \
 	-Dwith_sasl=disabled \
 	-Dwith_sasl=disabled \
-	-Dwith_wolfssl=false \
 	-Dwith_xattr=false \
 	-Dwith_xattr=false \
 	-Dwith_xxhash=enabled \
 	-Dwith_xxhash=enabled \
 	-Dbuild_extra_warnings=false \
 	-Dbuild_extra_warnings=false \
@@ -34,6 +27,13 @@ ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
 LIGHTTPD_DEPENDENCIES += libxcrypt
 LIGHTTPD_DEPENDENCIES += libxcrypt
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
+LIGHTTPD_DEPENDENCIES += libunwind
+LIGHTTPD_CONF_OPTS += -Dwith_libunwind=enabled
+else
+LIGHTTPD_CONF_OPTS += -Dwith_libunwind=disabled
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_BROTLI),y)
 ifeq ($(BR2_PACKAGE_LIGHTTPD_BROTLI),y)
 LIGHTTPD_DEPENDENCIES += brotli
 LIGHTTPD_DEPENDENCIES += brotli
 LIGHTTPD_CONF_OPTS += -Dwith_brotli=enabled
 LIGHTTPD_CONF_OPTS += -Dwith_brotli=enabled
@@ -48,6 +48,20 @@ else
 LIGHTTPD_CONF_OPTS += -Dwith_bzip=disabled
 LIGHTTPD_CONF_OPTS += -Dwith_bzip=disabled
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_DBI),y)
+LIGHTTPD_DEPENDENCIES += libdbi
+LIGHTTPD_CONF_OPTS += -Dwith_dbi=enabled
+else
+LIGHTTPD_CONF_OPTS += -Dwith_dbi=disabled
+endif
+
+ifeq ($(BR2_PACKAGE_LIGHTTPD_GNUTLS),y)
+LIGHTTPD_DEPENDENCIES += gnutls
+LIGHTTPD_CONF_OPTS += -Dwith_gnutls=true
+else
+LIGHTTPD_CONF_OPTS += -Dwith_gnutls=false
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_KRB5),y)
 ifeq ($(BR2_PACKAGE_LIGHTTPD_KRB5),y)
 LIGHTTPD_DEPENDENCIES += libkrb5
 LIGHTTPD_DEPENDENCIES += libkrb5
 LIGHTTPD_CONF_OPTS += -Dwith_krb5=enabled
 LIGHTTPD_CONF_OPTS += -Dwith_krb5=enabled
@@ -62,6 +76,13 @@ else
 LIGHTTPD_CONF_OPTS += -Dwith_ldap=disabled
 LIGHTTPD_CONF_OPTS += -Dwith_ldap=disabled
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_LIBEV),y)
+LIGHTTPD_DEPENDENCIES += libev
+LIGHTTPD_CONF_OPTS += -Dwith_libev=enabled
+else
+LIGHTTPD_CONF_OPTS += -Dwith_libev=disabled
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_LUA),y)
 ifeq ($(BR2_PACKAGE_LIGHTTPD_LUA),y)
 LIGHTTPD_DEPENDENCIES += lua
 LIGHTTPD_DEPENDENCIES += lua
 LIGHTTPD_CONF_OPTS += -Dwith_lua=true
 LIGHTTPD_CONF_OPTS += -Dwith_lua=true
@@ -76,6 +97,13 @@ else
 LIGHTTPD_CONF_OPTS += -Dwith_maxminddb=disabled
 LIGHTTPD_CONF_OPTS += -Dwith_maxminddb=disabled
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_MBEDTLS),y)
+LIGHTTPD_DEPENDENCIES += mbedtls
+LIGHTTPD_CONF_OPTS += -Dwith_mbedtls=true
+else
+LIGHTTPD_CONF_OPTS += -Dwith_mbedtls=false
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_MYSQL),y)
 ifeq ($(BR2_PACKAGE_LIGHTTPD_MYSQL),y)
 LIGHTTPD_DEPENDENCIES += mariadb
 LIGHTTPD_DEPENDENCIES += mariadb
 LIGHTTPD_CONF_OPTS += -Dwith_mysql=enabled
 LIGHTTPD_CONF_OPTS += -Dwith_mysql=enabled
@@ -83,6 +111,13 @@ else
 LIGHTTPD_CONF_OPTS += -Dwith_mysql=disabled
 LIGHTTPD_CONF_OPTS += -Dwith_mysql=disabled
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_NETTLE),y)
+LIGHTTPD_DEPENDENCIES += nettle
+LIGHTTPD_CONF_OPTS += -Dwith_nettle=true
+else
+LIGHTTPD_CONF_OPTS += -Dwith_nettle=false
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
 ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
 LIGHTTPD_DEPENDENCIES += openssl
 LIGHTTPD_DEPENDENCIES += openssl
 LIGHTTPD_CONF_OPTS += -Dwith_openssl=true
 LIGHTTPD_CONF_OPTS += -Dwith_openssl=true
@@ -124,6 +159,13 @@ else
 LIGHTTPD_CONF_OPTS += -Dwith_webdav_props=disabled -Dwith_webdav_locks=disabled
 LIGHTTPD_CONF_OPTS += -Dwith_webdav_props=disabled -Dwith_webdav_locks=disabled
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_WOLFSSL),y)
+LIGHTTPD_DEPENDENCIES += wolfssl
+LIGHTTPD_CONF_OPTS += -Dwith_wolfssl=true
+else
+LIGHTTPD_CONF_OPTS += -Dwith_wolfssl=false
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_ZLIB),y)
 ifeq ($(BR2_PACKAGE_LIGHTTPD_ZLIB),y)
 LIGHTTPD_DEPENDENCIES += zlib
 LIGHTTPD_DEPENDENCIES += zlib
 LIGHTTPD_CONF_OPTS += -Dwith_zlib=enabled
 LIGHTTPD_CONF_OPTS += -Dwith_zlib=enabled