mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-10 18:34:18 +08:00
43 lines
997 B
Makefile
43 lines
997 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=fancontrol
|
|
PKG_VERSION:=2.0.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=JiaY-shi <shi05275@163.com>
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/fancontrol
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Generic hwmon PWM fan controller
|
|
endef
|
|
|
|
define Package/fancontrol/description
|
|
Temperature-based continuous PWM fan controller using the Linux hwmon ABI.
|
|
endef
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
$(CP) ./src/Makefile ./src/fancontrol.c $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
MAKE_FLAGS += \
|
|
-C $(PKG_BUILD_DIR)
|
|
|
|
define Package/fancontrol/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fancontrol $(1)/usr/bin/fancontrol
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/fancontrol.config $(1)/etc/config/fancontrol
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/fancontrol.init $(1)/etc/init.d/fancontrol
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,fancontrol))
|