From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 8 09:50:10 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4C361065672 for ; Mon, 8 Oct 2012 09:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A2BB18FC17 for ; Mon, 8 Oct 2012 09:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q989oAbc017982 for ; Mon, 8 Oct 2012 09:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q989oA9x017981; Mon, 8 Oct 2012 09:50:10 GMT (envelope-from gnats) Resent-Date: Mon, 8 Oct 2012 09:50:10 GMT Resent-Message-Id: <201210080950.q989oA9x017981@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Leonid Nevecherya Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2C9D1106566B for ; Mon, 8 Oct 2012 09:45:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 169228FC1C for ; Mon, 8 Oct 2012 09:45:48 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q989jlV3026822 for ; Mon, 8 Oct 2012 09:45:47 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q989jlFh026795; Mon, 8 Oct 2012 09:45:47 GMT (envelope-from nobody) Message-Id: <201210080945.q989jlFh026795@red.freebsd.org> Date: Mon, 8 Oct 2012 09:45:47 GMT From: Leonid Nevecherya To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/172480: [patch] sysutils/smartmontools: Fix AUTO in daily_status_smart_devices patameter X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2012 09:50:11 -0000 >Number: 172480 >Category: ports >Synopsis: [patch] sysutils/smartmontools: Fix AUTO in daily_status_smart_devices patameter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Oct 08 09:50:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Leonid Nevecherya >Release: >Organization: >Environment: FreeBSD XXXX 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 >Description: Fix AUTO in daily_status_smart_devices patameter of daily script. It`s remove SMART check of ATA Array (ar* devices). >How-To-Repeat: Set daily_status_smart_devices=AUTO in periodic.conf on host with ar* devices. >Fix: Add patch. It's remove ar* devices from auto generated list. Patch attached with submission follows: diff -ruN /usr/ports/sysutils/smartmontools/files/smart.in sysutils/smartmontools/files/smart.in --- /usr/ports/sysutils/smartmontools/files/smart.in 2011-12-02 00:53:31.000000000 +0400 +++ sysutils/smartmontools/files/smart.in 2012-10-08 13:37:34.000000000 +0400 @@ -16,7 +16,7 @@ case "${daily_status_smart_devices}" in # XXX AUTO mode selects only regular ad/da disks [Aa][Uu][Tt][Oo]) - daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]]cd[0-9]+//g')" + daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]](cd|ar)[0-9]+//g')" ;; *) ;; esac >Release-Note: >Audit-Trail: >Unformatted: