dcb33419df
* New feature from Cory Wright. TEMPLATE_DIR_MATCH_RECIPIENT will search for a template directory based on the recipient address. * New feature. The bounce,reject FILTER_INCOMING action now takes an optional 'template' argument to bounce using a specific template rather than the default template (bounce.txt). - Install missing contributed scripts/configs Noticed by: Jason R. Mastaler <jason@mastaler.com> PR: 53297 Submitted by: Sergei Kolobov <sergei@kolobov.com> Approved by: Mike Meyer <mwm@mired.org> (MAINTAINER)
63 lines
1.9 KiB
Makefile
63 lines
1.9 KiB
Makefile
# New ports collection makefile for: tmda
|
|
# Date created: 08 June 2001
|
|
# Whom: Jason R. Mastaler <jason@mastaler.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tmda
|
|
PORTVERSION= 0.80
|
|
CATEGORIES= mail python
|
|
MASTER_SITES= http://www.tmda.net/releases/%SUBDIR%/ \
|
|
http://www.us.tmda.net/releases/%SUBDIR%/ \
|
|
http://tmda.mirrors.summersault.com/releases/%SUBDIR%/ \
|
|
http://mirrors.standblue.net/tmda.net/releases/%SUBDIR%/ \
|
|
http://www.au.tmda.net/releases/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= . old
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= mwm@mired.org
|
|
COMMENT= Python-based SPAM reduction system
|
|
|
|
USE_PYTHON= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
DOCS= CODENAMES CRYPTO README THANKS UPGRADE htdocs/*.html
|
|
SAMPLES= sample.config tmda.el tofmipd.sysconfig vtmdarc
|
|
SCRIPTS= collectaddys def2html printcdb printdbm sendit.sh \
|
|
smtp-check-sender tofmipd.init tofmipd.sysconfig \
|
|
update-internaldomains vadduser-tmda vmailmgr-vdir.sh \
|
|
vpopmail-vdir.sh wrapfd3.sh
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} < 210
|
|
BROKEN= "TMDA requries Python 2.1 or greater"
|
|
.endif
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} ./compileall
|
|
|
|
do-install:
|
|
@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/TMDA/pythonlib/email
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${PYTHONPREFIX_SITELIBDIR}/TMDA
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/*.py* \
|
|
${PYTHONPREFIX_SITELIBDIR}/TMDA/pythonlib/email
|
|
@${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/tmda-* ${PREFIX}/bin
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/contrib && ${INSTALL_DATA} ${SAMPLES} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/contrib && ${INSTALL_SCRIPT} ${SCRIPTS} ${EXAMPLESDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
.endif
|
|
@${SED} -e 's!PREFIX!${PREFIX}!; s!DOCSDIR!${DOCSDIR}!;' \
|
|
-e 's!EXAMPLESDIR!${EXAMPLESDIR}!' ${.CURDIR}/pkg-message \
|
|
> ${PKGMESSAGE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|