2009-08-14 15:17:27 +00:00
|
|
|
#
|
2012-06-09 23:51:39 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2007-04-16 13:04:24 +00:00
|
|
|
#
|
|
|
|
# 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
|
2012-06-09 23:51:39 +00:00
|
|
|
PKG_VERSION:=3.3.2
|
|
|
|
PKG_RELEASE:=1
|
2007-04-16 13:04:24 +00:00
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
|
2011-04-25 21:48:18 +00:00
|
|
|
PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases
|
2012-06-09 23:51:39 +00:00
|
|
|
PKG_MD5SUM:=f357ba00b080ab102a170f7bf8bb2578
|
2007-04-16 13:04:24 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
|
2010-11-21 22:01:21 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2007-04-16 13:04:24 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/lm-sensors/Default
|
2010-08-04 17:18:54 +00:00
|
|
|
DEPENDS:=+sysfsutils
|
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)
|
2010-11-21 22:01:21 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=lm-sensors
|
2010-08-04 17:18:54 +00:00
|
|
|
DEPENDS+=+libsensors
|
2008-07-14 11:57:06 +00:00
|
|
|
endef
|
|
|
|
|
2011-05-06 17:59:29 +00:00
|
|
|
define Package/lm-sensors-detect
|
|
|
|
$(call Package/lm-sensors/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=lm-sensors-detect
|
|
|
|
DEPENDS+=+lm-sensors +perl +perlbase-essential +perlbase-fcntl +perlbase-file +perlbase-xsloader
|
|
|
|
endef
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/libsensors
|
|
|
|
$(call Package/lm-sensors/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2010-11-21 22:01:21 +00:00
|
|
|
TITLE:=libsensors
|
2008-07-14 11:57:06 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/lm-sensors/description
|
2012-06-09 23:51:39 +00:00
|
|
|
utility to read hardware sensor data
|
2011-05-06 17:59:29 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lm-sensors-detect/description
|
2012-06-09 23:51:39 +00:00
|
|
|
script to autodetect sensor hardware
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/libsensors/description
|
2011-05-06 17:59:29 +00:00
|
|
|
lm-sensors libraries
|
2008-07-14 11:57:06 +00:00
|
|
|
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
|
2012-09-23 09:58:24 +00:00
|
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
|
2010-11-21 22:01:21 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-04-16 13:04:24 +00:00
|
|
|
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)" \
|
2012-07-03 10:50:03 +00:00
|
|
|
EXLDFLAGS="" \
|
2007-04-16 13:04:24 +00:00
|
|
|
user
|
|
|
|
endef
|
|
|
|
|
2010-11-21 22:01:21 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/sensors
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_BUILD_DIR)/lib/sensors.h \
|
|
|
|
$(1)/usr/include/sensors
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_BUILD_DIR)/lib/libsensors.{a,so*} \
|
2011-04-25 21:48:18 +00:00
|
|
|
$(1)/usr/lib
|
2010-11-21 22:01:21 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-16 13:04:24 +00:00
|
|
|
define Package/lm-sensors/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2011-04-25 21:48:18 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin
|
|
|
|
ifeq ($(ARCH),i386)
|
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
|
2011-04-25 21:48:18 +00:00
|
|
|
endif
|
2007-04-16 13:04:24 +00:00
|
|
|
endef
|
|
|
|
|
2011-05-06 17:59:29 +00:00
|
|
|
define Package/lm-sensors-detect/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/detect/sensors-detect $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
2008-07-14 11:57:06 +00:00
|
|
|
define Package/libsensors/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-04-25 21:48:18 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib
|
2008-07-14 11:57:06 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-16 13:04:24 +00:00
|
|
|
$(eval $(call BuildPackage,lm-sensors))
|
2011-05-06 17:59:29 +00:00
|
|
|
$(eval $(call BuildPackage,lm-sensors-detect))
|
2008-07-14 11:57:06 +00:00
|
|
|
$(eval $(call BuildPackage,libsensors))
|