remove PKG_CAT from packages
[openwrt/svn-archive/archive.git] / utils / lm-sensors / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=lm-sensors
12 PKG_VERSION:=2.10.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
17 PKG_MD5SUM:=55d77146fbd56c205a9f81d262b9453c
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/lm-sensors
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=lm-sensors
27 DEPENDS:=+sysfsutils @LINUX_2_6_X86
28 URL:=http://www.lm-sensors.org/
29 endef
30
31 define Package/lm-sensors/description
32 Utility to read hardware sensor data
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 KERNELVERSION="$(LINUX_VERSION)" \
38 LINUX="$(LINUX_DIR)" \
39 CC="$(TARGET_CC)" \
40 STAGING_DIR="$(STAGING_DIR)" \
41 user
42 endef
43
44 define Package/lm-sensors/install
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(CP) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/
49 $(CP) $(PKG_BUILD_DIR)/prog/detect/i2cdetect $(1)/usr/sbin/
50 $(CP) $(PKG_BUILD_DIR)/prog/detect/sensors-detect $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc
52 $(CP) files/sensors.conf $(1)/etc/sensors.conf
53 endef
54
55 $(eval $(call BuildPackage,lm-sensors))