luci-base: move some generic classes into a separate luci-base-libs package
authorSven Roederer <redacted>
Mon, 1 Jul 2019 19:52:07 +0000 (21:52 +0200)
committerJo-Philipp Wich <redacted>
Sun, 19 Jul 2020 18:14:22 +0000 (20:14 +0200)
The new package luci-base-libs provides the modules that not strictly relate
to the web-interface of luci. By separating these libs they can be used by
other packages without having to install the web-components.
This change was inspired by providing a shell-only interface for 4MB-flash
devices, by keeping as much code common with a full install.

Signed-off-by: Sven Roederer <redacted>
libs/luci-lib-base/Makefile [new file with mode: 0644]
libs/luci-lib-base/luasrc/debug.lua [moved from modules/luci-base/luasrc/debug.lua with 100% similarity]
libs/luci-lib-base/luasrc/http.lua [moved from modules/luci-base/luasrc/http.lua with 100% similarity]
libs/luci-lib-base/luasrc/http.luadoc [moved from modules/luci-base/luasrc/http.luadoc with 100% similarity]
libs/luci-lib-base/luasrc/ltn12.lua [moved from modules/luci-base/luasrc/ltn12.lua with 100% similarity]
libs/luci-lib-base/luasrc/util.lua [moved from modules/luci-base/luasrc/util.lua with 100% similarity]
libs/luci-lib-base/luasrc/util.luadoc [moved from modules/luci-base/luasrc/util.luadoc with 100% similarity]
libs/luci-lib-httpclient/Makefile
libs/luci-lib-httpprotoutils/Makefile

diff --git a/libs/luci-lib-base/Makefile b/libs/luci-lib-base/Makefile
new file mode 100644 (file)
index 0000000..35b1836
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# Copyright (C) 2008-2014 The LuCI Team <luci@lists.subsignal.org>
+#
+# This is free software, licensed under the Apache License, Version 2.0 .
+#
+
+include $(TOPDIR)/rules.mk
+
+LUCI_TITLE:=basic libraries for luci
+LUCI_DEPENDS:=+lua +luci-lib-nixio +luci-lib-ip +luci-lib-jsonc +liblucihttp-lua
+
+include ../../luci.mk
+
+# call BuildPackage - OpenWrt buildroot signature
index b8bd428b2838ef9a8cede83dc227ff0538a362b2..9c28c35d810593385ba10cb5208007d13f40e4ec 100644 (file)
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 
 LUCI_TITLE:=HTTP(S) client library
-LUCI_DEPENDS:=+luci-base +luci-lib-nixio +luci-lib-httpprotoutils
+LUCI_DEPENDS:=+luci-lib-base +luci-lib-nixio +luci-lib-httpprotoutils
 
 include ../../luci.mk
 
index 851a362eb70465420a6a173fb9eea88ccfe07fe4..95f45d200275945ca08c1e5c5b7f37482c6a7f73 100644 (file)
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 
 LUCI_TITLE:=HTTP protocol utility functions
-LUCI_DEPENDS:=+luci-base
+LUCI_DEPENDS:=+luci-lib-base
 
 include ../../luci.mk
 
git clone https://git.99rst.org/PROJECT