From e56fa0cea044dc193412c1a16a22dd92b1b415a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Mon, 11 Apr 2022 09:22:45 +0200 Subject: [PATCH] manman-sync: throw out luci-base to fix image size --- package/gluon-manman-sync/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package/gluon-manman-sync/Makefile b/package/gluon-manman-sync/Makefile index 7a3fda9b..cc844579 100644 --- a/package/gluon-manman-sync/Makefile +++ b/package/gluon-manman-sync/Makefile @@ -6,9 +6,19 @@ PKG_VERSION:=1 include ../gluon.mk 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 +luci-base +gluon-lib-ecdsa + DEPENDS:=+gluon-core +micrond +luci-lib-ip +luci-lib-httpclient +gluon-lib-ecdsa TITLE:=Sync configuration with data from manman 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))