From afe46a3a17f6a68b36ff3974dba21766222e546e Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Tue, 7 Jun 2005 15:18:15 +0000 Subject: Python ICQ-Transport for Jabber. The purpose of this transport is to provide a way for users to be logged into ICQ via their Jabber account. It is implemented in Python, using the Twisted framework. This project is just getting off the ground, and so it does not have quite the functionality of other transports yet. That will come in time. PR: ports/81994 Submitted by: Renato Botelho --- net-im/jabber-pyicq/files/patch-src_main.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 net-im/jabber-pyicq/files/patch-src_main.py (limited to 'net-im/jabber-pyicq/files/patch-src_main.py') diff --git a/net-im/jabber-pyicq/files/patch-src_main.py b/net-im/jabber-pyicq/files/patch-src_main.py new file mode 100644 index 000000000000..29195250e9d2 --- /dev/null +++ b/net-im/jabber-pyicq/files/patch-src_main.py @@ -0,0 +1,24 @@ +--- src/main.py.orig Tue Jun 7 09:54:58 2005 ++++ src/main.py Tue Jun 7 09:56:26 2005 +@@ -1,3 +1,4 @@ ++#!%%PYTHON_CMD%% + # Copyright 2004 James Bunton + # Licensed for distribution under the GPL version 2, check COPYING for details + +@@ -13,15 +14,9 @@ + print("You are using version %s of Python, at least 2.3 is required." % (sys.version[:3])) + os._exit(0) + +-name = "PyICQt" +-exe = os.path.realpath(sys.executable) +-if (exe.find("python") >= 0): +- print("Restarting with process name %s..." % (name)) +- os.execv(exe, [name, sys.argv[0]]+sys.argv[1:]) +- + import config + import xmlconfig +-conffile = "config.xml" ++conffile = "%%PREFIX%%/etc/jabber-pyicq.xml" + options = {} + opts, args = getopt.getopt(sys.argv[1:], "c:o:dDl:h", ["config=", "option=", "debug", "Debug", "log=", "help"]) + for o, v in opts: -- cgit v1.2.3