sysklogd: fix build on musl
[buildroot-gz.git] / package / fan-ctrl / fan-ctrl.mk
blob4232286120b893f58f0b56240a578daabf79fafa
1 ################################################################################
3 # fan-ctrl
5 ################################################################################
7 # no release, so grab .c file directly from viewvc
8 FAN_CTRL_VERSION = 1.3
9 FAN_CTRL_SOURCE = fan-ctrl.c?revision=$(FAN_CTRL_VERSION)
10 FAN_CTRL_SITE = http://fan-ctrl.cvs.sourceforge.net/viewvc/fan-ctrl/fan-ctrl
11 FAN_CTRL_LICENSE = GPLv2+
12 FAN_CTRL_LICENSE_FILES = fan-ctrl.c
14 define FAN_CTRL_EXTRACT_CMDS
15 cp $(DL_DIR)/$(FAN_CTRL_SOURCE) $(@D)/fan-ctrl.c
16 endef
18 define FAN_CTRL_BUILD_CMDS
19 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
20 $(@D)/fan-ctrl.c -o $(@D)/fan-ctrl
21 endef
23 define FAN_CTRL_INSTALL_TARGET_CMDS
24 $(INSTALL) -D -m 755 $(@D)/fan-ctrl $(TARGET_DIR)/usr/sbin/fan-ctrl
25 endef
27 $(eval $(generic-package))