[Buildroot] [git commit] package/lighttpd: add pgsql support
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Sat Feb 5 22:46:12 UTC 2022
commit: https://git.buildroot.net/buildroot/commit/?id=b429dce6f8e2ee162b79fe2a3ebb1bd179f462e3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
package/lighttpd/Config.in | 10 ++++++++++
package/lighttpd/lighttpd.mk | 8 +++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/package/lighttpd/Config.in b/package/lighttpd/Config.in
index f46e1a9a66..b9f64a3bc3 100644
--- a/package/lighttpd/Config.in
+++ b/package/lighttpd/Config.in
@@ -80,6 +80,16 @@ config BR2_PACKAGE_LIGHTTPD_PCRE
help
Enable PCRE support. Needed to support mod_rewrite
+config BR2_PACKAGE_LIGHTTPD_PGSQL
+ bool "pgsql support"
+ depends on BR2_USE_MMU # postgresql
+ select BR2_PACKAGE_POSTGRESQL
+ help
+ Enable postgres support for lighttpd mod_vhostdb_pgsql.
+
+comment "pgsql support needs a toolchain w/ wchar"
+ depends on !BR2_USE_WCHAR
+
config BR2_PACKAGE_LIGHTTPD_WEBDAV
bool "webdav support"
select BR2_PACKAGE_LIBXML2
diff --git a/package/lighttpd/lighttpd.mk b/package/lighttpd/lighttpd.mk
index f8ed7c6f7c..49ab8587f7 100644
--- a/package/lighttpd/lighttpd.mk
+++ b/package/lighttpd/lighttpd.mk
@@ -23,7 +23,6 @@ LIGHTTPD_CONF_OPTS = \
-Dwith_nettle=false \
-Dwith_nss=false \
-Dwith_pcre=false \
- -Dwith_pgsql=false \
-Dwith_sasl=false \
-Dwith_wolfssl=false \
-Dwith_xattr=false \
@@ -95,6 +94,13 @@ else
LIGHTTPD_CONF_OPTS += -Dwith_pcre2=false
endif
+ifeq ($(BR2_PACKAGE_LIGHTTPD_PGSQL),y)
+LIGHTTPD_DEPENDENCIES += postgresql
+LIGHTTPD_CONF_OPTS += -Dwith_pgsql=true
+else
+LIGHTTPD_CONF_OPTS += -Dwith_pgsql=false
+endif
+
ifeq ($(BR2_PACKAGE_LIGHTTPD_WEBDAV),y)
LIGHTTPD_DEPENDENCIES += libxml2 sqlite
LIGHTTPD_CONF_OPTS += -Dwith_webdav_props=true
More information about the buildroot
mailing list