aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spamdyke/Makefile
blob: 11895d7b798d5823509fd50f665c71b5fcbb46e6 (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
# Created by: Peter Kieser <peter@kieser.ca>
# $FreeBSD$

PORTNAME=   spamdyke
PORTVERSION=    5.0.1
PORTREVISION=   1
CATEGORIES= mail
MASTER_SITES=   http://www.spamdyke.org/releases/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Qmail filter for monitoring and intercepting SMTP connections

LICENSE=    GPLv2

BROKEN_powerpc64=   Does not build

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

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

USES=       cpe qmail tar:tgz

GNU_CONFIGURE=  yes

ALL_TARGET= spamdyke

USE_GCC=    any

OPTIONS_DEFINE= TLS DEBUG DEBUG_EXCESSIVE DOCS
OPTIONS_DEFAULT=    TLS
DEBUG_DESC= Enable debugging output
DEBUG_EXCESSIVE_DESC=   Enable excessive debugging output

TLS_CONFIGURE_ENABLE=           tls
TLS_USE=                OPENSSL=yes
DEBUG_CONFIGURE_ENABLE=         debug-output
DEBUG_EXCESSIVE_CONFIGURE_ENABLE=   excessive-output

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 UPGRADING_version_3_to_version_4.txt

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

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/spamdyke ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/documentation/spamdyke.conf.example \
        ${STAGEDIR}${PREFIX}/etc/spamdyke.conf.sample

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKDIR}/${DISTNAME}/documentation && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>