aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qsheff/Makefile
blob: 24cf4cfced35be92009d231a4b222edb5b47b6e3 (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
# New ports collection makefile for:   qsheff
# Date created:                 14 Jul 2005
# Whom:                         Ozkan KIRIK <ozkan@enderunix.org>
#
# $FreeBSD$
#

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

MAINTAINER= ports@FreeBSD.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:
    @${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS +=|" ${WRKSRC}/Makefile.in
.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>
rtions'>+2 * Add an explicit dependency on pkgconfbapt2013-09-031-2/+1 * Rectify USE_TEX to support both of teTeX and TeXLive.hrs2013-05-121-1/+1 * Remove *_DEPENDS from ports which depend on teTeX and add USE_TEX=tetexhrs2013-05-061-4/+3 * - Convert USE_GETTEXT to USES (part 4)ak2013-04-261-2/+1 * - Fix texinfo arguments that cause problem during the buildgahr2013-03-112-5/+15 * - Convert to OPTIONSnggahr2013-03-111-5/+6 * Convert USE_BISON to USES= bisonbapt2013-03-081-1/+1 * - Update to 2.16.1gahr2012-11-272-11/+6 * - Update to 2.16.0gahr2012-08-284-32/+79 * - fix non-privileged installgahr2012-08-061-1/+1 * - update png to 1.5.10dinoex2012-06-011-1/+1 * - Mark MAKE_JOBS_UNSAFE since this failed with MAKE_JOBS for meswills2012-02-211-0/+1 * - Fix PLIST when building WITHOUT_NLSgahr2011-12-202-16/+23 * - Update to 2.14.2gahr2011-08-032-4/+3 * - Chase guile shared lib bumpjlaffaye2011-07-311-1/+2 * - Update to 2.14.1gahr2011-06-142-5/+5 * - Update to 2.13.63gahr2011-05-312-3/+3 * - Update to 2.13.62gahr2011-05-303-5/+5 * Bump PORTREVISION after open-mofit updatemakc2011-05-021-0/+1 * - Update to 2.13.61gahr2011-05-022-3/+3 * - Explicitely use base flex and yacc: the port breaks when bisongahr2011-04-201-1/+3 * - Update to 2.13.60gahr2011-04-183-3/+4 * - Update to 2.13.58gahr2011-04-072-3/+3 * - Update to 2.13.57gahr2011-04-052-3/+3 * - Update to 2.13.56gahr2011-04-012-7/+4 * - Update to 2.13.55gahr2011-03-293-73/+16 * - Update to 2.13.54gahr2011-03-153-6/+5 * - Update to 2.13.53gahr2011-03-083-5/+6 * - Update to 2.13.51gahr2011-02-233-5/+6 * - Update to 2.13.50gahr2011-02-152-5/+5 * - Update to 2.13.49gahr2011-02-112-5/+5 * - Update to 2.13.48gahr2011-02-082-5/+5 * - Update to 2.13.47gahr2011-02-043-5/+7 * - Update to 2.13.43gahr2010-12-243-6/+6 * - Update to 2.13.41gahr2010-12-21