freebsd-ports/security/clamsmtp/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Cheng-Lung Sung <clsung@dragon2.net>
# $FreeBSD$
PORTNAME= clamsmtp
2008-09-26 15:14:33 +02:00
PORTVERSION= 1.10
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://thewalter.net/stef/software/clamsmtp/
MAINTAINER= ports@FreeBSD.org
COMMENT= ClamAV anti-virus SMTP Filter
GNU_CONFIGURE= yes
USES= gmake
USE_RC_SUBR= clamsmtpd
SUB_LIST= CLAMAV_PID_DIR=${CLAMAV_PID_DIR}
2016-01-09 15:01:34 +01:00
SUB_FILES= pkg-message
2016-01-09 15:01:34 +01:00
CLAMAV_PID_DIR?=/var/run/clamav
PORTDOCS= README
2016-01-09 15:01:34 +01:00
PORTEXAMPLES= *
2016-01-09 15:01:34 +01:00
OPTIONS_DEFINE= DOCS LOCAL_CLAMAV EXAMPLES
OPTIONS_DEFAULT= LOCAL_CLAMAV
2016-01-09 15:01:34 +01:00
LOCAL_CLAMAV_DESC= RUN_DEPEND on security/clamav
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=
post-patch:
@${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:
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}
.include <bsd.port.mk>