diff options
author | sbz <sbz@FreeBSD.org> | 2011-09-01 22:25:15 +0800 |
---|---|---|
committer | sbz <sbz@FreeBSD.org> | 2011-09-01 22:25:15 +0800 |
commit | d5db15359cb8fb22246e39435fe8f3756148c1fe (patch) | |
tree | 7569e1f50fd64897be44d7064c4bfa18841dc167 /net/py-msrplib | |
parent | 41b3b79d24bc9548ae797266245d939489cf3e5c (diff) | |
download | freebsd-ports-gnome-d5db15359cb8fb22246e39435fe8f3756148c1fe.tar.gz freebsd-ports-gnome-d5db15359cb8fb22246e39435fe8f3756148c1fe.tar.zst freebsd-ports-gnome-d5db15359cb8fb22246e39435fe8f3756148c1fe.zip |
The MSRP protocol stack implementation for clients written in python.
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).
WWW: http://sipsimpleclient.com/wiki/SipMSRPApi
PR: ports/158980
Submitted by: Eugene Grosbein <ports@grosbein.net>
Approved by: jadawin@ (mentor)
Diffstat (limited to 'net/py-msrplib')
-rw-r--r-- | net/py-msrplib/Makefile | 34 | ||||
-rw-r--r-- | net/py-msrplib/distinfo | 2 | ||||
-rw-r--r-- | net/py-msrplib/files/patch-connect.py | 50 | ||||
-rw-r--r-- | net/py-msrplib/files/patch-session.py | 11 | ||||
-rw-r--r-- | net/py-msrplib/pkg-descr | 9 | ||||
-rw-r--r-- | net/py-msrplib/pkg-plist | 24 |
6 files changed, 130 insertions, 0 deletions
diff --git a/net/py-msrplib/Makefile b/net/py-msrplib/Makefile new file mode 100644 index 000000000000..dc809ff14f23 --- /dev/null +++ b/net/py-msrplib/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: py-msrplib +# Date created: 16 July 2011 +# Whom: Eugene Grosbein <ports@grosbein.net> +# +# $FreeBSD$ +# + +PORTNAME= msrplib +PORTVERSION= 0.14.1 +CATEGORIES= net python +MASTER_SITES= http://download.ag-projects.com/SipClient/ \ + http://www.grosbein.net/python/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= python-${PORTNAME}-${PORTVERSION} + +MAINTAINER= ports@grosbein.net +COMMENT= Python MSRP client library + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gnutls>=1.1.6:${PORTSDIR}/security/py-gnutls \ + ${PYTHON_PKGNAMEPREFIX}twistedCore>=8.1.0:${PORTSDIR}/devel/py-twistedCore \ + ${PYTHON_PKGNAMEPREFIX}twistedNames>=8.1.0:${PORTSDIR}/dns/py-twistedNames \ + ${PYTHON_PKGNAMEPREFIX}eventlet>=0.9.15:${PORTSDIR}/net/py-eventlet \ + ${PYTHON_PKGNAMEPREFIX}application>=1.1.0:${PORTSDIR}/devel/py-application \ + +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USE_PYTHON= yes +USE_PYDISTUTILS=yes +PYDISTUTILS_PKGNAME=python_${PORTNAME} + +.include <bsd.port.mk> diff --git a/net/py-msrplib/distinfo b/net/py-msrplib/distinfo new file mode 100644 index 000000000000..e1a8876ff3d4 --- /dev/null +++ b/net/py-msrplib/distinfo @@ -0,0 +1,2 @@ +SHA256 (python-msrplib-0.14.1.tar.gz) = 2ed1a392f797912946e6108fa59ec0434c054d0b8061aa7bb627808aeffa8343 +SIZE (python-msrplib-0.14.1.tar.gz) = 32928 diff --git a/net/py-msrplib/files/patch-connect.py b/net/py-msrplib/files/patch-connect.py new file mode 100644 index 000000000000..3eeebd33aa0a --- /dev/null +++ b/net/py-msrplib/files/patch-connect.py @@ -0,0 +1,50 @@ +--- msrplib/connect.py.orig 2011-06-03 22:32:33.000000000 +0700 ++++ msrplib/connect.py 2011-07-16 22:36:33.000000000 +0700 +@@ -48,7 +48,7 @@ + from application.python import Null + from application.system import host + from eventlet.twistedutil.protocol import GreenClientCreator, SpawnFactory +-from eventlet import coros ++from eventlet import coros, event + from eventlet.api import timeout, sleep + from eventlet.green.socket import gethostbyname + +@@ -238,7 +238,7 @@ + """ + if local_uri is None: + local_uri = self.generate_local_uri() +- self.transport_event = coros.event() ++ self.transport_event = event.Event() + local_uri.host = gethostbyname(local_uri.host) + factory = SpawnFactory(self.transport_event, MSRPTransport, local_uri, logger=self.logger, use_sessmatch=self.use_sessmatch) + self.listening_port = self._listen(local_uri, factory) +@@ -357,17 +357,17 @@ + self.msrp = None + + +-class Notifier(coros.event): ++class Notifier(event.Event): + + def wait(self): + if self.ready(): + self.reset() +- return coros.event.wait(self) ++ return event.Event.wait(self) + + def send(self, value=None, exc=None): + if self.ready(): + self.reset() +- return coros.event.send(self, value, exc=exc) ++ return event.Event.send(self, value, exc=exc) + + + class MSRPServer(ConnectBase): +@@ -473,7 +473,7 @@ + If no such binding was made within MSRPBindSessionTimeout.seconds, raise MSRPBindSessionTimeout. + """ + full_remote_path = tuple(full_remote_path) +- event = coros.event() ++ event = event.Event() + self.expected_remote_paths[full_remote_path] = event + try: + self.new_full_remote_path_notifier.send() diff --git a/net/py-msrplib/files/patch-session.py b/net/py-msrplib/files/patch-session.py new file mode 100644 index 000000000000..dcb9551c5297 --- /dev/null +++ b/net/py-msrplib/files/patch-session.py @@ -0,0 +1,11 @@ +--- msrplib/session.py.orig 2011-07-16 22:38:18.000000000 +0700 ++++ msrplib/session.py 2011-07-16 22:38:31.000000000 +0700 +@@ -391,7 +391,7 @@ + If chunk's Failure-Report is 'no', return None immediately. + """ + if chunk.failure_report!='no' and event is None: +- event = coros.event() ++ event = event.Event() + self.send_chunk(chunk, event.send) + if event is not None: + response = event.wait() diff --git a/net/py-msrplib/pkg-descr b/net/py-msrplib/pkg-descr new file mode 100644 index 000000000000..3b728fd105be --- /dev/null +++ b/net/py-msrplib/pkg-descr @@ -0,0 +1,9 @@ +The MSRP protocol stack implementation for clients written in python. + +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). + +WWW: http://sipsimpleclient.com/wiki/SipMSRPApi diff --git a/net/py-msrplib/pkg-plist b/net/py-msrplib/pkg-plist new file mode 100644 index 000000000000..25c98185a558 --- /dev/null +++ b/net/py-msrplib/pkg-plist @@ -0,0 +1,24 @@ +%%PYTHON_SITELIBDIR%%/msrplib/__init__.py +%%PYTHON_SITELIBDIR%%/msrplib/__init__.pyc +%%PYTHON_SITELIBDIR%%/msrplib/__init__.pyo +%%PYTHON_SITELIBDIR%%/msrplib/connect.py +%%PYTHON_SITELIBDIR%%/msrplib/connect.pyc +%%PYTHON_SITELIBDIR%%/msrplib/connect.pyo +%%PYTHON_SITELIBDIR%%/msrplib/digest.py +%%PYTHON_SITELIBDIR%%/msrplib/digest.pyc +%%PYTHON_SITELIBDIR%%/msrplib/digest.pyo +%%PYTHON_SITELIBDIR%%/msrplib/protocol.py +%%PYTHON_SITELIBDIR%%/msrplib/protocol.pyc +%%PYTHON_SITELIBDIR%%/msrplib/protocol.pyo +%%PYTHON_SITELIBDIR%%/msrplib/session.py +%%PYTHON_SITELIBDIR%%/msrplib/session.pyc +%%PYTHON_SITELIBDIR%%/msrplib/session.pyo +%%PYTHON_SITELIBDIR%%/msrplib/trafficlog.py +%%PYTHON_SITELIBDIR%%/msrplib/trafficlog.pyc +%%PYTHON_SITELIBDIR%%/msrplib/trafficlog.pyo +%%PYTHON_SITELIBDIR%%/msrplib/transport.py +%%PYTHON_SITELIBDIR%%/msrplib/transport.pyc +%%PYTHON_SITELIBDIR%%/msrplib/transport.pyo +@dirrm %%PYTHON_SITELIBDIR%%/msrplib +@dirrmtry %%PYTHON_SITELIBDIR%% +@dirrmtry lib/%%PYTHON_VERSION%% |