summaryrefslogtreecommitdiff
path: root/mail/py-pymilter
diff options
context:
space:
mode:
Diffstat (limited to 'mail/py-pymilter')
-rw-r--r--mail/py-pymilter/Makefile42
-rw-r--r--mail/py-pymilter/distinfo3
-rw-r--r--mail/py-pymilter/files/patch-Milter_____init____.py11
-rw-r--r--mail/py-pymilter/files/patch-setup.py11
-rw-r--r--mail/py-pymilter/pkg-descr3
5 files changed, 70 insertions, 0 deletions
diff --git a/mail/py-pymilter/Makefile b/mail/py-pymilter/Makefile
new file mode 100644
index 000000000000..46973576c7ca
--- /dev/null
+++ b/mail/py-pymilter/Makefile
@@ -0,0 +1,42 @@
+PORTNAME= pymilter
+DISTVERSION= 1.0.6
+PORTREVISION= 1
+DISTVERSIONPREFIX= ${GH_PROJECT}-
+CATEGORIES= mail python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= matthew@FreeBSD.org
+COMMENT= Python interface to Sendmail milter API
+WWW= https://www.pymilter.org/ \
+ https://github.com/sdgathman/pymilter
+
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= python
+
+USE_GITHUB= yes
+GH_ACCOUNT= sdgathman
+
+USE_PYTHON= distutils autoplist flavors
+
+OPTIONS_SINGLE= MILTER
+OPTIONS_SINGLE_MILTER= LIBMILTER BASE
+OPTIONS_DEFAULT= LIBMILTER
+
+LIBMILTER_DESC= Link against libmilter from mail/libmilter
+LIBMILTER_VARS= WITH_MILTER_PORT=yes
+LIBMILTER_VARS_OFF= WITH_MILTER_BASE=
+
+BASE_DESC= Link against libmilter from base Sendmail
+BASE_VARS= WITH_MILTER_BASE=yes
+BASE_VARS_OFF= WITH_MILTER_PORT=
+
+.include <bsd.port.pre.mk>
+
+.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/milter*.so
+
+.include <bsd.port.post.mk>
diff --git a/mail/py-pymilter/distinfo b/mail/py-pymilter/distinfo
new file mode 100644
index 000000000000..127ae5af92a5
--- /dev/null
+++ b/mail/py-pymilter/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1746522427
+SHA256 (sdgathman-pymilter-pymilter-1.0.6_GH0.tar.gz) = 1c30abcf4b229e0e0f526a4e61eb7a7e9d88e14c6101001353b8219719325fcb
+SIZE (sdgathman-pymilter-pymilter-1.0.6_GH0.tar.gz) = 1030816
diff --git a/mail/py-pymilter/files/patch-Milter_____init____.py b/mail/py-pymilter/files/patch-Milter_____init____.py
new file mode 100644
index 000000000000..6fef8bd3f886
--- /dev/null
+++ b/mail/py-pymilter/files/patch-Milter_____init____.py
@@ -0,0 +1,11 @@
+--- Milter/__init__.py.orig 2025-05-08 14:18:12 UTC
++++ Milter/__init__.py
+@@ -9,7 +9,7 @@ from __future__ import print_function
+ # This code is under the GNU General Public License. See COPYING for details.
+
+ from __future__ import print_function
+-__version__ = '1.0.5'
++__version__ = '1.0.6'
+
+ import os
+ import re
diff --git a/mail/py-pymilter/files/patch-setup.py b/mail/py-pymilter/files/patch-setup.py
new file mode 100644
index 000000000000..3c8cca25e588
--- /dev/null
+++ b/mail/py-pymilter/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2025-05-08 14:17:14 UTC
++++ setup.py
+@@ -17,7 +17,7 @@ modules = ["mime"]
+ modules = ["mime"]
+
+ # NOTE: importing Milter to obtain version fails when milter.so not built
+-setup(name = "pymilter", version = '1.0.5',
++setup(name = "pymilter", version = '1.0.6',
+ description="Python interface to sendmail milter API",
+ long_description=long_description,
+ long_description_content_type='text/markdown',
diff --git a/mail/py-pymilter/pkg-descr b/mail/py-pymilter/pkg-descr
new file mode 100644
index 000000000000..62fc2fbad4c7
--- /dev/null
+++ b/mail/py-pymilter/pkg-descr
@@ -0,0 +1,3 @@
+This is a python extension module to enable python scripts to attach to
+sendmail's libmilter functionality. Additional python modules provide for
+navigating and modifying MIME parts, and sending DSNs or doing CBVs.