2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
16 PKG_MD5SUM:=5b210ba9cc01f00161c438fd618484e5
18 PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
20 include $(INCLUDE_DIR)/package.mk
22 define Package/lm-sensors/Default
26 DEPENDS:=+sysfsutils @LINUX_2_6
27 URL:=http://www.lm-sensors.org/
30 define Package/lm-sensors
31 $(call Package/lm-sensors/Default)
36 define Package/libsensors
37 $(call Package/lm-sensors/Default)
43 define Package/lm-sensors/description
44 Utility to read hardware sensor data
47 define Package/libsensors/description
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 KERNELVERSION="$(LINUX_VERSION)" \
54 LINUX="$(LINUX_DIR)" \
56 STAGING_DIR="$(STAGING_DIR)" \
62 define Package/lm-sensors/install
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(CP) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/
65 $(CP) $(PKG_BUILD_DIR)/prog/detect/sensors-detect $(1)/usr/sbin/
66 $(INSTALL_DIR) $(1)/etc
67 $(CP) files/sensors.conf $(1)/etc/sensors.conf
70 define Package/libsensors/install
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
76 $(eval $(call BuildPackage,lm-sensors))
77 $(eval $(call BuildPackage,libsensors))