blob: b68aa7df7bfd4dcc9ddd4caae8ef844f21a31663 (
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
61
62
63
64
65
66
67
|
# Created by: Cheng-Lung Sung <clsung@dragon2.net>
# $FreeBSD$
PORTNAME= clamsmtp
PORTVERSION= 1.10
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://thewalter.net/stef/software/clamsmtp/
MAINTAINER= clsung@FreeBSD.org
COMMENT= ClamAV anti-virus SMTP Filter
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_RC_SUBR= clamsmtpd
SUB_LIST= CLAMAV_PID_DIR=${CLAMAV_PID_DIR}
SUB_FILES+= pkg-message
CLAMAV_PID_DIR?= /var/run/clamav
MAN5= clamsmtpd.conf.5
MAN8= clamsmtpd.8
PORTDOCS= README
OPTIONS_RADIO= CLAMAV
OPTIONS_RADIO_CLAMAV= LOCAL_CLAMAV LOCAL_CLAMAV_DEVEL
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= LOCAL_CLAMAV
LOCAL_CLAMAV_DESC= RUN_DEPEND on security/clamav
LOCAL_CLAMAV_DEVEL_DESC= RUN_DEPEND on security/clamav-devel
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLOCAL_CLAMAV}
RUN_DEPENDS+= clamav>=0:${PORTSDIR}/security/clamav
.endif
.if ${PORT_OPTIONS:MLOCAL_CLAMAV_DEVEL}
RUN_DEPENDS+= clamav-devel>=0:${PORTSDIR}/security/clamav-devel
.endif
.if ${PORT_OPTIONS:MLOCAL_CLAMAV} || ${PORT_OPTIONS:MLOCAL_CLAMAV_DEVEL}
SUB_LIST+= CLAMD=clamd
.else
SUB_LIST+= CLAMD=
.endif
post-patch:
@${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s,/var/run/clamav/clamd,/var/run/clamav/clamd.sock," \
${WRKSRC}/doc/clamsmtpd.conf \
${WRKSRC}/doc/clamsmtpd.conf.5 \
${WRKSRC}/src/clamsmtpd.c
post-install:
@${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${PREFIX}/etc/clamsmtpd.conf-sample
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/scripts/virus_action.sh ${EXAMPLESDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|