summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-03-19 00:27:52 +0000
committerflz <flz@FreeBSD.org>2005-03-19 00:27:52 +0000
commit60cac734c8c10c3a0a887f60f2f9b43fa1b98a19 (patch)
tree2b8d913d5d34531328ef70ed9670cb72716bc47a
parenta57b5c253ea0005eab984644906c578ad039b1b7 (diff)
downloadFreeBSD-ports-60cac734c8c10c3a0a887f60f2f9b43fa1b98a19.zip
FreeBSD-ports-60cac734c8c10c3a0a887f60f2f9b43fa1b98a19.tar.gz
- Add jabber-pymsn 0.9.1, a Python MSN-Transport for Jabber.
PR: ports/78534 Submitted by: root@pacno.net
-rw-r--r--net-im/jabber-pymsn/Makefile69
-rw-r--r--net-im/jabber-pymsn/distinfo2
-rw-r--r--net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in34
-rw-r--r--net-im/jabber-pymsn/files/pkg-message.in22
-rw-r--r--net-im/jabber-pymsn/pkg-descr5
-rw-r--r--net-im/jabber-pymsn/pkg-plist42
-rw-r--r--net/Makefile1
-rw-r--r--net/jabber-pymsn/Makefile69
-rw-r--r--net/jabber-pymsn/distinfo2
-rw-r--r--net/jabber-pymsn/files/jabber-pymsn-transport.sh.in34
-rw-r--r--net/jabber-pymsn/files/pkg-message.in22
-rw-r--r--net/jabber-pymsn/pkg-descr5
-rw-r--r--net/jabber-pymsn/pkg-plist42
13 files changed, 349 insertions, 0 deletions
diff --git a/net-im/jabber-pymsn/Makefile b/net-im/jabber-pymsn/Makefile
new file mode 100644
index 0000000..cf800ea
--- /dev/null
+++ b/net-im/jabber-pymsn/Makefile
@@ -0,0 +1,69 @@
+# New ports collection makefile for: Jabber Python MSN Transport
+# Date created: Tue Nov 23 16:42:07 CET 2004
+# Whom: Martijn Lina <martijn@pacno.net>
+#
+# $FreeBSD$
+
+PORTNAME= pymsn
+PORTVERSION= 0.9.1
+CATEGORIES= net
+MASTER_SITES= http://msn-transport.jabberstudio.org/tarballs/
+PKGNAMEPREFIX= jabber-
+PKGNAMESUFFIX= -transport
+DISTNAME= PyMSNt-${PORTVERSION}
+DIST_SUBDIR= jabber
+
+MAINTAINER= martijn@pacno.net
+COMMENT= Python MSN-Transport for Jabber
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl \
+ ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
+
+NO_BUILD= yes
+USE_PYTHON= yes
+USE_REINPLACE= yes
+USE_RC_SUBR= jabber-pymsn-transport.sh
+
+SUB_FILES= pkg-message
+SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
+
+INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME}
+
+PORTDOCS= COPYING README TODO
+
+post-extract:
+ @${FIND} ${WRKSRC}/ -type d -name CVS |xargs ${RM} -rf
+
+post-patch:
+ @${REINPLACE_CMD} -e '/spooldir/s|/path/to/data|/var/spool/jabber|' \
+ -e '/pid/s|PyMSNt.pid|/var/jabberd/pid/${PORTNAME}.pid|' \
+ -e '/<debugOn>/s|<debugOn>|<!--<debugOn>-->|' \
+ ${WRKSRC}/config-example.xml
+ @${REINPLACE_CMD} -e 's|../config.xml|${PREFIX}/etc/jabber-pymsn.xml|g' \
+ ${WRKSRC}/src/xmlconfig.py
+ @${RM} ${WRKSRC}/src/xmlconfig.py.bak
+ @${ECHO} '#!${PYTHON_CMD}' > ${WRKSRC}/src/main.py.new
+ @${CAT} ${WRKSRC}/src/main.py >> ${WRKSRC}/src/main.py.new
+ @${MV} ${WRKSRC}/src/main.py.new ${WRKSRC}/src/main.py
+ @${MV} ${WRKSRC}/src/config.py ${WRKSRC}/src/config.py.sample
+
+do-install:
+ ${INSTALL} -d ${INST_DIR}
+ ${CP} -pPR ${WRKSRC}/src/* ${INST_DIR}/
+ ${CHMOD} 755 ${INST_DIR}/main.py
+ [ -f ${INST_DIR}/config.py ] || ${CP} ${INST_DIR}/config.py.sample ${INST_DIR}/config.py
+ ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/${PKGBASE}.sh ${PREFIX}/etc/rc.d/${PKGBASE}.sh
+ @${MKDIR} ${EXAMPLESDIR}/etc
+ ${INSTALL_DATA} ${WRKSRC}/config-example.xml ${EXAMPLESDIR}/etc/jabber-pymsn.xml
+ [ -f ${PREFIX}/etc/jabber-pymsn.xml ] || ${CP} ${EXAMPLESDIR}/etc/jabber-pymsn.xml ${PREFIX}/etc/jabber-pymsn.xml
+.if !defined(NOPORTDOCS)
+.for portdoc in ${PORTDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${portdoc} ${DOCSDIR}/
+.endfor
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/net-im/jabber-pymsn/distinfo b/net-im/jabber-pymsn/distinfo
new file mode 100644
index 0000000..5be15af
--- /dev/null
+++ b/net-im/jabber-pymsn/distinfo
@@ -0,0 +1,2 @@
+MD5 (jabber/PyMSNt-0.9.1.tar.gz) = e6be82175bc99180e421d69ecbb350e3
+SIZE (jabber/PyMSNt-0.9.1.tar.gz) = 73022
diff --git a/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in
new file mode 100644
index 0000000..fc0a593
--- /dev/null
+++ b/net-im/jabber-pymsn/files/jabber-pymsn-transport.sh.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# Start or stop jabber-pymsn
+# $FreeBSD$
+
+# PROVIDE: jabber_pymsn
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+#
+# Define these jabber_pymsn_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+jabber_pymsn_dir=${jabberd_pymsn_dir-"%%PREFIX%%/lib/jabber/pymsn"}
+jabber_pymsn_piddir=${jabberd_pymsn_piddir-"/var/jabberd/pid"}
+jabber_pymsn_enable=${jabberd_pymsn_enable-"NO"}
+
+
+. %%RC_SUBR%%
+
+name="jabber_pymsn"
+rcvar=`set_rcvar`
+command_interpreter="%%PYTHON_CMD%%"
+command="${jabber_pymsn_dir}/main.py"
+command_args="&"
+
+#procname="${PYTHON} ${jabber_pymsn_dir}/main.py"
+pidfile="${jabber_pymsn_piddir}/pymsn.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net-im/jabber-pymsn/files/pkg-message.in b/net-im/jabber-pymsn/files/pkg-message.in
new file mode 100644
index 0000000..4de09bf
--- /dev/null
+++ b/net-im/jabber-pymsn/files/pkg-message.in
@@ -0,0 +1,22 @@
+******************************************************************************
+Remember to edit %%PREFIX%%/etc/jabber-pymsn.xml to suit your needs.
+
+* The 'jid' setting should be what ID you want PyMSNt 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 PyMSNt 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://msn-transport.jabberstudio.org/docs/server.html.
+******************************************************************************
diff --git a/net-im/jabber-pymsn/pkg-descr b/net-im/jabber-pymsn/pkg-descr
new file mode 100644
index 0000000..5dbea3a
--- /dev/null
+++ b/net-im/jabber-pymsn/pkg-descr
@@ -0,0 +1,5 @@
+Python MSN-Transport for Jabber.
+
+MSN-t provides basic interoperability between Jabber and MSN. It has to be
+installed on the Jabber server. This version has native jabberd2 support, but
+it also works against jabber 1.4.x.
diff --git a/net-im/jabber-pymsn/pkg-plist b/net-im/jabber-pymsn/pkg-plist
new file mode 100644
index 0000000..984549c
--- /dev/null
+++ b/net-im/jabber-pymsn/pkg-plist
@@ -0,0 +1,42 @@
+@unexec if cmp -s %D/%%EXAMPLESDIR%%/etc/jabber-pymsn.xml %D/etc/jabber-pymsn.xml; then rm -f %D/etc/jabber-pymsn.xml; fi
+%%EXAMPLESDIR%%/etc/jabber-pymsn.xml
+@exec [ -f %D/etc/jabber-pymsn.xml ] || cp %B/%f %D/etc/jabber-pymsn.xml
+lib/jabber/pymsn/tlib/jabber/__init__.py
+lib/jabber/pymsn/tlib/jabber/client.py
+lib/jabber/pymsn/tlib/jabber/component.py
+lib/jabber/pymsn/tlib/jabber/jid.py
+lib/jabber/pymsn/tlib/jabber/jstrports.py
+lib/jabber/pymsn/tlib/domish.py
+lib/jabber/pymsn/tlib/__init__.py
+lib/jabber/pymsn/tlib/msn.py
+lib/jabber/pymsn/tlib/proxy.py
+lib/jabber/pymsn/tlib/xmlstream.py
+lib/jabber/pymsn/baseproto/__init__.py
+lib/jabber/pymsn/baseproto/glue.py
+lib/jabber/pymsn/legacy/__init__.py
+lib/jabber/pymsn/legacy/glue.py
+lib/jabber/pymsn/legacy/msnw.py
+lib/jabber/pymsn/legacy/subscription.py
+lib/jabber/pymsn/xmlconfig.py
+@unexec if cmp -s %D/lib/jabber/pymsn/config.py.sample %D/lib/jabber/pymsn/config.py; then rm -f %D/lib/jabber/pymsn/config.py; fi
+lib/jabber/pymsn/config.py.sample
+@exec [ -f %D/lib/jabber/pymsn/config.py ] || cp %B/%f %D/lib/jabber/pymsn/config.py
+lib/jabber/pymsn/register.py
+lib/jabber/pymsn/misciq.py
+lib/jabber/pymsn/main.py
+lib/jabber/pymsn/utils.py
+lib/jabber/pymsn/lang.py
+lib/jabber/pymsn/jabw.py
+lib/jabber/pymsn/groupchat.py
+lib/jabber/pymsn/disco.py
+lib/jabber/pymsn/debug.py
+lib/jabber/pymsn/xdb.py
+lib/jabber/pymsn/session.py
+@dirrm lib/jabber/pymsn/tlib/jabber
+@dirrm lib/jabber/pymsn/tlib
+@dirrm lib/jabber/pymsn/legacy
+@dirrm lib/jabber/pymsn/baseproto
+@dirrm lib/jabber/pymsn
+@unexec rmdir %D/lib/jabber 2>/dev/null || true
+@dirrm %%EXAMPLESDIR%%/etc
+@dirrm %%EXAMPLESDIR%%
diff --git a/net/Makefile b/net/Makefile
index efba365..6569009 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -253,6 +253,7 @@
SUBDIR += jabber-conference
SUBDIR += jabber-jud
SUBDIR += jabber-msn
+ SUBDIR += jabber-pymsn
SUBDIR += jabber-xdb_ldap
SUBDIR += jabber-yahoo
SUBDIR += jabberd
diff --git a/net/jabber-pymsn/Makefile b/net/jabber-pymsn/Makefile
new file mode 100644
index 0000000..cf800ea
--- /dev/null
+++ b/net/jabber-pymsn/Makefile
@@ -0,0 +1,69 @@
+# New ports collection makefile for: Jabber Python MSN Transport
+# Date created: Tue Nov 23 16:42:07 CET 2004
+# Whom: Martijn Lina <martijn@pacno.net>
+#
+# $FreeBSD$
+
+PORTNAME= pymsn
+PORTVERSION= 0.9.1
+CATEGORIES= net
+MASTER_SITES= http://msn-transport.jabberstudio.org/tarballs/
+PKGNAMEPREFIX= jabber-
+PKGNAMESUFFIX= -transport
+DISTNAME= PyMSNt-${PORTVERSION}
+DIST_SUBDIR= jabber
+
+MAINTAINER= martijn@pacno.net
+COMMENT= Python MSN-Transport for Jabber
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl \
+ ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
+
+NO_BUILD= yes
+USE_PYTHON= yes
+USE_REINPLACE= yes
+USE_RC_SUBR= jabber-pymsn-transport.sh
+
+SUB_FILES= pkg-message
+SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
+
+INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME}
+
+PORTDOCS= COPYING README TODO
+
+post-extract:
+ @${FIND} ${WRKSRC}/ -type d -name CVS |xargs ${RM} -rf
+
+post-patch:
+ @${REINPLACE_CMD} -e '/spooldir/s|/path/to/data|/var/spool/jabber|' \
+ -e '/pid/s|PyMSNt.pid|/var/jabberd/pid/${PORTNAME}.pid|' \
+ -e '/<debugOn>/s|<debugOn>|<!--<debugOn>-->|' \
+ ${WRKSRC}/config-example.xml
+ @${REINPLACE_CMD} -e 's|../config.xml|${PREFIX}/etc/jabber-pymsn.xml|g' \
+ ${WRKSRC}/src/xmlconfig.py
+ @${RM} ${WRKSRC}/src/xmlconfig.py.bak
+ @${ECHO} '#!${PYTHON_CMD}' > ${WRKSRC}/src/main.py.new
+ @${CAT} ${WRKSRC}/src/main.py >> ${WRKSRC}/src/main.py.new
+ @${MV} ${WRKSRC}/src/main.py.new ${WRKSRC}/src/main.py
+ @${MV} ${WRKSRC}/src/config.py ${WRKSRC}/src/config.py.sample
+
+do-install:
+ ${INSTALL} -d ${INST_DIR}
+ ${CP} -pPR ${WRKSRC}/src/* ${INST_DIR}/
+ ${CHMOD} 755 ${INST_DIR}/main.py
+ [ -f ${INST_DIR}/config.py ] || ${CP} ${INST_DIR}/config.py.sample ${INST_DIR}/config.py
+ ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/${PKGBASE}.sh ${PREFIX}/etc/rc.d/${PKGBASE}.sh
+ @${MKDIR} ${EXAMPLESDIR}/etc
+ ${INSTALL_DATA} ${WRKSRC}/config-example.xml ${EXAMPLESDIR}/etc/jabber-pymsn.xml
+ [ -f ${PREFIX}/etc/jabber-pymsn.xml ] || ${CP} ${EXAMPLESDIR}/etc/jabber-pymsn.xml ${PREFIX}/etc/jabber-pymsn.xml
+.if !defined(NOPORTDOCS)
+.for portdoc in ${PORTDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${portdoc} ${DOCSDIR}/
+.endfor
+.endif
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/net/jabber-pymsn/distinfo b/net/jabber-pymsn/distinfo
new file mode 100644
index 0000000..5be15af
--- /dev/null
+++ b/net/jabber-pymsn/distinfo
@@ -0,0 +1,2 @@
+MD5 (jabber/PyMSNt-0.9.1.tar.gz) = e6be82175bc99180e421d69ecbb350e3
+SIZE (jabber/PyMSNt-0.9.1.tar.gz) = 73022
diff --git a/net/jabber-pymsn/files/jabber-pymsn-transport.sh.in b/net/jabber-pymsn/files/jabber-pymsn-transport.sh.in
new file mode 100644
index 0000000..6c8319a
--- /dev/null
+++ b/net/jabber-pymsn/files/jabber-pymsn-transport.sh.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# Start or stop jabber-pymsn
+# $FreeBSD: /tmp/pcvs/ports/net/jabber-pymsn/files/Attic/jabber-pymsn-transport.sh.in,v 1.1 2005-03-19 00:27:52 flz Exp $
+
+# PROVIDE: jabber_pymsn
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+#
+# Define these jabber_pymsn_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+jabber_pymsn_dir=${jabberd_pymsn_dir-"%%PREFIX%%/lib/jabber/pymsn"}
+jabber_pymsn_piddir=${jabberd_pymsn_piddir-"/var/jabberd/pid"}
+jabber_pymsn_enable=${jabberd_pymsn_enable-"NO"}
+
+
+. %%RC_SUBR%%
+
+name="jabber_pymsn"
+rcvar=`set_rcvar`
+command_interpreter="%%PYTHON_CMD%%"
+command="${jabber_pymsn_dir}/main.py"
+command_args="&"
+
+#procname="${PYTHON} ${jabber_pymsn_dir}/main.py"
+pidfile="${jabber_pymsn_piddir}/pymsn.pid"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net/jabber-pymsn/files/pkg-message.in b/net/jabber-pymsn/files/pkg-message.in
new file mode 100644
index 0000000..4de09bf
--- /dev/null
+++ b/net/jabber-pymsn/files/pkg-message.in
@@ -0,0 +1,22 @@
+******************************************************************************
+Remember to edit %%PREFIX%%/etc/jabber-pymsn.xml to suit your needs.
+
+* The 'jid' setting should be what ID you want PyMSNt 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 PyMSNt 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://msn-transport.jabberstudio.org/docs/server.html.
+******************************************************************************
diff --git a/net/jabber-pymsn/pkg-descr b/net/jabber-pymsn/pkg-descr
new file mode 100644
index 0000000..5dbea3a
--- /dev/null
+++ b/net/jabber-pymsn/pkg-descr
@@ -0,0 +1,5 @@
+Python MSN-Transport for Jabber.
+
+MSN-t provides basic interoperability between Jabber and MSN. It has to be
+installed on the Jabber server. This version has native jabberd2 support, but
+it also works against jabber 1.4.x.
diff --git a/net/jabber-pymsn/pkg-plist b/net/jabber-pymsn/pkg-plist
new file mode 100644
index 0000000..984549c
--- /dev/null
+++ b/net/jabber-pymsn/pkg-plist
@@ -0,0 +1,42 @@
+@unexec if cmp -s %D/%%EXAMPLESDIR%%/etc/jabber-pymsn.xml %D/etc/jabber-pymsn.xml; then rm -f %D/etc/jabber-pymsn.xml; fi
+%%EXAMPLESDIR%%/etc/jabber-pymsn.xml
+@exec [ -f %D/etc/jabber-pymsn.xml ] || cp %B/%f %D/etc/jabber-pymsn.xml
+lib/jabber/pymsn/tlib/jabber/__init__.py
+lib/jabber/pymsn/tlib/jabber/client.py
+lib/jabber/pymsn/tlib/jabber/component.py
+lib/jabber/pymsn/tlib/jabber/jid.py
+lib/jabber/pymsn/tlib/jabber/jstrports.py
+lib/jabber/pymsn/tlib/domish.py
+lib/jabber/pymsn/tlib/__init__.py
+lib/jabber/pymsn/tlib/msn.py
+lib/jabber/pymsn/tlib/proxy.py
+lib/jabber/pymsn/tlib/xmlstream.py
+lib/jabber/pymsn/baseproto/__init__.py
+lib/jabber/pymsn/baseproto/glue.py
+lib/jabber/pymsn/legacy/__init__.py
+lib/jabber/pymsn/legacy/glue.py
+lib/jabber/pymsn/legacy/msnw.py
+lib/jabber/pymsn/legacy/subscription.py
+lib/jabber/pymsn/xmlconfig.py
+@unexec if cmp -s %D/lib/jabber/pymsn/config.py.sample %D/lib/jabber/pymsn/config.py; then rm -f %D/lib/jabber/pymsn/config.py; fi
+lib/jabber/pymsn/config.py.sample
+@exec [ -f %D/lib/jabber/pymsn/config.py ] || cp %B/%f %D/lib/jabber/pymsn/config.py
+lib/jabber/pymsn/register.py
+lib/jabber/pymsn/misciq.py
+lib/jabber/pymsn/main.py
+lib/jabber/pymsn/utils.py
+lib/jabber/pymsn/lang.py
+lib/jabber/pymsn/jabw.py
+lib/jabber/pymsn/groupchat.py
+lib/jabber/pymsn/disco.py
+lib/jabber/pymsn/debug.py
+lib/jabber/pymsn/xdb.py
+lib/jabber/pymsn/session.py
+@dirrm lib/jabber/pymsn/tlib/jabber
+@dirrm lib/jabber/pymsn/tlib
+@dirrm lib/jabber/pymsn/legacy
+@dirrm lib/jabber/pymsn/baseproto
+@dirrm lib/jabber/pymsn
+@unexec rmdir %D/lib/jabber 2>/dev/null || true
+@dirrm %%EXAMPLESDIR%%/etc
+@dirrm %%EXAMPLESDIR%%
OpenPOWER on IntegriCloud