From eb9c1854614b32840cae5092b2e378f7b3239aa4 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Fri, 26 Aug 2011 04:55:22 +0000 Subject: [PATCH] XCAP protocol, defined in RFC 4825, allows a client to read, write, and modify application configuration data stored in XML format on a server. XCAP maps XML document sub-trees and element attributes to HTTP URIs, so that these components can be directly accessed by HTTP. An XCAP server used by XCAP clients to store data like presence policy in combination with a SIP Presence server that supports PUBLISH/SUBSCRIBE/NOTIFY SIP methods can provide a complete SIP SIMPLE solution. WWW: http://sipsimpleclient.com/wiki/xcapclient PR: ports/158906 Submitted by: Eugene Grosbein --- devel/Makefile | 1 + devel/py-xcaplib/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-xcaplib/distinfo | 2 ++ devel/py-xcaplib/pkg-descr | 9 +++++++++ devel/py-xcaplib/pkg-plist | 28 ++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 devel/py-xcaplib/Makefile create mode 100644 devel/py-xcaplib/distinfo create mode 100644 devel/py-xcaplib/pkg-descr create mode 100644 devel/py-xcaplib/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 4863adbcca72..5e5d6ef09e01 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3123,6 +3123,7 @@ SUBDIR += py-wsgi_xmlrpc SUBDIR += py-wsgiutils SUBDIR += py-xattr + SUBDIR += py-xcaplib SUBDIR += py-xdg SUBDIR += py-xoltar-toolkit SUBDIR += py-yaml diff --git a/devel/py-xcaplib/Makefile b/devel/py-xcaplib/Makefile new file mode 100644 index 000000000000..15f73868f31b --- /dev/null +++ b/devel/py-xcaplib/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: py-application +# Date created: 14 July 2011 +# Whom: Eugene Grosbein +# +# $FreeBSD$ +# + +PORTNAME= xcaplib +PORTVERSION= 1.0.16 +CATEGORIES= devel python +MASTER_SITES= http://download.ag-projects.com/XCAP/ \ + http://grosbein.net/python/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= python-${PORTNAME}-${PORTVERSION} + +MAINTAINER= ports@grosbein.net +COMMENT= Python XCAP client library + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twistedCore>=8.1.0:${PORTSDIR}/devel/py-twistedCore \ + ${PYTHON_PKGNAMEPREFIX}lxml>=2.1.2:${PORTSDIR}/devel/py-lxml \ + ${PYTHON_PKGNAMEPREFIX}application>=1.1.5:${PORTSDIR}/devel/py-application + +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USE_PYTHON= 2.5+ +USE_PYDISTUTILS=yes +PYDISTUTILS_PKGNAME=python_${PORTNAME} + +.include diff --git a/devel/py-xcaplib/distinfo b/devel/py-xcaplib/distinfo new file mode 100644 index 000000000000..ce3310dc32f2 --- /dev/null +++ b/devel/py-xcaplib/distinfo @@ -0,0 +1,2 @@ +SHA256 (python-xcaplib-1.0.16.tar.gz) = 42728efdaa06ae5baa03c50741a3c5d9f7dbbc44aac6dfd3550b96f9c3462a2d +SIZE (python-xcaplib-1.0.16.tar.gz) = 22553 diff --git a/devel/py-xcaplib/pkg-descr b/devel/py-xcaplib/pkg-descr new file mode 100644 index 000000000000..9f97d13ff114 --- /dev/null +++ b/devel/py-xcaplib/pkg-descr @@ -0,0 +1,9 @@ +XCAP protocol, defined in RFC 4825, allows a client to read, write, and +modify application configuration data stored in XML format on a server. XCAP +maps XML document sub-trees and element attributes to HTTP URIs, so that +these components can be directly accessed by HTTP. An XCAP server used by +XCAP clients to store data like presence policy in combination with a SIP +Presence server that supports PUBLISH/SUBSCRIBE/NOTIFY SIP methods can +provide a complete SIP SIMPLE solution. + +WWW: http://sipsimpleclient.com/wiki/xcapclient diff --git a/devel/py-xcaplib/pkg-plist b/devel/py-xcaplib/pkg-plist new file mode 100644 index 000000000000..1b45ed768e09 --- /dev/null +++ b/devel/py-xcaplib/pkg-plist @@ -0,0 +1,28 @@ +bin/xcapclient +%%PYTHON_SITELIBDIR%%/xcaplib/__init__.py +%%PYTHON_SITELIBDIR%%/xcaplib/__init__.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/__init__.pyo +%%PYTHON_SITELIBDIR%%/xcaplib/client.py +%%PYTHON_SITELIBDIR%%/xcaplib/client.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/client.pyo +%%PYTHON_SITELIBDIR%%/xcaplib/error.py +%%PYTHON_SITELIBDIR%%/xcaplib/error.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/error.pyo +%%PYTHON_SITELIBDIR%%/xcaplib/green.py +%%PYTHON_SITELIBDIR%%/xcaplib/green.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/green.pyo +%%PYTHON_SITELIBDIR%%/xcaplib/httpclient.py +%%PYTHON_SITELIBDIR%%/xcaplib/httpclient.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/httpclient.pyo +%%PYTHON_SITELIBDIR%%/xcaplib/logsocket.py +%%PYTHON_SITELIBDIR%%/xcaplib/logsocket.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/logsocket.pyo +%%PYTHON_SITELIBDIR%%/xcaplib/xcapclient.py +%%PYTHON_SITELIBDIR%%/xcaplib/xcapclient.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/xcapclient.pyo +%%PYTHON_SITELIBDIR%%/xcaplib/xpath_completion.py +%%PYTHON_SITELIBDIR%%/xcaplib/xpath_completion.pyc +%%PYTHON_SITELIBDIR%%/xcaplib/xpath_completion.pyo +@dirrm %%PYTHON_SITELIBDIR%%/xcaplib +@dirrmtry %%PYTHON_SITELIBDIR%% +@dirrmtry lib/%%PYTHON_VERSION%%