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.
Created attachment 171541 [details] spindown-0.2.2.ebuild
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.
Created attachment 171591 [details] spindown-0.2.2.ebuild Thx Serkan Kaba I rewrote the ebuild, quite primitive on ebuild writing :D
Created attachment 171595 [details] spindown-0.2.2.ebuild
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
Created attachment 172618 [details] spindown-0.2.2.ebuild Okay, I removed the RESTRICT line.
Committed sys-block/spindown-0.2.2.