summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2013-09-14 23:05:48 +0000
committerHanno Böck <hanno@gentoo.org>2013-09-14 23:05:48 +0000
commitd294172ae7df098c838ee3540ce70151ce1afd9b (patch)
tree287a4eadbf0df42a7a7544db9575055fc0abc524 /net-im/pymsn-t/files
parentAdd -fno-strict-aliasing for python2. (diff)
downloadgentoo-2-d294172ae7df098c838ee3540ce70151ce1afd9b.tar.gz
gentoo-2-d294172ae7df098c838ee3540ce70151ce1afd9b.tar.bz2
gentoo-2-d294172ae7df098c838ee3540ce70151ce1afd9b.zip
pymsn-t: various fixex, cleanup
(Portage version: 2.2.4/cvs/Linux x86_64, signed Manifest commit with key 0xA5880072BBB51E42)
Diffstat (limited to 'net-im/pymsn-t/files')
-rw-r--r--net-im/pymsn-t/files/pymsn-t-0.11.3-imaging-pillow.patch12
-rw-r--r--net-im/pymsn-t/files/pymsn-t-0.11.3-twisted13.patch11
-rw-r--r--net-im/pymsn-t/files/pymsn-t-initd-r124
3 files changed, 47 insertions, 0 deletions
diff --git a/net-im/pymsn-t/files/pymsn-t-0.11.3-imaging-pillow.patch b/net-im/pymsn-t/files/pymsn-t-0.11.3-imaging-pillow.patch
new file mode 100644
index 000000000000..7d17dae04f21
--- /dev/null
+++ b/net-im/pymsn-t/files/pymsn-t-0.11.3-imaging-pillow.patch
@@ -0,0 +1,12 @@
+diff -Naur pymsnt-0.11.3/src/utils.py pymsnt-0.11.3-1/src/utils.py
+--- pymsnt-0.11.3/src/utils.py 2008-02-08 14:55:07.000000000 +0100
++++ pymsnt-0.11.3-1/src/utils.py 2013-09-15 00:27:56.815633838 +0200
+@@ -25,7 +25,7 @@
+
+
+ try:
+- import Image
++ from PIL import Image
+ import StringIO
+
+ def convertToPNG(imageData):
diff --git a/net-im/pymsn-t/files/pymsn-t-0.11.3-twisted13.patch b/net-im/pymsn-t/files/pymsn-t-0.11.3-twisted13.patch
new file mode 100644
index 000000000000..aab9bad77b72
--- /dev/null
+++ b/net-im/pymsn-t/files/pymsn-t-0.11.3-twisted13.patch
@@ -0,0 +1,11 @@
+--- pymsnt-0.11.3/src/main.py 2008-02-08 14:55:07.000000000 +0100
++++ pymsnt-0.11.3-1/src/main.py 2013-09-15 00:57:20.297587280 +0200
+@@ -328,7 +328,7 @@
+
+ # Daemonise the process and write the PID file
+ if config.background and os.name == "posix":
+- twistd.daemonize()
++ twistd.daemonize(reactor,os)
+ if config.pid:
+ self.writePID()
+
diff --git a/net-im/pymsn-t/files/pymsn-t-initd-r1 b/net-im/pymsn-t/files/pymsn-t-initd-r1
new file mode 100644
index 000000000000..d7ba09a634ba
--- /dev/null
+++ b/net-im/pymsn-t/files/pymsn-t-initd-r1
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/pymsn-t/files/pymsn-t-initd-r1,v 1.1 2013/09/14 23:05:48 hanno Exp $
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting MSN Jabber Transport"
+ checkpath -q -d -m 0755 -o jabber:jabber /var/run/jabber/
+ start-stop-daemon --start --pidfile /var/run/jabber/pymsn-t.pid -u jabber -g jabber \
+ --exec INSPATH/pymsn-t.py -- \
+ -b -c /etc/jabber/pymsn-t.xml -l /var/log/jabber/pymsn-t.log
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping MSN Jabber Transport"
+ start-stop-daemon --stop --quiet --pidfile /var/run/jabber/pymsn-t.pid
+ eend $?
+}