1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/security/clamsmtp/Makefile
Cheng-Lung Sung 97cb38e987 - clamsmtp 1.5 works only in debug mode.
Included patch fix this bug by moving socket creation after daemonizing as
suggested in mailing list clamsmtp-users@lists.sourceforge.net
http://sourceforge.net/mailarchive/forum.php?thread_id=8060741&forum_id=42732
- bump PORTREVISION

PR:		ports/85706
Submitted by:	Alex L. Demidov <alexd AT vinf dot ru>
2005-09-05 03:16:20 +00:00

51 lines
1.3 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.5
PORTREVISION= 2
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
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
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}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/scripts/virus_action.sh ${DOCSDIR}
.endif
@${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
post-patch:
@${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure
.include <bsd.port.mk>