Attached is an ebuild for apcupsd 3.8.5. The ebuild is a slightly modified version of the 3.8.1 ebuild, which is currently in the tree. In addition to the version bump, I added the optional support for nls, and optionally build an ncurses pgm (powerflute) if ncurses is installed. I set the keywords for x86 and ppc, since I sucsessfully compiled it, and running it on my mac (tcp connection, not serial). I also added a note in postinst that /etc/init.d/halt.sh will need to be modified to shut off the UPS at the end of a powerfail shutdown. In addition, attached is a slightly modified rc script. a use dependance for net is added. if the config is for network, apcupsd obviously needs to be started after net. however, it can also run fine w/o net if its a serial-connected ups.
Created attachment 2560 [details] apcupsd-3.8.5.ebuild
Created attachment 2561 [details] apcupsd rc script
Will add to the list to be tested. Thanks!
Created attachment 3480 [details] Updated rc script (obsoletes previous script) change the start-stop-daemon command in stop() to use --pidfile
See also bug #7778 which provides an ebuild for apcupsd 3.9.9 It was created from this ebuild, so there may be parallel bugs. :)
version 3.10.1 is already in portage.