Upgrade lm-sensors to 3.0.2, package libsensors separately, which can be built in a arch-independent way
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11825 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -9,18 +9,18 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=lm-sensors
|
||||
PKG_VERSION:=2.10.3
|
||||
PKG_VERSION:=3.0.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
|
||||
PKG_MD5SUM:=55d77146fbd56c205a9f81d262b9453c
|
||||
PKG_MD5SUM:=5b210ba9cc01f00161c438fd618484e5
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/lm-sensors
|
||||
define Package/lm-sensors/Default
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=lm-sensors
|
||||
@ -28,22 +28,39 @@ define Package/lm-sensors
|
||||
URL:=http://www.lm-sensors.org/
|
||||
endef
|
||||
|
||||
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
|
||||
|
||||
define Package/lm-sensors/description
|
||||
Utility to read hardware sensor data
|
||||
endef
|
||||
|
||||
define Package/libsensors/description
|
||||
lm-sensors libraries
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
KERNELVERSION="$(LINUX_VERSION)" \
|
||||
LINUX="$(LINUX_DIR)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
STAGING_DIR="$(STAGING_DIR)" \
|
||||
PREFIX="/usr" \
|
||||
MACHINE="$(ARCH)" \
|
||||
user
|
||||
endef
|
||||
|
||||
define Package/lm-sensors/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/
|
||||
$(CP) $(PKG_BUILD_DIR)/prog/detect/i2cdetect $(1)/usr/sbin/
|
||||
@ -52,4 +69,11 @@ define Package/lm-sensors/install
|
||||
$(CP) files/sensors.conf $(1)/etc/sensors.conf
|
||||
endef
|
||||
|
||||
define Package/libsensors/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,lm-sensors))
|
||||
$(eval $(call BuildPackage,libsensors))
|
||||
|
Reference in New Issue
Block a user