summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/py-pyroute2.protocols/Makefile3
-rw-r--r--net/py-pyroute2.protocols/files/patch-pyroute243
2 files changed, 45 insertions, 1 deletions
diff --git a/net/py-pyroute2.protocols/Makefile b/net/py-pyroute2.protocols/Makefile
index 51afa650b6d0..9bac3159d5b4 100644
--- a/net/py-pyroute2.protocols/Makefile
+++ b/net/py-pyroute2.protocols/Makefile
@@ -2,6 +2,7 @@
PORTNAME= pyroute2.protocols
PORTVERSION= 0.6.13
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +15,7 @@ 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}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyroute2>=${PORTVERSION}:net/py-pyroute2@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils
diff --git a/net/py-pyroute2.protocols/files/patch-pyroute2 b/net/py-pyroute2.protocols/files/patch-pyroute2
new file mode 100644
index 000000000000..a8f4f5ba91b3
--- /dev/null
+++ b/net/py-pyroute2.protocols/files/patch-pyroute2
@@ -0,0 +1,43 @@
+Obtained from: https://github.com/svinota/pyroute2/commit/4baca6ab3fc9945dc15730aed9f87bbb70e4df7e
+
+--- pr2modules/arp.py.orig 2022-06-21 20:53:02 UTC
++++ pr2modules/arp.py
+@@ -1,4 +1,4 @@
+-from pr2modules.common import map_namespace
++from pyroute2.common import map_namespace
+
+ # ARP protocol HARDWARE identifiers.
+ ARPHRD_NETROM = 0 # from KA9Q: NET/ROM pseudo
+--- pr2modules/dhcp/__init__.py.orig 2022-06-21 20:53:02 UTC
++++ pr2modules/dhcp/__init__.py
+@@ -102,7 +102,7 @@ import struct
+ import sys
+ from array import array
+
+-from pr2modules.common import basestring
++from pyroute2.common import basestring
+ from pr2modules.protocols import msg
+
+ BOOTREQUEST = 1
+--- pr2modules/dhcp/dhcp4socket.py.orig 2022-06-21 20:53:02 UTC
++++ pr2modules/dhcp/dhcp4socket.py
+@@ -3,7 +3,7 @@ IPv4 DHCP socket
+ ================
+
+ '''
+-from pr2modules.common import AddrPool
++from pyroute2.common import AddrPool
+ from pr2modules.dhcp.dhcp4msg import dhcp4msg
+ from pr2modules.ext.rawsocket import RawSocket
+ from pr2modules.protocols import ethmsg, ip4msg, udp4_pseudo_header, udpmsg
+--- setup.cfg.orig 2022-06-23 21:11:54 UTC
++++ setup.cfg
+@@ -32,7 +32,7 @@ classifiers =
+ packages = find:
+ namespace_packages = pr2modules
+ install_requires =
+- pyroute2.core
++ pyroute2
+
+ [options.entry_points]
+ pr2modules =