On Mon, 14 Jul 2014 18:52:57 +0800, Andrew Lowe wrote: > I have a laptop churning away in the loungeroom doing an > "emerge -NuD world" whilst I'm in my office, amongst other things > composing this email. If my world update fails, I won't know until I > look at the screen in the other room. Is there a way to get emerge to > play a song depending upon the status of the emerge build?
Using portage hooks, either globally in /etc/portage/bashrc or per
package in /etc/portage/package.env. I have this in bashrc to warn me of
failures
register_die_hook ebuild_failed
ebuild_failed {
do something foreboding
}
I actually have it send an alert to my phone with Posterous but you can
do whatever you want.
I also use package.env to alert me when particularly
time-consuming ebuilds, like LibreOffice and Chromium, have completed
successfully.
--
Neil Bothwick
Profanity, The Language of Computer Professionals.
signature.asc
Description: PGP signature

