[Buildroot] [V2 2/2] lua-http: new package

Francois Perrad fperrad at gmail.com
Wed Oct 11 13:19:56 UTC 2017


Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
---
 package/Config.in              |  1 +
 package/lua-http/Config.in     | 18 ++++++++++++++++++
 package/lua-http/lua-http.hash |  2 ++
 package/lua-http/lua-http.mk   | 14 ++++++++++++++
 4 files changed, 35 insertions(+)
 create mode 100644 package/lua-http/Config.in
 create mode 100644 package/lua-http/lua-http.hash
 create mode 100644 package/lua-http/lua-http.mk

diff --git a/package/Config.in b/package/Config.in
index f125156e3..3e6a51033 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -582,6 +582,7 @@ menu "Lua libraries/modules"
 	source "package/lua-ev/Config.in"
 	source "package/lua-fifo/Config.in"
 	source "package/lua-flu/Config.in"
+	source "package/lua-http/Config.in"
 	source "package/lua-iconv/Config.in"
 	source "package/lua-lpeg-patterns/Config.in"
 	source "package/lua-markdown/Config.in"
diff --git a/package/lua-http/Config.in b/package/lua-http/Config.in
new file mode 100644
index 000000000..247cc4031
--- /dev/null
+++ b/package/lua-http/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LUA_HTTP
+	bool "lua-http"
+	depends on BR2_TOOLCHAIN_HAS_THREADS    # luaossl & lua-cqueues
+	# These are runtime dependencies
+	select BR2_PACKAGE_LUA_BASEXX
+	select BR2_PACKAGE_LUA_COMPAT53 if !BR2_PACKAGE_LUA_5_3
+	select BR2_PACKAGE_LUA_CQUEUES
+	select BR2_PACKAGE_LUA_FIFO
+	select BR2_PACKAGE_LUA_LPEG_PATTERNS
+	select BR2_PACKAGE_LUABITOP if BR2_PACKAGE_LUA_5_1
+	select BR2_PACKAGE_LUAOSSL
+	help
+	  HTTP library for Lua
+
+	  https://daurnimator.github.io/lua-http/
+
+comment "lua-http needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/lua-http/lua-http.hash b/package/lua-http/lua-http.hash
new file mode 100644
index 000000000..2346ab97a
--- /dev/null
+++ b/package/lua-http/lua-http.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 d68591eeeeb60c4187469eae89f5bad02d753a8c0adaa460d453b0734222645a  http-0.2-0.src.rock
diff --git a/package/lua-http/lua-http.mk b/package/lua-http/lua-http.mk
new file mode 100644
index 000000000..9bc416b8a
--- /dev/null
+++ b/package/lua-http/lua-http.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# lua-http
+#
+################################################################################
+
+LUA_HTTP_VERSION_UPSTREAM = 0.2
+LUA_HTTP_VERSION = $(LUA_HTTP_VERSION_UPSTREAM)-0
+LUA_HTTP_NAME_UPSTREAM = http
+LUA_HTTP_SUBDIR = lua-http-$(LUA_HTTP_VERSION_UPSTREAM)
+LUA_HTTP_LICENSE = MIT
+LUA_HTTP_LICENSE_FILES = $(LUA_HTTP_SUBDIR)/LICENSE.md
+
+$(eval $(luarocks-package))
-- 
2.11.0



More information about the buildroot mailing list