2013-09-20 21:59:12 +02:00
|
|
|
# Created by: Jason R. Mastaler <jason@mastaler.com>
|
2001-06-27 04:56:36 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tmda
|
2007-09-10 14:49:09 +02:00
|
|
|
PORTVERSION= 1.1.12
|
2017-04-18 13:09:40 +02:00
|
|
|
PORTREVISION= 3
|
2001-06-27 04:56:36 +02:00
|
|
|
CATEGORIES= mail python
|
2006-10-09 17:47:57 +02:00
|
|
|
MASTER_SITES= ftp://tmda.net/pub/tmda/releases/ \
|
2015-05-14 12:15:04 +02:00
|
|
|
LOCAL/sergei
|
2001-06-27 04:56:36 +02:00
|
|
|
|
2011-09-16 01:56:43 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= Python-based SPAM reduction system
|
2001-06-27 04:56:36 +02:00
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2015-08-03 19:11:22 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2001-06-27 04:56:36 +02:00
|
|
|
|
2017-11-30 16:50:30 +01:00
|
|
|
USES= python:2.7 shebangfix tar:tgz
|
2017-04-18 13:09:40 +02:00
|
|
|
SHEBANG_FILES= bin/tmda-* contrib/collectaddys contrib/def2html \
|
|
|
|
contrib/printcdb contrib/printdbm contrib/smtp-check-sender \
|
|
|
|
contrib/tofmipd.init
|
|
|
|
|
2006-09-22 11:11:27 +02:00
|
|
|
SUB_FILES= pkg-message
|
2015-08-03 19:11:22 +02:00
|
|
|
NO_ARCH= yes
|
2003-06-02 16:04:36 +02:00
|
|
|
|
2007-04-12 23:43:27 +02:00
|
|
|
DOCS= CODENAMES CRYPTO README THANKS NEWS UPGRADE
|
2006-09-22 11:11:27 +02:00
|
|
|
SAMPLES= tmda.el tofmipd.sysconfig vtmdarc
|
2003-06-15 11:55:55 +02:00
|
|
|
SCRIPTS= collectaddys def2html printcdb printdbm sendit.sh \
|
2016-04-01 15:18:17 +02:00
|
|
|
smtp-check-sender tofmipd.init tofmipd.sysconfig \
|
2003-06-15 11:55:55 +02:00
|
|
|
update-internaldomains vadduser-tmda vmailmgr-vdir.sh \
|
|
|
|
vpopmail-vdir.sh wrapfd3.sh
|
2001-06-27 04:56:36 +02:00
|
|
|
|
2015-08-03 19:11:22 +02:00
|
|
|
OPTIONS_DEFINE= CDB DOCS EXAMPLES
|
2017-04-18 13:09:40 +02:00
|
|
|
|
|
|
|
CDB_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cdbmodule.so:databases/py-cdb
|
2015-08-03 19:11:22 +02:00
|
|
|
|
2003-06-02 16:04:36 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${PYTHON_CMD} ./compileall
|
2002-02-08 05:08:02 +01:00
|
|
|
|
2001-06-27 04:56:36 +02:00
|
|
|
do-install:
|
2014-02-18 13:31:49 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/TMDA/pythonlib/email
|
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/TMDA/pythonlib/email/mime
|
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/TMDA/Queue
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/*.py* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/TMDA
|
2002-10-29 22:57:16 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/*.py* \
|
2014-02-18 13:31:49 +01:00
|
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/TMDA/pythonlib/email
|
2007-04-12 23:43:27 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/pythonlib/email/mime/*.py* \
|
2014-02-18 13:31:49 +01:00
|
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/TMDA/pythonlib/email/mime
|
2007-04-12 23:43:27 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/TMDA/Queue/*.py* \
|
2014-02-18 13:31:49 +01:00
|
|
|
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/TMDA/Queue
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/templates/*.txt ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/tmda-* ${STAGEDIR}${PREFIX}/bin
|
2016-12-25 10:00:59 +01:00
|
|
|
|
|
|
|
do-install-EXAMPLES-on:
|
2014-02-18 13:31:49 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/dot-tmda/filters ${STAGEDIR}${EXAMPLESDIR}/dot-tmda/lists
|
2006-09-22 11:11:27 +02:00
|
|
|
cd ${WRKSRC}/contrib && \
|
2014-02-18 13:31:49 +01:00
|
|
|
${INSTALL_SCRIPT} ${SCRIPTS} ${STAGEDIR}${EXAMPLESDIR} && \
|
|
|
|
${INSTALL_DATA} ${SAMPLES} ${STAGEDIR}${EXAMPLESDIR}
|
2006-09-22 11:11:27 +02:00
|
|
|
cd ${WRKSRC}/contrib/dot-tmda && \
|
2014-02-18 13:31:49 +01:00
|
|
|
${INSTALL_DATA} [Rc]* ${STAGEDIR}${EXAMPLESDIR}/dot-tmda && \
|
|
|
|
${INSTALL_DATA} filters/* ${STAGEDIR}${EXAMPLESDIR}/dot-tmda/filters && \
|
|
|
|
${INSTALL_DATA} lists/* ${STAGEDIR}${EXAMPLESDIR}/dot-tmda/lists
|
2016-12-25 10:00:59 +01:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2014-02-18 13:31:49 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/html ${STAGEDIR}${DOCSDIR}/pdf
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} && \
|
|
|
|
${CP} -r doc/html doc/pdf ${STAGEDIR}${DOCSDIR}
|
2001-06-27 04:56:36 +02:00
|
|
|
|
2003-10-21 22:10:23 +02:00
|
|
|
.include <bsd.port.mk>
|