Skip to contentSkip to conversation

package/lighttpd: add pgsql support

PATCH Applied Fabrice Fontaine 2 participants 2 messages Jan 26, 2022 – Feb 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lighttpd: add pgsql support

---
 package/lighttpd/Config.in   | 10 ++++++++++
 package/lighttpd/lighttpd.mk |  8 +++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
package/lighttpd/Config.in +10 -0
index eb8ab480a0..57bb756603 100644
@@ -86,6 +86,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
package/lighttpd/lighttpd.mk +7 -1
index 90b4ba0a72..595c59cb37 100644
@@ -22,7 +22,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 \
@@ -101,6 +100,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
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 1 line · Fabrice Fontaine

Applied to master, thanks.

Regards,
Arnout

Quoted 42 lines
---
  package/lighttpd/Config.in   | 10 ++++++++++
  package/lighttpd/lighttpd.mk |  8 +++++++-
  2 files changed, 17 insertions(+), 1 deletion(-)
package/lighttpd/Config.in +10 -0
index eb8ab480a0..57bb756603 100644
@@ -86,6 +86,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
package/lighttpd/lighttpd.mk +0 -1
index 90b4ba0a72..595c59cb37 100644
@@ -22,7 +22,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 \
@@ -101,6 +100,13 @@ else
  LIGHTTPD_CONF_OPTS += -Dwith_pcre2=false
  endif
 

package/lighttpd/lighttpd.mk else · line 112

Quoted 10 lines
package/lighttpd/lighttpd.mk +7 -0
+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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot