aboutsummaryrefslogtreecommitdiffstats
path: root/package/fan-ctrl/fan-ctrl.mk
blob: b7bfa795f2e103b1a5adb2c515341723468ea288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#############################################################
#
# fan-ctrl
#
#############################################################

# no release, so grab .c file directly from viewvc
FAN_CTRL_VERSION = 1.3
FAN_CTRL_SOURCE = fan-ctrl.c?revision=$(FAN_CTRL_VERSION)
FAN_CTRL_SITE = http://fan-ctrl.cvs.sourceforge.net/viewvc/fan-ctrl/fan-ctrl/
FAN_CTRL_LICENSE = GPLv2+

define FAN_CTRL_EXTRACT_CMDS
	cp $(DL_DIR)/$(FAN_CTRL_SOURCE) $(@D)/fan-ctrl.c
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
	install -D -m 755 $(@D)/fan-ctrl $(TARGET_DIR)/usr/sbin/fan-ctrl
endef

define FAN_CTRL_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/sbin/fan-ctrl
endef

$(eval $(generic-package))