diff --git a/package/gluon-luci-theme/Makefile b/package/gluon-luci-theme/Makefile index 2348e979..72c92edd 100644 --- a/package/gluon-luci-theme/Makefile +++ b/package/gluon-luci-theme/Makefile @@ -9,7 +9,7 @@ PKG_RELEASE:=1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) -include $(INCLUDE_DIR)/package.mk +include $(GLUONDIR)/include/package.mk define Package/gluon-luci-theme @@ -31,10 +31,12 @@ define Build/Configure endef define Build/Compile + $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/) endef define Package/gluon-luci-theme/install $(CP) ./files/* $(1)/ + $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/ endef $(eval $(call BuildPackage,gluon-luci-theme)) diff --git a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm index 2fe1004b..68d114b5 100644 --- a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm +++ b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm @@ -17,6 +17,7 @@ $Id$ local http = require "luci.http" local disp = require "luci.dispatcher" local fs = require "nixio.fs" + local gluon_luci = require "gluon.luci" local hostname = sys.hostname() local release = fs.readfile("/lib/gluon/release") @@ -110,15 +111,15 @@ $Id$ <% end -%> -