treewide: separate Lua runtime resources
authorJo-Philipp Wich <jo@mein.io>
Tue, 13 Sep 2022 21:50:12 +0000 (23:50 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 24 Oct 2022 23:03:37 +0000 (01:03 +0200)
commit673f38246ac3548caefec41183e3dd7477d9f6f6
treeb3b7682b14d8a81286f8b7fe2aa5239e5dfbf4b7
parentded8ccf93ec5163be35c41501869110e5dab30d1
treewide: separate Lua runtime resources

Move classes required for Lua runtime support into a new `luci-lua-runtime`
package. Also replace the `luci.http` and `luci.util` classes in
`luci-lib-base` with stubbed versions interacting with the ucode based
runtime environment.

Finally merge `luci-base-ucode` into the remainders of `luci-base`.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
141 files changed:
.gitignore
build/mkbasepot.sh
build/zoneinfo2ucode.pl
libs/luci-lib-base/luasrc/http.lua
libs/luci-lib-base/luasrc/util.lua
modules/luci-base-ucode/Makefile [deleted file]
modules/luci-base-ucode/htdocs/cgi-bin/luci-ucode [deleted file]
modules/luci-base-ucode/luasrc/ucodebridge/luci/dispatcher.lua [deleted file]
modules/luci-base-ucode/luasrc/ucodebridge/luci/http.lua [deleted file]
modules/luci-base-ucode/luasrc/ucodebridge/luci/template.lua [deleted file]
modules/luci-base-ucode/luasrc/ucodebridge/luci/ucodebridge.lua [deleted file]
modules/luci-base-ucode/luasrc/ucodebridge/luci/util.lua [deleted file]
modules/luci-base-ucode/root/usr/share/rpcd/ucode/luci [deleted file]
modules/luci-base-ucode/src/Makefile [deleted file]
modules/luci-base-ucode/src/contrib/lemon.c [deleted file]
modules/luci-base-ucode/src/contrib/lempar.c [deleted file]
modules/luci-base-ucode/src/lib/lmo.c [deleted file]
modules/luci-base-ucode/src/lib/lmo.h [deleted file]
modules/luci-base-ucode/src/lib/luci.c [deleted file]
modules/luci-base-ucode/src/lib/plural_formula.y [deleted file]
modules/luci-base-ucode/ucode/controller/admin/index.uc [deleted file]
modules/luci-base-ucode/ucode/controller/admin/uci.uc [deleted file]
modules/luci-base-ucode/ucode/dispatcher.uc [deleted file]
modules/luci-base-ucode/ucode/http.uc [deleted file]
modules/luci-base-ucode/ucode/runtime.uc [deleted file]
modules/luci-base-ucode/ucode/sys.uc [deleted file]
modules/luci-base-ucode/ucode/template/csrftoken.ut [deleted file]
modules/luci-base-ucode/ucode/template/error404.ut [deleted file]
modules/luci-base-ucode/ucode/template/error500.ut [deleted file]
modules/luci-base-ucode/ucode/template/footer.ut [deleted file]
modules/luci-base-ucode/ucode/template/header.ut [deleted file]
modules/luci-base-ucode/ucode/template/sysauth.ut [deleted file]
modules/luci-base-ucode/ucode/template/view.ut [deleted file]
modules/luci-base-ucode/ucode/uhttpd.uc [deleted file]
modules/luci-base-ucode/ucode/zoneinfo.uc [deleted file]
modules/luci-base/Makefile
modules/luci-base/htdocs/cgi-bin/luci
modules/luci-base/luasrc/cacheloader.lua [deleted file]
modules/luci-base/luasrc/ccache.lua [deleted file]
modules/luci-base/luasrc/config.lua [deleted file]
modules/luci-base/luasrc/controller/admin/index.lua [deleted file]
modules/luci-base/luasrc/controller/admin/uci.lua [deleted file]
modules/luci-base/luasrc/dispatcher.lua [deleted file]
modules/luci-base/luasrc/dispatcher.luadoc [deleted file]
modules/luci-base/luasrc/i18n.lua [deleted file]
modules/luci-base/luasrc/i18n.luadoc [deleted file]
modules/luci-base/luasrc/model/uci.lua [deleted file]
modules/luci-base/luasrc/model/uci.luadoc [deleted file]
modules/luci-base/luasrc/sgi/cgi.lua [deleted file]
modules/luci-base/luasrc/sgi/uhttpd.lua [deleted file]
modules/luci-base/luasrc/store.lua [deleted file]
modules/luci-base/luasrc/sys.lua [deleted file]
modules/luci-base/luasrc/sys.luadoc [deleted file]
modules/luci-base/luasrc/sys/zoneinfo.lua [deleted file]
modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua [deleted file]
modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua [deleted file]
modules/luci-base/luasrc/template.lua [deleted file]
modules/luci-base/luasrc/version.lua [deleted file]
modules/luci-base/luasrc/view/csrftoken.htm [deleted file]
modules/luci-base/luasrc/view/empty_node_placeholder.htm [deleted file]
modules/luci-base/luasrc/view/error404.htm [deleted file]
modules/luci-base/luasrc/view/error500.htm [deleted file]
modules/luci-base/luasrc/view/footer.htm [deleted file]
modules/luci-base/luasrc/view/header.htm [deleted file]
modules/luci-base/luasrc/view/indexer.htm [deleted file]
modules/luci-base/luasrc/view/sysauth.htm [deleted file]
modules/luci-base/luasrc/view/view.htm [deleted file]
modules/luci-base/luasrc/xml.lua [deleted file]
modules/luci-base/luasrc/xml.luadoc [deleted file]
modules/luci-base/root/usr/libexec/rpcd/luci [deleted file]
modules/luci-base/root/usr/share/luci/menu.d/luci-base.json
modules/luci-base/root/usr/share/rpcd/ucode/luci [new file with mode: 0644]
modules/luci-base/src/Makefile
modules/luci-base/src/lib/lmo.c [new file with mode: 0644]
modules/luci-base/src/lib/lmo.h [new file with mode: 0644]
modules/luci-base/src/lib/luci.c [new file with mode: 0644]
modules/luci-base/src/lib/plural_formula.y [new file with mode: 0644]
modules/luci-base/src/mkversion.sh [deleted file]
modules/luci-base/src/plural_formula.y [deleted file]
modules/luci-base/src/po2lmo.c
modules/luci-base/src/template_lmo.c [deleted file]
modules/luci-base/src/template_lmo.h [deleted file]
modules/luci-base/src/template_lualib.c [deleted file]
modules/luci-base/src/template_lualib.h [deleted file]
modules/luci-base/src/template_parser.c [deleted file]
modules/luci-base/src/template_parser.h [deleted file]
modules/luci-base/src/template_utils.c [deleted file]
modules/luci-base/src/template_utils.h [deleted file]
modules/luci-base/ucode/controller/admin/index.uc [new file with mode: 0644]
modules/luci-base/ucode/controller/admin/uci.uc [new file with mode: 0644]
modules/luci-base/ucode/dispatcher.uc [new file with mode: 0644]
modules/luci-base/ucode/http.uc [new file with mode: 0644]
modules/luci-base/ucode/runtime.uc [new file with mode: 0644]
modules/luci-base/ucode/sys.uc [new file with mode: 0644]
modules/luci-base/ucode/template/csrftoken.ut [new file with mode: 0644]
modules/luci-base/ucode/template/error404.ut [new file with mode: 0644]
modules/luci-base/ucode/template/error500.ut [new file with mode: 0644]
modules/luci-base/ucode/template/footer.ut [new file with mode: 0644]
modules/luci-base/ucode/template/header.ut [new file with mode: 0644]
modules/luci-base/ucode/template/sysauth.ut [new file with mode: 0644]
modules/luci-base/ucode/template/view.ut [new file with mode: 0644]
modules/luci-base/ucode/uhttpd.uc [new file with mode: 0644]
modules/luci-base/ucode/zoneinfo.uc [new file with mode: 0644]
modules/luci-compat/Makefile
modules/luci-lua-runtime/Makefile [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/cacheloader.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/ccache.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/config.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/dispatcher.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/i18n.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/i18n.luadoc [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/model/uci.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/model/uci.luadoc [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/sgi/cgi.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/sgi/uhttpd.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/store.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/sys.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/sys.luadoc [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/sys/zoneinfo.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/sys/zoneinfo/tzdata.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/sys/zoneinfo/tzoffset.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/template.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/ucodebridge.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/version.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/view/empty_node_placeholder.htm [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/view/indexer.htm [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/xml.lua [new file with mode: 0644]
modules/luci-lua-runtime/luasrc/xml.luadoc [new file with mode: 0644]
modules/luci-lua-runtime/src/Makefile [new file with mode: 0644]
modules/luci-lua-runtime/src/contrib/lemon.c [new file with mode: 0644]
modules/luci-lua-runtime/src/contrib/lempar.c [new file with mode: 0644]
modules/luci-lua-runtime/src/mkversion.sh [new file with mode: 0755]
modules/luci-lua-runtime/src/plural_formula.y [new file with mode: 0644]
modules/luci-lua-runtime/src/template_lmo.c [new file with mode: 0644]
modules/luci-lua-runtime/src/template_lmo.h [new file with mode: 0644]
modules/luci-lua-runtime/src/template_lualib.c [new file with mode: 0644]
modules/luci-lua-runtime/src/template_lualib.h [new file with mode: 0644]
modules/luci-lua-runtime/src/template_parser.c [new file with mode: 0644]
modules/luci-lua-runtime/src/template_parser.h [new file with mode: 0644]
modules/luci-lua-runtime/src/template_utils.c [new file with mode: 0644]
modules/luci-lua-runtime/src/template_utils.h [new file with mode: 0644]