ports/78534: New port: jabber-pymsn, supersedes ports/74294 and should replace net/jabber-msn.

Charlie & root at pacno.net
Mon Mar 7 14:00:19 UTC 2005


>Number:         78534
>Category:       ports
>Synopsis:       New port: jabber-pymsn, supersedes ports/74294 and should replace net/jabber-msn.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 07 14:00:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Martijn Lina <martijn at pacno.net>
>Release:        FreeBSD 5.3-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD 5.3-RELEASE-p1

>Description:
    The jabber-msn transport has been completely rewritten in Python.
    It can run with Jabber 1.4.x as well as Jabberd2 natively. It's
    completely compatible wint the old C version of the jabber-msn, so
    the old spool directory can be used after upgrading. It has much
    better support for MSN<->Jabber groupchat.

    This PR supersedes ports/74294 and should replace net/jabber-msn.
>How-To-Repeat:
>Fix:

Please commit this shar:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	net/jabber-pymsn
#	net/jabber-pymsn/files
#	net/jabber-pymsn/files/jabber-pymsn-transport.sh
#	net/jabber-pymsn/pkg-descr
#	net/jabber-pymsn/plist
#	net/jabber-pymsn/pkg-message
#	net/jabber-pymsn/Makefile
#	net/jabber-pymsn/distinfo
#	net/jabber-pymsn/pkg-plist
#
echo c - net/jabber-pymsn
mkdir -p net/jabber-pymsn > /dev/null 2>&1
echo c - net/jabber-pymsn/files
mkdir -p net/jabber-pymsn/files > /dev/null 2>&1
echo x - net/jabber-pymsn/files/jabber-pymsn-transport.sh
sed 's/^X//' >net/jabber-pymsn/files/jabber-pymsn-transport.sh << 'END-of-net/jabber-pymsn/files/jabber-pymsn-transport.sh'
X#!/bin/sh
X
X# Start or stop jabber-pymsn
X# $FreeBSD: ports/net/jabber-pymsn/files/jabberd.sh,v 1.5 2004/07/29 20:56:33 pav Exp $
X
X# PROVIDE: jabber_pymsn
X# REQUIRE: DAEMON
X# BEFORE: LOGIN
X# KEYWORD: FreeBSD shutdown
X#
X# Define these jabber_pymsn_* variables in one of these files:
X#       /etc/rc.conf
X#       /etc/rc.conf.local
X#
X# DO NOT CHANGE THESE DEFAULT VALUES HERE
X#
Xjabber_pymsn_dir=${jabberd_pymsn_dir-"%%PREFIX%%/lib/jabber/pymsn"}
Xjabber_pymsn_piddir=${jabberd_pymsn_piddir-"/var/jabberd/pid"}
Xjabber_pymsn_enable=${jabberd_pymsn_enable-"NO"}
X
X
X. %%RC_SUBR%%
X
Xname="jabber_pymsn"
Xrcvar=`set_rcvar`
Xcommand_interpreter="%%PYTHON_CMD%%"
Xcommand="${jabber_pymsn_dir}/main.py"
Xcommand_args="&"
X
X#procname="${PYTHON} ${jabber_pymsn_dir}/main.py"
Xpidfile="${jabber_pymsn_piddir}/pymsn.pid"
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-net/jabber-pymsn/files/jabber-pymsn-transport.sh
echo x - net/jabber-pymsn/pkg-descr
sed 's/^X//' >net/jabber-pymsn/pkg-descr << 'END-of-net/jabber-pymsn/pkg-descr'
XPython MSN-Transport for Jabber.
X
XMSN-t provides basic interoperability between Jabber and MSN. It has to be
Xinstalled on the Jabber server. This version has native jabberd2 support, but
Xit also works against jabber 1.4.x.
END-of-net/jabber-pymsn/pkg-descr
echo x - net/jabber-pymsn/plist
sed 's/^X//' >net/jabber-pymsn/plist << 'END-of-net/jabber-pymsn/plist'
X/usr/local/etc/rc.d/jabber-pymsn-transport.sh
END-of-net/jabber-pymsn/plist
echo x - net/jabber-pymsn/pkg-message
sed 's/^X//' >net/jabber-pymsn/pkg-message << 'END-of-net/jabber-pymsn/pkg-message'
XCopy jabber-pymsn.xml.sample to jabber-pymsn.xml and edit it to reflect your
Xenvironment.
X
X* The 'jid' setting should be what ID you want PyMSNt to take on the network.
X* The 'mainServer' setting should be the IP address or DNS of the main Jabberd
X  server.
X* The 'secret' setting should match the secret specified for component
X  connections in your main Jabberd server.
X* The 'port' setting is the port that PyMSNt is to connect to (more details on
X  this below.
X* You can also turn on debugging options, and customise some of the text that
X  is sent to the users in this file.
X
XIf you are using Jabberd2 then you shouldn't have to do much configuration.
XMake sure the 'mainServer' setting is the IP or DNS of your Jabber server, and
Xleave the 'port' setting alone. Double-check that the secret for legacy
Xcomponents in router.xml (for Jabberd2) is the same as the secret setting in
Xconfig.py. That should be all. You don't even need to restart Jabberd2.
X
XIf you are using Jabberd1.4.x,  it's a bit more complicated. Follow the setup
Xinstructions at http://msn-transport.jabberstudio.org/docs/server.html.
END-of-net/jabber-pymsn/pkg-message
echo x - net/jabber-pymsn/Makefile
sed 's/^X//' >net/jabber-pymsn/Makefile << 'END-of-net/jabber-pymsn/Makefile'
X# New ports collection makefile for:	Jabber Python MSN Transport
X# Date created:				Tue Nov 23 16:42:07 CET 2004
X# Whom:					Martijn Lina <martijn at pacno.net>
X#
X# $FreeBSD$
X
XPORTNAME=	pymsn
XPORTVERSION=	0.9.1
XCATEGORIES=	net
XMASTER_SITES=	http://msn-transport.jabberstudio.org/tarballs/
XPKGNAMEPREFIX=	jabber-
XPKGNAMESUFFIX=	-transport
XDISTNAME=	PyMSNt-${PORTVERSION}
XDIST_SUBDIR=	jabber
X
XMAINTAINER=	martijn at pacno.net
XCOMMENT=	Python MSN-Transport for Jabber
X
XRUN_DEPENDS=	${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl \
X		${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
X
XNO_BUILD=	yes
XUSE_PYTHON=	yes
XUSE_RC_SUBR=	yes
XUSE_REINPLACE=	yes
X
XRC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} PYTHON_CMD=${PYTHON_CMD}
X
XINST_DIR=	${PREFIX}/lib/jabber/${PORTNAME}
X
XPORTDOCS=	COPYING README TODO
X
Xpost-extract:
X	@${FIND} ${WRKSRC}/ -type d -name CVS |xargs ${RM} -rf
X
Xpost-patch:
X	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
X		${FILESDIR}/${PKGBASE}.sh > ${WRKDIR}/${PKGBASE}.sh
X	@${REINPLACE_CMD} -e '/spooldir/s|/path/to/data|/var/spool/jabber|' \
X		-e '/pid/s|PyMSNt.pid|/var/jabberd/pid/${PORTNAME}.pid|' \
X		-e '/<debugOn>/s|<debugOn>|<!--<debugOn>-->|' \
X		${WRKSRC}/config-example.xml
X	@${REINPLACE_CMD} -e 's|../config.xml|${PREFIX}/etc/jabber-pymsn.xml|g' \
X		${WRKSRC}/src/xmlconfig.py
X	@${RM} ${WRKSRC}/src/xmlconfig.py.bak
X	@${ECHO} '#!${PYTHON_CMD}' > ${WRKSRC}/src/main.py.new
X	@${CAT} ${WRKSRC}/src/main.py >> ${WRKSRC}/src/main.py.new
X	@${MV} ${WRKSRC}/src/main.py.new ${WRKSRC}/src/main.py
X
Xdo-install:
X	${INSTALL} -d ${INST_DIR}
X	${CP} -pPR ${WRKSRC}/src/* ${INST_DIR}/
X	${CHMOD} 755 ${INST_DIR}/main.py
X	[ -f ${INST_DIR}/config.py ] || ${CP} ${INST_DIR}/config.py-dist ${INST_DIR}/config.py
X	${INSTALL_SCRIPT} -m 751 ${WRKDIR}/${PKGBASE}.sh ${PREFIX}/etc/rc.d/${PKGBASE}.sh
X	${INSTALL_DATA} ${WRKSRC}/config-example.xml ${PREFIX}/etc/jabber-pymsn.xml.sample
X.if !defined(NOPORTDOCS)
X.for portdoc in ${PORTDOCS}
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/${portdoc} ${DOCSDIR}/
X.endfor
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-net/jabber-pymsn/Makefile
echo x - net/jabber-pymsn/distinfo
sed 's/^X//' >net/jabber-pymsn/distinfo << 'END-of-net/jabber-pymsn/distinfo'
XMD5 (jabber/PyMSNt-0.9.1.tar.gz) = e6be82175bc99180e421d69ecbb350e3
XSIZE (jabber/PyMSNt-0.9.1.tar.gz) = 73022
END-of-net/jabber-pymsn/distinfo
echo x - net/jabber-pymsn/pkg-plist
sed 's/^X//' >net/jabber-pymsn/pkg-plist << 'END-of-net/jabber-pymsn/pkg-plist'
Xetc/rc.d/jabber-pymsn-transport.sh
Xetc/jabber-pymsn.xml.sample
Xlib/jabber/pymsn/tlib/jabber/__init__.py
Xlib/jabber/pymsn/tlib/jabber/client.py
Xlib/jabber/pymsn/tlib/jabber/component.py
Xlib/jabber/pymsn/tlib/jabber/jid.py
Xlib/jabber/pymsn/tlib/jabber/jstrports.py
Xlib/jabber/pymsn/tlib/domish.py
Xlib/jabber/pymsn/tlib/__init__.py
Xlib/jabber/pymsn/tlib/msn.py
Xlib/jabber/pymsn/tlib/proxy.py
Xlib/jabber/pymsn/tlib/xmlstream.py
Xlib/jabber/pymsn/baseproto/__init__.py
Xlib/jabber/pymsn/baseproto/glue.py
Xlib/jabber/pymsn/legacy/__init__.py
Xlib/jabber/pymsn/legacy/glue.py
Xlib/jabber/pymsn/legacy/msnw.py
Xlib/jabber/pymsn/legacy/subscription.py
Xlib/jabber/pymsn/xmlconfig.py
Xlib/jabber/pymsn/config.py
Xlib/jabber/pymsn/register.py
Xlib/jabber/pymsn/misciq.py
Xlib/jabber/pymsn/main.py
Xlib/jabber/pymsn/utils.py
Xlib/jabber/pymsn/lang.py
Xlib/jabber/pymsn/jabw.py
Xlib/jabber/pymsn/groupchat.py
Xlib/jabber/pymsn/disco.py
Xlib/jabber/pymsn/debug.py
Xlib/jabber/pymsn/xdb.py
Xlib/jabber/pymsn/session.py
X at dirrm lib/jabber/pymsn/tlib/jabber
X at dirrm lib/jabber/pymsn/tlib
X at dirrm lib/jabber/pymsn/legacy
X at dirrm lib/jabber/pymsn/baseproto
X at dirrm lib/jabber/pymsn
END-of-net/jabber-pymsn/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list