aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spamdyke/Makefile
blob: 835e00752bd986da9457c422eee511cb2a015e29 (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
# New ports collection makefile for:    spamdyke
# Date created:     11 January 2007
# Whom:         Peter Kieser <peter@kieser.ca>
#
# $FreeBSD$
#

PORTNAME=   spamdyke
PORTVERSION=    3.1.6
CATEGORIES= mail
MASTER_SITES=   http://www.spamdyke.org/releases/
EXTRACT_SUFX=   .tgz

MAINTAINER= peter@kieser.ca
COMMENT=    A filter for monitoring and intercepting SMTP connections on qmail

BUILD_DEPENDS=  ${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
RUN_DEPENDS=    ${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp

WRKSRC=     ${WRKDIR}/${DISTNAME}/spamdyke

USE_QMAIL=  yes
GNU_CONFIGURE=  yes

ALL_TARGET= spamdyke

PLIST_FILES=    bin/spamdyke

OPTIONS=    TLS "Enable TLS support" On

.include <bsd.port.pre.mk>

.if defined(WITHOUT_TLS)
CONFIGURE_ARGS+=    --disable-tls
.else
CONFIGURE_ARGS+=    --enable-tls
.endif

.if !defined(NOPORTDOCS)
PORTDOCS=   Changelog.txt FAQ.html GNUGPL.txt INSTALL.txt \
        README.html README_ip_file_format.html \
        README_rdns_directory_format.html README_rdns_file_format.html \
        UPGRADING.txt
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKDIR}/${DISTNAME}/documentation && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

post-patch:
    @${REINPLACE_CMD} -e 's#^CFLAGS :=.*#CFLAGS = ${CFLAGS}#' ${WRKSRC}/Makefile.in

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/spamdyke ${PREFIX}/bin

.include <bsd.port.post.mk>