mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-08-04 04:45:14 +03:00
refactor: Update luci-app-podkop package
* Removed direct package manager calls * Removed commands related to optional luci package * Update external global_check call with version pass * Removed useless external calls in version check cases * Improved build process support: version will be automatically set at installation time from package metadata and will be readable from JS as constant
This commit is contained in:
@@ -19,4 +19,12 @@ LUCI_LANGUAGES:=en ru
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
# call BuildPackage - OpenWrt buildroot signature
|
||||
define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DIR) $(1)$(HTDOCS)
|
||||
$(CP) $(PKG_BUILD_DIR)/htdocs/* $(1)$(HTDOCS)/
|
||||
$(INSTALL_DIR) $(1)/
|
||||
$(CP) $(PKG_BUILD_DIR)/root/* $(1)/
|
||||
sed -i -e 's/__COMPILED_VERSION_VARIABLE__/$(PKG_VERSION)/g' $(1)$(HTDOCS)/luci-static/resources/view/podkop/main.js || true
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
Reference in New Issue
Block a user