* [Buildroot] [git commit] lua-resty-http: new package
@ 2017-05-04 20:23 Thomas Petazzoni
2017-05-04 21:02 ` Peter Korsgaard
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2017-05-04 20:23 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=e88995f065986dc56ce5a7c222f7a9f6cbff2b94
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Semyon Kolganov <semenak94@mail.ru>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/lua-resty-http/Config.in | 6 ++++++
package/lua-resty-http/lua-resty-http.hash | 2 ++
package/lua-resty-http/lua-resty-http.mk | 12 ++++++++++++
5 files changed, 22 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index d28e6fb..8fbb69a 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1434,6 +1434,7 @@ F: package/yaml-cpp/
N: Semyon Kolganov <semenak94@mail.ru>
F: package/fmt/
F: package/libbson/
+F: package/lua-resty-http/
F: package/mpir/
N: Sergio Prado <sergio.prado@e-labworks.com>
diff --git a/package/Config.in b/package/Config.in
index 47ad2c2..1af8150 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -571,6 +571,7 @@ menu "Lua libraries/modules"
source "package/luajson/Config.in"
source "package/lualogging/Config.in"
source "package/luaposix/Config.in"
+ source "package/lua-resty-http/Config.in"
source "package/luasec/Config.in"
source "package/luasocket/Config.in"
source "package/luasql-sqlite3/Config.in"
diff --git a/package/lua-resty-http/Config.in b/package/lua-resty-http/Config.in
new file mode 100644
index 0000000..4697c90
--- /dev/null
+++ b/package/lua-resty-http/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LUA_RESTY_HTTP
+ bool "lua-resty-http"
+ help
+ Lua HTTP client cosocket driver for OpenResty / ngx_lua.
+
+ http://github.com/pintsized/lua-resty-http
diff --git a/package/lua-resty-http/lua-resty-http.hash b/package/lua-resty-http/lua-resty-http.hash
new file mode 100644
index 0000000..02c5659
--- /dev/null
+++ b/package/lua-resty-http/lua-resty-http.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 3d30dd5a273438e39741fcf87ae5e147d8700bd8faa7dfe9916ea425f9c716f7 lua-resty-http-0.10-0.src.rock
diff --git a/package/lua-resty-http/lua-resty-http.mk b/package/lua-resty-http/lua-resty-http.mk
new file mode 100644
index 0000000..927fdae
--- /dev/null
+++ b/package/lua-resty-http/lua-resty-http.mk
@@ -0,0 +1,12 @@
+################################################################################
+#
+# lua-resty-http
+#
+################################################################################
+
+LUA_RESTY_HTTP_VERSION = 0.10-0
+LUA_RESTY_HTTP_SUBDIR = lua-resty-http
+LUA_RESTY_HTTP_LICENSE = BSD-2-Clause
+LUA_RESTY_HTTP_LICENSE_FILES = LICENSE
+
+$(eval $(luarocks-package))
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [git commit] lua-resty-http: new package
2017-05-04 20:23 Thomas Petazzoni
@ 2017-05-04 21:02 ` Peter Korsgaard
0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2017-05-04 21:02 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> commit: https://git.buildroot.net/buildroot/commit/?id=e88995f065986dc56ce5a7c222f7a9f6cbff2b94
> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
> Signed-off-by: Semyon Kolganov <semenak94@mail.ru>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> DEVELOPERS | 1 +
> package/Config.in | 1 +
> package/lua-resty-http/Config.in | 6 ++++++
> package/lua-resty-http/lua-resty-http.hash | 2 ++
> package/lua-resty-http/lua-resty-http.mk | 12 ++++++++++++
> 5 files changed, 22 insertions(+)
> +++ b/package/lua-resty-http/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_LUA_RESTY_HTTP
> + bool "lua-resty-http"
> + help
> + Lua HTTP client cosocket driver for OpenResty / ngx_lua.
> +
> + http://github.com/pintsized/lua-resty-http
Sorry for the slow response, but this patch apparently never made it to
my mailbox? (It is in the archive, so it must have been an issue on my
side).
I'm far from an expert in nginx, but isn't this an extension to the
lua-nginx-module that we don't (explicitly) have in Buildroot? Is it in
any way useful without it?
What is your use case for it?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [git commit] lua-resty-http: new package
@ 2017-05-04 22:02 semenak94 at mail.ru
2017-05-05 10:29 ` Peter Korsgaard
0 siblings, 1 reply; 7+ messages in thread
From: semenak94 at mail.ru @ 2017-05-04 22:02 UTC (permalink / raw)
To: buildroot
Hello,
Well, I'm also very far from nginx expert, but yes, it lua-nginx-module, which we need in our special embedded linux. So, if you don't explicitly have nginx modules in buildroot, how should we deal with it?
--
Semyon
-----------
Semyon Kolganov
???????, 05 ??? 2017?., 00:02 +03:00 ?? Peter Korsgaard peter at korsgaard.com:
>>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>?> commit: https://git.buildroot.net/buildroot/commit/?id=e88995f065986dc56ce5a7c222f7a9f6cbff2b94
>?> branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>?> Signed-off-by: Semyon Kolganov <semenak94@mail.ru>
>?> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>?> ---
>?>? DEVELOPERS???????????????????????????????? |? 1 +
>?>? package/Config.in????????????????????????? |? 1 +
>?>? package/lua-resty-http/Config.in?????????? |? 6 ++++++
>?>? package/lua-resty-http/lua-resty-http.hash |? 2 ++
>?>? package/lua-resty-http/lua-resty-http.mk?? | 12 ++++++++++++
>?>? 5 files changed, 22 insertions(+)
>?> +++ b/package/lua-resty-http/Config.in
>?> @@ -0,0 +1,6 @@
>?> +config BR2_PACKAGE_LUA_RESTY_HTTP
>?> + bool "lua-resty-http"
>?> + help
>?> + ? Lua HTTP client cosocket driver for OpenResty / ngx_lua.
>?> +
>?> + ? http://github.com/pintsized/lua-resty-http
>Sorry for the slow response, but this patch apparently never made it to
>my mailbox? (It is in the archive, so it must have been an issue on my
>side).
>I'm far from an expert in nginx, but isn't this an extension to the
>lua-nginx-module that we don't (explicitly) have in Buildroot? Is it in
>any way useful without it?
>What is your use case for it?
>--
>Bye, Peter Korsgaard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170505/ce29f82e/attachment.html>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [git commit] lua-resty-http: new package
2017-05-04 22:02 [Buildroot] [git commit] lua-resty-http: new package semenak94 at mail.ru
@ 2017-05-05 10:29 ` Peter Korsgaard
2017-05-05 13:59 ` Danomi Manchego
0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2017-05-05 10:29 UTC (permalink / raw)
To: buildroot
>>>>> "semenak94" == semenak94 <semenak94@mail.ru> writes:
> Hello,
> Well, I'm also very far from nginx expert, but yes, it
> lua-nginx-module, which we need in our special embedded linux. So, if
> you don't explicitly have nginx modules in buildroot, how should we
> deal with it?
So how are you using it now?
We currently don't have any explicit handling of the nginx-lua
module. You could conceptually do something with the 'nginx additional
modules' (BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no
guarantee that nginx builds after luajit.
I guess the proper solution would be to add an explicit nginx-lua
module, similar to what we already have for nginx-dav-ext / nginx-naxsi
/ nginx-upload.
Samuel and Adam, you have added / been active around nginx and modules,
any input?
>> ?> +config BR2_PACKAGE_LUA_RESTY_HTTP
>> ?> + bool "lua-resty-http"
>> ?> + help
>> ?> + ? Lua HTTP client cosocket driver for OpenResty / ngx_lua.
>> ?> +
>> ?> + ? http://github.com/pintsized/lua-resty-http
>> Sorry for the slow response, but this patch apparently never made it to
>> my mailbox? (It is in the archive, so it must have been an issue on my
>> side).
>> I'm far from an expert in nginx, but isn't this an extension to the
>> lua-nginx-module that we don't (explicitly) have in Buildroot? Is it in
>> any way useful without it?
>> What is your use case for it?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [git commit] lua-resty-http: new package
2017-05-05 10:29 ` Peter Korsgaard
@ 2017-05-05 13:59 ` Danomi Manchego
2017-05-05 14:34 ` Peter Korsgaard
0 siblings, 1 reply; 7+ messages in thread
From: Danomi Manchego @ 2017-05-05 13:59 UTC (permalink / raw)
To: buildroot
Peter,
On Fri, May 5, 2017 at 6:29 AM, Peter Korsgaard <peter@korsgaard.com> wrote:
>>>>>> "semenak94" == semenak94 <semenak94@mail.ru> writes:
>
> > Hello,
> > Well, I'm also very far from nginx expert, but yes, it
> > lua-nginx-module, which we need in our special embedded linux. So, if
> > you don't explicitly have nginx modules in buildroot, how should we
> > deal with it?
>
> So how are you using it now?
>
> We currently don't have any explicit handling of the nginx-lua
> module. You could conceptually do something with the 'nginx additional
> modules' (BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no
> guarantee that nginx builds after luajit.
>
> I guess the proper solution would be to add an explicit nginx-lua
> module, similar to what we already have for nginx-dav-ext / nginx-naxsi
> / nginx-upload.
FWIW - that's what we did in our project - an "ngx_lua" package that
simply uses generic-package to download and untar the source, and an
addition to nginx.mk like this:
ifeq ($(BR2_PACKAGE_NGX_LUA),y)
NGINX_DEPENDENCIES += ngx_lua luainterpreter
NGINX_CONF_OPTS += --add-module=$(NGX_LUA_DIR)
ifeq ($(BR2_PACKAGE_LUAJIT),y)
NGINX_CONF_ENV += LUAJIT_LIB=$(STAGING_DIR)/usr/lib
LUAJIT_INC=$(STAGING_DIR)/usr/include
endif
endif
But then we ended up not actually using ngx_lua at all.
Danomi -
> Samuel and Adam, you have added / been active around nginx and modules,
> any input?
>
> >> > +config BR2_PACKAGE_LUA_RESTY_HTTP
> >> > + bool "lua-resty-http"
> >> > + help
> >> > + Lua HTTP client cosocket driver for OpenResty / ngx_lua.
> >> > +
> >> > + http://github.com/pintsized/lua-resty-http
> >> Sorry for the slow response, but this patch apparently never made it to
> >> my mailbox? (It is in the archive, so it must have been an issue on my
> >> side).
> >> I'm far from an expert in nginx, but isn't this an extension to the
> >> lua-nginx-module that we don't (explicitly) have in Buildroot? Is it in
> >> any way useful without it?
> >> What is your use case for it?
>
> --
> Bye, Peter Korsgaard
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [git commit] lua-resty-http: new package
2017-05-05 13:59 ` Danomi Manchego
@ 2017-05-05 14:34 ` Peter Korsgaard
2017-05-05 21:16 ` Danomi Manchego
0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2017-05-05 14:34 UTC (permalink / raw)
To: buildroot
>>>>> "Danomi" == Danomi Manchego <danomimanchego123@gmail.com> writes:
>> We currently don't have any explicit handling of the nginx-lua
>> module. You could conceptually do something with the 'nginx additional
>> modules' (BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no
>> guarantee that nginx builds after luajit.
>>
>> I guess the proper solution would be to add an explicit nginx-lua
>> module, similar to what we already have for nginx-dav-ext / nginx-naxsi
>> / nginx-upload.
> FWIW - that's what we did in our project - an "ngx_lua" package that
> simply uses generic-package to download and untar the source, and an
> addition to nginx.mk like this:
> ifeq ($(BR2_PACKAGE_NGX_LUA),y)
> NGINX_DEPENDENCIES += ngx_lua luainterpreter
ngx_lua (or nginx-lua to follow the naming convention) should probably
be responsible for pulling in luainterpreter, but OK.
> NGINX_CONF_OPTS += --add-module=$(NGX_LUA_DIR)
> ifeq ($(BR2_PACKAGE_LUAJIT),y)
> NGINX_CONF_ENV += LUAJIT_LIB=$(STAGING_DIR)/usr/lib
> LUAJIT_INC=$(STAGING_DIR)/usr/include
> endif
> endif
> But then we ended up not actually using ngx_lua at all.
Would you be interested in contributing (and maintaining) such a package
in BR?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [git commit] lua-resty-http: new package
2017-05-05 14:34 ` Peter Korsgaard
@ 2017-05-05 21:16 ` Danomi Manchego
0 siblings, 0 replies; 7+ messages in thread
From: Danomi Manchego @ 2017-05-05 21:16 UTC (permalink / raw)
To: buildroot
Peter,
On Fri, May 5, 2017 at 10:34 AM, Peter Korsgaard <peter@korsgaard.com> wrote:
>>>>>> "Danomi" == Danomi Manchego <danomimanchego123@gmail.com> writes:
>
> >> We currently don't have any explicit handling of the nginx-lua
> >> module. You could conceptually do something with the 'nginx additional
> >> modules' (BR2_PACKAGE_NGINX_ADD_MODULES) option, but there's no
> >> guarantee that nginx builds after luajit.
> >>
> >> I guess the proper solution would be to add an explicit nginx-lua
> >> module, similar to what we already have for nginx-dav-ext / nginx-naxsi
> >> / nginx-upload.
>
> > FWIW - that's what we did in our project - an "ngx_lua" package that
> > simply uses generic-package to download and untar the source, and an
> > addition to nginx.mk like this:
>
> > ifeq ($(BR2_PACKAGE_NGX_LUA),y)
> > NGINX_DEPENDENCIES += ngx_lua luainterpreter
>
> ngx_lua (or nginx-lua to follow the naming convention) should probably
> be responsible for pulling in luainterpreter, but OK.
Noted and corrected, thank you.
>> NGINX_CONF_OPTS += --add-module=$(NGX_LUA_DIR)
> > ifeq ($(BR2_PACKAGE_LUAJIT),y)
> > NGINX_CONF_ENV += LUAJIT_LIB=$(STAGING_DIR)/usr/lib
> > LUAJIT_INC=$(STAGING_DIR)/usr/include
> > endif
> > endif
>
> > But then we ended up not actually using ngx_lua at all.
>
> Would you be interested in contributing (and maintaining) such a package
> in BR?
I've not much interested in maintaining it since I consider it a
failed experiment on our part. We don't use it now at all. But I can
do a one-time contribution. Is that okay?
Danomi -
> --
> Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-05-05 21:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-04 22:02 [Buildroot] [git commit] lua-resty-http: new package semenak94 at mail.ru
2017-05-05 10:29 ` Peter Korsgaard
2017-05-05 13:59 ` Danomi Manchego
2017-05-05 14:34 ` Peter Korsgaard
2017-05-05 21:16 ` Danomi Manchego
-- strict thread matches above, loose matches on Subject: below --
2017-05-04 20:23 Thomas Petazzoni
2017-05-04 21:02 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox