New lua module: xavante
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 10 May 2010 17:56:24 +0000 (14:56 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 5 Jun 2010 20:15:24 +0000 (22:15 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/Config.in
package/xavante/Config.in [new file with mode: 0644]
package/xavante/xavante.mk [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 8be098f0ad117f244aeae0c3ca2cba8b0a0d48ee..98a9e1264e188e8b6fc456dfb84abf0bd1c90f9e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,7 +5,7 @@
        New GTK-based configurator, usable using 'make gconfig'.
 
        New packages: cgilua, copas, coxpcall, luafilesystem,
-       luasocket, rings, wsapi
+       luasocket, rings, wsapi, xavante
 
        Updated/fixed packages: cdrkit, libidn, netperf
 
index 5f389e0311d1470883a9aa6422d0157dc166ce15..8b837fd57c2fa93bad5750ea3316806268bd369b 100644 (file)
@@ -215,6 +215,7 @@ source "package/luafilesystem/Config.in"
 source "package/luasocket/Config.in"
 source "package/rings/Config.in"
 source "package/wsapi/Config.in"
+source "package/xavante/Config.in"
 endif
 source "package/microperl/Config.in"
 source "package/php/Config.in"
diff --git a/package/xavante/Config.in b/package/xavante/Config.in
new file mode 100644 (file)
index 0000000..7a3535a
--- /dev/null
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_XAVANTE
+       bool "xavante"
+       depends on BR2_PACKAGE_LUA_SHARED_LIBRARY
+       select BR2_PACKAGE_CGILUA
+       select BR2_PACKAGE_COPAS
+       select BR2_PACKAGE_COXPCALL
+       select BR2_PACKAGE_LUAFILESYSTEM
+       select BR2_PACKAGE_LUASOCKET
+       select BR2_PACKAGE_WSAPI
+       help
+         Xavante is a Lua HTTP 1.1 Web server that uses a modular
+         architecture based on URI mapped handlers.
+
+         http://keplerproject.github.com/xavante/
diff --git a/package/xavante/xavante.mk b/package/xavante/xavante.mk
new file mode 100644 (file)
index 0000000..525b09f
--- /dev/null
@@ -0,0 +1,23 @@
+#############################################################
+#
+# xavante
+#
+#############################################################
+
+XAVANTE_VERSION = 2.2.0
+XAVANTE_SITE = http://github.com/downloads/keplerproject/xavante
+XAVANTE_DEPENDENCIES = cgilua copas coxpcall lua luafilesystem luasocket wsapi
+
+define XAVANTE_INSTALL_TARGET_CMDS
+       $(MAKE) -C $(@D) PREFIX=/usr \
+               LUA_DIR="$(TARGET_DIR)/usr/share/lua" \
+               LUA_LIBDIR="$(TARGET_DIR)/usr/lib/lua" install
+endef
+
+define XAVANTE_UNINSTALL_TARGET_CMDS
+       rm -rf "$(TARGET_DIR)/usr/share/xavante"
+       rm -f "$(TARGET_DIR)/usr/share/xavante.lua"
+       rm -f "$(TARGET_DIR)/usr/share/sajax.lua"
+endef
+
+$(eval $(call GENTARGETS,package,xavante))