2006-06-03 05:17:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2006/06/03 09:17:37 alek Exp $
|
2004-11-25 10:19:20 -05:00
|
|
|
|
|
|
|
COMMENT= "Python interface to sendmail milter API"
|
|
|
|
|
|
|
|
DISTNAME= milter-0.7.2
|
2006-02-07 06:52:16 -05:00
|
|
|
PKGNAME= py-${DISTNAME}p1
|
2004-11-25 10:19:20 -05:00
|
|
|
CATEGORIES= mail
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.bmsi.com/python/milter.html
|
|
|
|
|
2006-02-07 05:30:06 -05:00
|
|
|
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
|
|
|
|
2004-11-25 10:19:20 -05:00
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2005-11-01 11:29:24 -05:00
|
|
|
WANTLIB= milter
|
|
|
|
|
2004-11-25 10:19:20 -05:00
|
|
|
MASTER_SITES= http://www.bmsi.com/python/
|
|
|
|
|
|
|
|
MODULES= lang/python
|
2006-06-03 05:17:37 -04:00
|
|
|
MODPY_VERSION= 2.3
|
2004-11-25 10:19:20 -05:00
|
|
|
|
|
|
|
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>
|