aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qsheff/Makefile
blob: 32f329530e5d575a6d6baddae34b67fe0cf1e189 (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:   qsheff
# Date created:                 14 Jul 2005
# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
#
# $FreeBSD$
#

PORTNAME=   qsheff
PORTVERSION=    1.0.r3
CATEGORIES= mail
MASTER_SITES=   http://www.enderunix.org/qsheff/ \
        ${MASTER_SITE_SOURCEFORGE}
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.r/-r/}

MAINTAINER= ozkan@enderunix.org
COMMENT=    A qmail-queue replacement to filter mail traffic

BUILD_DEPENDS=  ${QMAIL_DIR}/bin/qmail-queue:${PORTSDIR}/mail/qmail \
        ${LOCALBASE}/bin/ripmime:${PORTSDIR}/mail/ripmime
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_REINPLACE=  YES
GNU_CONFIGURE=  YES
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

PORTDOCS=   spamass-qsheff.en.html README COPYING AUTHORS ChangeLog \
        INSTALL UPGRADE THANKS TODO

OPTIONS=    CLAMAV "Integrate with Clam AntiVirus" on

.if exists(${LOCALBASE}/qmail/bin/qmail-queue)
QMAIL_DIR?= ${LOCALBASE}/qmail
.else
QMAIL_DIR?= /var/qmail
.endif

CONFIGURE_ARGS+=    --with-qmaildir=${QMAIL_DIR}

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_CLAMAV)
RUN_DEPENDS+=   ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
.endif

post-patch:
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e 's|\(install-data-am: \)install-qsheffdocDATA|\1|g' \
              -e 's| contribute$$||g' \
        ${WRKSRC}/Makefile.in
.endif

post-build:
.if defined(WITHOUT_CLAMAV)
    @${REINPLACE_CMD} -e 's|enable_virus_prog = 1|enable_virus_prog = 0|g' \
        ${WRKSRC}/etc/qsheff.conf-default
.endif

.include <bsd.port.post.mk>