For BSD, the utility /bin/pidof is contained in a package called pidof-bsd. When emerging, e.g., evince, gnome2-utils tries to call this utility, but the eclass does not depend on the package (in this case, pidof-bsd) being installed. Should the eclass depend on, say, (the linux package) || (the fbsd package)? Or is there a better way to deal with this?
As an alternative, rewrite the code to use pgrep.
is "killall" a command available on BSD?
Yes, killall is in sys-freebsd/freebsd-ubin
At that point you might want to just use pkill, that is probably the most portable thing you can use.
Okay, pidof changed to pgrep.