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

Bug 246500

Summary: new ebuild : sys-block/spindown
Product: Gentoo Linux Reporter: punkid <punkid.online>
Component: New packagesAssignee: Wolfram Schlich (RETIRED) <wschlich>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://code.google.com/p/spindown/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: spindown-0.2.2.ebuild
spindown-0.2.2.ebuild
spindown-0.2.2.ebuild
spindown-0.2.2.ebuild

Description punkid 2008-11-12 16:03:03 UTC
Wrote an ebuild for spindown.

Spindown is a daemon that can spindown idle disks and so saving energy and giving the disks a longer lifetime. It works by checking how many blocks are read and written from the disks. When no blocks are read or written the disk is idle. When a disk stays idle long enough spindown uses sg_start to spin the disk down. It also works with usb disks and hotswappable disks because it doesn't watch the device name (hda, sdb, ...), but the device id. This means that it doesn't matter if the disk is swapped while the deamon is running.
Comment 1 punkid 2008-11-12 16:03:41 UTC
Created attachment 171541 [details]
spindown-0.2.2.ebuild
Comment 2 Serkan Kaba (RETIRED) gentoo-dev 2008-11-12 20:01:39 UTC
Review for the ebuild

1) What's the no-op src_unpack there?
2) I would suggest that you install the example conf as is and print an einfo suggesting editing and renaming it
3) sed conf file before installation (maybe even in src_compile
4) dodoc doesn't die on its own.
Comment 3 punkid 2008-11-13 03:15:26 UTC
Created attachment 171591 [details]
spindown-0.2.2.ebuild

Thx  Serkan Kaba

I rewrote the ebuild, quite primitive on ebuild writing :D
Comment 4 punkid 2008-11-13 04:17:37 UTC
Created attachment 171595 [details]
spindown-0.2.2.ebuild
Comment 5 Serkan Kaba (RETIRED) gentoo-dev 2008-11-20 20:15:21 UTC
Sorry for the delay, I have another comment. Are you restricting mirroring on purpose, I don't think that needs to be done.

For further contributions please consider contacting sunrise project on #gentoo-sunrise @ FreeNode (best around evening in Europe) and reading their documentation[1][2]. And please be patient and give them some time to review.

1: http://www.gentoo.org/proj/en/sunrise/
2: http://overlays.gentoo.org/proj/sunrise/wiki
Comment 6 punkid 2008-11-21 04:19:00 UTC
Created attachment 172618 [details]
spindown-0.2.2.ebuild

Okay, I removed the RESTRICT line.
Comment 7 Wolfram Schlich (RETIRED) gentoo-dev 2008-11-21 18:23:30 UTC
Committed sys-block/spindown-0.2.2.