Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Apr 2006 05:49:42 -0700 (PDT)
From:      Andrew Pantyukhin <infofarmer@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/96362: New ports: net-im/py-xmpppy and net-im/py-xmpppy-irc
Message-ID:  <444f6c66.01a596db.3d01.0a7e@mx.gmail.com>
Resent-Message-ID: <200604261250.k3QCoEqD051255@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96362
>Category:       ports
>Synopsis:       New ports: net-im/py-xmpppy and net-im/py-xmpppy-irc
>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:   Wed Apr 26 12:50:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Pantyukhin
>Release:        FreeBSD 6.0-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD proxy.campus.gubkin.ru 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #4: Fri Jan 27 22:30:23 MSK 2006 sat@proxy.campus.gubkin.ru:/usr/obj/usr/src/sys/CS-PROXY amd64


	
>Description:

- A Python library that provides easy scripting with Jabber
- An xmpp to irc transport (depends on the lib)

	
>How-To-Repeat:
	
>Fix:

	

--- py-xmpppy.shar begins here ---
# 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:
#
#	py-xmpppy
#	py-xmpppy/Makefile
#	py-xmpppy/distinfo
#	py-xmpppy/pkg-descr
#	py-xmpppy/pkg-plist
#
echo c - py-xmpppy
mkdir -p py-xmpppy > /dev/null 2>&1
echo x - py-xmpppy/Makefile
sed 's/^X//' >py-xmpppy/Makefile << 'END-of-py-xmpppy/Makefile'
X# Ports collection makefile for:	py-xmpppy
X# Date created:		21 April 2006
X# Whom:	      		Andrew Pantyukhin <infofarmer@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xmpppy
XPORTVERSION=	0.3.1
XCATEGORIES=	net-im python
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	infofarmer@gmail.com
XCOMMENT=	A Python library that provides easy scripting with Jabber
X
XUSE_PYTHON=	2.3+
XUSE_PYDISTUTILS=	yes
X
Xpost-patch:
X	@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
X		${XARGS} ${REINPLACE_CMD} -e "s.^#!/usr/bin/python.#!${PYTHON_CMD}."
X
X.include <bsd.port.mk>
END-of-py-xmpppy/Makefile
echo x - py-xmpppy/distinfo
sed 's/^X//' >py-xmpppy/distinfo << 'END-of-py-xmpppy/distinfo'
XMD5 (xmpppy-0.3.1.tar.gz) = 56e8df54288e57bd626cb53b31e2b41c
XSHA256 (xmpppy-0.3.1.tar.gz) = 4908197dfe326cef492360b285a9da0a8e0aa27e883bc99a5b076c2076ffc27d
XSIZE (xmpppy-0.3.1.tar.gz) = 252764
END-of-py-xmpppy/distinfo
echo x - py-xmpppy/pkg-descr
sed 's/^X//' >py-xmpppy/pkg-descr << 'END-of-py-xmpppy/pkg-descr'
Xxmpppy is a Python library that is targeted to provide easy
Xscripting with Jabber. Similar projects are Twisted Words
Xand jabber.py.
X
XThis library was not designed from scratch. It inherits some
Xcode from jabberpy and have very similar API in many places.
XThough it is separate project since it have almost completely
Xdifferent architecture and primarily aims to work with jabberd2
X- the new Open Source Jabber Server.
X
XWWW: http://xmpppy.sourceforge.net/
END-of-py-xmpppy/pkg-descr
echo x - py-xmpppy/pkg-plist
sed 's/^X//' >py-xmpppy/pkg-plist << 'END-of-py-xmpppy/pkg-plist'
X%%PYTHON_SITELIBDIR%%/xmpp/__init__.py
X%%PYTHON_SITELIBDIR%%/xmpp/__init__.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/__init__.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/auth.py
X%%PYTHON_SITELIBDIR%%/xmpp/auth.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/auth.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/browser.py
X%%PYTHON_SITELIBDIR%%/xmpp/browser.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/browser.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/client.py
X%%PYTHON_SITELIBDIR%%/xmpp/client.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/client.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/commands.py
X%%PYTHON_SITELIBDIR%%/xmpp/commands.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/commands.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/debug.py
X%%PYTHON_SITELIBDIR%%/xmpp/debug.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/debug.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/dispatcher.py
X%%PYTHON_SITELIBDIR%%/xmpp/dispatcher.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/dispatcher.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/features.py
X%%PYTHON_SITELIBDIR%%/xmpp/features.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/features.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/filetransfer.py
X%%PYTHON_SITELIBDIR%%/xmpp/filetransfer.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/filetransfer.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/protocol.py
X%%PYTHON_SITELIBDIR%%/xmpp/protocol.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/protocol.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/roster.py
X%%PYTHON_SITELIBDIR%%/xmpp/roster.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/roster.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/session.py
X%%PYTHON_SITELIBDIR%%/xmpp/session.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/session.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/simplexml.py
X%%PYTHON_SITELIBDIR%%/xmpp/simplexml.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/simplexml.pyo
X%%PYTHON_SITELIBDIR%%/xmpp/transports.py
X%%PYTHON_SITELIBDIR%%/xmpp/transports.pyc
X%%PYTHON_SITELIBDIR%%/xmpp/transports.pyo
X@dirrm %%PYTHON_SITELIBDIR%%/xmpp
END-of-py-xmpppy/pkg-plist
exit
--- py-xmpppy.shar ends here ---

--- py-xmpppy-irc.shar begins here ---
# 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:
#
#	py-xmpppy-irc
#	py-xmpppy-irc/Makefile
#	py-xmpppy-irc/distinfo
#	py-xmpppy-irc/pkg-descr
#	py-xmpppy-irc/files
#	py-xmpppy-irc/files/xmpppyirc.in
#
echo c - py-xmpppy-irc
mkdir -p py-xmpppy-irc > /dev/null 2>&1
echo x - py-xmpppy-irc/Makefile
sed 's/^X//' >py-xmpppy-irc/Makefile << 'END-of-py-xmpppy-irc/Makefile'
X# Ports collection makefile for:	py-irc-transport
X# Date created:		21 April 2006
X# Whom:			Andrew Pantyukhin <infofarmer@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xmpppy-irc
XPORTVERSION=	0.3
XCATEGORIES=	net-im python irc
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	xmpppy
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	irc-transport-${PORTVERSION}
X
XMAINTAINER=	infofarmer@gmail.com
XCOMMENT=	An xmpp to irc transport
X
X#RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/xmpp/__init__.py:${PORTSDIR}/net-im/py-xmpppy \
XRUN_DEPENDS+=	${PYTHON_SITELIBDIR}/xmpp/__init__.py:../py-xmpppy \
X		${PYTHON_SITELIBDIR}/irclib.py:${PORTSDIR}/irc/py-irclib
X
XUSE_PYTHON=	2.3+
XNO_BUILD=	yes
XFILES=		irc.py jep0106.py jep0133.py test_jep0106.py
XPFILES=		${FILES:S.^.%%PYTHON_SITELIBDIR%%/xmpp/irc/.}
XPLIST_FILES=	${PFILES} ${PFILES:S.$.c.} ${PFILES:S.$.o.} etc/${PORTNAME:S.-..}.conf.sample
XPLIST_DIRS=	%%PYTHON_SITELIBDIR%%/xmpp/irc
XSUB_LIST=	PYTHON_CMD=${PYTHON_CMD} FEXEC=${PYTHON_SITELIBDIR}/xmpp/irc/irc.py
XUSE_RC_SUBR=	xmpppyirc
XPORTDOCS=	ChangeLog IRC-Transport-Howtouse.html README.txt
XDDIR=		${PYTHON_SITELIBDIR}/xmpp/irc
X
Xpost-patch:
X	@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
X		${XARGS} ${REINPLACE_CMD} -e "s./usr/bin/python.${PYTHON_CMD}." \
X			-e "s!/etc/jabber/jabber-irc.conf!${PREFIX}/etc/${PORTNAME:S.-..}.conf!"
X
Xdo-install:
X	@${INSTALL} -d ${DDIR}
X	@${INSTALL_SCRIPT} ${WRKSRC}/irc.py ${DDIR}/
X	@${INSTALL_DATA} ${FILES:M*jep*:S.^.${WRKSRC}/.} ${DDIR}/
X	@${INSTALL_DATA} ${WRKSRC}/transport.ini ${PREFIX}/etc/${PORTNAME:S.-..}.conf.sample
X	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DDIR}
X	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DDIR}
X	@${CHMOD} -R a-w ${DDIR}
X.ifndef NOPORTDOCS
X	@${INSTALL} -d ${DOCSDIR}
X	@${INSTALL} ${PORTDOCS:S.^.${WRKSRC}/.} ${DOCSDIR}/
X.endif
X
X.include <bsd.port.mk>
END-of-py-xmpppy-irc/Makefile
echo x - py-xmpppy-irc/distinfo
sed 's/^X//' >py-xmpppy-irc/distinfo << 'END-of-py-xmpppy-irc/distinfo'
XMD5 (irc-transport-0.3.tar.gz) = 8ad0190f1b158ef5990290a16eaf8084
XSHA256 (irc-transport-0.3.tar.gz) = 8dc4de9ca0f1445ed9023ee76e64de454f32c7e880f9ac37600fb1f81d2c46a4
XSIZE (irc-transport-0.3.tar.gz) = 22752
END-of-py-xmpppy-irc/distinfo
echo x - py-xmpppy-irc/pkg-descr
sed 's/^X//' >py-xmpppy-irc/pkg-descr << 'END-of-py-xmpppy-irc/pkg-descr'
XThe IRC transport is a dynamic gateway that allows XMPP/Jabber
Xusers to connect to IRC using their Groupchat and MUC clients.
XIt is based on xmpppy and irclib Python libraries.
X
XWWW: http://xmpppy.sourceforge.net/irc/
END-of-py-xmpppy-irc/pkg-descr
echo c - py-xmpppy-irc/files
mkdir -p py-xmpppy-irc/files > /dev/null 2>&1
echo x - py-xmpppy-irc/files/xmpppyirc.in
sed 's/^X//' >py-xmpppy-irc/files/xmpppyirc.in << 'END-of-py-xmpppy-irc/files/xmpppyirc.in'
X#!/bin/sh
X
X# PROVIDE: xmpppyirc
X# REQUIRE: DAEMON
X
X. %%RC_SUBR%%
X
Xname="xmpppyirc"
Xpidfile="/var/run/$name.pid"
X
Xcommand="%%FEXEC%%"
Xcommand_args="&"
Xcommand_interpreter="%%PYTHON_CMD%%"
Xrequired_files="%%PREFIX%%/etc/$name.conf"
Xstart_precmd="touch $pidfile && export PID=$pidfile"
X
Xload_rc_config $name
X: ${xmpppyirc_enable="NO"}
Xrun_rc_command "$1"
END-of-py-xmpppy-irc/files/xmpppyirc.in
exit
--- py-xmpppy-irc.shar ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444f6c66.01a596db.3d01.0a7e>