aboutsummaryrefslogtreecommitdiff
path: root/net-im/jabber-pyaim
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-07-05 15:28:07 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-07-05 15:28:07 +0000
commit08df097014737ac142768a44aff08cd6465cb945 (patch)
treecd049fcb3724423f2b6b1b5ce348c40065f0e396 /net-im/jabber-pyaim
parent252ac5beb724950d910163a10d7814721bfd3d04 (diff)
downloadports-08df097014737ac142768a44aff08cd6465cb945.tar.gz
ports-08df097014737ac142768a44aff08cd6465cb945.zip
Notes
Diffstat (limited to 'net-im/jabber-pyaim')
-rw-r--r--net-im/jabber-pyaim/Makefile82
-rw-r--r--net-im/jabber-pyaim/distinfo3
-rw-r--r--net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in32
-rw-r--r--net-im/jabber-pyaim/pkg-descr6
-rw-r--r--net-im/jabber-pyaim/pkg-plist135
5 files changed, 258 insertions, 0 deletions
diff --git a/net-im/jabber-pyaim/Makefile b/net-im/jabber-pyaim/Makefile
new file mode 100644
index 000000000000..0ce6ab01c0cc
--- /dev/null
+++ b/net-im/jabber-pyaim/Makefile
@@ -0,0 +1,82 @@
+# New ports collection makefile for: Jabber Python AIM Transport
+# Date created: 2006-06-06
+# Whom: Derek Kulinski <takeda@takeda.tk>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pyaim
+PORTVERSION= 0.7d
+CATEGORIES= net-im
+MASTER_SITES= http://www.blathersource.org/download.php/${PORTNAME}-t/
+PKGNAMEPREFIX= jabber-
+PKGNAMESUFFIX= -transport
+DISTNAME= ${PORTNAME}-t-${PORTVERSION}
+DIST_SUBDIR= jabber
+
+MAINTAINER= takeda@takeda.tk
+COMMENT= Python AIM-Transport for Jabber
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
+
+OPTIONS= EJABBERD "Use transport with ejabberd" off
+
+NO_BUILD= yes
+USE_PYTHON= yes
+USE_RC_SUBR= jabber-pyaim-transport.sh
+
+SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
+
+INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME}
+
+PORTDOCS= COPYING README NEWS AUTHORS INSTALL
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_EJABBERD)
+JABBER_USER?= ejabberd
+SUB_LIST+= JABBER_REQUIRE=ejabberd
+.else
+JABBER_USER?= jabber
+SUB_LIST+= JABBER_REQUIRE=jabberd
+.endif
+
+SUB_LIST+= JABBER_USER=${JABBER_USER}
+
+post-patch:
+ @${REINPLACE_CMD} -i "" -e '/spooldir/s|\.\.|/var/spool/jabber|' \
+ -e 's|\.\./PyAIMt.pid|/var/jabberd/pid/PyAIMt.pid|' \
+ ${WRKSRC}/config_example.xml
+ @${REINPLACE_CMD} -i "" -e 's|spooldir = "\.\."|spooldir = "/var/spool/jabber"|g' \
+ -e 's|pid = ""|pid = "/var/jabberd/pid/PyAIMt.pid"|g' \
+ ${WRKSRC}/src/config.py
+ @${REINPLACE_CMD} -i "" 's|"config\.xml"|"${PREFIX}/etc/jabber-pyaim.xml"|' \
+ ${WRKSRC}/src/main.py
+ @${REINPLACE_CMD} -i "" 's|/usr/bin/env python|${PYTHON_CMD}|' \
+ ${WRKSRC}/PyAIMt.py
+
+do-install:
+ ${MKDIR} ${INST_DIR}/src ${INST_DIR}/data
+ ${INSTALL_SCRIPT} ${WRKSRC}/PyAIMt.py ${INST_DIR}
+ @${CP} -Rv ${WRKSRC}/data/* ${INST_DIR}/data/
+ @${CP} -Rv ${WRKSRC}/src/* ${INST_DIR}/src/
+ ${MKDIR} ${EXAMPLESDIR}/etc
+ ${INSTALL_DATA} ${WRKSRC}/config_example.xml ${EXAMPLESDIR}/etc/jabber-pyaim.xml
+ @[ -f ${PREFIX}/etc/jabber-pyaim.xml ] || ${CP} -v ${EXAMPLESDIR}/etc/jabber-pyaim.xml ${PREFIX}/etc/jabber-pyaim.xml
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for portdoc in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${portdoc} ${DOCSDIR}/
+.endfor
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${INST_DIR}/src
+.endif
+
+post-install:
+ @${ECHO_CMD}
+ @${ECHO_CMD} "**************************************************************************************"
+ @${ECHO_CMD} "Remember to edit ${PREFIX}/etc/jabber-pyaim.xml to suit your needs."
+ @${ECHO_CMD} "Follow the setup instructions at: http://wiki.blathersource.org/wiki/index.php/PyAIMt."
+ @${ECHO_CMD} "**************************************************************************************"
+ @${ECHO_CMD}
+
+.include <bsd.port.post.mk>
diff --git a/net-im/jabber-pyaim/distinfo b/net-im/jabber-pyaim/distinfo
new file mode 100644
index 000000000000..28a8f78f60bf
--- /dev/null
+++ b/net-im/jabber-pyaim/distinfo
@@ -0,0 +1,3 @@
+MD5 (jabber/pyaim-t-0.7d.tar.gz) = 99b593a2a1dc7cc6281dad4a4d8fb5e1
+SHA256 (jabber/pyaim-t-0.7d.tar.gz) = 768b038f51548ce9f87932d74d98f4cd68f9412775e3b1a4345775857592d122
+SIZE (jabber/pyaim-t-0.7d.tar.gz) = 144842
diff --git a/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in b/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in
new file mode 100644
index 000000000000..1ed5c1288138
--- /dev/null
+++ b/net-im/jabber-pyaim/files/jabber-pyaim-transport.sh.in
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: jabber_pyaim
+# REQUIRE: DAEMON %%JABBER_REQUIRE%%
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+# Define these jabber_pyaim_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+#
+
+. %%RC_SUBR%%
+
+name="jabber_pyaim"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${jabber_pyaim_enable="NO"}
+: ${jabber_pyaim_dir="%%PREFIX%%/lib/jabber/pyaim"}
+: ${jabber_pyaim_piddir="/var/jabberd/pid"}
+: ${jabber_pyaim_user="%%JABBER_USER%%"}
+
+pidfile="${jabber_pyaim_piddir}/PyAIMt.pid"
+command_interpreter="%%PYTHON_CMD%%"
+command_args="-b -o pid=${pidfile}"
+command="${jabber_pyaim_dir}/PyAIMt.py"
+
+run_rc_command "$1"
diff --git a/net-im/jabber-pyaim/pkg-descr b/net-im/jabber-pyaim/pkg-descr
new file mode 100644
index 000000000000..b3ecdd7be5ba
--- /dev/null
+++ b/net-im/jabber-pyaim/pkg-descr
@@ -0,0 +1,6 @@
+PyAIMt is an AIM transport for Jabber written entirely in Python, and using
+the Twisted framework. It uses the OSCAR protocol to communicate with AOL's
+servers and should work with any Jabber implementation available.
+
+Author: Daniel Henninger <jadestorm@nc.rr.com>
+WWW: http://pyaim-t.blathersource.org/
diff --git a/net-im/jabber-pyaim/pkg-plist b/net-im/jabber-pyaim/pkg-plist
new file mode 100644
index 000000000000..0fbcc9f8f051
--- /dev/null
+++ b/net-im/jabber-pyaim/pkg-plist
@@ -0,0 +1,135 @@
+@comment $FreeBSD$
+@unexec if cmp -s %D/%%EXAMPLESDIR%%/etc/jabber-pyaim.xml %D/etc/jabber-pyaim.xml; then rm -f %D/etc/jabber-pyaim.xml; fi
+%%EXAMPLESDIR%%/etc/jabber-pyaim.xml
+@exec [ -f %D/etc/jabber-pyaim.xml ] || cp %B/%f %D/etc/jabber-pyaim.xml
+lib/jabber/pyaim/PyAIMt.py
+lib/jabber/pyaim/data/defaultAIMAvatar.png
+lib/jabber/pyaim/data/defaultICQAvatar.png
+lib/jabber/pyaim/data/www/css/style.css
+lib/jabber/pyaim/data/www/images/pyaim.png
+lib/jabber/pyaim/data/www/template.html
+lib/jabber/pyaim/src/avatar.py
+lib/jabber/pyaim/src/avatar.pyc
+lib/jabber/pyaim/src/bool.py
+lib/jabber/pyaim/src/bool.pyc
+lib/jabber/pyaim/src/config.py
+lib/jabber/pyaim/src/config.pyc
+lib/jabber/pyaim/src/contact.py
+lib/jabber/pyaim/src/contact.pyc
+lib/jabber/pyaim/src/daemonize.py
+lib/jabber/pyaim/src/daemonize.pyc
+lib/jabber/pyaim/src/debug.py
+lib/jabber/pyaim/src/debug.pyc
+lib/jabber/pyaim/src/disco.py
+lib/jabber/pyaim/src/disco.pyc
+lib/jabber/pyaim/src/globals.py
+lib/jabber/pyaim/src/globals.pyc
+lib/jabber/pyaim/src/groupchat.py
+lib/jabber/pyaim/src/groupchat.pyc
+lib/jabber/pyaim/src/imgmanip.py
+lib/jabber/pyaim/src/imgmanip.pyc
+lib/jabber/pyaim/src/jabw.py
+lib/jabber/pyaim/src/jabw.pyc
+lib/jabber/pyaim/src/lang.py
+lib/jabber/pyaim/src/lang.pyc
+lib/jabber/pyaim/src/langs/__init__.py
+lib/jabber/pyaim/src/langs/__init__.pyc
+lib/jabber/pyaim/src/langs/cs.py
+lib/jabber/pyaim/src/langs/cs.pyc
+lib/jabber/pyaim/src/langs/de.py
+lib/jabber/pyaim/src/langs/de.pyc
+lib/jabber/pyaim/src/langs/en.py
+lib/jabber/pyaim/src/langs/en.pyc
+lib/jabber/pyaim/src/langs/fr.py
+lib/jabber/pyaim/src/langs/fr.pyc
+lib/jabber/pyaim/src/langs/nl.py
+lib/jabber/pyaim/src/langs/nl.pyc
+lib/jabber/pyaim/src/langs/pl.py
+lib/jabber/pyaim/src/langs/pl.pyc
+lib/jabber/pyaim/src/langs/ru.py
+lib/jabber/pyaim/src/langs/ru.pyc
+lib/jabber/pyaim/src/legacy/__init__.py
+lib/jabber/pyaim/src/legacy/__init__.pyc
+lib/jabber/pyaim/src/legacy/aimt.py
+lib/jabber/pyaim/src/legacy/aimt.pyc
+lib/jabber/pyaim/src/legacy/glue.py
+lib/jabber/pyaim/src/legacy/glue.pyc
+lib/jabber/pyaim/src/legacy/legacyiq.py
+lib/jabber/pyaim/src/legacy/legacyiq.pyc
+lib/jabber/pyaim/src/legacy/legacylist.py
+lib/jabber/pyaim/src/legacy/legacylist.pyc
+lib/jabber/pyaim/src/main.py
+lib/jabber/pyaim/src/main.pyc
+lib/jabber/pyaim/src/misciq.py
+lib/jabber/pyaim/src/misciq.pyc
+lib/jabber/pyaim/src/register.py
+lib/jabber/pyaim/src/register.pyc
+lib/jabber/pyaim/src/sasl.py
+lib/jabber/pyaim/src/sasl.pyc
+lib/jabber/pyaim/src/session.py
+lib/jabber/pyaim/src/session.pyc
+lib/jabber/pyaim/src/tlib/__init__.py
+lib/jabber/pyaim/src/tlib/__init__.pyc
+lib/jabber/pyaim/src/tlib/countrycodes.py
+lib/jabber/pyaim/src/tlib/countrycodes.pyc
+lib/jabber/pyaim/src/tlib/domish.py
+lib/jabber/pyaim/src/tlib/domish.pyc
+lib/jabber/pyaim/src/tlib/jabber/__init__.py
+lib/jabber/pyaim/src/tlib/jabber/__init__.pyc
+lib/jabber/pyaim/src/tlib/jabber/client.py
+lib/jabber/pyaim/src/tlib/jabber/client.pyc
+lib/jabber/pyaim/src/tlib/jabber/component.py
+lib/jabber/pyaim/src/tlib/jabber/component.pyc
+lib/jabber/pyaim/src/tlib/jabber/jid.py
+lib/jabber/pyaim/src/tlib/jabber/jid.pyc
+lib/jabber/pyaim/src/tlib/jabber/jstrports.py
+lib/jabber/pyaim/src/tlib/jabber/jstrports.pyc
+lib/jabber/pyaim/src/tlib/jabber/xmpp_stringprep.py
+lib/jabber/pyaim/src/tlib/jabber/xmpp_stringprep.pyc
+lib/jabber/pyaim/src/tlib/oscar.py
+lib/jabber/pyaim/src/tlib/oscar.pyc
+lib/jabber/pyaim/src/tlib/scheduler.py
+lib/jabber/pyaim/src/tlib/scheduler.pyc
+lib/jabber/pyaim/src/tlib/socks5.py
+lib/jabber/pyaim/src/tlib/socks5.pyc
+lib/jabber/pyaim/src/tlib/sockserror.py
+lib/jabber/pyaim/src/tlib/sockserror.pyc
+lib/jabber/pyaim/src/tlib/twistwrap.py
+lib/jabber/pyaim/src/tlib/twistwrap.pyc
+lib/jabber/pyaim/src/tlib/xmlstream.py
+lib/jabber/pyaim/src/tlib/xmlstream.pyc
+lib/jabber/pyaim/src/utils.py
+lib/jabber/pyaim/src/utils.pyc
+lib/jabber/pyaim/src/web/__init__.py
+lib/jabber/pyaim/src/web/__init__.pyc
+lib/jabber/pyaim/src/web/handler.py
+lib/jabber/pyaim/src/web/handler.pyc
+lib/jabber/pyaim/src/web/xmppcred.py
+lib/jabber/pyaim/src/web/xmppcred.pyc
+lib/jabber/pyaim/src/xdb/__init__.py
+lib/jabber/pyaim/src/xdb/__init__.pyc
+lib/jabber/pyaim/src/xdb/legacyaimtransport.py
+lib/jabber/pyaim/src/xdb/legacyaimtransport.pyc
+lib/jabber/pyaim/src/xdb/mysql.py
+lib/jabber/pyaim/src/xdb/mysql.pyc
+lib/jabber/pyaim/src/xdb/template.py
+lib/jabber/pyaim/src/xdb/template.pyc
+lib/jabber/pyaim/src/xdb/xmlfiles.py
+lib/jabber/pyaim/src/xdb/xmlfiles.pyc
+lib/jabber/pyaim/src/xmlconfig.py
+lib/jabber/pyaim/src/xmlconfig.pyc
+@dirrm lib/jabber/pyaim/src/xdb
+@dirrm lib/jabber/pyaim/src/web
+@dirrm lib/jabber/pyaim/src/tlib/jabber
+@dirrm lib/jabber/pyaim/src/tlib
+@dirrm lib/jabber/pyaim/src/legacy
+@dirrm lib/jabber/pyaim/src/langs
+@dirrm lib/jabber/pyaim/src
+@dirrm lib/jabber/pyaim/data/www/images
+@dirrm lib/jabber/pyaim/data/www/css
+@dirrm lib/jabber/pyaim/data/www
+@dirrm lib/jabber/pyaim/data
+@dirrm lib/jabber/pyaim
+@dirrmtry lib/jabber
+@dirrm %%EXAMPLESDIR%%/etc
+@dirrm %%EXAMPLESDIR%%