aboutsummaryrefslogtreecommitdiff
path: root/net-im/jabber-pyicq/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-06-07 15:18:15 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-06-07 15:18:15 +0000
commitafe46a3a17f6a68b36ff3974dba21766222e546e (patch)
tree182f77534a63ecf52f852778120fb726e3e99b7b /net-im/jabber-pyicq/files
parentab32e20b45bf1e865e3eacb2dfc732027897663b (diff)
downloadports-afe46a3a17f6a68b36ff3974dba21766222e546e.tar.gz
ports-afe46a3a17f6a68b36ff3974dba21766222e546e.zip
Notes
Diffstat (limited to 'net-im/jabber-pyicq/files')
-rw-r--r--net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in34
-rw-r--r--net-im/jabber-pyicq/files/patch-src_main.py24
-rw-r--r--net-im/jabber-pyicq/files/pkg-message.in22
3 files changed, 80 insertions, 0 deletions
diff --git a/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in b/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in
new file mode 100644
index 000000000000..dda434fc9d75
--- /dev/null
+++ b/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# Start or stop jabber-pyicq
+# $FreeBSD$
+
+# PROVIDE: jabber_pyicq
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+#
+# Define these jabber_pyicq_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+jabber_pyicq_dir=${jabberd_pyicq_dir-"%%PREFIX%%/lib/jabber/pyicq"}
+jabber_pyicq_piddir=${jabberd_pyicq_piddir-"/var/jabberd/pid"}
+jabber_pyicq_enable=${jabberd_pyicq_enable-"NO"}
+
+
+. %%RC_SUBR%%
+
+name="jabber_pyicq"
+rcvar=`set_rcvar`
+command_interpreter="%%PYTHON_CMD%%"
+command="${jabber_pyicq_dir}/main.py"
+command_args="&"
+
+#procname="${PYTHON} ${jabber_pyicq_dir}/main.py"
+pidfile="${jabber_pyicq_piddir}/pyicq.pid"
+
+load_rc_config $name
+run_rc_command "$1"
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 <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:
diff --git a/net-im/jabber-pyicq/files/pkg-message.in b/net-im/jabber-pyicq/files/pkg-message.in
new file mode 100644
index 000000000000..7fd511c6c383
--- /dev/null
+++ b/net-im/jabber-pyicq/files/pkg-message.in
@@ -0,0 +1,22 @@
+******************************************************************************
+Remember to edit %%PREFIX%%/etc/jabber-pyicq.xml to suit your needs.
+
+* The 'jid' setting should be what ID you want PyICQt to take on the network.
+* The 'mainServer' setting should be the IP address or DNS of the main Jabberd
+ server.
+* The 'secret' setting should match the secret specified for component
+ connections in your main Jabberd server.
+* The 'port' setting is the port that PyICQt is to connect to (more details on
+ this below.
+* You can also turn on debugging options, and customise some of the text that
+ is sent to the users in this file.
+
+If you are using Jabberd2 then you shouldn't have to do much configuration.
+Make sure the 'mainServer' setting is the IP or DNS of your Jabber server, and
+leave the 'port' setting alone. Double-check that the secret for legacy
+components in router.xml (for Jabberd2) is the same as the secret setting in
+config.py. That should be all. You don't even need to restart Jabberd2.
+
+If you are using Jabberd1.4.x, it's a bit more complicated. Follow the setup
+instructions at http://pyicq-t.blathersource.org/install.php
+******************************************************************************