From 240a325ef1edd8dba977ca128d8b708a1257e701 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 11 Nov 2017 15:11:01 -0200 Subject: [PATCH] smartmontools: update to 6.6. --- srcpkgs/smartmontools/patches/0001-fix-musl.patch | 13 +++++++++++++ srcpkgs/smartmontools/template | 10 +++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/smartmontools/patches/0001-fix-musl.patch diff --git a/srcpkgs/smartmontools/patches/0001-fix-musl.patch b/srcpkgs/smartmontools/patches/0001-fix-musl.patch new file mode 100644 index 00000000000..6594787b1d5 --- /dev/null +++ b/srcpkgs/smartmontools/patches/0001-fix-musl.patch @@ -0,0 +1,13 @@ +Remove this on 6.7 release as this https://www.smartmontools.org/ticket/921 was accepted + +--- os_linux.cpp ++++ os_linux.cpp +@@ -3176,7 +3176,7 @@ static bool is_hpsa(const char * name) + { + char path[128]; + snprintf(path, sizeof(path), "/sys/block/%s/device", name); +- char * syshostpath = canonicalize_file_name(path); ++ char * syshostpath = realpath(path, NULL); + if (!syshostpath) + return false; + diff --git a/srcpkgs/smartmontools/template b/srcpkgs/smartmontools/template index 8f7a573574f..cec2f400713 100644 --- a/srcpkgs/smartmontools/template +++ b/srcpkgs/smartmontools/template @@ -1,9 +1,9 @@ # Template file for 'smartmontools' pkgname=smartmontools -version=6.5 +version=6.6 revision=1 build_style=gnu-configure -configure_args="--sysconfdir=/etc/smartd --with-libcap-ng=yes --without-drivedbdir" +configure_args="--sysconfdir=/etc/smartd --with-libcap-ng=yes" makedepends="libcap-ng-devel" conf_files="/etc/smartd/*" short_desc="S.M.A.R.T Monitoring Tools" @@ -11,7 +11,11 @@ maintainer="Juan RP " license="GPL-2" homepage="http://smartmontools.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=89e8bb080130bc6ce148573ba5bb91bfe30236b64b1b5bbca26515d4b5c945bc +checksum=51f43d0fb064fccaf823bbe68cf0d317d0895ff895aa353b3339a3b316a53054 + +do_check() { + make check +} post_install() { vsv smartd