aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-08-21 22:42:17 +0800
committerwg <wg@FreeBSD.org>2013-08-21 22:42:17 +0800
commit4d29a17759a374d8a72695cfb4cefa07197c5be0 (patch)
treec8b64b928ee1b9b58dce15ff928016d0629b61b4 /net
parent05ad43ec34f455f8a8dcfcabdfed388626cab670 (diff)
downloadfreebsd-ports-gnome-4d29a17759a374d8a72695cfb4cefa07197c5be0.tar.gz
freebsd-ports-gnome-4d29a17759a374d8a72695cfb4cefa07197c5be0.tar.zst
freebsd-ports-gnome-4d29a17759a374d8a72695cfb4cefa07197c5be0.zip
Netlib is a collection of network utility classes,
used by the pathod and mitmproxy projects. It differs from other projects in some fundamental respects, because both pathod and mitmproxy often need to violate standards. WWW: https://pypi.python.org/pypi/netlib PR: ports/180746 Submitted by: Hung-Yi Chen <gaod hychen.org>
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/py-netlib/Makefile21
-rw-r--r--net/py-netlib/distinfo2
-rw-r--r--net/py-netlib/files/patch-setup.py8
-rw-r--r--net/py-netlib/pkg-descr8
-rw-r--r--net/py-netlib/pkg-plist44
6 files changed, 84 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 83baea88f357..91227c6689f6 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -924,6 +924,7 @@
SUBDIR += py-ndg_httpsclient
SUBDIR += py-netaddr
SUBDIR += py-netifaces
+ SUBDIR += py-netlib
SUBDIR += py-netstring
SUBDIR += py-novaclient
SUBDIR += py-oauth
diff --git a/net/py-netlib/Makefile b/net/py-netlib/Makefile
new file mode 100644
index 000000000000..da38056c61a1
--- /dev/null
+++ b/net/py-netlib/Makefile
@@ -0,0 +1,21 @@
+# Created by: Hung-Yi Chen <gaod@hychen.org>
+# $FreeBSD$
+
+PORTNAME= netlib
+PORTVERSION= 0.9.1
+CATEGORIES= net python
+MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= gaod@hychen.org
+COMMENT= Collection of network utilities
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>0:${PORTSDIR}/devel/py-asn1 \
+ ${PYTHON_PKGNAMEPREFIX}openssl>0:${PORTSDIR}/security/py-openssl
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+.include <bsd.port.mk>
diff --git a/net/py-netlib/distinfo b/net/py-netlib/distinfo
new file mode 100644
index 000000000000..1fc09266fb4e
--- /dev/null
+++ b/net/py-netlib/distinfo
@@ -0,0 +1,2 @@
+SHA256 (netlib-0.9.1.tar.gz) = 559d3e842e39660e83493e46872966bc63a4a58fc4cbb2bf4ec2ca2b3cd880a6
+SIZE (netlib-0.9.1.tar.gz) = 58851
diff --git a/net/py-netlib/files/patch-setup.py b/net/py-netlib/files/patch-setup.py
new file mode 100644
index 000000000000..bf2bf3be2c84
--- /dev/null
+++ b/net/py-netlib/files/patch-setup.py
@@ -0,0 +1,8 @@
+--- setup.py.orig 2013-07-23 03:39:16.157592949 +0800
++++ setup.py 2013-07-23 03:39:30.392145219 +0800
+@@ -88,5 +88,4 @@
+ "Topic :: Software Development :: Testing :: Traffic Generation",
+ "Topic :: Internet :: WWW/HTTP",
+ ],
+- install_requires=["pyasn1>0.1.2", "pyopenssl>=0.12"],
+ )
diff --git a/net/py-netlib/pkg-descr b/net/py-netlib/pkg-descr
new file mode 100644
index 000000000000..4574359a8312
--- /dev/null
+++ b/net/py-netlib/pkg-descr
@@ -0,0 +1,8 @@
+Netlib is a collection of network utility classes,
+used by the pathod and mitmproxy projects.
+
+It differs from other projects in some fundamental
+respects, because both pathod and mitmproxy often
+need to violate standards.
+
+WWW: https://pypi.python.org/pypi/netlib
diff --git a/net/py-netlib/pkg-plist b/net/py-netlib/pkg-plist
new file mode 100644
index 000000000000..0fe31998f384
--- /dev/null
+++ b/net/py-netlib/pkg-plist
@@ -0,0 +1,44 @@
+%%PYTHON_SITELIBDIR%%/netlib/__init__.py
+%%PYTHON_SITELIBDIR%%/netlib/__init__.pyc
+%%PYTHON_SITELIBDIR%%/netlib/__init__.pyo
+%%PYTHON_SITELIBDIR%%/netlib/certutils.py
+%%PYTHON_SITELIBDIR%%/netlib/certutils.pyc
+%%PYTHON_SITELIBDIR%%/netlib/certutils.pyo
+%%PYTHON_SITELIBDIR%%/netlib/contrib/__init__.py
+%%PYTHON_SITELIBDIR%%/netlib/contrib/__init__.pyc
+%%PYTHON_SITELIBDIR%%/netlib/contrib/__init__.pyo
+%%PYTHON_SITELIBDIR%%/netlib/contrib/md5crypt.py
+%%PYTHON_SITELIBDIR%%/netlib/contrib/md5crypt.pyc
+%%PYTHON_SITELIBDIR%%/netlib/contrib/md5crypt.pyo
+%%PYTHON_SITELIBDIR%%/netlib/http.py
+%%PYTHON_SITELIBDIR%%/netlib/http.pyc
+%%PYTHON_SITELIBDIR%%/netlib/http.pyo
+%%PYTHON_SITELIBDIR%%/netlib/http_auth.py
+%%PYTHON_SITELIBDIR%%/netlib/http_auth.pyc
+%%PYTHON_SITELIBDIR%%/netlib/http_auth.pyo
+%%PYTHON_SITELIBDIR%%/netlib/http_status.py
+%%PYTHON_SITELIBDIR%%/netlib/http_status.pyc
+%%PYTHON_SITELIBDIR%%/netlib/http_status.pyo
+%%PYTHON_SITELIBDIR%%/netlib/http_uastrings.py
+%%PYTHON_SITELIBDIR%%/netlib/http_uastrings.pyc
+%%PYTHON_SITELIBDIR%%/netlib/http_uastrings.pyo
+%%PYTHON_SITELIBDIR%%/netlib/odict.py
+%%PYTHON_SITELIBDIR%%/netlib/odict.pyc
+%%PYTHON_SITELIBDIR%%/netlib/odict.pyo
+%%PYTHON_SITELIBDIR%%/netlib/tcp.py
+%%PYTHON_SITELIBDIR%%/netlib/tcp.pyc
+%%PYTHON_SITELIBDIR%%/netlib/tcp.pyo
+%%PYTHON_SITELIBDIR%%/netlib/test.py
+%%PYTHON_SITELIBDIR%%/netlib/test.pyc
+%%PYTHON_SITELIBDIR%%/netlib/test.pyo
+%%PYTHON_SITELIBDIR%%/netlib/utils.py
+%%PYTHON_SITELIBDIR%%/netlib/utils.pyc
+%%PYTHON_SITELIBDIR%%/netlib/utils.pyo
+%%PYTHON_SITELIBDIR%%/netlib/version.py
+%%PYTHON_SITELIBDIR%%/netlib/version.pyc
+%%PYTHON_SITELIBDIR%%/netlib/version.pyo
+%%PYTHON_SITELIBDIR%%/netlib/wsgi.py
+%%PYTHON_SITELIBDIR%%/netlib/wsgi.pyc
+%%PYTHON_SITELIBDIR%%/netlib/wsgi.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/netlib/contrib
+@dirrm %%PYTHON_SITELIBDIR%%/netlib