summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice van der Pot <griffon26@gentoo.org>2008-09-23 20:17:39 +0000
committerMaurice van der Pot <griffon26@gentoo.org>2008-09-23 20:17:39 +0000
commitdb78ffb60ae20fa991b2a25380549f84774438fb (patch)
tree91568466a6315a85c9f3c2c8bca599f062d887a9 /net-im/pymsn-t
parentFix accidental ebuild removal (#233852). (diff)
downloadhistorical-db78ffb60ae20fa991b2a25380549f84774438fb.tar.gz
historical-db78ffb60ae20fa991b2a25380549f84774438fb.tar.bz2
historical-db78ffb60ae20fa991b2a25380549f84774438fb.zip
Add some patches to pymsn-t for bug #238085
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26.2 x86_64
Diffstat (limited to 'net-im/pymsn-t')
-rw-r--r--net-im/pymsn-t/ChangeLog11
-rw-r--r--net-im/pymsn-t/Manifest12
-rw-r--r--net-im/pymsn-t/files/pymsn-t-0.11.3-delete-reactor.patch10
-rw-r--r--net-im/pymsn-t/files/pymsn-t-0.11.3-remove-pid.patch41
-rw-r--r--net-im/pymsn-t/files/pymsn-t-0.11.3-unexpected-xfr.patch44
-rw-r--r--net-im/pymsn-t/pymsn-t-0.11.3-r2.ebuild74
6 files changed, 187 insertions, 5 deletions
diff --git a/net-im/pymsn-t/ChangeLog b/net-im/pymsn-t/ChangeLog
index 118da1cd1990..ef6e04378e8d 100644
--- a/net-im/pymsn-t/ChangeLog
+++ b/net-im/pymsn-t/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-im/pymsn-t
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.15 2008/09/17 21:23:55 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/ChangeLog,v 1.16 2008/09/23 20:17:38 griffon26 Exp $
+
+*pymsn-t-0.11.3-r2 (23 Sep 2008)
+
+ 23 Sep 2008; Maurice van der Pot <griffon26@gentoo.org>
+ +files/pymsn-t-0.11.3-delete-reactor.patch,
+ +files/pymsn-t-0.11.3-remove-pid.patch,
+ +files/pymsn-t-0.11.3-unexpected-xfr.patch, +pymsn-t-0.11.3-r2.ebuild:
+ Added some patches provided by Dennis Schridde <lindevel@gmx.net> that a.o.
+ fix an error when connecting (see bug #238085).
17 Sep 2008; Markus Meier <maekke@gentoo.org> pymsn-t-0.11.3-r1.ebuild:
amd64/x86 stable, bug #237886
diff --git a/net-im/pymsn-t/Manifest b/net-im/pymsn-t/Manifest
index b70f3d34e886..90e97f0b2846 100644
--- a/net-im/pymsn-t/Manifest
+++ b/net-im/pymsn-t/Manifest
@@ -2,16 +2,20 @@
Hash: SHA1
AUX pymsn-t-0.11.2-initd 683 RMD160 7dfd35f2d31800e04ffd764efc1b65845311d32f SHA1 878d12e1d722d97eca2a9ba001e2dcc8797b4ceb SHA256 df24c7a7f4e8eb394daea3a5b79b0a861f72a2b56ec5c52871fb514d731231b2
+AUX pymsn-t-0.11.3-delete-reactor.patch 361 RMD160 ef4d492ea177658d7f7e867ef11bab3dde273164 SHA1 4a01f2fc80c287da13422532b2c75ccafa012ae0 SHA256 d989d06d9e94f1a2786dfa51e1cf715e4dc0db95583b08ce606b555aef017bae
AUX pymsn-t-0.11.3-protocol-version.patch 609 RMD160 f7cc7e2f6829861f11016db35a98396d5a0cd7c8 SHA1 7144ebaac17a61767aee92ef1b4e972c86eb5325 SHA256 008aedc95f1c2020a156d941c74784ca1385f12426342885fa7ff8474365b5a3
+AUX pymsn-t-0.11.3-remove-pid.patch 1173 RMD160 53c9e2cfc63cd86fd5680059e47caa268802cfc0 SHA1 a6dac3945731183f4821e7f09852f17de3aa850a SHA256 b4a09f2af01f752a2703d14204cb954a0641afedb1be391f1b9f6f980b234845
+AUX pymsn-t-0.11.3-unexpected-xfr.patch 1984 RMD160 b4439b435857a4bd4eb0ff4a7b75572ef4413f7b SHA1 abccc3a11a7571e6f17de91c001f8f07e300c20e SHA256 0407e9e69684275b11d404e77e9b70e694e461d4c9891ee3c7d79717999a84e9
DIST pymsnt-0.11.3.tar.gz 162549 RMD160 59e2af9eee9aa1d5b7a408b05fd520f0355556e1 SHA1 093ce984446f9edeec9d9d35a07a3958f5f656b1 SHA256 777195feb6a70b683d691c54269099d319747fad7195cca36d86df366360ce2c
EBUILD pymsn-t-0.11.3-r1.ebuild 1998 RMD160 0fc204b5d306529434d917c1ede8f8209d451def SHA1 7c71f2105a6eb07781b27b11287e9df29c1042bf SHA256 73ec76a5694f0faf38568260698c694e57959f0ae95af9d3324faac3f7502032
+EBUILD pymsn-t-0.11.3-r2.ebuild 2143 RMD160 fae7389c868f71ca659227b1973c305e54d3a631 SHA1 f36ac95b50047427b4c6a3945d689aab7275abe9 SHA256 620def3814a40c3e27a4ef2d0adf543ab41e05dbac8b3b56cc15206eedc0254d
EBUILD pymsn-t-0.11.3.ebuild 1881 RMD160 1c068d65d7166bad8f896e853a2787acb9903920 SHA1 a3cc0e3c964572ff1da568c22e718b33dc982359 SHA256 fbb9c56c6f4c5fcef2f7f444de3eae3c3a4748901a66acbd5541d50756ed0518
-MISC ChangeLog 3378 RMD160 36f6bb710e4c715e974926ddc21aca681bf9532e SHA1 e094547ac5dac855a8e4389b8af173273fbd6ee3 SHA256 de2a7572676fbf6f4a72fd55da182eed8b125c8022a62b847878f77d86572633
+MISC ChangeLog 3763 RMD160 f396d4f2563786d45966b2b56a1971c0a2897882 SHA1 3d9a13c8922c2a28fb5b2f13e2b9cfcc6bb09797 SHA256 ea6feb6c707b9c0f9cf49e9de91a00a5873aee6c63046fd9a38b499c19daf208
MISC metadata.xml 298 RMD160 bf178db6163d9777f6aec41efeb2e62ab6634a83 SHA1 bff4dfd7b7efc532399df203152564ede084589f SHA256 32651d5277d9073b5b5ea63ebfe8489f6baf6ecbc961dc7efa038552496c2d9b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
-iEYEARECAAYFAkjRdbwACgkQkKaRLQcq0GLyTACeJo9t28N5RNRMBudxsMCgoD6H
-0VkAniaDT8l6XjYRnf4zJrb6TsSkyVi7
-=Dt8X
+iEYEARECAAYFAkjZTusACgkQMGnpIbeahxx76ACgnKsRrPJHBvdcliwzNTzUmjGJ
+tA4AnA8tV6u1d9v2nojn7YFBzDy/+G1N
+=4lr4
-----END PGP SIGNATURE-----
diff --git a/net-im/pymsn-t/files/pymsn-t-0.11.3-delete-reactor.patch b/net-im/pymsn-t/files/pymsn-t-0.11.3-delete-reactor.patch
new file mode 100644
index 000000000000..19ad24f3a8fd
--- /dev/null
+++ b/net-im/pymsn-t/files/pymsn-t-0.11.3-delete-reactor.patch
@@ -0,0 +1,10 @@
+--- pymsn-t/src/main.py 2008-09-19 10:53:30.000000000 +0200
++++ pymsn-t/src/main.py 2008-09-19 10:55:55.000000000 +0200
+@@ -72,7 +72,6 @@
+
+ if config.reactor:
+ # They picked their own reactor. Lets install it.
+- del sys.modules["twisted.internet.reactor"]
+ if config.reactor == "epoll":
+ from twisted.internet import epollreactor
+ epollreactor.install()
diff --git a/net-im/pymsn-t/files/pymsn-t-0.11.3-remove-pid.patch b/net-im/pymsn-t/files/pymsn-t-0.11.3-remove-pid.patch
new file mode 100644
index 000000000000..fb85d043d6f5
--- /dev/null
+++ b/net-im/pymsn-t/files/pymsn-t-0.11.3-remove-pid.patch
@@ -0,0 +1,41 @@
+--- pymsn-t/src/main.py 2008-04-04 17:45:43.000000000 +0400
++++ pymsn-t/src/main.py 2008-08-05 17:44:17.000000000 +0400
+@@ -91,6 +91,7 @@
+ from twisted.words.xish.domish import Element
+ from twisted.words.protocols.jabber import component
+ from twisted.words.protocols.jabber.jid import internJID
++from twisted.python import log
+
+ from debug import LogEvent, INFO, WARN, ERROR
+
+@@ -352,13 +353,29 @@
+ pf = open(config.pid, "w")
+ pf.write("%s\n" % pid)
+ pf.close()
++
++ def removePID(self, pidfile):
++ # Remove a PID file
++ if not pidfile:
++ return
++ try:
++ os.unlink(pidfile)
++ except OSError, e:
++ if e.errno == errno.EACCES or e.errno == errno.EPERM:
++ log.msg("Warning: No permission to delete pid file")
++ else:
++ log.msg("Failed to unlink PID file:")
++ log.deferr()
++ except:
++ log.msg("Failed to unlink PID file:")
++ log.deferr()
+
+ def shuttingDown(self):
+ self.transportSvc.removeMe()
+ # Keep the transport running for another 3 seconds
+ def cb(ignored=None):
+ if config.pid:
+- twistd.removePID(config.pid)
++ self.removePID(config.pid)
+ d = Deferred()
+ d.addCallback(cb)
+ reactor.callLater(3.0, d.callback, None)
diff --git a/net-im/pymsn-t/files/pymsn-t-0.11.3-unexpected-xfr.patch b/net-im/pymsn-t/files/pymsn-t-0.11.3-unexpected-xfr.patch
new file mode 100644
index 000000000000..7d93d975852e
--- /dev/null
+++ b/net-im/pymsn-t/files/pymsn-t-0.11.3-unexpected-xfr.patch
@@ -0,0 +1,44 @@
+--- pymsn-t/src/legacy/glue.py 2008-09-19 10:53:30.000000000 +0200
++++ pymsn-t/src/legacy/glue.py 2008-09-19 10:52:38.000000000 +0200
+@@ -379,7 +379,13 @@
+ self.session.removeMe()
+
+ def connectionLost(self, reason):
+- LogEvent(INFO, self.jabberID)
++ LogEvent(INFO, self.jabberID)
++ # If we got a second referral, don't really log out but let the next NS
++ # try to log us in
++ if reason.type == error.ConnectionDone and self.gotadditionalXFR != 0:
++ LogEvent(INFO, self.ident)
++ self.gotadditionalXFR = 0
++ return
+ if reason.type != error.ConnectionDone:
+ text = lang.get(self.session.lang).msnDisconnected % reason
+ self.session.sendMessage(to=self.jabberID, fro=config.jid, body=text)
+--- pymsn-t/src/legacy/msn/msn.py 2008-09-19 10:53:30.000000000 +0200
++++ pymsn-t/src/legacy/msn/msn.py 2008-09-19 10:52:38.000000000 +0200
+@@ -1347,7 +1347,9 @@
+ port = MSN_PORT
+
+ if not self._fireCallback(id, host, int(port), params[4]):
+- raise MSNProtocolError, "Got XFR (referral) that I didn't ask for .. should this happen?" # debug
++ #raise MSNProtocolError, "Got XFR (referral) that I didn't ask for .. should this happen?" # debug
++ self.factory.msncon.gotadditionalXFR = 1
++ self.factory.msncon.connectors.append(reactor.connectTCP(host, int(port), self.factory, bindAddress=(self.factory.msncon.BINDADDRESS, 0)))
+
+ def handle_RNG(self, params):
+ checkParamLen(len(params), 6, 'RNG')
+--- pymsn-t/src/legacy/msn/msnw.py 2008-09-19 10:53:30.000000000 +0200
++++ pymsn-t/src/legacy/msn/msnw.py 2008-09-19 10:52:38.000000000 +0200
+@@ -67,8 +67,9 @@
+ LogEvent(INFO, self.ident)
+
+ def _gotNotificationReferral(self, (host, port)):
+- self.timeout.cancel()
+- self.timeout = None
++ if self.timeout != None:
++ self.timeout.cancel()
++ self.timeout = None
+ # Create the NotificationClient
+ self.notificationFactory = msn.NotificationFactory()
+ self.notificationFactory.userHandle = self.username
diff --git a/net-im/pymsn-t/pymsn-t-0.11.3-r2.ebuild b/net-im/pymsn-t/pymsn-t-0.11.3-r2.ebuild
new file mode 100644
index 000000000000..76cf7e108392
--- /dev/null
+++ b/net-im/pymsn-t/pymsn-t-0.11.3-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/pymsn-t-0.11.3-r2.ebuild,v 1.1 2008/09/23 20:17:38 griffon26 Exp $
+
+NEED_PYTHON=2.3
+
+inherit eutils multilib python
+
+MY_PN="pymsnt"
+S=${WORKDIR}/${MY_PN}-${PV}
+DESCRIPTION="Python based jabber transport for MSN"
+HOMEPAGE="http://msn-transport.jabberstudio.org/"
+SRC_URI="http://msn-transport.jabberstudio.org/tarballs/${MY_PN}-${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="net-im/jabber-base"
+RDEPEND="${DEPEND}
+ >=dev-python/twisted-2.5.0
+ >=dev-python/twisted-words-0.5.0
+ >=dev-python/twisted-web-0.7.0
+ >=dev-python/imaging-1.1"
+
+src_unpack() {
+ unpack ${A} && cd "${S}" || die "unpack failed"
+ epatch "${FILESDIR}/${P}-protocol-version.patch"
+ epatch "${FILESDIR}/${P}-unexpected-xfr.patch"
+ epatch "${FILESDIR}/${P}-remove-pid.patch"
+ epatch "${FILESDIR}/${P}-delete-reactor.patch"
+}
+
+src_install() {
+ local inspath
+
+ python_version
+ inspath=/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+ insinto ${inspath}
+ doins -r data src
+ newins PyMSNt.py ${PN}.py
+
+ insinto /etc/jabber
+ newins config-example.xml ${PN}.xml
+ fperms 600 /etc/jabber/${PN}.xml
+ fowners jabber:jabber /etc/jabber/${PN}.xml
+ dosed \
+ "s:<!-- <spooldir>[^\<]*</spooldir> -->:<spooldir>/var/spool/jabber</spooldir>:" \
+ /etc/jabber/${PN}.xml
+ dosed \
+ "s:<pid>[^\<]*</pid>:<pid>/var/run/jabber/${PN}.pid</pid>:" \
+ /etc/jabber/${PN}.xml
+ dosed \
+ "s:<host>[^\<]*</host>:<host>example.org</host>:" \
+ /etc/jabber/${PN}.xml
+ dosed \
+ "s:<jid>msn</jid>:<jid>msn.example.org</jid>:" \
+ /etc/jabber/${PN}.xml
+
+ newinitd "${FILESDIR}/${PN}-0.11.2-initd" ${PN}
+ dosed "s:INSPATH:${inspath}:" /etc/init.d/${PN}
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}
+
+ elog "A sample configuration file has been installed in /etc/jabber/${PN}.xml."
+ elog "Please edit it and the configuration of your Jabber server to match."
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}
+}