summaryrefslogtreecommitdiff
path: root/utils/smartmontools
diff options
context:
space:
mode:
authorMaxim Storchak <m.storchak@gmail.com>2021-01-01 23:54:39 +0200
committerMaxim Storchak <m.storchak@gmail.com>2021-01-02 11:56:02 +0200
commitdc32fc0e47f00893e86d3bd8a82278ab4163dc73 (patch)
treec28083cc76025691946fbf421316b8028af62ea8 /utils/smartmontools
parent7ce3b159e340240c4fd61c0dce46d6ae8e22875c (diff)
smartmontools: update to 7.2
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
Diffstat (limited to 'utils/smartmontools')
-rw-r--r--utils/smartmontools/Makefile6
-rw-r--r--utils/smartmontools/patches/001-use-external-drivedb.patch2
-rw-r--r--utils/smartmontools/patches/002-os_mailer-is-mailx.patch6
-rw-r--r--utils/smartmontools/test.sh5
4 files changed, 12 insertions, 7 deletions
diff --git a/utils/smartmontools/Makefile b/utils/smartmontools/Makefile
index 5d9797699..bd1b97473 100644
--- a/utils/smartmontools/Makefile
+++ b/utils/smartmontools/Makefile
@@ -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
diff --git a/utils/smartmontools/patches/001-use-external-drivedb.patch b/utils/smartmontools/patches/001-use-external-drivedb.patch
index 69007d1f8..ba7bf16c5 100644
--- a/utils/smartmontools/patches/001-use-external-drivedb.patch
+++ b/utils/smartmontools/patches/001-use-external-drivedb.patch
@@ -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
diff --git a/utils/smartmontools/patches/002-os_mailer-is-mailx.patch b/utils/smartmontools/patches/002-os_mailer-is-mailx.patch
index 2c07edc01..a80e7c9b8 100644
--- a/utils/smartmontools/patches/002-os_mailer-is-mailx.patch
+++ b/utils/smartmontools/patches/002-os_mailer-is-mailx.patch
@@ -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
index 000000000..e4f609106
--- /dev/null
+++ b/utils/smartmontools/test.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+case "$1" in
+ smartctl|smartd) "$1" -V | head -n 1 | grep "$2" ;;
+esac