From 2d39ac1ad43c0a35141de57cd906e8b78c192000 Mon Sep 17 00:00:00 2001 From: xsa Date: Thu, 25 Nov 2004 15:19:20 +0000 Subject: [PATCH] Initial import of py-milter-0.7.2 milter is a Python extension module to enable Python scripts to attach to Sendmail's libmilter API, enabling filtering of messages as they arrive. Since it's a script, you can do anything you want to the message - screen out viruses, collect statistics, add or modify headers, etc. You can, at any point, tell Sendmail to reject, discard, or accept the message. --- mail/py-milter/Makefile | 39 +++++++++++++++++++++++++++ mail/py-milter/distinfo | 3 +++ mail/py-milter/patches/patch-setup_py | 12 +++++++++ mail/py-milter/pkg/DESCR | 6 +++++ mail/py-milter/pkg/PFRAG.shared | 2 ++ mail/py-milter/pkg/PLIST | 19 +++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 mail/py-milter/Makefile create mode 100644 mail/py-milter/distinfo create mode 100644 mail/py-milter/patches/patch-setup_py create mode 100644 mail/py-milter/pkg/DESCR create mode 100644 mail/py-milter/pkg/PFRAG.shared create mode 100644 mail/py-milter/pkg/PLIST diff --git a/mail/py-milter/Makefile b/mail/py-milter/Makefile new file mode 100644 index 00000000000..180fda3cdfb --- /dev/null +++ b/mail/py-milter/Makefile @@ -0,0 +1,39 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2004/11/25 15:19:20 xsa Exp $ + +COMMENT= "Python interface to sendmail milter API" + +DISTNAME= milter-0.7.2 +PKGNAME= py-${DISTNAME} +CATEGORIES= mail + +HOMEPAGE= http://www.bmsi.com/python/milter.html + +MAINTAINER= Xavier Santolaria + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://www.bmsi.com/python/ + +MODULES= lang/python + +DOCSDIR= ${PREFIX}/share/doc/py-milter +EXAMPLESDIR= ${PREFIX}/share/examples/py-milter + +post-install: + ${INSTALL_DATA_DIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA_DIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/{bms,sample,rejects,spfquery}.py \ + ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/milter.cfg ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/rhsbl.m4 ${EXAMPLESDIR} + +do-regress: fake + @cd ${WRKSRC} && ${MAKE_ENV} \ + PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} ./test.py + +.include diff --git a/mail/py-milter/distinfo b/mail/py-milter/distinfo new file mode 100644 index 00000000000..7fa89aba05d --- /dev/null +++ b/mail/py-milter/distinfo @@ -0,0 +1,3 @@ +MD5 (milter-0.7.2.tar.gz) = 2ab8f966651af56a5b22fef13fd7ba10 +RMD160 (milter-0.7.2.tar.gz) = a46a7a130faa3db1dca34b9e083b12b6fcd7706a +SHA1 (milter-0.7.2.tar.gz) = c012a9691fd154492c921e28d89fa65cd4c55e1c diff --git a/mail/py-milter/patches/patch-setup_py b/mail/py-milter/patches/patch-setup_py new file mode 100644 index 00000000000..673a9aa9126 --- /dev/null +++ b/mail/py-milter/patches/patch-setup_py @@ -0,0 +1,12 @@ +$OpenBSD: patch-setup_py,v 1.1.1.1 2004/11/25 15:19:20 xsa Exp $ +--- setup.py.orig Sat Nov 20 18:22:12 2004 ++++ setup.py Thu Nov 25 14:09:35 2004 +@@ -3,7 +3,7 @@ import sys + from distutils.core import setup, Extension + + # FIXME: on some versions of sendmail, smutil is renamed to sm +-libs = ["milter", "smutil"] ++libs = ["milter"] + + # patch distutils if it can't cope with the "classifiers" or + # "download_url" keywords diff --git a/mail/py-milter/pkg/DESCR b/mail/py-milter/pkg/DESCR new file mode 100644 index 00000000000..c27c434dbe7 --- /dev/null +++ b/mail/py-milter/pkg/DESCR @@ -0,0 +1,6 @@ +milter is a Python extension module to enable Python scripts to attach +to Sendmail's libmilter API, enabling filtering of messages as they +arrive. Since it's a script, you can do anything you want to the +message - screen out viruses, collect statistics, add or modify headers, +etc. You can, at any point, tell Sendmail to reject, discard, or accept +the message. diff --git a/mail/py-milter/pkg/PFRAG.shared b/mail/py-milter/pkg/PFRAG.shared new file mode 100644 index 00000000000..0260798d4bb --- /dev/null +++ b/mail/py-milter/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2004/11/25 15:19:20 xsa Exp $ +lib/python${MODPY_VERSION}/site-packages/milter.so diff --git a/mail/py-milter/pkg/PLIST b/mail/py-milter/pkg/PLIST new file mode 100644 index 00000000000..4da76b4fe5a --- /dev/null +++ b/mail/py-milter/pkg/PLIST @@ -0,0 +1,19 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2004/11/25 15:19:20 xsa Exp $ +%%SHARED%% +lib/python${MODPY_VERSION}/ +lib/python${MODPY_VERSION}/site-packages/ +lib/python${MODPY_VERSION}/site-packages/Milter.py +lib/python${MODPY_VERSION}/site-packages/Milter.pyc +lib/python${MODPY_VERSION}/site-packages/mime.py +lib/python${MODPY_VERSION}/site-packages/mime.pyc +lib/python${MODPY_VERSION}/site-packages/spf.py +lib/python${MODPY_VERSION}/site-packages/spf.pyc +share/doc/py-milter/ +share/doc/py-milter/README +share/examples/py-milter/ +share/examples/py-milter/bms.py +share/examples/py-milter/milter.cfg +share/examples/py-milter/rejects.py +share/examples/py-milter/rhsbl.m4 +share/examples/py-milter/sample.py +share/examples/py-milter/spfquery.py