2019-11-08 22:57:22 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=autocore
|
|
|
|
PKG_VERSION:=1
|
2020-04-11 21:35:24 +08:00
|
|
|
PKG_RELEASE:=27
|
2019-11-08 22:57:22 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/autocore
|
|
|
|
TITLE:=x86/x64 auto core loadbalance script.
|
2020-04-11 21:35:24 +08:00
|
|
|
MAINTAINER:=Lean / [CTCGFW] Project OpenWrt
|
|
|
|
DEPENDS:=@TARGET_x86 +bc +lm-sensors +ethtool
|
2019-11-08 22:57:22 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/autocore/description
|
|
|
|
A usb autoconfig hotplug script.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/autocore/install
|
2020-03-16 05:02:00 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_BIN) ./files/rpcd_luci $(1)/etc/rpcd_luci
|
2020-04-11 21:35:24 +08:00
|
|
|
$(INSTALL_DATA) ./files/rpcd_luci-mod-status.json $(1)/etc/rpcd_luci-mod-status.json
|
2020-03-16 05:02:00 +08:00
|
|
|
$(INSTALL_DATA) ./files/rpcd_10_system.js $(1)/etc/rpcd_10_system.js
|
2019-11-08 22:57:22 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/autocore $(1)/etc/init.d/autocore
|
2020-02-01 02:30:25 +08:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2020-03-16 05:02:00 +08:00
|
|
|
$(INSTALL_BIN) ./files/cpuinfo $(1)/sbin/cpuinfo
|
|
|
|
$(INSTALL_BIN) ./files/ethinfo $(1)/sbin/ethinfo
|
|
|
|
$(INSTALL_DIR) $(1)/www/luci-static/resources/view/status/include
|
|
|
|
$(INSTALL_DATA) ./files/rpcd_21_ethinfo.js $(1)/www/luci-static/resources/view/status/include/21_ethinfo.js
|
2019-11-08 22:57:22 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,autocore))
|