lighttpd: add lua support
authorDanomi Mocelopolis <d_mo1234@yahoo.com>
Fri, 28 Oct 2011 13:09:23 +0000 (15:09 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 28 Oct 2011 13:09:23 +0000 (15:09 +0200)
Closes #4381

Signed-off-by: Danomi Mocelopolis <d_mo1234@yahoo.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/lighttpd/Config.in
package/lighttpd/lighttpd.mk

diff --git a/CHANGES b/CHANGES
index 9957d58bd3e29876dcc575bdaf8baf66f152dc3e..74ec64facf33583823e39e16fbb8bec17ddce877 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -69,6 +69,7 @@
        #4171: makedevs-unused-but-set-variable.patch
        #4183: Codesourcery toolchain download site has changed
        #4231: libneon.so: undefined reference to `SSL_SESSION_cmp'
+       #4381: Add option to lighttpd to enable Lua support
 
 2011.08, Released August 31th, 2011:
 
index a822d9021d9deedd256d546ac6e718905e4fc95b..cb759ff465b102abf7b1e72a00df1cd5cd02e934 100644 (file)
@@ -44,4 +44,11 @@ config BR2_PACKAGE_LIGHTTPD_WEBDAV
        help
          Enable webdav support. Needed to support mod_webdav
 
+config BR2_PACKAGE_LIGHTTPD_LUA
+       bool "lua support"
+       depends on BR2_PACKAGE_LIGHTTPD
+       select BR2_PACKAGE_LUA
+       help
+         Enable Lua support. Needed to support mod_magnet
+
 endif
index 10aa4c8e46f40f34e72d19a137fa9d35260b43df..3f11be33bb6af43f228ac417f92090fe51656bc7 100644 (file)
@@ -49,6 +49,13 @@ else
 LIGHTTPD_CONF_OPT += --without-webdav-props --without-webdav-locks
 endif
 
+ifeq ($(BR2_PACKAGE_LIGHTTPD_LUA),y)
+LIGHTTPD_DEPENDENCIES += lua
+LIGHTTPD_CONF_OPT += --with-lua
+else
+LIGHTTPD_CONF_OPT += --without-lua
+endif
+
 define LIGHTTPD_UNINSTALL_TARGET_CMDS
        rm -f $(TARGET_DIR)/usr/sbin/lighttpd
        rm -f $(TARGET_DIR)/usr/sbin/lighttpd-angel