aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
Diffstat (limited to 'net-im')
-rw-r--r--net-im/pebrot/Makefile1
-rw-r--r--net-im/pebrot/files/patch-MSN.py29
2 files changed, 30 insertions, 0 deletions
diff --git a/net-im/pebrot/Makefile b/net-im/pebrot/Makefile
index 73d5b804ec6..4823c08999a 100644
--- a/net-im/pebrot/Makefile
+++ b/net-im/pebrot/Makefile
@@ -6,6 +6,7 @@
PORTNAME= pebrot
PORTVERSION= 0.8.9
+PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= SF
diff --git a/net-im/pebrot/files/patch-MSN.py b/net-im/pebrot/files/patch-MSN.py
new file mode 100644
index 00000000000..ec47fa6c005
--- /dev/null
+++ b/net-im/pebrot/files/patch-MSN.py
@@ -0,0 +1,29 @@
+--- pypebrot/MSN.py.orig 2009-01-28 05:21:19.000000000 +0800
++++ pypebrot/MSN.py 2010-11-06 16:09:40.000000000 +0800
+@@ -4,7 +4,7 @@
+ import os
+ import re
+ import socket
+-import md5
++import hashlib
+ import urllib
+ import select
+ import errno
+@@ -729,7 +729,7 @@
+ self.send( 'CHG', '%s\r\n' % state )
+
+ def challenge( self, msg ):
+- chunk= md5.new( msg.fields['hash']+ 'Q1P7W2E4J9R8U3S5' ).hexdigest()
++ chunk= hashlib.md5( msg.fields['hash']+ 'Q1P7W2E4J9R8U3S5' ).hexdigest()
+ self.send( 'QRY', 'msmsgs@msnmsgr.com 32\r\n%s' % chunk )
+
+ def ping( self ):
+@@ -1107,7 +1107,7 @@
+ elif ( msg.type == 'USR' ):
+ if msg.fields['type'] == 'MD5':
+ hash= msg.fields['arg2']
+- chunk= md5.new( hash + self.passwd ).hexdigest()
++ chunk= hashlib.md5( hash + self.passwd ).hexdigest()
+ self.send( 'USR', 'MD5 S %s\r\n' % chunk )
+ elif msg.fields['type'] == 'TWN':
+ text= split(msg.st)[4]