Skip to contentSkip to conversation

package/lighttpd: add mysql support

PATCH Applied Fabrice Fontaine 2 participants 2 messages Feb 6, 2022 – Feb 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/lighttpd: add mysql support

lighttpd only supports mariadb

---
 package/lighttpd/Config.in   | 9 +++++++++
 package/lighttpd/lighttpd.mk | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
package/lighttpd/Config.in +9 -0
index b9f64a3bc3..aa18c13171 100644
@@ -61,6 +61,15 @@ config BR2_PACKAGE_LIGHTTPD_MAXMINDDB
 	help
 	  Enable MaxMind GeoIP2 support. Needed to support mod_maxminddb
 
+config BR2_PACKAGE_LIGHTTPD_MYSQL
+	bool "mysql support"
+	depends on BR2_PACKAGE_MARIADB
+	help
+	  Enable mysql support for lighttpd mod_vhostdb_mysql.
+
+comment "mysql support needs mariadb"
+	depends on !BR2_PACKAGE_MARIADB
+
 config BR2_PACKAGE_LIGHTTPD_OPENSSL
 	bool "openssl support"
 	select BR2_PACKAGE_OPENSSL
package/lighttpd/lighttpd.mk +7 -1
index 49ab8587f7..595c59cb37 100644
@@ -19,7 +19,6 @@ LIGHTTPD_CONF_OPTS = \
 	-Dwith_libev=false \
 	-Dwith_libunwind=false \
 	-Dwith_mbedtls=false \
-	-Dwith_mysql=false \
 	-Dwith_nettle=false \
 	-Dwith_nss=false \
 	-Dwith_pcre=false \
@@ -73,6 +72,13 @@ else
 LIGHTTPD_CONF_OPTS += -Dwith_maxminddb=false
 endif
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_MYSQL),y)
+LIGHTTPD_DEPENDENCIES += mysql
+LIGHTTPD_CONF_OPTS += -Dwith_mysql=true
+else
+LIGHTTPD_CONF_OPTS += -Dwith_mysql=false
+endif
+
 ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
 LIGHTTPD_DEPENDENCIES += openssl
 LIGHTTPD_CONF_OPTS += -Dwith_openssl=true
Signature · 6 lines
2.34.1

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

lighttpd only supports mariadb

Applied to master, thanks.

Regards,
Arnout

Quoted 41 lines
---
  package/lighttpd/Config.in   | 9 +++++++++
  package/lighttpd/lighttpd.mk | 8 +++++++-
  2 files changed, 16 insertions(+), 1 deletion(-)
package/lighttpd/Config.in +9 -0
index b9f64a3bc3..aa18c13171 100644
@@ -61,6 +61,15 @@ config BR2_PACKAGE_LIGHTTPD_MAXMINDDB
  	help
  	  Enable MaxMind GeoIP2 support. Needed to support mod_maxminddb
 
+config BR2_PACKAGE_LIGHTTPD_MYSQL
+	bool "mysql support"
+	depends on BR2_PACKAGE_MARIADB
+	help
+	  Enable mysql support for lighttpd mod_vhostdb_mysql.
+
+comment "mysql support needs mariadb"
+	depends on !BR2_PACKAGE_MARIADB
+
  config BR2_PACKAGE_LIGHTTPD_OPENSSL
  	bool "openssl support"
  	select BR2_PACKAGE_OPENSSL
package/lighttpd/lighttpd.mk +0 -1
index 49ab8587f7..595c59cb37 100644
@@ -19,7 +19,6 @@ LIGHTTPD_CONF_OPTS = \
  	-Dwith_libev=false \
  	-Dwith_libunwind=false \
  	-Dwith_mbedtls=false \
-	-Dwith_mysql=false \
  	-Dwith_nettle=false \
  	-Dwith_nss=false \
  	-Dwith_pcre=false \
@@ -73,6 +72,13 @@ else
  LIGHTTPD_CONF_OPTS += -Dwith_maxminddb=false
  endif
 

package/lighttpd/lighttpd.mk else · line 84

Quoted 10 lines
package/lighttpd/lighttpd.mk +7 -0
+ifeq ($(BR2_PACKAGE_LIGHTTPD_MYSQL),y)
+LIGHTTPD_DEPENDENCIES += mysql
+LIGHTTPD_CONF_OPTS += -Dwith_mysql=true
+else
+LIGHTTPD_CONF_OPTS += -Dwith_mysql=false
+endif
+
  ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
  LIGHTTPD_DEPENDENCIES += openssl
  LIGHTTPD_CONF_OPTS += -Dwith_openssl=true

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