2d39ac1ad4
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.
40 lines
989 B
Makefile
40 lines
989 B
Makefile
# $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>
|