mirror of
https://github.com/sirpdboy/sirpdboy-package.git
synced 2025-01-09 04:17:45 +08:00
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Copyright (C) 2019 Openwrt.org
|
|
#
|
|
# This is free software, licensed under the Apache License, Version 2.0 .
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luci-app-cpulimit
|
|
PKG_VERSION=1.0
|
|
PKG_RELEASE:=2
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
SECTION:=luci
|
|
CATEGORY:=LuCI
|
|
SUBMENU:=3. Applications
|
|
DEPENDS:=+cpulimit
|
|
TITLE:=LuCI support for cpulimit
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/postinst
|
|
#!/bin/sh
|
|
rm -f /tmp/luci-indexcache /tmp/luci-modulecache
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
/etc/config/cpulimit
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(INSTALL_DIR) $(1)/etc/init.d $(1)/etc/config $(1)/usr/lib/lua/luci
|
|
$(CP) ./luasrc/* $(1)/usr/lib/lua/luci
|
|
$(INSTALL_CONF) ./root/etc/config/cpulimit $(1)/etc/config
|
|
$(INSTALL_BIN) ./root/etc/init.d/cpulimit $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) ./root/usr/bin/cpulimit.sh $(1)/usr/bin
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/i18n
|
|
po2lmo ./po/zh-cn/cpulimit.po $(1)/usr/lib/lua/luci/i18n/cpulimit.zh-cn.lmo
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|