# New ports collection makefile for: clamsmtp # Date created: 2004-07-29 # Whom: Cheng-Lung Sung # # $FreeBSD$ # PORTNAME= clamsmtp PORTVERSION= 1.8 CATEGORIES= security MASTER_SITES= http://memberwebs.com/nielsen/software/clamsmtp/ MAINTAINER= clsung@FreeBSD.org COMMENT= An ClamAV anti-virus SMTP Filter GNU_CONFIGURE= yes USE_GMAKE= yes USE_RC_SUBR= clamsmtpd.sh SUB_LIST= CLAMAV_PID_DIR=${CLAMAV_PID_DIR} SUB_FILES+= pkg-message CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CLAMAV_PID_DIR?= /var/run/clamav MAN5= clamsmtpd.conf.5 MAN8= clamsmtpd.8 PORTDOCS= README OPTIONS= LOCAL_CLAMAV "RUN_DEPEND on security/clamav" on OPTIONS+= LOCAL_CLAMAV_DEVEL "RUN_DEPEND on security/clamav-devel" off .include .if defined(WITH_LOCAL_CLAMAV) RUN_DEPENDS+= clamav>=0:${PORTSDIR}/security/clamav .endif .if defined(WITH_LOCAL_CLAMAV_DEVEL) RUN_DEPENDS+= clamav-devel>=0:${PORTSDIR}/security/clamav-devel .endif .if defined(WITH_LOCAL_CLAMAV) || defined(WITH_LOCAL_CLAMAV_DEVEL) SUB_LIST+= CLAMD=clamd .else SUB_LIST+= CLAMD= .endif pre-extract: .if defined(WITH_LOCAL_CLAMAV) && defined(WITH_LOCAL_CLAMAV_DEVEL) @${ECHO_CMD} "Please select only one clamav port" exit 1 .endif post-patch: @${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure post-install: @${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${TARGETDIR}/etc/clamsmtpd.conf-sample .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif @${MKDIR} ${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/scripts/virus_action.sh ${EXAMPLESDIR} @${CAT} ${PKGMESSAGE} .include