diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..038f542 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "sockproc"] + path = sockproc + url = https://github.com/juce/sockproc.git diff --git a/lua-resty-shell-scm-1.rockspec b/lua-resty-shell-scm-1.rockspec new file mode 100644 index 0000000..54b4ef9 --- /dev/null +++ b/lua-resty-shell-scm-1.rockspec @@ -0,0 +1,34 @@ +package = "lua-resty-shell" +version = "scm-1" +source = { + url = "git+https://github.com/juce/lua-resty-shell.git", +} +description = { + summary = "Tiny subprocess/shell library to use with OpenResty application server.", + detailed = "", + homepage = "https://github.com/juce/lua-resty-shell", + license = "MIT", +} +dependencies = { + "lua >= 5.1", +} + +build = { + type = "command", + build_command = [[ + git submodule init \ + && git submodule update \ + && cd sockproc \ + && git checkout master \ + && git pull \ + && make + ]], + install = { + lua = { + ["resty.shell"] = "lib/resty/shell.lua", + }, + bin = { + ["sockproc"] = "sockproc/sockproc", + } + }, +} diff --git a/sockproc b/sockproc new file mode 160000 index 0000000..fc8ad3f --- /dev/null +++ b/sockproc @@ -0,0 +1 @@ +Subproject commit fc8ad3f15a7b2cf2eaf39663b90010efc55e207c