diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-06-07 15:18:15 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-06-07 15:18:15 +0000 |
commit | afe46a3a17f6a68b36ff3974dba21766222e546e (patch) | |
tree | 182f77534a63ecf52f852778120fb726e3e99b7b /net/jabber-pyicq/files/patch-src_main.py | |
parent | . Update to 1.3.1_15. (diff) |
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 <freebsd@galle.com.br>
Notes
Notes:
svn path=/head/; revision=136996
Diffstat (limited to 'net/jabber-pyicq/files/patch-src_main.py')
-rw-r--r-- | net/jabber-pyicq/files/patch-src_main.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/jabber-pyicq/files/patch-src_main.py b/net/jabber-pyicq/files/patch-src_main.py new file mode 100644 index 000000000000..29195250e9d2 --- /dev/null +++ b/net/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 <james@delx.cjb.net> + # 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: |