TIMESTAMP = 1600381665SHA256 (netaddr-0.7.20.tar.gz) = d09252e5aec3913815d77eb8e8ea8fa6eb33521253e52f977f6abaa964776f3eSIZE (netaddr-0.7.20.tar.gz) = 1889698
rm files/patch-setup.py
--- Makefile.old 2020-09-18 00:29:47.359512000 +0200+++ Makefile 2020-09-18 00:29:53.599067000 +0200@@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= netaddr-PORTVERSION= 0.7.19+PORTVERSION= 0.7.20 PORTREVISION= 1 CATEGORIES= net python MASTER_SITES= CHEESESHOP
--- list_macdb.py.old 2020-09-18 01:28:10.300640000 +0200+++ list_macdb.py 2020-09-18 01:27:01.729241000 +0200@@ -27,12 +27,11 @@ import os.path import sys import ujson-import netaddr.eui.ieee if __name__ == '__main__': result=dict()- if os.path.isfile(netaddr.eui.ieee.OUI_REGISTRY_PATH):- for line in open(netaddr.eui.ieee.OUI_REGISTRY_PATH, 'rb'):+ if os.path.isfile('/usr/local/lib/python3.7/site-packages/netaddr/eui/oui.txt'):+ for line in open('/usr/local/lib/python3.7/site-packages/netaddr/eui/oui.txt', 'rb'): line = line.decode() if line.find('(base 16)') > -1: parts=line.split('(base 16)')
--- list_macdb.py.old 2020-09-18 10:42:50.178232000 +0200+++ list_macdb.py 2020-09-18 10:39:20.059022000 +0200@@ -27,12 +27,12 @@ import os.path import sys import ujson-import netaddr.eui.ieee+import imp if __name__ == '__main__': result=dict()- if os.path.isfile(netaddr.eui.ieee.OUI_REGISTRY_PATH):- for line in open(netaddr.eui.ieee.OUI_REGISTRY_PATH, 'rb'):+ if os.path.isfile((imp.find_module('netaddr')[1])+'/eui/oui.txt'):+ for line in open((imp.find_module('netaddr')[1])+'/eui/oui.txt', 'rb'): line = line.decode() if line.find('(base 16)') > -1: parts=line.split('(base 16)')