Browse Source

New lua module: wsapi

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Gustavo Zacarias 15 năm trước cách đây
mục cha
commit
e5d578a6e2
4 tập tin đã thay đổi với 32 bổ sung1 xóa
  1. 1 1
      CHANGES
  2. 1 0
      package/Config.in
  3. 9 0
      package/wsapi/Config.in
  4. 21 0
      package/wsapi/wsapi.mk

+ 1 - 1
CHANGES

@@ -5,7 +5,7 @@
 	New GTK-based configurator, usable using 'make gconfig'.
 
 	New packages: cgilua, copas, coxpcall, luafilesystem,
-	luasocket, rings
+	luasocket, rings, wsapi
 
 	Updated/fixed packages: cdrkit, libidn, netperf
 

+ 1 - 0
package/Config.in

@@ -214,6 +214,7 @@ source "package/coxpcall/Config.in"
 source "package/luafilesystem/Config.in"
 source "package/luasocket/Config.in"
 source "package/rings/Config.in"
+source "package/wsapi/Config.in"
 endif
 source "package/microperl/Config.in"
 source "package/php/Config.in"

+ 9 - 0
package/wsapi/Config.in

@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WSAPI
+	bool "wsapi"
+	select BR2_PACKAGE_COXPCALL
+	select BR2_PACKAGE_LUAFILESYSTEM
+	select BR2_PACKAGE_RINGS
+	help
+	  API that abstracts the web server from Lua web applications.
+
+	  http://keplerproject.github.com/wsapi/

+ 21 - 0
package/wsapi/wsapi.mk

@@ -0,0 +1,21 @@
+#############################################################
+#
+# wsapi
+#
+#############################################################
+
+WSAPI_VERSION = 1.3.4
+WSAPI_SITE = http://github.com/downloads/keplerproject/wsapi
+WSAPI_DEPENDENCIES = coxpcall luafilesystem rings
+
+define WSAPI_INSTALL_TARGET_CMDS
+	mkdir -p $(TARGET_DIR)/usr/share/lua/wsapi
+	$(INSTALL) -m 0644 -D $(@D)/src/wsapi/*.lua \
+		$(TARGET_DIR)/usr/share/lua/wsapi
+endef
+
+define WSAPI_UNINSTALL_TARGET_CMDS
+	rm -rf "$(TARGET_DIR)/usr/share/lua/wsapi"
+endef
+
+$(eval $(call GENTARGETS,package,wsapi))