f65891b6eb
PR: ports/73181 Submitted by: Marcus Grando <marcus AT corp dot grupos dot com dot br> Approved by: co-mentor (vanilla)
38 lines
1,010 B
Makefile
38 lines
1,010 B
Makefile
# New ports collection makefile for: clamsmtp
|
|
# Date created: 2004-07-29
|
|
# Whom: Cheng-Lung Sung <clsung@dragon2.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= clamsmtp
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 0
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://memberwebs.com/nielsen/software/clamsmtp/
|
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
|
COMMENT= An ClamAV anti-virus SMTP Filter
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/clamd:${PORTSDIR}/security/clamav
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GMAKE= yes
|
|
USE_REINPLACE= yes
|
|
USE_RC_SUBR= yes
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} CLAMAV_PID_DIR=${CLAMAV_PID_DIR}
|
|
STARTUP_FILE= ${PREFIX}/etc/rc.d/clamsmtpd.sh
|
|
|
|
CLAMAV_PID_DIR?= /var/run/clamav
|
|
|
|
MAN5= clamsmtpd.conf.5
|
|
MAN8= clamsmtpd.8
|
|
|
|
post-install:
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${FILESDIR}/clamsmtpd.sh.tmpl > ${STARTUP_FILE}
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${PREFIX}/etc/clamsmtpd.conf-sample
|
|
@${CHMOD} 755 ${STARTUP_FILE}
|
|
@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|