freebsd-ports/mail/messagewall/Makefile
Norikatsu Shigemura e6f5bb48bb There is a problem with the interaction between MessageWall and Microsoft
Exchange server.  The MS Exchange server gets upset that MessageWall sends
the "250 2.0.0 h1Q0Qc907062 Message accepted for delivery" and the "\r\n"
in different packets.  The first patch works around this MS problem.

See http://messagewall.org/cgi-bin/ezmlm-browse.cgi?command=showthread&list=messagewall-discuss&month=200302&threadid=nnoiaogojliciagmgpbk

 The other patch changes how MessageWall behaves when there are multiple
recipients to a message.  MessageWall accepts the first recipient, but
defers the second with a temporary SMTP error.  This can take some time
for all recipients to get the message when the sending side has a long
queue time.  MessageWall does this since different recipients of a message
can have different profiles.  We, along with a number of sites, use a
single profile for all inbound email.  This patch, which must be enabled
when the port is built with -DMESSAGEWALL_ALLOW_MULT_RCPT, allows multiple
recipients, using the profile of the first recipient.

See: http://www.messagewall.org/cgi-bin/ezmlm-browse.cgi?command=showthread&list=messagewall-discuss&month=200303&threadid=lcjcimckfmdphlhpjjhn

PR:		ports/50296
Submitted by:	Douglas K. Rand <rand@meridian-enviro.com>
Approved by:	maintainer timeout (12 days)
2003-04-06 14:43:07 +00:00

71 lines
2.1 KiB
Makefile

# New ports collection makefile for: messagewall-1.0.6
# Date created: 24 Sep 2002
# Whom: Pieter Danhieux <opr@bsdaemon.be>
#
# $FreeBSD$
#
PORTNAME= messagewall
PORTVERSION= 1.0.8
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.messagewall.org/download/
DISTNAME= messagewall-${PORTVERSION}
MAINTAINER= opr@bsdaemon.be
COMMENT= Free SMTP PROXY with filtering
BUILD_DEPENDS= ${LOCALBASE}/include/firestring.h:${PORTSDIR}/misc/firestring \
${LOCALBASE}/include/firedns.h:${PORTSDIR}/net/firedns
MAN1= messagewall.1 messagewallctl.1 messagewallstats.1
MAN5= messagewall.conf.5 messagewall_profiles.5
CONF1= messagewall.conf
WRKSRC= ${WRKDIR}/messagewall
GNU_CONFIGURE= yes
USE_REINPLACE= yes
pre-fetch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " -DMESSAGEWALL_ALLOW_MULT_RCPT to allow multiple recipients"
@${ECHO} " The profile for the first recipient will be applied to all"
@${ECHO} " recipients of the message."
@${ECHO} ""
# Patch from "Quentin Guernsey" <quentin@wingateweb.com>
# for details see http://www.messagewall.org/cgi-bin/ezmlm-browse.cgi?command=showmsg&list=messagewall-discuss&month=200303&msgnum=921&threadid=lcjcimckfmdphlhpjjhn
.if defined(MESSAGEWALL_ALLOW_MULT_RCPT)
EXTRA_PATCHES+= ${PATCHDIR}/allow-multiple-recipients.patch
.endif
post-patch:
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/firemake.cflags \
${WRKSRC}/firemake.ldflags
${REINPLACE_CMD} -e 's|-lcrypto|-lcrypto ${PTHREAD_LIBS}|' \
${WRKSRC}/firemake.libs
do-install:
@${CP} ${WRKSRC}/messagewall ${PREFIX}/bin
@${CP} ${WRKSRC}/messagewallctl ${PREFIX}/bin
@${CP} ${WRKSRC}/messagewallstats ${PREFIX}/bin
@${MKDIR} ${PREFIX}/etc/messagewall
@${CP} ${WRKSRC}/virus.patterns ${PREFIX}/etc/messagewall/
@${CP} -r ${WRKSRC}/profiles ${PREFIX}/etc/messagewall/
.for file in ${CONF1}
@${CP} ${WRKSRC}/conf/${file} ${PREFIX}/etc/${file}.sample
.endfor
.for file in ${MAN1}
@${CP} ${WRKSRC}/man/${file} ${PREFIX}/man/man1/
.endfor
.for file in ${MAN5}
@${CP} ${WRKSRC}/man/${file} ${PREFIX}/man/man5/
.endfor
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>