smartmontools: update to 7.2
authorMaxim Storchak <redacted>
Fri, 1 Jan 2021 21:54:39 +0000 (23:54 +0200)
committerMaxim Storchak <redacted>
Sat, 2 Jan 2021 09:56:02 +0000 (11:56 +0200)
Signed-off-by: Maxim Storchak <redacted>
utils/smartmontools/Makefile
utils/smartmontools/patches/001-use-external-drivedb.patch
utils/smartmontools/patches/002-os_mailer-is-mailx.patch
utils/smartmontools/test.sh [new file with mode: 0644]

index 5d9797699d17ee83aaca50637d304c85133a2b0f..bd1b97473db01a44369862bd42940b1d8a85e759 100644 (file)
@@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/uclibc++.mk
 
 PKG_NAME:=smartmontools
-PKG_VERSION:=7.1
-PKG_RELEASE:=3
+PKG_VERSION:=7.2
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/smartmontools
-PKG_HASH:=3f734d2c99deb1e4af62b25d944c6252de70ca64d766c4c7294545a2e659b846
+PKG_HASH:=5cd98a27e6393168bc6aaea070d9e1cd551b0f898c52f66b2ff2e5d274118cd6
 
 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
 PKG_LICENSE:=GPL-2.0-or-later
index 69007d1f8cf2cc0d084c092fa0eca4a66ba58c39..ba7bf16c55e6f8c2ca56265ed5d12720db94dbb0 100644 (file)
@@ -70,7 +70,7 @@ index 072160a..d57417b 100644
 +    "-v 228,raw48,Power-off_Retract_Count "
 +    //  229 Unknown_Attribute
 +    "-v 230,raw48,Head_Amplitude,HDD "
-+    "-v 231,raw48,Temperature_Celsius "
++    "-v 231,raw48,Temperature_Celsius,HDD "
 +    "-v 232,raw48,Available_Reservd_Space "
 +    "-v 233,raw48,Media_Wearout_Indicator,SSD "
 +    //  234-239 Unknown_Attribute
index 2c07edc0167196f4bd96aace61d3de6a1293ba92..a80e7c9b8bb4c203fe8ac132edbd15aec0a019d7 100644 (file)
@@ -1,13 +1,13 @@
 diff --git a/configure b/configure
-index 6f442b3..5803c83 100755
+index 88928cf..736fabd 100755
 --- a/configure
 +++ b/configure
-@@ -6988,7 +6988,7 @@ releaseversion='${PACKAGE}-${VERSION}'
+@@ -6964,7 +6964,7 @@ releaseversion='${PACKAGE}-${VERSION}'
  # Set platform-specific modules and symbols
  os_libs=
  os_dltools='curl wget lynx svn'
 -os_mailer=mail
 +os_mailer=mailx
- os_hostname="'hostname'"
+ os_hostname="'hostname' 'uname -n'"
  os_dnsdomainname=
  os_nisdomainname="'domainname'"
diff --git a/utils/smartmontools/test.sh b/utils/smartmontools/test.sh
new file mode 100644 (file)
index 0000000..e4f6091
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+case "$1" in
+       smartctl|smartd) "$1" -V | head -n 1 | grep "$2" ;;
+esac
git clone https://git.99rst.org/PROJECT