blob: 8dfe893dcd754816901d415a216283155f35b8b7 (
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
|
# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$
PORTNAME= qscan
PORTVERSION= 1.5
PORTREVISION= 5
CATEGORIES= mail security
MASTER_SITES= http://download.pureftpd.org/pub/qscan/ \
ftp://ftp.pureftpd.org/pub/pure-ftpd/misc/qscan/
MAINTAINER= ale@FreeBSD.org
COMMENT= A mail filter for Qmail that scans messages with ClamAV
RUN_DEPENDS= clamdscan:${PORTSDIR}/security/clamav \
ripmime:${PORTSDIR}/mail/ripmime
USES= qmail:run
GNU_CONFIGURE= yes
NO_STAGE= yes
.include <bsd.port.pre.mk>
QMAIL_QUEUE= ${QMAIL_PREFIX}/bin/qmail-queue
QSCAN_VAR?= ${QMAIL_PREFIX}/${PORTNAME}
PLIST_SUB+= QSCAN_VAR="${QSCAN_VAR}" \
QMAIL_QUEUE="${QMAIL_QUEUE}"
# default 10
.if defined(WITH_CONCURRENCY)
CONFIGURE_ARGS+=--with-concurrency=${WITH_CONCURRENCY}
.endif
CONFIGURE_ENV+= SWEEP="${LOCALBASE}/bin/clamdscan" \
RIPMIME="${LOCALBASE}/bin/ripmime" \
QMAIL_QUEUE="${QMAIL_QUEUE}-old"
post-patch:
@${REINPLACE_CMD} -e "s|/var/qmail/qscan|${QSCAN_VAR}|" ${WRKSRC}/src/qscan.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${QSCAN_VAR}
${CHMOD} 750 ${QSCAN_VAR}
${CHOWN} qmaild:clamav ${QSCAN_VAR}
${LN} -f ${QMAIL_QUEUE} ${QMAIL_QUEUE}-old
${LN} -sf ${PREFIX}/bin/${PORTNAME} ${QMAIL_QUEUE}
.include <bsd.port.post.mk>
|