aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-06-20 20:43:55 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-06-20 20:43:55 +0000
commitce3df07fb392cb28ff97e2fd30af9e5835b45006 (patch)
treed19629182c1961d3095017e5476c5966a4cbc2ad
parent42c316c631664380e0a7e20ceeda99eec2c0aa8a (diff)
downloadports-ce3df07fb392cb28ff97e2fd30af9e5835b45006.tar.gz
ports-ce3df07fb392cb28ff97e2fd30af9e5835b45006.zip
net/py-pyroute2.minimal: Add py-pyroute2.minimal 0.6.4
PyRoute2 is a pure Python netlink library. This module provides minimal subset of pyroute2 modules. Only netlink parser, basic netns management and some netlink protocols implementations. WWW: https://github.com/svinota/pyroute2/tree/master/pyroute2.minimal
-rw-r--r--net/Makefile1
-rw-r--r--net/py-pyroute2.minimal/Makefile30
-rw-r--r--net/py-pyroute2.minimal/distinfo3
-rw-r--r--net/py-pyroute2.minimal/pkg-descr6
4 files changed, 40 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 28b4785357be..4f2eb9bf93d7 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1076,6 +1076,7 @@
SUBDIR += py-pyroute2.core
SUBDIR += py-pyroute2.ethtool
SUBDIR += py-pyroute2.ipset
+ SUBDIR += py-pyroute2.minimal
SUBDIR += py-pysendfile
SUBDIR += py-pyshark
SUBDIR += py-pysmb
diff --git a/net/py-pyroute2.minimal/Makefile b/net/py-pyroute2.minimal/Makefile
new file mode 100644
index 000000000000..540975e2cbf3
--- /dev/null
+++ b/net/py-pyroute2.minimal/Makefile
@@ -0,0 +1,30 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= pyroute2.minimal
+PORTVERSION= 0.6.4
+CATEGORIES= net python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Python Netlink library: minimal installation
+
+LICENSE= APACHE20 GPLv2+
+LICENSE_COMB= dual
+LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.Apache.v2
+LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSE.GPL.v2
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyroute2.core>=${PORTVERSION}:net/py-pyroute2.core@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net/py-pyroute2.minimal/distinfo b/net/py-pyroute2.minimal/distinfo
new file mode 100644
index 000000000000..44680e8d19c3
--- /dev/null
+++ b/net/py-pyroute2.minimal/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1624189683
+SHA256 (pyroute2.minimal-0.6.4.tar.gz) = f15fa3bd5301800ab14b307c0703e6d345b70cae058dc10283c469537ee5bcbe
+SIZE (pyroute2.minimal-0.6.4.tar.gz) = 20962
diff --git a/net/py-pyroute2.minimal/pkg-descr b/net/py-pyroute2.minimal/pkg-descr
new file mode 100644
index 000000000000..3d6b68bf87b5
--- /dev/null
+++ b/net/py-pyroute2.minimal/pkg-descr
@@ -0,0 +1,6 @@
+PyRoute2 is a pure Python netlink library.
+
+This module provides minimal subset of pyroute2 modules. Only netlink parser,
+basic netns management and some netlink protocols implementations.
+
+WWW: https://github.com/svinota/pyroute2/tree/master/pyroute2.minimal