# Created by: Cheng-Lung Sung # $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 .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