I've wrote a jabber notification module for the new notification framework of portage. It depends on xmpppy (http://xmpppy.sourceforge.net). Maybe it makes sense to introduce a USE-flag jabber or something for portage, not to force the user to install the library. How to use: 1.) Install >=sys-apps/portage-2.1 2.) Copy the file mod_jabber.py to /usr/lib/portage/pym/elog_modules/mod_jabber.py 3.) Edit /etc/make.conf and add 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"
Created attachment 87161 [details] mod_jabber.py Module for gentoo portage to send notification via jabber
Not to forget: install dev-python/xmpppy
Please use the version from BreakMyGentoo's SVN. My last ebuild there is broken and not up-to-date. By the way: what's on with it, can we get http://svn.breakmygentoo.net/bmg-main/net-im/ejabberd/ejabberd-1.1.1.ebuild to portage?
Oh, damn. False bugreport. Sorry.
Any reason this needs to be included in portage vs being make a unique ebuild that installs itself to the correct dir and has the correct deps?
(In reply to comment #5) > Any reason this needs to be included in portage vs being make a unique ebuild > that installs itself to the correct dir and has the correct deps? +1. jabber is a bad dependency for portage. Please, attach a separate ebuild for this.
(In reply to comment #6) > (In reply to comment #5) > > Any reason this needs to be included in portage vs being make a unique ebuild > > that installs itself to the correct dir and has the correct deps? > > +1. jabber is a bad dependency for portage. Please, attach a separate ebuild > for this. Here we are: http://svn.breakmygentoo.net/bmg-main/app-portage/portage-mod_jabber/
Can't get it to work here, it properly creates the message object but I never see anything on my jabber client, tried with two different accounts (on different server) with all from/to combinations (and with gaim they work just fine). Only suspicious thing I see is this warning (though merging dnspython didn't help either): "Could not load one of the supported DNS libraries (dnspython or pydns). SRV records will not be queried and you may need to set custom hostname/port for some servers to be accessible." Maybe I'm missing something?
Oh, sorry. There is a missing dependency in the ebuild. You should install dnspython.
As I said, even with dnspython installed it didn't work work for me. Maybe I'll check if there is any related network traffic in or out when I have some time.
Created attachment 96575 [details] portage-mod_jabber-0.0.2.ebuild As recommended: installing as a module. Maybe it would be worth spending a jabber ebuild for sys-apps/portage which adds this as a PDEPEND.
Created attachment 96576 [details] portage-mod_jabber-0.0.2.ebuild Installing README file.
Thanks to Hanno for adding this to portage. But why don't you want to close the bug?
done
The line mymessage = xmpp.protocol.Message(myto, fulltext, "message", mysubject) has to be modified in mymessage = xmpp.protocol.Message(myto, fulltext, "normal", mysubject) in order to enable offline messages reception. -- cJ