Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2010 14:00:22 +0300 (MSK)
From:      Dmitry Morozovsky <marck@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/143551: sysutils/smartmontools: fix daily periodic script
Message-ID:  <201002041100.o14B0MX7002322@woozle.rinet.ru>
Resent-Message-ID: <201002041110.o14BA268051952@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         143551
>Category:       ports
>Synopsis:       sysutils/smartmontools: fix daily periodic script
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 04 11:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD 7-STABLE i386
>Organization:
Cronyx Plus LLC (RiNet ISP)
>Environment:
System: FreeBSD 7-STABLE 


>Description:

smartmontools' smartctl no more works with device name without full path, hence
FreeBSD periodic script is non-workable.

>How-To-Repeat:

>Fix:


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/sysutils/smartmontools/Makefile,v
retrieving revision 1.45
diff -u -r1.45 Makefile
--- Makefile	23 Dec 2009 18:55:52 -0000	1.45
+++ Makefile	4 Feb 2010 10:58:07 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	smartmontools
 PORTVERSION=	5.39
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	SF
 
Index: files/smart.in
===================================================================
RCS file: /home/ncvs/ports/sysutils/smartmontools/files/smart.in,v
retrieving revision 1.5
diff -u -r1.5 smart.in
--- files/smart.in	3 Jun 2009 18:12:30 -0000	1.5
+++ files/smart.in	4 Feb 2010 10:58:07 -0000
@@ -41,7 +41,7 @@
 				echo 
 				echo "Checking health of ${device}:"
 				echo
-				${smartctl} ${daily_status_smartctl_flags} ${device} > "${tmpfile}"
+				${smartctl} ${daily_status_smartctl_flags} /dev/${device} > "${tmpfile}"
 				status=$?
 				if [ $((status & 3)) -ne 0 ]; then
 					rc=2
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002041100.o14B0MX7002322>