ports/143551: sysutils/smartmontools: fix daily periodic script
Dmitry Morozovsky
marck at FreeBSD.org
Thu Feb 4 11:10:02 UTC 2010
>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:
More information about the freebsd-ports-bugs
mailing list