git: a22c30739afe - main - mail/py-minismtpd: New port: Minimal SMTP server

From: Jesús Daniel Colmenares Oviedo <dtxdf_at_FreeBSD.org>
Date: Mon, 02 Nov 2026 01:21:14 UTC
The branch main has been updated by dtxdf:

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

commit a22c30739afe5abfbea6b7a83d402474fca38e5a
Author:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
AuthorDate: 2026-11-01 16:33:29 +0000
Commit:     Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>
CommitDate: 2026-11-02 01:19:04 +0000

    mail/py-minismtpd: New port: Minimal SMTP server
    
    minismtpd is a library based on now-discontinued smtpd module from
    the Python 3.11 standard library. The original module and its tests
    are licensed under Python Software Foundation License Version 2.
    
    The modifications and new code is licensed under the BSD-3-Clause
    license.
    
    WWW: https://github.com/cuu508/minismtpd/
---
 mail/Makefile               |  1 +
 mail/py-minismtpd/Makefile  | 25 +++++++++++++++++++++++++
 mail/py-minismtpd/distinfo  |  3 +++
 mail/py-minismtpd/pkg-descr |  6 ++++++
 4 files changed, 35 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index c64461e46a8a..7df99f7554ab 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -535,6 +535,7 @@
     SUBDIR += py-mailnag
     SUBDIR += py-mailsuite
     SUBDIR += py-managesieve3
+    SUBDIR += py-minismtpd
     SUBDIR += py-notmuch
     SUBDIR += py-notmuch2
     SUBDIR += py-offlineimap
diff --git a/mail/py-minismtpd/Makefile b/mail/py-minismtpd/Makefile
new file mode 100644
index 000000000000..1302c9932ac4
--- /dev/null
+++ b/mail/py-minismtpd/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	minismtpd
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.5
+CATEGORIES=	mail python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	dtxdf@FreeBSD.org
+COMMENT=	Minimal SMTP server
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_GITHUB=	yes
+GH_ACCOUNT=	cuu508
+USE_PYTHON=	autoplist pep517
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|^license = .*|license = { text = "BSD-3-Clause AND PSF-2.0" }|' \
+		${WRKSRC}/pyproject.toml
+
+.include <bsd.port.mk>
diff --git a/mail/py-minismtpd/distinfo b/mail/py-minismtpd/distinfo
new file mode 100644
index 000000000000..b176fb2ed255
--- /dev/null
+++ b/mail/py-minismtpd/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1793549144
+SHA256 (cuu508-minismtpd-v0.5_GH0.tar.gz) = d64e3556c63d0b26c402e84a04580d99e1a85116da78902eac1551745ba0808b
+SIZE (cuu508-minismtpd-v0.5_GH0.tar.gz) = 10425
diff --git a/mail/py-minismtpd/pkg-descr b/mail/py-minismtpd/pkg-descr
new file mode 100644
index 000000000000..d834d3217cd4
--- /dev/null
+++ b/mail/py-minismtpd/pkg-descr
@@ -0,0 +1,6 @@
+minismtpd is a library based on now-discontinued smtpd module from
+the Python 3.11 standard library. The original module and its tests
+are licensed under Python Software Foundation License Version 2.
+
+The modifications and new code is licensed under the BSD-3-Clause
+license.