From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 16 21:00:06 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 390E516A41A for ; Wed, 16 Jan 2008 21:00:06 +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 1BCE013C4EC for ; Wed, 16 Jan 2008 21:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0GL05YR045132 for ; Wed, 16 Jan 2008 21:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0GL053G045131; Wed, 16 Jan 2008 21:00:05 GMT (envelope-from gnats) Resent-Date: Wed, 16 Jan 2008 21:00:05 GMT Resent-Message-Id: <200801162100.m0GL053G045131@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, Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF91316A418 for ; Wed, 16 Jan 2008 20:52:41 +0000 (UTC) (envelope-from brucec@muon.bluestop.org) Received: from muon.bluestop.org (unknown [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id DE34813C478 for ; Wed, 16 Jan 2008 20:52:40 +0000 (UTC) (envelope-from brucec@muon.bluestop.org) Received: by muon.bluestop.org (Postfix, from userid 1000) id 0B6433031E; Wed, 16 Jan 2008 20:52:38 +0000 (GMT) Message-Id: <20080116205239.0B6433031E@muon.bluestop.org> Date: Wed, 16 Jan 2008 20:52:38 +0000 (GMT) From: To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/119731: <[UPDATE] Update sysutils/ataidle to version 2.2> X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bruce@cran.org.uk List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2008 21:00:06 -0000 >Number: 119731 >Category: ports >Synopsis: <[UPDATE] Update sysutils/ataidle to version 2.2> >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jan 16 21:00:05 UTC 2008 >Closed-Date: >Last-Modified: >Originator: >Release: 7.0-RC1 >Organization: >Environment: System: FreeBSD muon.draftnet 7.0-RC1 FreeBSD 7.0-RC1 #0: Wed Jan 16 03:02:31 GMT 2008 brucec@muon.draftnet:/usr/obj/usr/src/sys/INSPIRON amd64 Architecture: amd64 >Description: Update sysutils/ataidle to version 2.2. >How-To-Repeat: >Fix: --- ataidle-2.2.diff begins here --- diff -U3 -r ataidle-1.0/Makefile ataidle/Makefile --- ataidle-1.0/Makefile 2008-01-16 19:21:53.000000000 +0000 +++ ataidle/Makefile 2008-01-16 20:34:06.000000000 +0000 @@ -6,8 +6,7 @@ # PORTNAME= ataidle -PORTVERSION= 1.0 -PORTREVISION= 1 +PORTVERSION= 2.2 CATEGORIES= sysutils MASTER_SITES= http://www.cran.org.uk/bruce/software/ @@ -16,7 +15,7 @@ USE_RC_SUBR= ${PORTNAME} MAN8= ataidle.8 -PORTDOCS= COPYING ChangeLog README +PORTDOCS= COPYING Changelog README PLIST_FILES= sbin/ataidle do-install: @@ -27,10 +26,13 @@ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif +post-install: + @${CAT} ${PKGMESSAGE} + .include -.if ${OSVERSION} < 501105 -IGNORE= requires FreeBSD 5.2 or newer +.if ${OSVERSION} < 600034 +IGNORE= requires FreeBSD 6.1 or newer .endif .include diff -U3 -r ataidle-1.0/distinfo ataidle/distinfo --- ataidle-1.0/distinfo 2008-01-16 19:21:53.000000000 +0000 +++ ataidle/distinfo 2008-01-16 20:07:28.000000000 +0000 @@ -1,3 +1,3 @@ -MD5 (ataidle-1.0.tar.gz) = 2d5a49587f8b42042eff4408c2cb6f7d -SHA256 (ataidle-1.0.tar.gz) = 5b9a853e00c7d7a925f05ddacb555d1e21cfb875c0a0809e2609a0382c5683e5 -SIZE (ataidle-1.0.tar.gz) = 14182 +MD5 (ataidle-2.2.tar.gz) = 05e3c48c33ccb354bf4d43289491b398 +SHA256 (ataidle-2.2.tar.gz) = fb4b290d948ead48a9cfa850f4a6e2c0ece4e3eb1647823b460b07c3ddee385c +SIZE (ataidle-2.2.tar.gz) = 12403 diff -U3 -r ataidle-1.0/files/ataidle.in ataidle/files/ataidle.in --- ataidle-1.0/files/ataidle.in 2008-01-16 19:21:53.000000000 +0000 +++ ataidle/files/ataidle.in 2008-01-16 20:06:44.000000000 +0000 @@ -8,19 +8,19 @@ # # ataidle_enable (bool): set to NO by default. # Set to YES to enable ataidle. -# ataidle_device: list of devices on which to run ataidle +# ataidle_devices: list of devices on which to run ataidle # ataidle_adX: parameters to pass to ataidle(8) # Example: -# Put the disks ad1, ad2 and ad3 into Idle mode after 60 +# Put the disks ad0, ad1 and ad2 into Idle mode after 60 # minutes and Standby mode after 120 minutes. Also, set the # AAM and APM values to their maximum so the drives run at # their maximum performance. # -# ataidle_device="ad1 ad2 ad3" -# ataidle_ad1="-I 60 -S 120 -A 127 -P 254 0 1" -# ataidle_ad2="-I 60 -S 120 -A 127 -P 254 1 0" -# ataidle_ad3="-I 60 -S 120 -A 127 -P 254 1 1" +# ataidle_devices="ad0 ad1 ad2" +# ataidle_ad0="-I 60 -S 120 -A 127 -P 254" +# ataidle_ad1="-I 60 -S 120 -A 127 -P 254" +# ataidle_ad2="-I 60 -S 120 -A 127 -P 254" # . %%RC_SUBR%% @@ -37,13 +37,18 @@ ataidle_start() { - if [ -n "${ataidle_device}" ]; then - for i in ${ataidle_device}; do + if [ -n "${ataidle_device}" -a -z "${ataidle_devices}" ]; then + echo "warning: old ataidle rc settings found" + ataidle_devices=${ataidle_device} + fi + + if [ -n "${ataidle_devices}" ]; then + for i in ${ataidle_devices}; do eval ataidle_args=\$ataidle_${i} - ${command} ${ataidle_args} + echo "ATAidle: configuring device /dev/${i}" + ${command} ${ataidle_args} /dev/${i} done fi } run_rc_command "$1" - Only in ataidle: pkg-message --- ataidle-2.2.diff ends here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pkg-message # echo x - pkg-message sed 's/^X//' >pkg-message << 'END-of-pkg-message' XNote: ataidle options and rc startup settings X have changed in version 2. X XAdd the following lines to /etc/rc.conf to enable ataidle: X Xataidle_enable (bool): set to NO by default. X Set to YES to enable ataidle. Xataidle_devices: list of devices on which to run ataidle Xataidle_adX: parameters to pass to ataidle(8) X XExample: Xataidle_enable="YES" Xataidle_devices="ad0" Xataidle_ad0="-I 60 -S 120 -A 127 -P 254" END-of-pkg-message exit >Release-Note: >Audit-Trail: >Unformatted: