Date: Sun, 17 Jul 2011 00:56:31 +0700 (NOVST) From: Eugene Grosbein <eugen@grosbein.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/158980: New port: net/py-msrplib Python MSRP client library Message-ID: <201107161756.p6GHuVrj000416@grosbein.pp.ru> Resent-Message-ID: <201107161800.p6GI0Ib7072418@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158980 >Category: ports >Synopsis: New port: net/py-msrplib Python MSRP client library >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: Sat Jul 16 18:00:18 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 8.2-STABLE amd64 >Organization: RDTC JSC >Environment: System: FreeBSD grosbein.pp.ru 8.2-STABLE FreeBSD 8.2-STABLE #1: Fri Jul 1 18:08:55 NOVST 2011 root@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV amd64 >Description: Message Session Relay Protocol (MSRP) is a protocol for transmitting a series of related instant messages in the context of a session. Message sessions are treated like any other media stream when set up via a rendezvous or session creation protocol such as the Session Initiation Protocol (SIP). This port presents the MSRP protocol stack implementation for clients written in python. The port is needed for Blink SIP-phone that I'm going to submit another port for. This port depends on another new port devel/py-application provided with http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/158875 >How-To-Repeat: N/A >Fix: # 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-msrplib # py-msrplib/Makefile # py-msrplib/pkg-descr # py-msrplib/pkg-plist # py-msrplib/distinfo # py-msrplib/files # py-msrplib/files/patch-connect.py # py-msrplib/files/patch-session.py # echo c - py-msrplib mkdir -p py-msrplib > /dev/null 2>&1 echo x - py-msrplib/Makefile sed 's/^X//' >py-msrplib/Makefile << '8605637c8fe69ec556a83eabdac4e023' X# New ports collection makefile for: py-msrplib X# Date created: 16 July 2011 X# Whom: Eugene Grosbein <ports@grosbein.net> X# X# $FreeBSD$ X# X XPORTNAME= msrplib XPORTVERSION= 0.14.1 XCATEGORIES= net python XMASTER_SITES= http://download.ag-projects.com/SipClient/ \ X http://www.grosbein.net/python/ XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTNAME= python-${PORTNAME}-${PORTVERSION} X XMAINTAINER= ports@grosbein.net XCOMMENT= Python MSRP client library X XBUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gnutls>=1.1.6:${PORTSDIR}/security/py-gnutls \ X ${PYTHON_PKGNAMEPREFIX}twistedCore>=8.1.0:${PORTSDIR}/devel/py-twistedCore \ X ${PYTHON_PKGNAMEPREFIX}twistedNames>=8.1.0:${PORTSDIR}/dns/py-twistedNames \ X ${PYTHON_PKGNAMEPREFIX}eventlet>=0.9.15:${PORTSDIR}/net/py-eventlet \ X ${PYTHON_PKGNAMEPREFIX}application>=1.1.0:${PORTSDIR}/devel/py-application \ X XRUN_DEPENDS:= ${BUILD_DEPENDS} X XUSE_PYTHON= yes XUSE_PYDISTUTILS=yes XPYDISTUTILS_PKGNAME=python_${PORTNAME} X X.include <bsd.port.mk> 8605637c8fe69ec556a83eabdac4e023 echo x - py-msrplib/pkg-descr sed 's/^X//' >py-msrplib/pkg-descr << '398c6cea42fde222c81a16fc615e6737' XThe MSRP protocol stack implementation for clients written in python. X XMessage Session Relay Protocol (MSRP) is a protocol for transmitting a Xseries of related instant messages in the context of a session. Message Xsessions are treated like any other media stream when set up via a Xrendezvous or session creation protocol such as the Session Initiation XProtocol (SIP). X XWWW: http://sipsimpleclient.com/wiki/SipMSRPApi 398c6cea42fde222c81a16fc615e6737 echo x - py-msrplib/pkg-plist sed 's/^X//' >py-msrplib/pkg-plist << 'd4295f86927b4605be4c1e3096b6569e' X%%PYTHON_SITELIBDIR%%/msrplib/__init__.py X%%PYTHON_SITELIBDIR%%/msrplib/__init__.pyc X%%PYTHON_SITELIBDIR%%/msrplib/__init__.pyo X%%PYTHON_SITELIBDIR%%/msrplib/connect.py X%%PYTHON_SITELIBDIR%%/msrplib/connect.pyc X%%PYTHON_SITELIBDIR%%/msrplib/connect.pyo X%%PYTHON_SITELIBDIR%%/msrplib/digest.py X%%PYTHON_SITELIBDIR%%/msrplib/digest.pyc X%%PYTHON_SITELIBDIR%%/msrplib/digest.pyo X%%PYTHON_SITELIBDIR%%/msrplib/protocol.py X%%PYTHON_SITELIBDIR%%/msrplib/protocol.pyc X%%PYTHON_SITELIBDIR%%/msrplib/protocol.pyo X%%PYTHON_SITELIBDIR%%/msrplib/session.py X%%PYTHON_SITELIBDIR%%/msrplib/session.pyc X%%PYTHON_SITELIBDIR%%/msrplib/session.pyo X%%PYTHON_SITELIBDIR%%/msrplib/trafficlog.py X%%PYTHON_SITELIBDIR%%/msrplib/trafficlog.pyc X%%PYTHON_SITELIBDIR%%/msrplib/trafficlog.pyo X%%PYTHON_SITELIBDIR%%/msrplib/transport.py X%%PYTHON_SITELIBDIR%%/msrplib/transport.pyc X%%PYTHON_SITELIBDIR%%/msrplib/transport.pyo X@dirrm %%PYTHON_SITELIBDIR%%/msrplib X@dirrmtry %%PYTHON_SITELIBDIR%% X@dirrmtry lib/%%PYTHON_VERSION%% d4295f86927b4605be4c1e3096b6569e echo x - py-msrplib/distinfo sed 's/^X//' >py-msrplib/distinfo << 'b4a6ced514f795739ca586d47eef2087' XSHA256 (python-msrplib-0.14.1.tar.gz) = 2ed1a392f797912946e6108fa59ec0434c054d0b8061aa7bb627808aeffa8343 XSIZE (python-msrplib-0.14.1.tar.gz) = 32928 b4a6ced514f795739ca586d47eef2087 echo c - py-msrplib/files mkdir -p py-msrplib/files > /dev/null 2>&1 echo x - py-msrplib/files/patch-connect.py sed 's/^X//' >py-msrplib/files/patch-connect.py << '407cdadc8f7171b80b91d13b051e4845' X--- msrplib/connect.py.orig 2011-06-03 22:32:33.000000000 +0700 X+++ msrplib/connect.py 2011-07-16 22:36:33.000000000 +0700 X@@ -48,7 +48,7 @@ X from application.python import Null X from application.system import host X from eventlet.twistedutil.protocol import GreenClientCreator, SpawnFactory X-from eventlet import coros X+from eventlet import coros, event X from eventlet.api import timeout, sleep X from eventlet.green.socket import gethostbyname X X@@ -238,7 +238,7 @@ X """ X if local_uri is None: X local_uri = self.generate_local_uri() X- self.transport_event = coros.event() X+ self.transport_event = event.Event() X local_uri.host = gethostbyname(local_uri.host) X factory = SpawnFactory(self.transport_event, MSRPTransport, local_uri, logger=self.logger, use_sessmatch=self.use_sessmatch) X self.listening_port = self._listen(local_uri, factory) X@@ -357,17 +357,17 @@ X self.msrp = None X X X-class Notifier(coros.event): X+class Notifier(event.Event): X X def wait(self): X if self.ready(): X self.reset() X- return coros.event.wait(self) X+ return event.Event.wait(self) X X def send(self, value=None, exc=None): X if self.ready(): X self.reset() X- return coros.event.send(self, value, exc=exc) X+ return event.Event.send(self, value, exc=exc) X X X class MSRPServer(ConnectBase): X@@ -473,7 +473,7 @@ X If no such binding was made within MSRPBindSessionTimeout.seconds, raise MSRPBindSessionTimeout. X """ X full_remote_path = tuple(full_remote_path) X- event = coros.event() X+ event = event.Event() X self.expected_remote_paths[full_remote_path] = event X try: X self.new_full_remote_path_notifier.send() 407cdadc8f7171b80b91d13b051e4845 echo x - py-msrplib/files/patch-session.py sed 's/^X//' >py-msrplib/files/patch-session.py << 'ddd1d26550d5e3dbe663f1339a24db88' X--- msrplib/session.py.orig 2011-07-16 22:38:18.000000000 +0700 X+++ msrplib/session.py 2011-07-16 22:38:31.000000000 +0700 X@@ -391,7 +391,7 @@ X If chunk's Failure-Report is 'no', return None immediately. X """ X if chunk.failure_report!='no' and event is None: X- event = coros.event() X+ event = event.Event() X self.send_chunk(chunk, event.send) X if event is not None: X response = event.wait() ddd1d26550d5e3dbe663f1339a24db88 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107161756.p6GHuVrj000416>