2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-15 23:39:41 +02:00
|
|
|
#
|
|
|
|
# fan-ctrl
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-15 23:39:41 +02:00
|
|
|
|
|
|
|
# no release, so grab .c file directly from viewvc
|
|
|
|
FAN_CTRL_VERSION = 1.3
|
|
|
|
FAN_CTRL_SOURCE = fan-ctrl.c?revision=$(FAN_CTRL_VERSION)
|
2014-07-31 10:46:58 +02:00
|
|
|
FAN_CTRL_SITE = http://fan-ctrl.cvs.sourceforge.net/viewvc/fan-ctrl/fan-ctrl
|
2017-03-30 15:43:32 +02:00
|
|
|
FAN_CTRL_LICENSE = GPL-2.0+
|
2014-07-02 10:20:44 +02:00
|
|
|
FAN_CTRL_LICENSE_FILES = fan-ctrl.c
|
2013-04-15 23:39:41 +02:00
|
|
|
|
|
|
|
define FAN_CTRL_EXTRACT_CMDS
|
2018-04-02 15:09:24 +02:00
|
|
|
cp $(FAN_CTRL_DL_DIR)/$(FAN_CTRL_SOURCE) $(@D)/fan-ctrl.c
|
2013-04-15 23:39:41 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define FAN_CTRL_BUILD_CMDS
|
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
|
|
|
|
$(@D)/fan-ctrl.c -o $(@D)/fan-ctrl
|
|
|
|
endef
|
|
|
|
|
|
|
|
define FAN_CTRL_INSTALL_TARGET_CMDS
|
2014-06-01 14:38:01 +02:00
|
|
|
$(INSTALL) -D -m 755 $(@D)/fan-ctrl $(TARGET_DIR)/usr/sbin/fan-ctrl
|
2013-04-15 23:39:41 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|