2013-03-29 20:33:41 +01:00
|
|
|
# Created by: Cheng-Lung Sung <clsung@dragon2.net>
|
2004-07-30 02:35:57 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= clamsmtp
|
2008-09-26 15:14:33 +02:00
|
|
|
PORTVERSION= 1.10
|
2010-09-09 02:16:31 +02:00
|
|
|
PORTREVISION= 3
|
2004-07-30 02:35:57 +02:00
|
|
|
CATEGORIES= security
|
2011-09-28 03:39:55 +02:00
|
|
|
MASTER_SITES= http://thewalter.net/stef/software/clamsmtp/
|
2004-07-30 02:35:57 +02:00
|
|
|
|
2014-12-02 23:40:56 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-03-29 20:33:41 +01:00
|
|
|
COMMENT= ClamAV anti-virus SMTP Filter
|
2004-07-30 02:35:57 +02:00
|
|
|
|
2004-10-14 04:28:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-05-26 14:50:40 +02:00
|
|
|
USES= gmake
|
2012-08-06 01:19:36 +02:00
|
|
|
USE_RC_SUBR= clamsmtpd
|
2006-01-13 08:24:34 +01:00
|
|
|
SUB_LIST= CLAMAV_PID_DIR=${CLAMAV_PID_DIR}
|
2016-01-09 15:01:34 +01:00
|
|
|
SUB_FILES= pkg-message
|
2006-01-13 08:24:34 +01:00
|
|
|
|
2016-01-09 15:01:34 +01:00
|
|
|
CLAMAV_PID_DIR?=/var/run/clamav
|
2004-07-30 02:35:57 +02:00
|
|
|
|
2006-02-17 03:45:40 +01:00
|
|
|
PORTDOCS= README
|
2016-01-09 15:01:34 +01:00
|
|
|
PORTEXAMPLES= *
|
2006-01-13 08:24:34 +01:00
|
|
|
|
2016-01-09 15:01:34 +01:00
|
|
|
OPTIONS_DEFINE= DOCS LOCAL_CLAMAV EXAMPLES
|
2013-04-28 23:02:39 +02:00
|
|
|
OPTIONS_DEFAULT= LOCAL_CLAMAV
|
2006-02-17 03:45:40 +01:00
|
|
|
|
2016-01-09 15:01:34 +01:00
|
|
|
LOCAL_CLAMAV_DESC= RUN_DEPEND on security/clamav
|
2016-04-01 16:25:16 +02:00
|
|
|
LOCAL_CLAMAV_RUN_DEPENDS= clamav>=0:security/clamav
|
2016-01-09 15:01:34 +01:00
|
|
|
LOCAL_CLAMAV_SUB_LIST= CLAMD=clamd
|
|
|
|
LOCAL_CLAMAV_SUB_LIST_OFF= CLAMD=
|
2006-02-17 03:45:40 +01:00
|
|
|
|
2006-01-13 08:24:34 +01:00
|
|
|
post-patch:
|
2010-09-09 02:16:31 +02:00
|
|
|
@${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
|
2006-01-13 08:24:34 +01:00
|
|
|
|
2004-07-30 02:35:57 +02:00
|
|
|
post-install:
|
2016-01-09 15:01:34 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${STAGEDIR}${PREFIX}/etc/clamsmtpd.conf.sample
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-06-06 04:01:44 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
2016-01-09 15:01:34 +01:00
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
2014-06-06 04:01:44 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/virus_action.sh ${STAGEDIR}${EXAMPLESDIR}
|
2004-07-30 02:35:57 +02:00
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.include <bsd.port.mk>
|