build: introduce luci-base
authorJo-Philipp Wich <redacted>
Wed, 11 Jun 2014 13:29:05 +0000 (13:29 +0000)
committerJo-Philipp Wich <redacted>
Wed, 11 Jun 2014 13:29:05 +0000 (13:29 +0000)
Merges libs/core, libs/ipkg, libs/web, libs/sys, libs/sgi-cgi, libs/sgi-uhttpd,
modules/admin-core, themes/base and protcols/core into modules/base and renames
luci-lib-core to luci-base.

159 files changed:
Makefile
contrib/package/luci-addons/Makefile
contrib/package/luci/Makefile
libs/core/Makefile [deleted file]
libs/ipkg/Makefile [deleted file]
libs/sgi-cgi/Makefile [deleted file]
libs/sgi-uhttpd/Makefile [deleted file]
libs/sys/Makefile [deleted file]
modules/admin-core/Makefile [deleted file]
modules/admin-core/ipkg/postinst [deleted file]
modules/admin-core/root/etc/init.d/luci_dhcp_migrate [deleted file]
modules/admin-core/root/etc/init.d/luci_fixtime [deleted file]
modules/base/Makefile [moved from libs/web/Makefile with 100% similarity]
modules/base/htdocs/cgi-bin/luci [moved from libs/sgi-cgi/htdocs/cgi-bin/luci with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi.js [moved from libs/web/htdocs/luci-static/resources/cbi.js with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/add.gif [moved from libs/web/htdocs/luci-static/resources/cbi/add.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/apply.gif [moved from libs/web/htdocs/luci-static/resources/cbi/apply.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/arrow.gif [moved from libs/web/htdocs/luci-static/resources/cbi/arrow.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/down.gif [moved from libs/web/htdocs/luci-static/resources/cbi/down.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/download.gif [moved from libs/web/htdocs/luci-static/resources/cbi/download.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/edit.gif [moved from libs/web/htdocs/luci-static/resources/cbi/edit.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/fieldadd.gif [moved from libs/web/htdocs/luci-static/resources/cbi/fieldadd.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/file.gif [moved from libs/web/htdocs/luci-static/resources/cbi/file.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/find.gif [moved from libs/web/htdocs/luci-static/resources/cbi/find.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/folder.gif [moved from libs/web/htdocs/luci-static/resources/cbi/folder.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/help.gif [moved from libs/web/htdocs/luci-static/resources/cbi/help.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/key.gif [moved from libs/web/htdocs/luci-static/resources/cbi/key.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/link.gif [moved from libs/web/htdocs/luci-static/resources/cbi/link.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/reload.gif [moved from libs/web/htdocs/luci-static/resources/cbi/reload.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/remove.gif [moved from libs/web/htdocs/luci-static/resources/cbi/remove.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/reset.gif [moved from libs/web/htdocs/luci-static/resources/cbi/reset.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/save.gif [moved from libs/web/htdocs/luci-static/resources/cbi/save.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/up.gif [moved from libs/web/htdocs/luci-static/resources/cbi/up.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/cbi/user.gif [moved from libs/web/htdocs/luci-static/resources/cbi/user.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/bridge.png [moved from themes/base/htdocs/luci-static/resources/icons/bridge.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/bridge_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/bridge_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/encryption.png [moved from themes/base/htdocs/luci-static/resources/icons/encryption.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/encryption_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/encryption_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/ethernet.png [moved from themes/base/htdocs/luci-static/resources/icons/ethernet.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/ethernet_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/ethernet_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/loading.gif [moved from themes/base/htdocs/luci-static/resources/icons/loading.gif with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/port_down.png [moved from themes/base/htdocs/luci-static/resources/icons/port_down.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/port_up.png [moved from themes/base/htdocs/luci-static/resources/icons/port_up.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/signal-0-25.png [moved from themes/base/htdocs/luci-static/resources/icons/signal-0-25.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/signal-0.png [moved from themes/base/htdocs/luci-static/resources/icons/signal-0.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/signal-25-50.png [moved from themes/base/htdocs/luci-static/resources/icons/signal-25-50.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/signal-50-75.png [moved from themes/base/htdocs/luci-static/resources/icons/signal-50-75.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/signal-75-100.png [moved from themes/base/htdocs/luci-static/resources/icons/signal-75-100.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/signal-none.png [moved from themes/base/htdocs/luci-static/resources/icons/signal-none.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/switch.png [moved from themes/base/htdocs/luci-static/resources/icons/switch.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/switch_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/switch_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/tunnel.png [moved from themes/base/htdocs/luci-static/resources/icons/tunnel.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/tunnel_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/tunnel_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/vlan.png [moved from themes/base/htdocs/luci-static/resources/icons/vlan.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/vlan_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/vlan_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/wifi.png [moved from themes/base/htdocs/luci-static/resources/icons/wifi.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/wifi_big.png [moved from themes/base/htdocs/luci-static/resources/icons/wifi_big.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/wifi_big_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/wifi_big_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/icons/wifi_disabled.png [moved from themes/base/htdocs/luci-static/resources/icons/wifi_disabled.png with 100% similarity]
modules/base/htdocs/luci-static/resources/xhr.js [moved from themes/base/htdocs/luci-static/resources/xhr.js with 100% similarity]
modules/base/luasrc/ccache.lua [moved from libs/core/luasrc/ccache.lua with 100% similarity]
modules/base/luasrc/controller/admin/servicectl.lua [moved from modules/admin-core/luasrc/controller/admin/servicectl.lua with 100% similarity]
modules/base/luasrc/debug.lua [moved from libs/core/luasrc/debug.lua with 100% similarity]
modules/base/luasrc/fs.lua [moved from libs/core/luasrc/fs.lua with 100% similarity]
modules/base/luasrc/init.lua [moved from libs/core/luasrc/init.lua with 100% similarity]
modules/base/luasrc/ip.lua [moved from libs/core/luasrc/ip.lua with 100% similarity]
modules/base/luasrc/ltn12.lua [moved from libs/core/luasrc/ltn12.lua with 100% similarity]
modules/base/luasrc/luasrc/cacheloader.lua [moved from libs/web/luasrc/cacheloader.lua with 100% similarity]
modules/base/luasrc/luasrc/cbi.lua [moved from libs/web/luasrc/cbi.lua with 100% similarity]
modules/base/luasrc/luasrc/cbi/datatypes.lua [moved from libs/web/luasrc/cbi/datatypes.lua with 100% similarity]
modules/base/luasrc/luasrc/config.lua [moved from libs/web/luasrc/config.lua with 100% similarity]
modules/base/luasrc/luasrc/dispatcher.lua [moved from libs/web/luasrc/dispatcher.lua with 100% similarity]
modules/base/luasrc/luasrc/http.lua [moved from libs/web/luasrc/http.lua with 100% similarity]
modules/base/luasrc/luasrc/http/protocol.lua [moved from libs/web/luasrc/http/protocol.lua with 100% similarity]
modules/base/luasrc/luasrc/http/protocol/conditionals.lua [moved from libs/web/luasrc/http/protocol/conditionals.lua with 100% similarity]
modules/base/luasrc/luasrc/http/protocol/date.lua [moved from libs/web/luasrc/http/protocol/date.lua with 100% similarity]
modules/base/luasrc/luasrc/http/protocol/mime.lua [moved from libs/web/luasrc/http/protocol/mime.lua with 100% similarity]
modules/base/luasrc/luasrc/i18n.lua [moved from libs/web/luasrc/i18n.lua with 100% similarity]
modules/base/luasrc/luasrc/sauth.lua [moved from libs/web/luasrc/sauth.lua with 100% similarity]
modules/base/luasrc/luasrc/template.lua [moved from libs/web/luasrc/template.lua with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/apply_xhr.htm [moved from libs/web/luasrc/view/cbi/apply_xhr.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/browser.htm [moved from libs/web/luasrc/view/cbi/browser.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/button.htm [moved from libs/web/luasrc/view/cbi/button.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/cell_valuefooter.htm [moved from libs/web/luasrc/view/cbi/cell_valuefooter.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/cell_valueheader.htm [moved from libs/web/luasrc/view/cbi/cell_valueheader.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/compound.htm [moved from libs/web/luasrc/view/cbi/compound.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/delegator.htm [moved from libs/web/luasrc/view/cbi/delegator.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/dvalue.htm [moved from libs/web/luasrc/view/cbi/dvalue.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/dynlist.htm [moved from libs/web/luasrc/view/cbi/dynlist.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/filebrowser.htm [moved from libs/web/luasrc/view/cbi/filebrowser.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/firewall_zoneforwards.htm [moved from libs/web/luasrc/view/cbi/firewall_zoneforwards.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/firewall_zonelist.htm [moved from libs/web/luasrc/view/cbi/firewall_zonelist.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/footer.htm [moved from libs/web/luasrc/view/cbi/footer.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/full_valuefooter.htm [moved from libs/web/luasrc/view/cbi/full_valuefooter.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/full_valueheader.htm [moved from libs/web/luasrc/view/cbi/full_valueheader.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/fvalue.htm [moved from libs/web/luasrc/view/cbi/fvalue.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/header.htm [moved from libs/web/luasrc/view/cbi/header.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/lvalue.htm [moved from libs/web/luasrc/view/cbi/lvalue.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/map.htm [moved from libs/web/luasrc/view/cbi/map.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/mvalue.htm [moved from libs/web/luasrc/view/cbi/mvalue.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/network_ifacelist.htm [moved from libs/web/luasrc/view/cbi/network_ifacelist.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/network_netinfo.htm [moved from libs/web/luasrc/view/cbi/network_netinfo.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/network_netlist.htm [moved from libs/web/luasrc/view/cbi/network_netlist.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/nsection.htm [moved from libs/web/luasrc/view/cbi/nsection.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/nullsection.htm [moved from libs/web/luasrc/view/cbi/nullsection.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/simpleform.htm [moved from libs/web/luasrc/view/cbi/simpleform.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/tabcontainer.htm [moved from libs/web/luasrc/view/cbi/tabcontainer.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/tabmenu.htm [moved from libs/web/luasrc/view/cbi/tabmenu.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/tblsection.htm [moved from libs/web/luasrc/view/cbi/tblsection.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/tsection.htm [moved from libs/web/luasrc/view/cbi/tsection.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/tvalue.htm [moved from libs/web/luasrc/view/cbi/tvalue.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/ucisection.htm [moved from libs/web/luasrc/view/cbi/ucisection.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/upload.htm [moved from libs/web/luasrc/view/cbi/upload.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/value.htm [moved from libs/web/luasrc/view/cbi/value.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/valuefooter.htm [moved from libs/web/luasrc/view/cbi/valuefooter.htm with 100% similarity]
modules/base/luasrc/luasrc/view/cbi/valueheader.htm [moved from libs/web/luasrc/view/cbi/valueheader.htm with 100% similarity]
modules/base/luasrc/model/cbi/admin_network/proto_dhcp.lua [moved from protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua with 100% similarity]
modules/base/luasrc/model/cbi/admin_network/proto_none.lua [moved from protocols/core/luasrc/model/cbi/admin_network/proto_none.lua with 100% similarity]
modules/base/luasrc/model/cbi/admin_network/proto_static.lua [moved from protocols/core/luasrc/model/cbi/admin_network/proto_static.lua with 100% similarity]
modules/base/luasrc/model/firewall.lua [moved from libs/core/luasrc/model/firewall.lua with 100% similarity]
modules/base/luasrc/model/ipkg.lua [moved from libs/ipkg/luasrc/model/ipkg.lua with 100% similarity]
modules/base/luasrc/model/network.lua [moved from libs/core/luasrc/model/network.lua with 100% similarity]
modules/base/luasrc/model/uci.lua [moved from libs/core/luasrc/model/uci.lua with 100% similarity]
modules/base/luasrc/sgi/cgi.lua [moved from libs/sgi-cgi/luasrc/sgi/cgi.lua with 100% similarity]
modules/base/luasrc/sgi/uhttpd.lua [moved from libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua with 100% similarity]
modules/base/luasrc/store.lua [moved from libs/core/luasrc/store.lua with 100% similarity]
modules/base/luasrc/sys.lua [moved from libs/sys/luasrc/sys.lua with 100% similarity]
modules/base/luasrc/sys/iptparser.lua [moved from libs/sys/luasrc/sys/iptparser.lua with 100% similarity]
modules/base/luasrc/sys/zoneinfo.lua [moved from libs/sys/luasrc/sys/zoneinfo.lua with 100% similarity]
modules/base/luasrc/sys/zoneinfo/tzdata.lua [moved from libs/sys/luasrc/sys/zoneinfo/tzdata.lua with 100% similarity]
modules/base/luasrc/sys/zoneinfo/tzoffset.lua [moved from libs/sys/luasrc/sys/zoneinfo/tzoffset.lua with 100% similarity]
modules/base/luasrc/tools/proto.lua [moved from protocols/core/luasrc/tools/proto.lua with 100% similarity]
modules/base/luasrc/tools/status.lua [moved from modules/admin-core/luasrc/tools/status.lua with 100% similarity]
modules/base/luasrc/tools/webadmin.lua [moved from modules/admin-core/luasrc/tools/webadmin.lua with 100% similarity]
modules/base/luasrc/util.lua [moved from libs/core/luasrc/util.lua with 100% similarity]
modules/base/luasrc/version.lua [moved from libs/core/luasrc/version.lua with 100% similarity]
modules/base/luasrc/view/error404.htm [moved from modules/admin-core/luasrc/view/error404.htm with 100% similarity]
modules/base/luasrc/view/error500.htm [moved from modules/admin-core/luasrc/view/error500.htm with 100% similarity]
modules/base/luasrc/view/footer.htm [moved from modules/admin-core/luasrc/view/footer.htm with 100% similarity]
modules/base/luasrc/view/header.htm [moved from modules/admin-core/luasrc/view/header.htm with 100% similarity]
modules/base/luasrc/view/indexer.htm [moved from modules/admin-core/luasrc/view/indexer.htm with 100% similarity]
modules/base/luasrc/view/sysauth.htm [moved from modules/admin-core/luasrc/view/sysauth.htm with 100% similarity]
modules/base/root/etc/config/ucitrack [moved from libs/core/root/etc/config/ucitrack with 100% similarity]
modules/base/root/root/etc/config/luci [moved from libs/web/root/etc/config/luci with 100% similarity]
modules/base/root/root/lib/uci/upload/.gitignore [moved from libs/web/root/lib/uci/upload/.gitignore with 100% similarity]
modules/base/root/sbin/luci-reload [moved from libs/core/root/sbin/luci-reload with 100% similarity]
modules/base/root/www/index.html [moved from modules/admin-core/root/www/index.html with 100% similarity]
modules/base/src/po2lmo.c [moved from libs/web/src/po2lmo.c with 100% similarity]
modules/base/src/template_lmo.c [moved from libs/web/src/template_lmo.c with 100% similarity]
modules/base/src/template_lmo.h [moved from libs/web/src/template_lmo.h with 100% similarity]
modules/base/src/template_lualib.c [moved from libs/web/src/template_lualib.c with 100% similarity]
modules/base/src/template_lualib.h [moved from libs/web/src/template_lualib.h with 100% similarity]
modules/base/src/template_parser.c [moved from libs/web/src/template_parser.c with 100% similarity]
modules/base/src/template_parser.h [moved from libs/web/src/template_parser.h with 100% similarity]
modules/base/src/template_utils.c [moved from libs/web/src/template_utils.c with 100% similarity]
modules/base/src/template_utils.h [moved from libs/web/src/template_utils.h with 100% similarity]
modules/base/standalone.mk [moved from libs/web/standalone.mk with 100% similarity]
protocols/core/Makefile [deleted file]
themes/base/Makefile [deleted file]

index b99e8f710d76aefd7dc4f0279f0ead4f49da7f8d..70a7e92a40df5c00db63ae4c9bf1f3ff4a234971 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ all: build
 build: gccbuild luabuild
 
 gccbuild:
-       make -C libs/web CC="cc" CFLAGS="" LDFLAGS="" SDK="$(shell test -f .running-sdk && echo 1)" host-install
+       make -C modules/base CC="cc" CFLAGS="" LDFLAGS="" SDK="$(shell test -f .running-sdk && echo 1)" host-install
        for i in $(MODULES); do \
                make -C$$i SDK="$(shell test -f .running-sdk && echo 1)" compile || { \
                        echo "*** Compilation of $$i failed!"; \
@@ -33,7 +33,7 @@ i18nbuild:
 clean:
        rm -f .running-sdk
        rm -rf docs
-       make -C libs/web host-clean
+       make -C modules/base host-clean
        for i in $(MODULES); do make -C$$i clean; done
 
 
index c223054a23e7d07dc9d05fe0ca2560e389eecd80..6a51a6adf79ac31ff46f2a78b72cbb1630178a12 100644 (file)
@@ -49,7 +49,7 @@ define Package/luci-mod-freifunk-community
   TITLE:=Freifunk Community Meta-Package
   DEPENDS+=$(call add_deps,mod-freifunk-community, \
     iptables-mod-nat-extra iptables-mod-ipopt \
-       luci-lib-web luci-app-splash luci-i18n-german \
+       luci-app-splash luci-i18n-german \
        olsrd olsrd-mod-dyn-gw-plain \
        olsrd-mod-jsoninfo olsrd-mod-nameservice \
        olsrd-mod-watchdog kmod-tun \
@@ -224,8 +224,7 @@ define theme
     SUBMENU:=4. Themes
     TITLE:=$(if $(2),$(2),LuCI $(1) theme)
        MAINTAINER:=$(if $(3),$(3),LuCI Development Team <luci@lists.subsignal.org>)
-       DEPENDS:=$(if $(filter-out base,$(1)),+luci-theme-base) $(4)
-       $(if $(5),DEFAULT:=PACKAGE_luci-lib-core)
+       DEPENDS:=+luci-base $(4)
   endef
 
   define Package/luci-theme-$(1)/install
index 8bb35319bf247630ad02a489c8846ecc44797cc5..b875f0d70651f42f4d96c14876556a06286b7452 100644 (file)
@@ -32,7 +32,7 @@ endef
 
 
 ### Core package ###
-define Package/luci-lib-core
+define Package/luci-base
   SECTION:=luci
   CATEGORY:=LuCI
   TITLE:=LuCI - Lua Configuration Interface
@@ -43,8 +43,8 @@ define Package/luci-lib-core
   TITLE:=LuCI core libraries
 endef
 
-define Package/luci-lib-core/install
-       $(call Package/luci/install/template,$(1),libs/core)
+define Package/luci-base/install
+       $(call Package/luci/install/template,$(1),modules/base)
        $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
                "OpenWrt Firmware" \
                "$(OPENWRTVERSION)" \
@@ -52,43 +52,47 @@ define Package/luci-lib-core/install
                "$(PKG_VERSION)"
 endef
 
-define Package/luci-lib-core/config
+define Package/luci-base/config
        choice
                prompt "Build Target"
-               default PACKAGE_luci-lib-core_source
+               default PACKAGE_luci-base_source
 
-       config PACKAGE_luci-lib-core_compile
+       config PACKAGE_luci-base_compile
                bool "Precompiled"
 
-       config PACKAGE_luci-lib-core_stripped
+       config PACKAGE_luci-base_stripped
                bool "Stripped"
 
-       config PACKAGE_luci-lib-core_srcdiet
+       config PACKAGE_luci-base_srcdiet
                bool "Compressed Source"
 
-       config PACKAGE_luci-lib-core_source
+       config PACKAGE_luci-base_source
                bool "Full Source"
 
        endchoice
 endef
 
-ifneq ($(CONFIG_PACKAGE_luci-lib-core_compile),)
+define Package/luci-base/conffiles
+/etc/config/luci
+endef
+
+ifneq ($(CONFIG_PACKAGE_luci-base_compile),)
   LUA_TARGET:=compile
 endif
 
-ifneq ($(CONFIG_PACKAGE_luci-lib-core_stripped),)
+ifneq ($(CONFIG_PACKAGE_luci-base_stripped),)
   LUA_TARGET:=strip
 endif
 
-ifneq ($(CONFIG_PACKAGE_luci-lib-core_srcdiet),)
+ifneq ($(CONFIG_PACKAGE_luci-base_srcdiet),)
   LUA_TARGET:=diet
 endif
 
-ifneq ($(CONFIG_PACKAGE_luci-lib-core),)
-  LUCI_SELECTED_MODULES+=libs/core
+ifneq ($(CONFIG_PACKAGE_luci-base),)
+  LUCI_SELECTED_MODULES+=modules/base
 endif
 
-LUCI_BUILD_PACKAGES += luci-lib-core
+LUCI_BUILD_PACKAGES += luci-base
 
 
 ### Libraries ###
@@ -101,7 +105,7 @@ define library
     MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
     SUBMENU:=8. Libraries
     TITLE:=$(if $(2),$(2),LuCI $(1) library)
-    $(if $(3),DEPENDS:=+luci-lib-core $(3))
+    $(if $(3),DEPENDS:=+luci-base $(3))
   endef
 
   define Package/luci-lib-$(1)/install
@@ -116,10 +120,6 @@ define library
   LUCI_BUILD_PACKAGES += luci-lib-$(1)
 endef
 
-define Package/luci-lib-web/conffiles
-/etc/config/luci
-endef
-
 define Package/luci-lib-nixio/config
        choice
                prompt "TLS Provider"
@@ -158,14 +158,11 @@ ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl),)
 endif
 
 
-$(eval $(call library,httpclient,HTTP(S) client library,+luci-lib-web +luci-lib-nixio))
-$(eval $(call library,ipkg,LuCI IPKG/OPKG call abstraction library))
+$(eval $(call library,httpclient,HTTP(S) client library,+luci-base +luci-lib-nixio))
 $(eval $(call library,json,LuCI JSON library))
 $(eval $(call library,nixio,NIXIO POSIX library,+PACKAGE_luci-lib-nixio_openssl:libopenssl +PACKAGE_luci-lib-nixio_cyassl:libcyassl))
 $(eval $(call library,px5g,RSA/X.509 Key Generator (required for LuCId SSL support),+luci-lib-nixio))
-$(eval $(call library,sys,LuCI Linux/POSIX system library))
-$(eval $(call library,web,MVC Webframework,+luci-lib-sys +luci-lib-nixio +luci-lib-core +luci-sgi-cgi))
-$(eval $(call library,luaneightbl,neightbl - Lua lib for IPv6 neighbors,+luci-lib-core))
+$(eval $(call library,luaneightbl,neightbl - Lua lib for IPv6 neighbors,+luci-base))
 
 
 ### Protocols ###
@@ -192,7 +189,6 @@ define protocol
   LUCI_BUILD_PACKAGES += luci-proto-$(1)
 endef
 
-$(eval $(call protocol,core,Support for static/dhcp/none))
 $(eval $(call protocol,ppp,Support for PPP/PPPoE/PPPoA/PPtP))
 $(eval $(call protocol,ipv6,Support for DHCPv6/6in4/6to4/6rd/DS-Lite))
 $(eval $(call protocol,3g,Support for 3G,+PACKAGE_luci-proto-3g:comgt))
@@ -225,14 +221,9 @@ define module
 endef
 
 
-define Package/luci-mod-admin-core/extra-install
-       touch $(1)/etc/init.d/luci_fixtime || true
-endef
-
-$(eval $(call module,admin-core,Web UI Core module,+luci-lib-web +luci-proto-core +luci-i18n-english))
-$(eval $(call module,admin-mini,LuCI Essentials - stripped down and user-friendly,+luci-mod-admin-core @BROKEN))
-$(eval $(call module,admin-full,LuCI Administration - full-featured for full control,+luci-mod-admin-core +luci-lib-ipkg))
-$(eval $(call module,failsafe,LuCI Fail-Safe - Fail-Safe sysupgrade module,+luci-mod-admin-core))
+$(eval $(call module,admin-mini,LuCI Essentials - stripped down and user-friendly,+luci-base @BROKEN))
+$(eval $(call module,admin-full,LuCI Administration - full-featured for full control,+luci-base))
+$(eval $(call module,failsafe,LuCI Fail-Safe - Fail-Safe sysupgrade module,+luci-base))
 $(eval $(call module,rpc,LuCI RPC - JSON-RPC API,+luci-lib-json))
 
 
@@ -270,34 +261,6 @@ $(eval $(call application,qos,Quality of Service configuration module,\
 $(eval $(call application,commands,LuCI Shell Command Module))
 
 
-### Server Gateway Interfaces ###
-define sgi
-  define Package/luci-sgi-$(1)
-    SECTION:=luci
-    CATEGORY:=LuCI
-    TITLE:=LuCI - Lua Configuration Interface
-    URL:=http://luci.subsignal.org/
-    MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
-    SUBMENU:=7. Server Interfaces
-    TITLE:=$(if $(2),$(2),LuCI $(1) server gateway interface)
-       DEPENDS:=$(3)
-  endef
-
-  define Package/luci-sgi-$(1)/install
-       $(call Package/luci/install/template,$$(1),libs/sgi-$(1))
-  endef
-
-  ifneq ($(CONFIG_PACKAGE_luci-sgi-$(1)),)
-    LUCI_SELECTED_MODULES+=libs/sgi-$(1)
-  endif
-
-  LUCI_BUILD_PACKAGES += luci-sgi-$(1)
-endef
-
-$(eval $(call sgi,cgi,CGI Gateway behind existing Webserver))
-$(eval $(call sgi,uhttpd,Binding for the uHTTPd server,+uhttpd +uhttpd-mod-lua))
-
-
 ### Themes ###
 define theme
   define Package/luci-theme-$(1)
@@ -308,8 +271,8 @@ define theme
     SUBMENU:=4. Themes
     TITLE:=$(if $(2),$(2),LuCI $(1) theme)
        MAINTAINER:=$(if $(3),$(3),LuCI Development Team <luci@lists.subsignal.org>)
-       DEPENDS:=$(if $(filter-out base,$(1)),+luci-theme-base) $(4)
-       $(if $(5),DEFAULT:=PACKAGE_luci-lib-core)
+       DEPENDS:=+luci-base $(4)
+       $(if $(5),DEFAULT:=PACKAGE_luci-base)
   endef
 
   define Package/luci-theme-$(1)/install
@@ -323,7 +286,6 @@ define theme
   LUCI_BUILD_PACKAGES += luci-theme-$(1)
 endef
 
-$(eval $(call theme,base,Common base for all themes))
 $(eval $(call theme,openwrt,OpenWrt.org))
 $(eval $(call theme,bootstrap,Bootstrap Theme (default),,,1))
 
@@ -397,7 +359,7 @@ $(eval $(call collection,,\
        Standard OpenWrt set including full admin with ppp support and the \
        default OpenWrt theme,\
        +uhttpd +uhttpd-mod-ubus +luci-mod-admin-full +luci-theme-bootstrap \
-       +luci-app-firewall +luci-proto-core +luci-proto-ppp +libiwinfo-lua))
+       +luci-app-firewall +luci-proto-ppp +libiwinfo-lua))
 
 $(eval $(call collection,ssl,\
        Standard OpenWrt set with HTTPS support,\
diff --git a/libs/core/Makefile b/libs/core/Makefile
deleted file mode 100644 (file)
index f7fac77..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/libs/ipkg/Makefile b/libs/ipkg/Makefile
deleted file mode 100644 (file)
index f7fac77..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/libs/sgi-cgi/Makefile b/libs/sgi-cgi/Makefile
deleted file mode 100644 (file)
index 81a96f6..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
\ No newline at end of file
diff --git a/libs/sgi-uhttpd/Makefile b/libs/sgi-uhttpd/Makefile
deleted file mode 100644 (file)
index 81a96f6..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
\ No newline at end of file
diff --git a/libs/sys/Makefile b/libs/sys/Makefile
deleted file mode 100644 (file)
index f7fac77..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/modules/admin-core/Makefile b/modules/admin-core/Makefile
deleted file mode 100644 (file)
index 81a96f6..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
\ No newline at end of file
diff --git a/modules/admin-core/ipkg/postinst b/modules/admin-core/ipkg/postinst
deleted file mode 100755 (executable)
index a756b5b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-[ -n "${IPKG_INSTROOT}" ] || {
-       /etc/init.d/luci_fixtime enabled || /etc/init.d/luci_fixtime enable
-       /etc/init.d/luci_dhcp_migrate enabled || /etc/init.d/luci_dhcp_migrate enable
-       exit 0
-}
diff --git a/modules/admin-core/root/etc/init.d/luci_dhcp_migrate b/modules/admin-core/root/etc/init.d/luci_dhcp_migrate
deleted file mode 100755 (executable)
index 7fb4435..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-START=59
-
-boot() {
-       if [ -f /etc/config/luci_ethers ]; then
-               logger -t luci_dhcp_migrate "Migrating luci_ethers configuration ..."
-
-               lua -lluci.model.uci -e '
-                       x=luci.model.uci.cursor()
-                       x:foreach("luci_ethers", "static_lease",
-                       function(s)
-                               x:section("dhcp", "host", nil, {mac=s.macaddr, ip=s.ipaddr})
-                       end)
-                       x:save("dhcp")
-                       x:commit("dhcp")
-               '
-
-               rm -f /etc/config/luci_ethers
-       fi
-
-       if [ -f /etc/config/luci_hosts ]; then
-               logger -t luci_dhcp_migrate "Migrating luci_hosts configuration ..."
-
-               lua -lluci.model.uci -e '
-                       x=luci.model.uci.cursor()
-                       x:foreach("luci_hosts", "host",
-                       function(s)
-                               x:section("dhcp", "domain", nil, {name=s.hostname, ip=s.ipaddr})
-                       end)
-                       x:save("dhcp")
-                       x:commit("dhcp")
-               '
-
-               rm -f /etc/config/luci_hosts
-       fi
-}
-
-start() { :; }
-stop() { :; }
-
diff --git a/modules/admin-core/root/etc/init.d/luci_fixtime b/modules/admin-core/root/etc/init.d/luci_fixtime
deleted file mode 100755 (executable)
index 154a786..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh /etc/rc.common
-
-START=05
-STOP=95
-
-start() {
-       cat <<' EOF' | lua -l luci.fs -l luci.util -
-               if (os.time() < 1000000000) then
-                       os.execute('date -s ' .. os.date('%Y%m%d%H%M', luci.fs.mtime("/etc/init.d/luci_fixtime")))
-               end
-       EOF
-}
-
-stop() {
-       [[ -w /etc/init.d/luci_fixtime ]] && cat /dev/null >> /etc/init.d/luci_fixtime && touch /etc/init.d/luci_fixtime
-}
similarity index 100%
rename from libs/web/Makefile
rename to modules/base/Makefile
diff --git a/protocols/core/Makefile b/protocols/core/Makefile
deleted file mode 100644 (file)
index f7fac77..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
diff --git a/themes/base/Makefile b/themes/base/Makefile
deleted file mode 100644 (file)
index 81a96f6..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk
\ No newline at end of file
git clone https://git.99rst.org/PROJECT