The attached patch, applied over the current ebuild renamed
apcupsd-3.10.17.ebuild bumps apcupsd to latest version (which works under
freebsd, as well, instead .16 doesn't), and fixes a few problems:
- it fixes bug #83649 as it uses the new apache2 dependencies;
- it renames gd -> cgi useflag (it's more useful to know what a flag do, than
knowing which dependency throws in, and also this is consistent with
www-apps/nut),
- it adds ncurses useflag to disable ncurses support (removes powerflute),
- it adds nls useflag (as usual),
- it adds threads useflag to disable threaded support (on fbsd it's suggested
to not use it),
- it forces the DISTNAME to gentoo, so that it will install everything in
gentoo's way also on non-linux systems (such as g/fbsd),
- it removes default devices passed to configure, as they are linux dependant,
and both they are defaulted into configuration files (also, in .17 usb support
is autodetected),
- it removes dependency on baselayout, as it's useless and gave headaches to
g/fbsd users.
Note: in ${FILESDIR}, just copy .16 -> .17 directory, but change the apache
configuration file to the one attached, which changes from Alias to
ScriptAlias, else cgi won't work.
HTH, Diego