aboutsummaryrefslogtreecommitdiffstats
path: root/mail/tmda/Makefile
blob: bda2cb792bf620e67c05232a50ca732ec64ef7f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:    tmda
# Date created:             08 June 2001
# Whom:                 Jason R. Mastaler <jason@mastaler.com>
#
# $FreeBSD$
#

PORTNAME=   tmda
PORTVERSION=    1.1.5
PORTREVISION=   1
CATEGORIES= mail python
MASTER_SITES=   ftp://tmda.net/pub/tmda/releases/ \
        http://tmda.sourceforge.net/releases/ \
        http://tmda.mirrors.summersault.com/releases/ \
        http://mirrors.standblue.net/tmda.net/releases/ \
        http://tmda.paracoda.com/releases/ \
        ftp://ftp.heanet.ie/mirrors/tmda.net/releases/ \
        ftp://gd.tuwien.ac.at/infosys/mail/tmda/releases/ \
        http://dl.ambiweb.de/mirrors/www.tmda.net/releases/ \
        http://tmda.pradnik.net/releases/ \
        http://tmda.planetmirror.com/releases/
EXTRACT_SUFX=   .tgz

MAINTAINER= sergei@FreeBSD.org
COMMENT=    Python-based SPAM reduction system

.if defined(WITH_CDB)
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/cdbmodule.so:${PORTSDIR}/databases/py-cdb
.endif

USE_PYTHON= 2.3+

SUB_FILES=  pkg-message

DOCS=       CODENAMES CRYPTO README THANKS NEWS UPGRADE \
        htdocs/README htdocs/*.html htdocs/*.css
SAMPLES=    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

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}/dot-tmda/filters ${EXAMPLESDIR}/dot-tmda/lists
    cd ${WRKSRC}/contrib && \
        ${INSTALL_SCRIPT} ${SCRIPTS} ${EXAMPLESDIR} && \
        ${INSTALL_DATA} ${SAMPLES} ${EXAMPLESDIR}
    cd ${WRKSRC}/contrib/dot-tmda && \
        ${INSTALL_DATA} [Rc]* ${EXAMPLESDIR}/dot-tmda && \
        ${INSTALL_DATA} filters/* ${EXAMPLESDIR}/dot-tmda/filters && \
        ${INSTALL_DATA} lists/* ${EXAMPLESDIR}/dot-tmda/lists
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}/img
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} && \
        ${INSTALL_DATA} htdocs/img/* ${DOCSDIR}/img
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>