mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
# New ports collection makefile for: clamsmtp
|
|
# Date created: 2004-07-29
|
|
# Whom: Cheng-Lung Sung <clsung@dragon2.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= clamsmtp
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://memberwebs.com/stef/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
|
|
|
|
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 <bsd.port.pre.mk>
|
|
|
|
.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 ${PREFIX}/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 <bsd.port.post.mk>
|