manman-sync: throw out luci-base to fix image size

This commit is contained in:
Maciej Krüger 2022-04-11 09:22:45 +02:00 committed by Alexander List
parent ad829ac388
commit e56fa0cea0

View File

@ -6,9 +6,19 @@ PKG_VERSION:=1
include ../gluon.mk include ../gluon.mk
define Package/gluon-manman-sync define Package/gluon-manman-sync
# luci-base shouldn't be here but httpclient depends on util depends on template.parser which is from base DEPENDS:=+gluon-core +micrond +luci-lib-ip +luci-lib-httpclient +gluon-lib-ecdsa
DEPENDS:=+gluon-core +micrond +luci-lib-ip +luci-lib-httpclient +luci-base +gluon-lib-ecdsa
TITLE:=Sync configuration with data from manman TITLE:=Sync configuration with data from manman
endef endef
define Package/gluon-manman-sync/install
$(Gluon/Build/Install)
# httpclient depends on util depends on template.parser & sys.zoneinfo which is from +luci-base
# +luci-base is quite big and unnesesarry. stubbing the files is enough to make it work.
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/template
touch $(1)/usr/lib/lua/luci/template/parser.lua
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/sys
touch $(1)/usr/lib/lua/luci/sys/zoneinfo.lua
endef
$(eval $(call BuildPackageGluon,gluon-manman-sync)) $(eval $(call BuildPackageGluon,gluon-manman-sync))