2003-01-03 03:43:55 +00:00
# New ports collection makefile for: messagewall-1.0.6
# Date created: 24 Sep 2002
# Whom: Pieter Danhieux <opr@bsdaemon.be>
#
# $FreeBSD$
#
PORTNAME = messagewall
2003-01-06 01:44:14 +00:00
PORTVERSION = 1.0.8
2004-06-23 11:06:24 +00:00
PORTREVISION = 3
2003-01-03 03:43:55 +00:00
CATEGORIES = mail
2005-12-21 13:23:22 +00:00
MASTER_SITES = ${ MASTER_SITE_DEBIAN_POOL }
DISTNAME = messagewall_${ PORTVERSION } .orig
2003-01-03 03:43:55 +00:00
2006-06-09 21:41:32 +00:00
MAINTAINER = ports@FreeBSD.org
2003-02-21 12:51:06 +00:00
COMMENT = Free SMTP PROXY with filtering
2003-01-03 03:43:55 +00:00
2004-04-18 20:40:20 +00:00
BUILD_DEPENDS = ${ LOCALBASE } /include/firestring.h:${ PORTSDIR } /misc/firestring \
2003-09-05 07:33:51 +00:00
${ LOCALBASE } /include/firedns.h:${ PORTSDIR } /dns/firedns
2003-01-03 03:43:55 +00:00
MAN1 = messagewall.1 messagewallctl.1 messagewallstats.1
MAN5 = messagewall.conf.5 messagewall_profiles.5
CONF1 = messagewall.conf
2004-06-23 11:06:24 +00:00
OPTIONS = BROKEN_PARAMETER "Detect unwanted extensions properly" off \
ESMTP_SIZE_OPTION "Handle the size option in MAIL FROM" off \
MULTI_RCPT "Allow multiple recipients" off \
PARANOIA "Detect faked mails from AOL, Hotmail" off \
SPAM_STATS "Add spam statistics to messagewallstats" off
2006-01-16 18:15:21 +00:00
WRKSRC = ${ WRKDIR } /messagewall-${ PORTVERSION }
2004-04-18 20:40:20 +00:00
GNU_CONFIGURE = yes
2003-01-03 03:43:55 +00:00
2004-06-23 11:06:24 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2003-04-06 14:43:07 +00:00
# Patch from "Quentin Guernsey" <quentin@wingateweb.com>
2004-06-23 11:06:24 +00:00
# Allow multiple recipients, The profile for the first recipient will be
# applied to all recipients of the message.
# For details see http://www.messagewall.org/cgi-bin/ezmlm-browse.cgi?command=showmsg&list=messagewall-discuss&month=200303&msgnum=921&threadid=lcjcimckfmdphlhpjjhn
. i f d e f i n e d ( W I T H _ M U L T I _ R C P T ) | | d e f i n e d ( M E S S A G E W A L L _ A L L O W _ M U L T _ R C P T )
2003-04-06 14:43:07 +00:00
EXTRA_PATCHES += ${ PATCHDIR } /allow-multiple-recipients.patch
. e n d i f
2004-02-28 17:51:56 +00:00
# Patch from "Michael Ranner" <mranner@inode.at>
2004-06-23 11:06:24 +00:00
# Allow messagewall to handle the size option in MAIL FROM: <foo@bar.com>
# SIZE=12345678 (RFC1870). This can safe a lot of bandwith, because it rejects
# any email, if message size is greater than max message size.
# For details see http://www.ranner.jawa.at/messagewall.php
2004-02-28 17:51:56 +00:00
. i f d e f i n e d ( W I T H _ E S M T P _ S I Z E _ O P T I O N )
EXTRA_PATCHES += ${ PATCHDIR } /esmtpsize.patch
. e n d i f
2004-06-23 11:06:24 +00:00
# Patch from "Collin Mulliner" <collin@mulliner.org>
# Some email viruses use badly composed mime attachments. MessageWall can't
# handle these by default. This breaks the detection of files with unwanted
# extensions. This patch removes this disadvantage.
# For details see http://www.mulliner.org/collin/patches.php
. i f d e f i n e d ( W I T H _ B R O K E N _ P A R A M E T E R )
EXTRA_PATCHES += ${ PATCHDIR } /broken_parameter_value.patch
. e l s e
EXTRA_PATCHES += ${ PATCHDIR } /applemail.patch
. e n d i f
# Patch from "Collin Mulliner" <collin@mulliner.org>
# This adds a check method to detect faked mails from big sites like Hotmail
# or AOL. It checks the by/from fields in the mail trace header "Received:"
# for a host name that matches the domain of the senders address.
# A new profile option is available to configure which domains to check.
# For details see http://www.mulliner.org/collin/patches.php
. i f d e f i n e d ( W I T H _ P A R A N O I A )
EXTRA_PATCHES += ${ PATCHDIR } /paranoia.patch
. e n d i f
# Patch from "Collin Mulliner" <collin@mulliner.org>
# Adds some nice spam statistics to the end of the output from
# messagewallstats
# For details see http://www.mulliner.org/collin/patches.php
. i f d e f i n e d ( W I T H _ S P A M _ S T A T S )
EXTRA_PATCHES += ${ PATCHDIR } /spam_stats.patch
. e n d i f
2003-01-03 03:43:55 +00:00
post-patch :
${ REINPLACE_CMD } -e 's|/usr/local|${LOCALBASE}|g' \
${ WRKSRC } /firemake.cflags \
${ WRKSRC } /firemake.ldflags
2003-01-06 01:44:14 +00:00
${ REINPLACE_CMD } -e 's|-lcrypto|-lcrypto ${PTHREAD_LIBS}|' \
${ WRKSRC } /firemake.libs
2004-06-23 11:06:24 +00:00
. i f d e f i n e d ( W I T H _ P A R A N O I A )
@${ RM } ${ WRKSRC } /profiles/Warning.orig
. e n d i f
2003-01-03 03:43:55 +00:00
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/
. f o r f i l e i n $ { C O N F 1 }
@${ CP } ${ WRKSRC } /conf/${ file } ${ PREFIX } /etc/${ file } .sample
. e n d f o r
. f o r f i l e i n $ { M A N 1 }
@${ CP } ${ WRKSRC } /man/${ file } ${ PREFIX } /man/man1/
. e n d f o r
. f o r f i l e i n $ { M A N 5 }
@${ CP } ${ WRKSRC } /man/${ file } ${ PREFIX } /man/man5/
. e n d f o r
post-install :
@${ CAT } ${ PKGMESSAGE }
2004-06-23 11:06:24 +00:00
. i n c l u d e < b s d . p o r t . p o s t . m k >