Getting notified via mail about recent warnings, information messages and error on your Gentoo system is good thing but getting notified via Jabber could be also helpful in some cases. The new notification framework of portage in the current 2.1-serie previews makes it easy and possible to implement somthing like this. To show how easy it is, I did it. You can see the result in the Gentoo Bugzilla. I am utilizing XMPPPY, a friendly Python-library to do so.
How to use?
1.) Install an ebuild of the 2.1-serie of sys-apps/portage
2.) Install dev-python/xmpppy
3.) Copy this file to /usr/lib/portage/pym/elog_modules/mod_jabber.py
4.) Edit /etc/make.conf and set the following options:
PORTAGE_ELOG_SYSTEM="jabber"
PORTAGE_ELOG_JABBERFROM="sender@host.com:password"
PORTAGE_ELOG_JABBERTO="jid1@host.com jid2@host.com admin@foo.com"
Update:
As of a request by solar and Jacub Moc I did a proper release which is availiable there and wrote an ebuild. All you have to do now is to install the ebuild and edit you configuration.
Comments
Show comments linear or threaded
Cristian states:
published on 2010|01|06, 15:34hWow man, this is so nice…
But, I can’t find official documentation of elog notification framework…. could you give me a link or something?
Thank you so much.
Lars Strojny reckons:
published on 2010|01|07, 19:07hGlad you like it.
I don’t know if there is any documentation available nowadays. If I remember correctly, at the time of writing there wasn’t any documentation, don’t know how the situation is today.
Cristian means:
published on 2010|01|07, 19:59hThanks for your answer…
Unfortunately it seems there’s no documentation yet. Anyway, I wanted to thank you for your work… I learned too much of your code. I did my personal notification system for Portage:
http://www.flickr.com/photos/21285790@N03/4250880121/sizes/o/
Bye…
Add comment