2009-08-14 15:17:27 +00:00
|
|
|
#
|
2007-04-16 13:04:24 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lm-sensors
|
2009-08-14 15:17:27 +00:00
|
|
|
PKG_VERSION:=3.1.1
|
2007-04-16 13:04:24 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
|
2007-04-16 13:04:24 +00:00
|
|
|
PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
|
2009-08-14 15:17:27 +00:00
|
|
|
PKG_MD5SUM:=613d7cfa23b70c0abae3fabb0a72ff5f
|
2007-04-16 13:04:24 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/lm-sensors/Default
|
2007-04-16 13:04:24 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=lm-sensors
|
2009-08-14 15:17:27 +00:00
|
|
|
DEPENDS:=+sysfsutils libsensors @LINUX_2_6
|
2007-04-16 13:04:24 +00:00
|
|
|
URL:=http://www.lm-sensors.org/
|
|
|
|
endef
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/lm-sensors
|
|
|
|
$(call Package/lm-sensors/Default)
|
|
|
|
TITLE+= (programs)
|
|
|
|
DEPENDS+= @TARGET_x86
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsensors
|
|
|
|
$(call Package/lm-sensors/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= libraries
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/lm-sensors/description
|
|
|
|
Utility to read hardware sensor data
|
|
|
|
endef
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/libsensors/description
|
|
|
|
lm-sensors libraries
|
|
|
|
endef
|
|
|
|
|
2009-08-14 15:17:27 +00:00
|
|
|
define Package/lm-sensors/conffiles
|
|
|
|
/etc/sensors.conf
|
|
|
|
endef
|
|
|
|
|
2007-04-16 13:04:24 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
KERNELVERSION="$(LINUX_VERSION)" \
|
|
|
|
LINUX="$(LINUX_DIR)" \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
STAGING_DIR="$(STAGING_DIR)" \
|
2008-07-14 11:57:06 +00:00
|
|
|
PREFIX="/usr" \
|
|
|
|
MACHINE="$(ARCH)" \
|
2007-04-16 13:04:24 +00:00
|
|
|
user
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lm-sensors/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2009-08-14 15:17:27 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/detect/sensors-detect $(1)/usr/sbin/
|
2007-04-16 13:04:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2009-08-14 15:17:27 +00:00
|
|
|
$(INSTALL_CONF) ./files/sensors.conf $(1)/etc/sensors.conf
|
2007-04-16 13:04:24 +00:00
|
|
|
endef
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/libsensors/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2007-04-16 13:04:24 +00:00
|
|
|
$(eval $(call BuildPackage,lm-sensors))
|
2008-07-14 11:57:06 +00:00
|
|
|
$(eval $(call BuildPackage,libsensors))
|