ports/59454: [NEW PORT] mail/MailScanner-devel: A powerful virus/spam scanning framework for Sendmail and Exim

Jan-Peter Koopmann j.koopmann at seceidos.de
Wed Nov 19 08:00:32 UTC 2003


>Number:         59454
>Category:       ports
>Synopsis:       [NEW PORT] mail/MailScanner-devel: A powerful virus/spam scanning framework for Sendmail and Exim
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 19 00:00:29 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jan-Peter Koopmann
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD services.intern.seceidos.de 4.8-STABLE FreeBSD 4.8-STABLE #0: Mon Aug  4 11:45:56 CEST
>Description:
This is a development version of the MailScanner port. It is supposed to
be stable but a beta version is a beta version after all... :-)

MailScanner is a complete e-mail security system designed for use on 
e-mail gateways. It protects against viruses, and detects attacks against 
e-mail client packages (such as Outlook, Outlook Express, Eudora). It can 
also detect almost all unsolicited commercial e-mail (spam) passing through 
it and respond to all incidents in a wide variety of ways. 

Not only can it scan for known viruses, but it can also protect against unknown 
viruses hidden inside e-mail attachments by refusing entry to attachments whose 
filenames match any given pattern. This can include generic patterns that trap 
filenames attempting to hide the true filename extension (e.g. ".txt.vbs"). 

It is superior to many commercial packages in its ability to handle attacks 
against itself, such as Denial Of Service attacks caused by messages containing
the "Zip of Death". It is easy to install into an existing e-mail gateway, 
requiring very little knowledge of sendmail and no change to an existing 
sendmail configuration. 

MailScanner itself is entirely open source, but it uses widely known commercial
virus scanning packages at its core. The other software it uses is all high 
quality open source software, leading to a system that can be trusted for 
performance and reliability. 

WWW:	http://www.mailscanner.info

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- MailScanner-devel-4.25.9.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	MailScanner-devel
#	MailScanner-devel/files
#	MailScanner-devel/files/mailscanner.sh
#	MailScanner-devel/files/mta.sh
#	MailScanner-devel/files/README.FreeBSD.port
#	MailScanner-devel/pkg-plist
#	MailScanner-devel/pkg-message
#	MailScanner-devel/pkg-descr
#	MailScanner-devel/Makefile
#	MailScanner-devel/distinfo
#
echo c - MailScanner-devel
mkdir -p MailScanner-devel > /dev/null 2>&1
echo c - MailScanner-devel/files
mkdir -p MailScanner-devel/files > /dev/null 2>&1
echo x - MailScanner-devel/files/mailscanner.sh
sed 's/^X//' >MailScanner-devel/files/mailscanner.sh << 'END-of-MailScanner-devel/files/mailscanner.sh'
X#!/bin/sh
X
Xmsbindir=/usr/local/libexec/MailScanner
Xprocess=MailScanner
Xconfig=/usr/local/etc/MailScanner/MailScanner.conf
XPIDFILE=/var/run/MailScanner.pid
X
Xstart_ms()
X{
X    pid=`ps -axww |
X         grep '[ ]'$msbindir/$process |
X         awk '{print $1}'`
X
X    if [ "x$pid" = "x" ]; then
X	# Quietly try to raise the open_files limit
X	ulimit -n 2000 >/dev/null 2>&1
X	# Restart it
X	PATH=${msbindir}:$PATH
X	echo Starting MailScanner...
X	cd $msbindir
X	$process $config
X    else
X	echo MailScanner running with pid $pid  
X    fi
X}
X
Xstop_ms()
X{
X    echo Stopping MailScanner...
X    kill -TERM -- -`cat $PIDFILE` 2>/dev/null
X    sleep 5
X}
X
X_action=${1:-start}
X
Xcase ${_action} in
Xstart)
X	start_ms
X	;;
X
Xstop)
X	stop_ms
X	;;
X
Xrestart)
X	stop_ms
X	start_ms
X	;;
X
X*)
X	echo "Usage: `basename $0` {start|stop|restart}" >&2
X	exit 64
X	;;
Xesac
Xexit 0
END-of-MailScanner-devel/files/mailscanner.sh
echo x - MailScanner-devel/files/mta.sh
sed 's/^X//' >MailScanner-devel/files/mta.sh << 'END-of-MailScanner-devel/files/mta.sh'
X#!/bin/sh
X
Xoutgoing_queue_time=15m
Xmta=exim
X
Xcase "$mta" in
X	exim)
X		program=/usr/local/sbin/exim
X
X		if [ -f /usr/local/etc/exim/configure.in ]; then
X			incoming_config=/usr/local/etc/exim/configure.in
X		else
X			incoming_config=/usr/local/etc/exim/configure
X		fi
X
X		outgoing_config=/usr/local/etc/exim/configure.out
X
X		inpidfile=/var/run/exim_in.pid
X		outpidfile=/var/run/exim_out.pid
X		subpidfile=
X
X		incoming_args="-C ${incoming_config} -oP ${inpidfile} -bd"
X		outgoing_args="-C ${outgoing_config} -oP ${outpidfile} -q${outgoing_queue_time}"
X		submitqueue_args=
X		;;
X
X	sendmail)
X		program=/usr/sbin/sendmail
X
X		incoming_queue=/var/spool/mqueue.in
X
X		submit_queue_time=${outgoing_queue_time}
X
X		inpidfile=/var/run/sendmail_in.pid
X		outpidfile=/var/run/sendmail_out.pid
X		subpidfile=/var/spool/clientmqueue/sm-client.pid
X
X		incoming_args="-L sm-mta-in -bd \
X				-OPrivacyOptions=noetrn \
X				-OQueueDirectory=${incoming_queue} \
X				-ODeliveryMode=queueonly \
X				-OPidFile=${inpidfile}"
X		outgoing_args="-L sm-mta-out -q${outgoing_queue_time} \
X				-OPidFile=${outpidfile}"
X		submitqueue_args="-L sm-msp-queue -Ac -q${submit_queue_time} \
X				-OPidFile=${subpidfile}"
X		;;
X
X	*)
X		echo "ERROR: I don't know the MTA '$mta'. Check your settings." >&2
X		exit 2
X		;;
Xesac
X
Xstart_mta()
X{
X	echo -n " `basename ${program}`(incoming)"
X	${program} ${incoming_args}
X
X	echo -n " `basename ${program}`(outgoing)"
X	${program} ${outgoing_args}
X}
X
Xstart_mspq ()
X{
X	if [ "${submitqueue_args}" ]; then
X		echo -n " `basename ${program}`(submitqueue)"
X		${program} ${submitqueue_args}
X	fi
X}
X
Xstop_mta()
X{
X	echo "Stopping `basename ${program}` (incoming)"
X	kill -TERM `head -1 ${inpidfile}` 2>/dev/null
X
X	echo "Stopping `basename ${program}` (outgoing)"
X	kill -TERM `head -1 ${outpidfile}` 2>/dev/null
X}
X
Xstop_mspq ()
X{
X	if [ "${submitqueue_args}" ]; then
X		echo "Stopping `basename ${program}` (submitqueue)"
X		kill -TERM `head -1 ${subpidfile}` 2>/dev/null
X	fi
X}
X
X
X_action=${1:-start}
X
Xcase ${_action} in
Xstart)
X        start_mta
X	start_mspq
X        ;;
X
Xstop)
X        stop_mta
X	stop_mspq
X        ;;
X
Xrestart)
X	stop_mta
X	stop_mspq
X	sleep 5
X	start_mta
X	start_mspq
X	;;
X
X*)
X	echo "Usage: `basename $0` {start|stop|restart}" >&2
X	exit 64
X	;;
Xesac
Xexit 0
X
END-of-MailScanner-devel/files/mta.sh
echo x - MailScanner-devel/files/README.FreeBSD.port
sed 's/^X//' >MailScanner-devel/files/README.FreeBSD.port << 'END-of-MailScanner-devel/files/README.FreeBSD.port'
XThe MailScanner port is using the original MailScanner tarball from 
Xwww.mailscanner.info. This tarball puts all the MailScanner files in 
Xsubdirectories
X
Xbin	MailScanner binary / MailScanner start script etc.
Xetc	MailScanner config files / rules / report templates
Xlib	Virus wrapper and autoupdate scripts / MailScanner Perl libraries
Xdocs	Documentation
Xvar	pid file
X
XIn order to make this FreeBSD compliant the port installs those files
Xin the following directories:
X
X/usr/local/libexec/MailScanner	MailScanner binary, virus wrapper/autoupdate
X/usr/local/lib/MailScanner	MailScanner Perl libraries
X/usr/local/share/MailScanner	MailScanner report templates
X/usr/local/share/doc/MailScanner	Documentation
X/usr/local/etc/MailScanner	MailScanner config files / rules
X/usr/local/etc/rc.d		start/stop scripts
X
XThe port installs two start/stop scripts in /usr/local/etc/rc.d:
X
Xmailscanner.sh.sample
Xmta.sh.sample
X
XMy suggestion is to use these scripts instead of the usual FreeBSD MTA startup
Xprocess. This of course means that you will have to disable MTA startup 
Xin rc.conf completely. Put this in your rc.conf:
X
Xsendmail_enable="NO"
X
XThen adjust sendmail.sh or exim.sh to your configuration. Have a look at the
XMailScanner manpage for MTA setup hints.
X
XWhen upgrading the port it will try to look for new options/variables in
XMailScanner.conf using Julians upgrade_MailScanner_conf script. If it finds
Xchanges it will create a newly merged MailScanner.conf and copy it to
X/usr/local/etc/MailScanner/MailScanner.conf.new.PORTVERSION.
X
X
XIf you have suggestions for this port please let me know and drop me an e-mail at
X
Xj.koopmann at seceidos.de
X
X
XThanks,
X  Jan-Peter Koopmann
X
END-of-MailScanner-devel/files/README.FreeBSD.port
echo x - MailScanner-devel/pkg-plist
sed 's/^X//' >MailScanner-devel/pkg-plist << 'END-of-MailScanner-devel/pkg-plist'
X at comment $FreeBSD$
Xbin/tnef
Xetc/MailScanner/MailScanner.conf.sample
Xetc/MailScanner/filename.rules.conf.sample
Xetc/MailScanner/filetype.rules.conf.sample
Xetc/MailScanner/rules/EXAMPLES
Xetc/MailScanner/rules/README
Xetc/MailScanner/rules/spam.whitelist.rules.sample
Xetc/MailScanner/spam.assassin.prefs.conf.sample
Xetc/MailScanner/spam.lists.conf.sample
Xetc/MailScanner/virus.scanners.conf.sample
Xetc/rc.d/mailscanner.sh.sample
Xetc/rc.d/mta.sh.sample
Xlib/MailScanner/MailScanner.pm
Xlib/MailScanner/MailScanner/Config.pm
Xlib/MailScanner/MailScanner/ConfigDefs.pl
Xlib/MailScanner/MailScanner/CustomConfig.pm
Xlib/MailScanner/MailScanner/Exim.pm
Xlib/MailScanner/MailScanner/EximDiskStore.pm
Xlib/MailScanner/MailScanner/Lock.pm
Xlib/MailScanner/MailScanner/Log.pm
Xlib/MailScanner/MailScanner/MCP.pm
Xlib/MailScanner/MailScanner/MCPMessage.pm
Xlib/MailScanner/MailScanner/Mail.pm
Xlib/MailScanner/MailScanner/Message.pm
Xlib/MailScanner/MailScanner/MessageBatch.pm
Xlib/MailScanner/MailScanner/PFDiskStore.pm
Xlib/MailScanner/MailScanner/Postfix.pm
Xlib/MailScanner/MailScanner/Quarantine.pm
Xlib/MailScanner/MailScanner/Queue.pm
Xlib/MailScanner/MailScanner/RBLs.pm
Xlib/MailScanner/MailScanner/SA.pm
Xlib/MailScanner/MailScanner/SMDiskStore.pm
Xlib/MailScanner/MailScanner/Sendmail.pm
Xlib/MailScanner/MailScanner/SweepContent.pm
Xlib/MailScanner/MailScanner/SweepOther.pm
Xlib/MailScanner/MailScanner/SweepViruses.pm
Xlib/MailScanner/MailScanner/SystemDefs.pm
Xlib/MailScanner/MailScanner/TNEF.pm
Xlib/MailScanner/MailScanner/WorkArea.pm
Xlib/MailScanner/MailScanner/ZMDiskStore.pm
Xlib/MailScanner/MailScanner/ZMailer.pm
Xlib/MailScanner/MailScanner/notes.txt
Xlibexec/MailScanner/MailScanner
Xlibexec/MailScanner/antivir-autoupdate.sample
Xlibexec/MailScanner/antivir-wrapper.sample
Xlibexec/MailScanner/bitdefender-autoupdate.sample
Xlibexec/MailScanner/bitdefender-wrapper.sample
Xlibexec/MailScanner/clamav-autoupdate.sample
Xlibexec/MailScanner/clamav-wrapper.sample
Xlibexec/MailScanner/command-wrapper.sample
Xlibexec/MailScanner/etrust-autoupdate.sample
Xlibexec/MailScanner/etrust-wrapper.sample
Xlibexec/MailScanner/f-prot-autoupdate.sample
Xlibexec/MailScanner/f-prot-wrapper.sample
Xlibexec/MailScanner/f-secure-autoupdate.sample
Xlibexec/MailScanner/f-secure-wrapper.sample
Xlibexec/MailScanner/inoculan-autoupdate.sample
Xlibexec/MailScanner/inoculan-wrapper.sample
Xlibexec/MailScanner/inoculate-wrapper.sample
Xlibexec/MailScanner/kaspersky-autoupdate.sample
Xlibexec/MailScanner/kaspersky-wrapper.sample
Xlibexec/MailScanner/kavdaemonclient-wrapper.sample
Xlibexec/MailScanner/mcafee-autoupdate.sample
Xlibexec/MailScanner/mcafee-wrapper.sample
Xlibexec/MailScanner/nod32-autoupdate.sample
Xlibexec/MailScanner/nod32-wrapper.sample
Xlibexec/MailScanner/panda-wrapper.sample
Xlibexec/MailScanner/rav-autoupdate.sample
Xlibexec/MailScanner/rav-wrapper.sample
Xlibexec/MailScanner/sophos-autoupdate.sample
Xlibexec/MailScanner/sophos-wrapper.sample
Xlibexec/MailScanner/trend-autoupdate.sample
Xlibexec/MailScanner/trend-wrapper.sample
Xlibexec/MailScanner/update_virus_scanners
X%%DATADIR%%/reports/cy+en/deleted.content.message.txt.sample
X%%DATADIR%%/reports/cy+en/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/cy+en/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/cy+en/disinfected.report.txt.sample
X%%DATADIR%%/reports/cy+en/inline.sig.html.sample
X%%DATADIR%%/reports/cy+en/inline.sig.txt.sample
X%%DATADIR%%/reports/cy+en/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/cy+en/inline.warning.html.sample
X%%DATADIR%%/reports/cy+en/inline.warning.txt.sample
X%%DATADIR%%/reports/cy+en/languages.conf.sample
X%%DATADIR%%/reports/cy+en/sender.content.report.txt.sample
X%%DATADIR%%/reports/cy+en/sender.error.report.txt.sample
X%%DATADIR%%/reports/cy+en/sender.filename.report.txt.sample
X%%DATADIR%%/reports/cy+en/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/cy+en/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/cy+en/sender.spam.report.txt.sample
X%%DATADIR%%/reports/cy+en/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/cy+en/sender.virus.report.txt.sample
X%%DATADIR%%/reports/cy+en/stored.content.message.txt.sample
X%%DATADIR%%/reports/cy+en/stored.filename.message.txt.sample
X%%DATADIR%%/reports/cy+en/stored.virus.message.txt.sample
X%%DATADIR%%/reports/cz/deleted.content.message.txt.sample
X%%DATADIR%%/reports/cz/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/cz/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/cz/disinfected.report.txt.sample
X%%DATADIR%%/reports/cz/inline.sig.html.sample
X%%DATADIR%%/reports/cz/inline.sig.txt.sample
X%%DATADIR%%/reports/cz/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/cz/inline.warning.html.sample
X%%DATADIR%%/reports/cz/inline.warning.txt.sample
X%%DATADIR%%/reports/cz/languages.conf.sample
X%%DATADIR%%/reports/cz/sender.content.report.txt.sample
X%%DATADIR%%/reports/cz/sender.error.report.txt.sample
X%%DATADIR%%/reports/cz/sender.filename.report.txt.sample
X%%DATADIR%%/reports/cz/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/cz/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/cz/sender.spam.report.txt.sample
X%%DATADIR%%/reports/cz/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/cz/sender.virus.report.txt.sample
X%%DATADIR%%/reports/cz/stored.content.message.txt.sample
X%%DATADIR%%/reports/cz/stored.filename.message.txt.sample
X%%DATADIR%%/reports/cz/stored.virus.message.txt.sample
X%%DATADIR%%/reports/de/README.1ST.sample
X%%DATADIR%%/reports/de/deleted.content.message.txt.sample
X%%DATADIR%%/reports/de/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/de/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/de/disinfected.report.txt.sample
X%%DATADIR%%/reports/de/inline.sig.html.sample
X%%DATADIR%%/reports/de/inline.sig.txt.sample
X%%DATADIR%%/reports/de/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/de/inline.warning.html.sample
X%%DATADIR%%/reports/de/inline.warning.txt.sample
X%%DATADIR%%/reports/de/languages.conf.sample
X%%DATADIR%%/reports/de/sender.content.report.txt.sample
X%%DATADIR%%/reports/de/sender.error.report.txt.sample
X%%DATADIR%%/reports/de/sender.filename.report.txt.sample
X%%DATADIR%%/reports/de/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/de/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/de/sender.spam.report.txt.sample
X%%DATADIR%%/reports/de/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/de/sender.virus.report.txt.sample
X%%DATADIR%%/reports/de/stored.content.message.txt.sample
X%%DATADIR%%/reports/de/stored.filename.message.txt.sample
X%%DATADIR%%/reports/de/stored.virus.message.txt.sample
X%%DATADIR%%/reports/dk/deleted.content.message.txt.sample
X%%DATADIR%%/reports/dk/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/dk/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/dk/disinfected.report.txt.sample
X%%DATADIR%%/reports/dk/inline.sig.html.sample
X%%DATADIR%%/reports/dk/inline.sig.txt.sample
X%%DATADIR%%/reports/dk/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/dk/inline.warning.html.sample
X%%DATADIR%%/reports/dk/inline.warning.txt.sample
X%%DATADIR%%/reports/dk/languages.conf.sample
X%%DATADIR%%/reports/dk/sender.content.report.txt.sample
X%%DATADIR%%/reports/dk/sender.error.report.txt.sample
X%%DATADIR%%/reports/dk/sender.filename.report.txt.sample
X%%DATADIR%%/reports/dk/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/dk/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/dk/sender.spam.report.txt.sample
X%%DATADIR%%/reports/dk/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/dk/sender.virus.report.txt.sample
X%%DATADIR%%/reports/dk/stored.content.message.txt.sample
X%%DATADIR%%/reports/dk/stored.filename.message.txt.sample
X%%DATADIR%%/reports/dk/stored.virus.message.txt.sample
X%%DATADIR%%/reports/en/deleted.content.message.txt.sample
X%%DATADIR%%/reports/en/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/en/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/en/disinfected.report.txt.sample
X%%DATADIR%%/reports/en/inline.sig.html.sample
X%%DATADIR%%/reports/en/inline.sig.txt.sample
X%%DATADIR%%/reports/en/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/en/inline.warning.html.sample
X%%DATADIR%%/reports/en/inline.warning.txt.sample
X%%DATADIR%%/reports/en/languages.conf.sample
X%%DATADIR%%/reports/en/sender.content.report.txt.sample
X%%DATADIR%%/reports/en/sender.error.report.txt.sample
X%%DATADIR%%/reports/en/sender.filename.report.txt.sample
X%%DATADIR%%/reports/en/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/en/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/en/sender.spam.report.txt.sample
X%%DATADIR%%/reports/en/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/en/sender.virus.report.txt.sample
X%%DATADIR%%/reports/en/stored.content.message.txt.sample
X%%DATADIR%%/reports/en/stored.filename.message.txt.sample
X%%DATADIR%%/reports/en/stored.virus.message.txt.sample
X%%DATADIR%%/reports/es/deleted.content.message.txt.sample
X%%DATADIR%%/reports/es/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/es/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/es/disinfected.report.txt.sample
X%%DATADIR%%/reports/es/inline.sig.html.sample
X%%DATADIR%%/reports/es/inline.sig.txt.sample
X%%DATADIR%%/reports/es/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/es/inline.warning.html.sample
X%%DATADIR%%/reports/es/inline.warning.txt.sample
X%%DATADIR%%/reports/es/languages.conf.sample
X%%DATADIR%%/reports/es/sender.content.report.txt.sample
X%%DATADIR%%/reports/es/sender.error.report.txt.sample
X%%DATADIR%%/reports/es/sender.filename.report.txt.sample
X%%DATADIR%%/reports/es/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/es/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/es/sender.spam.report.txt.sample
X%%DATADIR%%/reports/es/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/es/sender.virus.report.txt.sample
X%%DATADIR%%/reports/es/stored.content.message.txt.sample
X%%DATADIR%%/reports/es/stored.filename.message.txt.sample
X%%DATADIR%%/reports/es/stored.virus.message.txt.sample
X%%DATADIR%%/reports/fr/deleted.content.message.txt.sample
X%%DATADIR%%/reports/fr/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/fr/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/fr/disinfected.report.txt.sample
X%%DATADIR%%/reports/fr/inline.sig.html.sample
X%%DATADIR%%/reports/fr/inline.sig.txt.sample
X%%DATADIR%%/reports/fr/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/fr/inline.warning.html.sample
X%%DATADIR%%/reports/fr/inline.warning.txt.sample
X%%DATADIR%%/reports/fr/languages.conf.sample
X%%DATADIR%%/reports/fr/sender.content.report.txt.sample
X%%DATADIR%%/reports/fr/sender.error.report.txt.sample
X%%DATADIR%%/reports/fr/sender.filename.report.txt.sample
X%%DATADIR%%/reports/fr/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/fr/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/fr/sender.spam.report.txt.sample
X%%DATADIR%%/reports/fr/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/fr/sender.virus.report.txt.sample
X%%DATADIR%%/reports/fr/stored.content.message.txt.sample
X%%DATADIR%%/reports/fr/stored.filename.message.txt.sample
X%%DATADIR%%/reports/fr/stored.virus.message.txt.sample
X%%DATADIR%%/reports/hu/deleted.content.message.txt.sample
X%%DATADIR%%/reports/hu/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/hu/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/hu/disinfected.report.txt.sample
X%%DATADIR%%/reports/hu/inline.sig.html.sample
X%%DATADIR%%/reports/hu/inline.sig.txt.sample
X%%DATADIR%%/reports/hu/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/hu/inline.warning.html.sample
X%%DATADIR%%/reports/hu/inline.warning.txt.sample
X%%DATADIR%%/reports/hu/languages.conf.sample
X%%DATADIR%%/reports/hu/sender.content.report.txt.sample
X%%DATADIR%%/reports/hu/sender.error.report.txt.sample
X%%DATADIR%%/reports/hu/sender.filename.report.txt.sample
X%%DATADIR%%/reports/hu/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/hu/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/hu/sender.spam.report.txt.sample
X%%DATADIR%%/reports/hu/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/hu/sender.virus.report.txt.sample
X%%DATADIR%%/reports/hu/stored.content.message.txt.sample
X%%DATADIR%%/reports/hu/stored.filename.message.txt.sample
X%%DATADIR%%/reports/hu/stored.virus.message.txt.sample
X%%DATADIR%%/reports/it/deleted.content.message.txt.sample
X%%DATADIR%%/reports/it/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/it/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/it/disinfected.report.txt.sample
X%%DATADIR%%/reports/it/inline.sig.html.sample
X%%DATADIR%%/reports/it/inline.sig.txt.sample
X%%DATADIR%%/reports/it/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/it/inline.warning.html.sample
X%%DATADIR%%/reports/it/inline.warning.txt.sample
X%%DATADIR%%/reports/it/languages.conf.sample
X%%DATADIR%%/reports/it/sender.content.report.txt.sample
X%%DATADIR%%/reports/it/sender.error.report.txt.sample
X%%DATADIR%%/reports/it/sender.filename.report.txt.sample
X%%DATADIR%%/reports/it/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/it/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/it/sender.spam.report.txt.sample
X%%DATADIR%%/reports/it/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/it/sender.virus.report.txt.sample
X%%DATADIR%%/reports/it/stored.content.message.txt.sample
X%%DATADIR%%/reports/it/stored.filename.message.txt.sample
X%%DATADIR%%/reports/it/stored.virus.message.txt.sample
X%%DATADIR%%/reports/nl/deleted.content.message.txt.sample
X%%DATADIR%%/reports/nl/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/nl/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/nl/disinfected.report.txt.sample
X%%DATADIR%%/reports/nl/inline.sig.html.sample
X%%DATADIR%%/reports/nl/inline.sig.txt.sample
X%%DATADIR%%/reports/nl/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/nl/inline.warning.html.sample
X%%DATADIR%%/reports/nl/inline.warning.txt.sample
X%%DATADIR%%/reports/nl/languages.conf.sample
X%%DATADIR%%/reports/nl/sender.content.report.txt.sample
X%%DATADIR%%/reports/nl/sender.error.report.txt.sample
X%%DATADIR%%/reports/nl/sender.filename.report.txt.sample
X%%DATADIR%%/reports/nl/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/nl/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/nl/sender.spam.report.txt.sample
X%%DATADIR%%/reports/nl/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/nl/sender.virus.report.txt.sample
X%%DATADIR%%/reports/nl/stored.content.message.txt.sample
X%%DATADIR%%/reports/nl/stored.filename.message.txt.sample
X%%DATADIR%%/reports/nl/stored.virus.message.txt.sample
X%%DATADIR%%/reports/pt_br/deleted.content.message.txt.sample
X%%DATADIR%%/reports/pt_br/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/pt_br/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/pt_br/disinfected.report.txt.sample
X%%DATADIR%%/reports/pt_br/inline.sig.html.sample
X%%DATADIR%%/reports/pt_br/inline.sig.txt.sample
X%%DATADIR%%/reports/pt_br/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/pt_br/inline.warning.html.sample
X%%DATADIR%%/reports/pt_br/inline.warning.txt.sample
X%%DATADIR%%/reports/pt_br/languages.conf.sample
X%%DATADIR%%/reports/pt_br/sender.content.report.txt.sample
X%%DATADIR%%/reports/pt_br/sender.error.report.txt.sample
X%%DATADIR%%/reports/pt_br/sender.filename.report.txt.sample
X%%DATADIR%%/reports/pt_br/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/pt_br/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/pt_br/sender.spam.report.txt.sample
X%%DATADIR%%/reports/pt_br/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/pt_br/sender.virus.report.txt.sample
X%%DATADIR%%/reports/pt_br/stored.content.message.txt.sample
X%%DATADIR%%/reports/pt_br/stored.filename.message.txt.sample
X%%DATADIR%%/reports/pt_br/stored.virus.message.txt.sample
X%%DATADIR%%/reports/ro/deleted.content.message.txt.sample
X%%DATADIR%%/reports/ro/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/ro/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/ro/disinfected.report.txt.sample
X%%DATADIR%%/reports/ro/inline.sig.html.sample
X%%DATADIR%%/reports/ro/inline.sig.txt.sample
X%%DATADIR%%/reports/ro/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/ro/inline.warning.html.sample
X%%DATADIR%%/reports/ro/inline.warning.txt.sample
X%%DATADIR%%/reports/ro/languages.conf.sample
X%%DATADIR%%/reports/ro/sender.content.report.txt.sample
X%%DATADIR%%/reports/ro/sender.error.report.txt.sample
X%%DATADIR%%/reports/ro/sender.filename.report.txt.sample
X%%DATADIR%%/reports/ro/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/ro/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/ro/sender.spam.report.txt.sample
X%%DATADIR%%/reports/ro/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/ro/sender.virus.report.txt.sample
X%%DATADIR%%/reports/ro/stored.content.message.txt.sample
X%%DATADIR%%/reports/ro/stored.filename.message.txt.sample
X%%DATADIR%%/reports/ro/stored.virus.message.txt.sample
X%%DATADIR%%/reports/se/README.sample
X%%DATADIR%%/reports/se/deleted.content.message.txt.sample
X%%DATADIR%%/reports/se/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/se/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/se/disinfected.report.txt.sample
X%%DATADIR%%/reports/se/inline.sig.html.sample
X%%DATADIR%%/reports/se/inline.sig.txt.sample
X%%DATADIR%%/reports/se/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/se/inline.warning.html.sample
X%%DATADIR%%/reports/se/inline.warning.txt.sample
X%%DATADIR%%/reports/se/languages.conf.sample
X%%DATADIR%%/reports/se/sender.content.report.txt.sample
X%%DATADIR%%/reports/se/sender.error.report.txt.sample
X%%DATADIR%%/reports/se/sender.filename.report.txt.sample
X%%DATADIR%%/reports/se/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/se/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/se/sender.spam.report.txt.sample
X%%DATADIR%%/reports/se/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/se/sender.virus.report.txt.sample
X%%DATADIR%%/reports/se/stored.content.message.txt.sample
X%%DATADIR%%/reports/se/stored.filename.message.txt.sample
X%%DATADIR%%/reports/se/stored.virus.message.txt.sample
X%%DATADIR%%/reports/sk/deleted.content.message.txt.sample
X%%DATADIR%%/reports/sk/deleted.filename.message.txt.sample
X%%DATADIR%%/reports/sk/deleted.virus.message.txt.sample
X%%DATADIR%%/reports/sk/disinfected.report.txt.sample
X%%DATADIR%%/reports/sk/inline.sig.html.sample
X%%DATADIR%%/reports/sk/inline.sig.txt.sample
X%%DATADIR%%/reports/sk/inline.spam.warning.txt.sample
X%%DATADIR%%/reports/sk/inline.warning.html.sample
X%%DATADIR%%/reports/sk/inline.warning.txt.sample
X%%DATADIR%%/reports/sk/languages.conf.sample
X%%DATADIR%%/reports/sk/sender.content.report.txt.sample
X%%DATADIR%%/reports/sk/sender.error.report.txt.sample
X%%DATADIR%%/reports/sk/sender.filename.report.txt.sample
X%%DATADIR%%/reports/sk/sender.mcp.report.txt.sample
X%%DATADIR%%/reports/sk/sender.spam.rbl.report.txt.sample
X%%DATADIR%%/reports/sk/sender.spam.report.txt.sample
X%%DATADIR%%/reports/sk/sender.spam.sa.report.txt.sample
X%%DATADIR%%/reports/sk/sender.virus.report.txt.sample
X%%DATADIR%%/reports/sk/stored.content.message.txt.sample
X%%DATADIR%%/reports/sk/stored.filename.message.txt.sample
X%%DATADIR%%/reports/sk/stored.virus.message.txt.sample
X%%DOCSDIR%%/COPYING
X%%DOCSDIR%%/ChangeLog
X%%DOCSDIR%%/INSTALL
X%%DOCSDIR%%/INSTALL.FreeBSD
X%%DOCSDIR%%/INSTALL.OpenBSD
X%%DOCSDIR%%/QuickInstall.txt
X%%DOCSDIR%%/README
X%%DOCSDIR%%/README.FreeBSD.port
X%%DOCSDIR%%/README.sql-logging
X%%DOCSDIR%%/building.txt
X%%DOCSDIR%%/donations.shtml
X%%DOCSDIR%%/downloadgraphs.shtml
X%%DOCSDIR%%/downloads.shtml
X%%DOCSDIR%%/ecs.css
X%%DOCSDIR%%/faq.shtml
X%%DOCSDIR%%/images/JulianField1_small.jpg
X%%DOCSDIR%%/images/bigmailscannerlogo.gif
X%%DOCSDIR%%/images/smallmailscannerlogo.gif
X%%DOCSDIR%%/images/thumb_JulianField2.jpg
X%%DOCSDIR%%/images/thumb_JulianField3.jpg
X%%DOCSDIR%%/images/thumb_JulianField4.jpg
X%%DOCSDIR%%/images/thumb_JulianField5.jpg
X%%DOCSDIR%%/index.html
X%%DOCSDIR%%/install/ClamAVModule.shtml
X%%DOCSDIR%%/install/OS-virus-scan-web.htm
X%%DOCSDIR%%/install/README.trend
X%%DOCSDIR%%/install/SAVI.shtml
X%%DOCSDIR%%/install/codestatus.shtml
X%%DOCSDIR%%/install/conf.shtml
X%%DOCSDIR%%/install/exim-old.shtml
X%%DOCSDIR%%/install/exim.shtml
X%%DOCSDIR%%/install/filesnscripts.shtml
X%%DOCSDIR%%/install/gcc.shtml
X%%DOCSDIR%%/install/index.shtml
X%%DOCSDIR%%/install/linux.shtml
X%%DOCSDIR%%/install/mailscanner.shtml
X%%DOCSDIR%%/install/mcafee.shtml
X%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.55
X%%DOCSDIR%%/install/mcp/Conf.pm.patch.2.60
X%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.55
X%%DOCSDIR%%/install/mcp/PerMsgStatus.pm.patch.2.60
X%%DOCSDIR%%/install/mcp/index.html
X%%DOCSDIR%%/install/mime-tools-patch.txt
X%%DOCSDIR%%/install/mime-tools-patch2.txt
X%%DOCSDIR%%/install/mime-tools-patch3.txt
X%%DOCSDIR%%/install/mime-tools-patch4.txt
X%%DOCSDIR%%/install/osborne.txt
X%%DOCSDIR%%/install/other.shtml
X%%DOCSDIR%%/install/perl.shtml
X%%DOCSDIR%%/install/postfix.shtml
X%%DOCSDIR%%/install/sendmail.shtml
X%%DOCSDIR%%/install/solaris9.txt
X%%DOCSDIR%%/install/sophos.shtml
X%%DOCSDIR%%/install/spamassassin.shtml
X%%DOCSDIR%%/install/tnef.shtml
X%%DOCSDIR%%/install/zmailer.shtml
X%%DOCSDIR%%/introduction.shtml
X%%DOCSDIR%%/jobs
X%%DOCSDIR%%/mailscanner_trans.gif
X%%DOCSDIR%%/man/MailScanner.8
X%%DOCSDIR%%/man/MailScanner.8.html
X%%DOCSDIR%%/man/MailScanner.conf.5
X%%DOCSDIR%%/man/MailScanner.conf.5.html
X%%DOCSDIR%%/mrtg.shtml
X%%DOCSDIR%%/newinv4.shtml
X%%DOCSDIR%%/nextversion.shtml
X%%DOCSDIR%%/oldnews.shtml
X%%DOCSDIR%%/osdir.png
X%%DOCSDIR%%/performance.shtml
X%%DOCSDIR%%/poetry.shtml
X%%DOCSDIR%%/poweredby.google.gif
X%%DOCSDIR%%/poweredby.transtec.gif
X%%DOCSDIR%%/presentations.html
X%%DOCSDIR%%/press.html
X%%DOCSDIR%%/readme.shtml
X%%DOCSDIR%%/reject.html
X%%DOCSDIR%%/sobig.html
X%%DOCSDIR%%/support.html
X%%DOCSDIR%%/transtec.logo.gif
X%%DOCSDIR%%/users.shtml
X at dirrm share/nls/en_US.US-ASCII
X at dirrm share/nls/POSIX
X at dirrm %%DOCSDIR%%/man
X at dirrm %%DOCSDIR%%/install/tcp
X at dirrm %%DOCSDIR%%/install/mcp
X at dirrm %%DOCSDIR%%/install
X at dirrm %%DOCSDIR%%/images
X at dirrm %%DOCSDIR%%
X at dirrm %%DATADIR%%/reports/sk
X at dirrm %%DATADIR%%/reports/se
X at dirrm %%DATADIR%%/reports/ro
X at dirrm %%DATADIR%%/reports/pt_br
X at dirrm %%DATADIR%%/reports/nl
X at dirrm %%DATADIR%%/reports/it
X at dirrm %%DATADIR%%/reports/hu
X at dirrm %%DATADIR%%/reports/fr
X at dirrm %%DATADIR%%/reports/es
X at dirrm %%DATADIR%%/reports/en
X at dirrm %%DATADIR%%/reports/dk
X at dirrm %%DATADIR%%/reports/de
X at dirrm %%DATADIR%%/reports/cz
X at dirrm %%DATADIR%%/reports/cy+en
X at dirrm %%DATADIR%%/reports
X at dirrm %%DATADIR%%
X at dirrm libexec/MailScanner
X at dirrm lib/MailScanner/MailScanner
X at dirrm lib/MailScanner
X at dirrm etc/MailScanner/rules
X at dirrm etc/MailScanner
END-of-MailScanner-devel/pkg-plist
echo x - MailScanner-devel/pkg-message
sed 's/^X//' >MailScanner-devel/pkg-message << 'END-of-MailScanner-devel/pkg-message'
X*************************************************************************
X	    _  _____ _____ _____ _   _ _____ ___ ___  _   _ 	
X	   / \|_   _|_   _| ____| \ | |_   _|_ _/ _ \| \ | |
X	  / _ \ | |   | | |  _| |  \| | | |  | | | | |  \| |
X	 / ___ \| |   | | | |___| |\  | | |  | | |_| | |\  |
X	/_/   \_\_|   |_| |_____|_| \_| |_| |___\___/|_| \_|
X							
X	See PREFIX/share/doc/MailScanner/README.FreeBSD.port,
X	http://www.mailscanner.info, the man pages MailScanner and
X	MailScanner.conf for further instructions.
X
X	You will need to make several modifications to config files
X	before MailScanner will work correctly.
X                                              
X	If this is the first time you are installing this port you
X	should create an initial set of configuration files with 
X                                                               
X	make initial-config 
X
X	within this directory. Without this step you will only have
X	.sample files instead of real .conf files and report
X	templates.
X
X	If you are upgrading your port you might consider 
X	running
X
X	make renew-wrapper
X	make renew-autoupdate
X	make renew-reports
X
X	to update your virus-wrappers, autoupdates, reports and
X	languages.conf
X
X*************************************************************************
END-of-MailScanner-devel/pkg-message
echo x - MailScanner-devel/pkg-descr
sed 's/^X//' >MailScanner-devel/pkg-descr << 'END-of-MailScanner-devel/pkg-descr'
XThis is a development version of the MailScanner port. It is supposed to
Xbe stable but a beta version is a beta version after all... :-)
X
XMailScanner is a complete e-mail security system designed for use on 
Xe-mail gateways. It protects against viruses, and detects attacks against 
Xe-mail client packages (such as Outlook, Outlook Express, Eudora). It can 
Xalso detect almost all unsolicited commercial e-mail (spam) passing through 
Xit and respond to all incidents in a wide variety of ways. 
X
XNot only can it scan for known viruses, but it can also protect against unknown 
Xviruses hidden inside e-mail attachments by refusing entry to attachments whose 
Xfilenames match any given pattern. This can include generic patterns that trap 
Xfilenames attempting to hide the true filename extension (e.g. ".txt.vbs"). 
X
XIt is superior to many commercial packages in its ability to handle attacks 
Xagainst itself, such as Denial Of Service attacks caused by messages containing
Xthe "Zip of Death". It is easy to install into an existing e-mail gateway, 
Xrequiring very little knowledge of sendmail and no change to an existing 
Xsendmail configuration. 
X
XMailScanner itself is entirely open source, but it uses widely known commercial
Xvirus scanning packages at its core. The other software it uses is all high 
Xquality open source software, leading to a system that can be trusted for 
Xperformance and reliability. 
X
XWWW:	http://www.mailscanner.info
END-of-MailScanner-devel/pkg-descr
echo x - MailScanner-devel/Makefile
sed 's/^X//' >MailScanner-devel/Makefile << 'END-of-MailScanner-devel/Makefile'
X# New ports collection makefile for:	MailScanner
X# Date created:				17 March 2003
X# Whom:					Jan-Peter Koopmann <j.koopmann at seceidos.de>
X#
X# $FreeBSD: ports/mail/mailscanner/Makefile,v 1.2 2003/08/12 07:38:55 leeym Exp $
X#
X
XPORTNAME=	MailScanner-devel
XPORTVERSION=	4.25.9
XCATEGORIES=	mail
XMASTER_SITES=	http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
XDISTNAME=	MailScanner-4.25-9
X
XMAINTAINER=	j.koopmann at seceidos.de
XCOMMENT=	A powerful virus/spam scanning framework for Sendmail and Exim
X
XBUILD_DEPENDS=	\
X	${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
X	${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
X	${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
X	${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
X	${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
X	${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
X	${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
X	${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
X	${SITE_PERL}/Net/CIDR.pm:${PORTSDIR}/net/p5-Net-CIDR
X
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XUSE_PERL5=	yes
X
XDATADIR=	${PREFIX}/share/MailScanner
XDOCSDIR=	${PREFIX}/share/doc/MailScanner
XPKGMESSAGE=	${WRKDIR}/pkg-message
X
XMAN8=		MailScanner.8
XMAN5=		MailScanner.conf.5
XMLINKS=		MailScanner.8 mailscanner.8 \
X		MailScanner.conf.5 mailscanner.conf.5
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500601
XBUILD_DEPENDS+=	${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
XRUN_DEPENDS+=	${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
X.endif
X
XDOC_FILES=	INSTALL INSTALL.FreeBSD INSTALL.OpenBSD README
XETC_FILES=	MailScanner.conf filename.rules.conf \
X		filetype.rules.conf spam.assassin.prefs.conf \
X		spam.lists.conf virus.scanners.conf
X
Xdo-build:
X	${PERL} -pi -e \
X		's,/opt/MailScanner/lib,'${PREFIX}'/lib/MailScanner,g; \
X		s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
X		${WRKSRC}/bin/MailScanner
X	${PERL} -pi -e \
X		's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
X		s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
X		s,/opt/MailScanner/bin,'${PREFIX}'bin,g; \
X		s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
X		s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
X		${WRKSRC}/etc/MailScanner.conf
X	${PERL} -pi -e \
X		's,/opt/MailScanner/lib,'${PREFIX}'/libexec/MailScanner,g; \
X		s,/bin/false,/usr/bin/false,;' ${WRKSRC}/etc/virus.scanners.conf
X	${PERL} -pi -e \
X		's,/bin/bash,'${PREFIX}'/bash,g; \
X		s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
X		${WRKSRC}/bin/update_virus_scanners
X	${PERL} -pi -e \
X		's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
X		s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
X		s,/opt/MailScanner/bin,'${PREFIX}'/bin,g; \
X		s,/opt/MailScanner/etc/reports,'${DATADIR}'/reports,g; \
X		s,/opt/MailScanner/etc,'${PREFIX}'/etc/MailScanner,g;' \
X		${WRKSRC}/lib/MailScanner/ConfigDefs.pl
X	${PERL} -pi \
X		-e 's,/bin/sed,/usr/bin/sed,g;' ${WRKSRC}/lib/MailScanner/SystemDefs.pm
X
Xdo-install:
X	#
X	# Step 1: Install binaries
X	#
X	${INSTALL_SCRIPT} ${WRKSRC}/bin/tnef.linux ${PREFIX}/bin/tnef
X	#
X	# Step 2: Install libexec files
X	#
X	${MKDIR} ${PREFIX}/libexec/MailScanner
X	${CHMOD} -R ${BINMODE} ${PREFIX}/libexec/MailScanner
X	${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${PREFIX}/libexec/MailScanner
X	cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec ${INSTALL_SCRIPT} \
X		'{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
X	cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
X		${INSTALL_SCRIPT} '{}' ${PREFIX}'/libexec/MailScanner/{}'.sample \;
X	${INSTALL_SCRIPT} ${WRKSRC}/bin/update_virus_scanners \
X		${PREFIX}/libexec/MailScanner/update_virus_scanners
X	#
X	# Step 3: Install etc files
X	#
X	${MKDIR} ${PREFIX}/etc/MailScanner
X	${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner
X.for FILE in ${ETC_FILES}
X	${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
X		${PREFIX}/etc/MailScanner/${FILE}.sample
X.endfor
X	${MKDIR} ${PREFIX}/etc/MailScanner/rules
X	cd ${WRKSRC}/etc/rules && \
X		${INSTALL_DATA} EXAMPLES README ${PREFIX}/etc/MailScanner/rules
X	${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
X		${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
X
X	#
X	# Step 4: Install files in share
X	#
X	@${MKDIR} ${DATADIR}
X	cd ${WRKSRC}/etc && ${FIND} reports -type d -exec \
X		mkdir ${DATADIR}'/{}' \;
X	cd ${WRKSRC}/etc && ${FIND} reports -type f ! -name "*.orig" -exec \
X		${INSTALL_DATA} '{}' ${DATADIR}'/{}'.sample \;
X	${CHMOD} -R ${BINMODE} ${DATADIR}/reports
X	#
X	# Step 5: Install lib
X	#
X	${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner
X	${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
X		${PREFIX}/lib/MailScanner/MailScanner.pm
X	cd ${WRKSRC}/lib/MailScanner && ${FIND} * -type f ! -name "*.orig" -exec \
X		${INSTALL_SCRIPT} '{}' ${PREFIX}'/lib/MailScanner/MailScanner/{}' \;
X	#
X	# Step 6: Install Start/Stop scripts
X	#
X	${INSTALL_SCRIPT} ${FILESDIR}/mailscanner.sh \
X		${PREFIX}/etc/rc.d/mailscanner.sh.sample
X	${INSTALL_SCRIPT} ${FILESDIR}/mta.sh ${PREFIX}/etc/rc.d/mta.sh.sample
X	#
X	# Step 7: Docs & Manpages
X	#
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
X	cd ${WRKSRC}/docs && \
X		${FIND} * -type d -exec mkdir ${DOCSDIR}'/{}' \; && \
X		${FIND} * -type f ! -name "*.orig" -exec \
X			${INSTALL_DATA} '{}' ${DOCSDIR}'/{}' \;
X	cd ${WRKSRC}/docs/man && \
X		${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5 && \
X		${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
X.endif
X.if exists(${PREFIX}/etc/MailScanner/MailScanner.conf)
X	# Upgrading MailScanner.conf file... Please wait
X	@${WRKSRC}/bin/upgrade_MailScanner_conf \
X		${PREFIX}/etc/MailScanner/MailScanner.conf \
X		${PREFIX}/etc/MailScanner/MailScanner.conf.sample > \
X		${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} \
X		2> /dev/null
X	# Diff the files. If the files do not differ, delete the new file
X	@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf \
X		${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
X	   then ${ECHO} "No changes in MailScanner.conf options found" ; \
X		${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
X	else \
X	   ${ECHO} "Changes in MailScanner.conf found. Please look at \
X		${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
X	fi
X.endif
X	@${SED} -e 's,%%PREFIX%%,${PREFIX},' pkg-message > ${PKGMESSAGE}
X	@${CAT} ${PKGMESSAGE}
X
Xrenew-wrapper: install
X	# Renew virus wrapper scripts
X	${INSTALL_SCRIPT} ${WRKSRC}/lib/*-wrapper ${PREFIX}/libexec/MailScanner
X
Xrenew-autoupdate: install
X	# Renew autoupdate scripts
X	${INSTALL_SCRIPT} ${WRKSRC}/lib/*-autoupdate ${PREFIX}/libexec/MailScanner
X
Xrenew-reports: install
X	# Renew reports
X	cd ${WRKSRC}/etc/reports/en && ${FIND} * -type f ! -name "*.orig" \
X		-exec ${INSTALL_DATA} '{}' ${DATADIR}'/reports/en/{}'  \;
X
Xinitial-config: renew-wrapper renew-autoupdate renew-reports
X	cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETC_FILES} \
X		${PREFIX}/etc/MailScanner
X	${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
X		${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
X
X.include <bsd.port.post.mk>
END-of-MailScanner-devel/Makefile
echo x - MailScanner-devel/distinfo
sed 's/^X//' >MailScanner-devel/distinfo << 'END-of-MailScanner-devel/distinfo'
XMD5 (MailScanner-4.25-9.tar.gz) = 0140461b2de42095dffc2d7832e31923
END-of-MailScanner-devel/distinfo
exit
--- MailScanner-devel-4.25.9.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list