this is my first ebuild (modification), so please check for potential mistakes i could have done unintentionally - i did test it and it merged ok on my system. i took current smartmontools-5.30.ebuild as my template, which i renamed to a newer version (bug #50493) and introduced few other changes. also i tried to address bug #60024 and the missing /etc/smartd.conf file (see bellow). changes include: - reload option in daemon init script - inclusion of checkconfig function, which checks for the presence of /etc/smartd.conf file and prints out warning if none is found (but continues with daemon load nonetheless) - inclusion of /etc/conf.d/smartd, with attempt at configuring pidfile and some other daemon options "the gentoo way" (something similar is done with dhcp, apache etc.) - inclusion of example config (which at the moment is just verbatim copy of original smartmontools example file) - some textual changes to the pkg_postinst section of the ebuild to explain better what has to be done in order to configure smartd further improvements could be made mainly in /etc/smatrd.conf.example to better auto-magically handle which devices should be smartmonitored. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 38819 [details] ebuild
Created attachment 38820 [details] init script (files section of ebuild)
Created attachment 38821 [details] config file (files section of ebuild, destined for /etc/conf.d/smartd)
Created attachment 38822 [details] example config file (files section of ebuild, destined for /etc/smartd.conf.example)
*** Bug 50493 has been marked as a duplicate of this bug. ***
5.33 has these fixes, thanks :)