From 5dcbbe93dc8e1915e237c6efa07dba54c94d00b1 Mon Sep 17 00:00:00 2001 From: Tata Date: Thu, 29 Jun 2017 11:59:22 +0200 Subject: [PATCH] gluon-node-info: use GluonSrcDiet (#1168) --- package/gluon-node-info/Makefile | 7 ++++++- .../lib/gluon/upgrade/500-node-info-system | 0 .../{files => luasrc}/lib/gluon/upgrade/510-node-info-role | 0 .../lib/gluon/upgrade/520-node-info-whitespace-fix | 0 4 files changed, 6 insertions(+), 1 deletion(-) rename package/gluon-node-info/{files => luasrc}/lib/gluon/upgrade/500-node-info-system (100%) rename package/gluon-node-info/{files => luasrc}/lib/gluon/upgrade/510-node-info-role (100%) rename package/gluon-node-info/{files => luasrc}/lib/gluon/upgrade/520-node-info-whitespace-fix (100%) diff --git a/package/gluon-node-info/Makefile b/package/gluon-node-info/Makefile index 59f60dfd..67856579 100644 --- a/package/gluon-node-info/Makefile +++ b/package/gluon-node-info/Makefile @@ -22,9 +22,14 @@ define Build/Prepare $(CP) ./src/* $(PKG_BUILD_DIR)/ endef +define Build/Compile + $(call Build/Compile/Default) + $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/) +endef + define Package/gluon-node-info/install $(CP) ./files/* $(1)/ - + $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/ $(INSTALL_DIR) $(1)/lib/gluon/respondd $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/node-info.so endef diff --git a/package/gluon-node-info/files/lib/gluon/upgrade/500-node-info-system b/package/gluon-node-info/luasrc/lib/gluon/upgrade/500-node-info-system similarity index 100% rename from package/gluon-node-info/files/lib/gluon/upgrade/500-node-info-system rename to package/gluon-node-info/luasrc/lib/gluon/upgrade/500-node-info-system diff --git a/package/gluon-node-info/files/lib/gluon/upgrade/510-node-info-role b/package/gluon-node-info/luasrc/lib/gluon/upgrade/510-node-info-role similarity index 100% rename from package/gluon-node-info/files/lib/gluon/upgrade/510-node-info-role rename to package/gluon-node-info/luasrc/lib/gluon/upgrade/510-node-info-role diff --git a/package/gluon-node-info/files/lib/gluon/upgrade/520-node-info-whitespace-fix b/package/gluon-node-info/luasrc/lib/gluon/upgrade/520-node-info-whitespace-fix similarity index 100% rename from package/gluon-node-info/files/lib/gluon/upgrade/520-node-info-whitespace-fix rename to package/gluon-node-info/luasrc/lib/gluon/upgrade/520-node-info-whitespace-fix