Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 396411

Summary: sys-apps/ataidle ( New package )
Product: Gentoo Linux Reporter: gentooer <wilhelm.eger>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: enhancement Keywords: EBUILD
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.cran.org.uk/~brucec/software/ataidle.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ataidle-2.7.1.ebuild
ataidle-2.7.1-r1.ebuild

Description gentooer 2011-12-29 13:15:04 UTC
ATAidle
ataidle sets the idle timer on ATA (IDE) hard drives, so the drive spins down when the period of inactivity has expired.
To use it on FreeBSD you must be using 6 or newer; under Linux a 2.4 or newer kernel is required.

Usage: ataidle [-h] [-i] [-s] [-o] [-I standby_mins] [-S standby_mins] [-A aam_level] [-P apm_level] device

The latest version of ataidle is 2.7.1

Reproducible: Always
Comment 1 gentooer 2011-12-29 13:15:43 UTC
Created attachment 297297 [details]
ataidle-2.7.1.ebuild
Comment 2 Agostino Sarubbo gentoo-dev 2011-12-29 13:46:01 UTC
Hi, you can improve your ebuild.

First make it EAPI4
Delete src_unpack and src_compile
You can use ${P} instead of $name-${PV} http://devmanual.gentoo.org/ebuild-writing/variables/index.html
I doubt you have tested on all hardware that have ~keyword, please add only that you tested
No need die after portage helper function in eapi4, and I guess there is no need to inherit toolchain funcs
Comment 3 gentooer 2011-12-29 14:37:18 UTC
Thanks for the hints. I am quite new to ebuild-writing. 

New ebuild is attached.
Comment 4 gentooer 2011-12-29 14:37:43 UTC
Created attachment 297307 [details]
ataidle-2.7.1-r1.ebuild