summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/py-pyspf/Makefile1
-rw-r--r--mail/py-pyspf/files/patch-spf.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/mail/py-pyspf/Makefile b/mail/py-pyspf/Makefile
index cdf8ca429d45..48fb26625686 100644
--- a/mail/py-pyspf/Makefile
+++ b/mail/py-pyspf/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pyspf
PORTVERSION= 2.0.14
+PORTREVISION= 1
CATEGORIES= mail python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/mail/py-pyspf/files/patch-spf.py b/mail/py-pyspf/files/patch-spf.py
new file mode 100644
index 000000000000..2ce960adfed7
--- /dev/null
+++ b/mail/py-pyspf/files/patch-spf.py
@@ -0,0 +1,11 @@
+--- spf.py.orig 2020-01-01 21:02:26 UTC
++++ spf.py
+@@ -128,7 +128,7 @@ def DNSLookup_dnspython(name, qtype, tcpfallback=True,
+ retVal = []
+ try:
+ # FIXME: how to disable TCP fallback in dnspython if not tcpfallback?
+- answers = dns.resolver.query(name, qtype, lifetime=timeout)
++ answers = dns.resolver.resolve(name, qtype)
+ for rdata in answers:
+ if qtype == 'A' or qtype == 'AAAA':
+ retVal.append(((name, qtype), rdata.address))