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.
This commit is contained in:
parent
18804762de
commit
2d39ac1ad4
39
mail/py-milter/Makefile
Normal file
39
mail/py-milter/Makefile
Normal file
@ -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 <xsa@openbsd.org>
|
||||
|
||||
# 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 <bsd.port.mk>
|
3
mail/py-milter/distinfo
Normal file
3
mail/py-milter/distinfo
Normal file
@ -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
|
12
mail/py-milter/patches/patch-setup_py
Normal file
12
mail/py-milter/patches/patch-setup_py
Normal file
@ -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
|
6
mail/py-milter/pkg/DESCR
Normal file
6
mail/py-milter/pkg/DESCR
Normal file
@ -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.
|
2
mail/py-milter/pkg/PFRAG.shared
Normal file
2
mail/py-milter/pkg/PFRAG.shared
Normal file
@ -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
|
19
mail/py-milter/pkg/PLIST
Normal file
19
mail/py-milter/pkg/PLIST
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user