Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133914 - mod_jabber.py: Jabber notification for portage
Summary: mod_jabber.py: Jabber notification for portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-20 18:56 UTC by Lars Strojny
Modified: 2007-08-08 01:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mod_jabber.py (mod_jabber.py,1.89 KB, text/plain)
2006-05-20 18:57 UTC, Lars Strojny
Details
portage-mod_jabber-0.0.2.ebuild (portage-mod_jabber-0.0.2.ebuild,559 bytes, text/plain)
2006-09-10 04:57 UTC, Lars Strojny
Details
portage-mod_jabber-0.0.2.ebuild (portage-mod_jabber-0.0.2.ebuild,567 bytes, text/plain)
2006-09-10 05:02 UTC, Lars Strojny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Strojny 2006-05-20 18:56:53 UTC
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"
Comment 1 Lars Strojny 2006-05-20 18:57:26 UTC
Created attachment 87161 [details]
mod_jabber.py

Module for gentoo portage to send notification via jabber
Comment 2 Lars Strojny 2006-05-20 19:00:37 UTC
Not to forget: install dev-python/xmpppy
Comment 3 Lars Strojny 2006-05-20 19:18:18 UTC
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?
Comment 4 Lars Strojny 2006-05-20 19:20:12 UTC
Oh, damn. False bugreport. Sorry.
Comment 5 solar (RETIRED) gentoo-dev 2006-05-20 19:56:56 UTC
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?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-05-21 02:21:40 UTC
(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.
Comment 7 Lars Strojny 2006-05-21 05:54:06 UTC
(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/
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2006-05-23 05:44:53 UTC
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?
Comment 9 Lars Strojny 2006-05-23 08:41:35 UTC
Oh, sorry. There is a missing dependency in the ebuild. You should install dnspython.
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2006-05-24 02:45:12 UTC
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.
Comment 11 Lars Strojny 2006-09-10 04:57:04 UTC
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.
Comment 12 Lars Strojny 2006-09-10 05:02:47 UTC
Created attachment 96576 [details]
portage-mod_jabber-0.0.2.ebuild

Installing README file.
Comment 13 Lars Strojny 2006-09-11 01:48:22 UTC
Thanks to Hanno for adding this to portage. But why don't you want to close the bug?
Comment 14 Hanno Böck gentoo-dev 2006-09-11 05:06:35 UTC
done
Comment 15 cJ 2007-08-08 01:32:48 UTC
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