git: 83afee21dc8f - main - mail/py-checkdmarc: Add py-checkdmarc 4.8.4

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 05 Oct 2023 02:01:05 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=83afee21dc8f323a40e2715904e2882253fbb91a

commit 83afee21dc8f323a40e2715904e2882253fbb91a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-10-05 01:53:30 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-10-05 01:53:30 +0000

    mail/py-checkdmarc: Add py-checkdmarc 4.8.4
    
    checkdmarc is a Python module and command line utility for validating SPF and
    DMARC DNS records.
    
    Features:
    - API and CLI
    - Can test multiple domains at once
    - CLI output in JSON or CSV format
    - Parses and validates MX, SPF, and DMARC records
    - Checks for DNSSEC deployment
    - Lists name servers
    - Checks for STARTTLS and TLS support on each mail server
---
 mail/Makefile                |  1 +
 mail/py-checkdmarc/Makefile  | 28 ++++++++++++++++++++++++++++
 mail/py-checkdmarc/distinfo  |  3 +++
 mail/py-checkdmarc/pkg-descr | 11 +++++++++++
 4 files changed, 43 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index eb76abb1d315..cca62ca1a7a9 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -498,6 +498,7 @@
     SUBDIR += py-alot
     SUBDIR += py-authheaders
     SUBDIR += py-authres
+    SUBDIR += py-checkdmarc
     SUBDIR += py-django-mailbox
     SUBDIR += py-django-mailman3
     SUBDIR += py-dkimpy
diff --git a/mail/py-checkdmarc/Makefile b/mail/py-checkdmarc/Makefile
new file mode 100644
index 000000000000..9aac27a1f515
--- /dev/null
+++ b/mail/py-checkdmarc/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	checkdmarc
+PORTVERSION=	4.8.4
+CATEGORIES=	mail python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Python module and command line parser for SPF and DMARC records
+WWW=		https://domainaware.github.io/checkdmarc/ \
+		https://github.com/domainaware/checkdmarc
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=1.8.1:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dnspython>=2.0.0,1:dns/py-dnspython@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}expiringdict>=1.1.4:devel/py-expiringdict@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}publicsuffixlist>=0.10.0:dns/py-publicsuffixlist@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyleri>=1.3.2:devel/py-pyleri@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.25.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}timeout-decorator>=0.4.1:devel/py-timeout-decorator@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent cryptography pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/mail/py-checkdmarc/distinfo b/mail/py-checkdmarc/distinfo
new file mode 100644
index 000000000000..ddc4c5baacce
--- /dev/null
+++ b/mail/py-checkdmarc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696432868
+SHA256 (checkdmarc-4.8.4.tar.gz) = c48af28f7dd778f894ad921b4c5650fc60f36549d937c3998df358e56e5801a1
+SIZE (checkdmarc-4.8.4.tar.gz) = 25913
diff --git a/mail/py-checkdmarc/pkg-descr b/mail/py-checkdmarc/pkg-descr
new file mode 100644
index 000000000000..0984c3c470ea
--- /dev/null
+++ b/mail/py-checkdmarc/pkg-descr
@@ -0,0 +1,11 @@
+checkdmarc is a Python module and command line utility for validating SPF and
+DMARC DNS records.
+
+Features:
+- API and CLI
+- Can test multiple domains at once
+- CLI output in JSON or CSV format
+- Parses and validates MX, SPF, and DMARC records
+- Checks for DNSSEC deployment
+- Lists name servers
+- Checks for STARTTLS and TLS support on each mail server