1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/mail/mailscanner/Makefile

370 lines
14 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: MailScanner
# Date created: 17 March 2003
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
#
# $FreeBSD$
#
PORTNAME= MailScanner
PORTVERSION= 4.53.8
CATEGORIES= mail
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
Update to version 4.31.6. Changelog: * New Features and Improvements * - Added install.sh script for tar distribution which builds all Perl modules, tnef decoder and MailScanner automatically. - Added configuration option "Dangerous Content Scanning" to allow you to disable all the content scanning except for the virus scanning. - Added support for Vexira virus scanner. - Implemented support for F-Secure 4.61. - Implemented support for Nod32 2.01. If you are still running 1.99, you will need to edit /etc/MailScanner/virus.scanners.conf. - Reports can now contain %variables% such as %org-name%. - Changed default installation location of Bitdefender to /opt/bdc. - Upgraded tnef to latest release from sourceforge. - Moved ExtUtils::MakeMaker into list of normal perl modules to install. - Linux distributions now auto-detect MTA setting in /etc/sysconfig/MailScanner. - Can now detect very small images in a message, that may be "web bugs" to track you. These can be disarmed if you want. - Changed documentation to just list single-instance version of Postfix. - Changed init.d scripts to work well with both single and double instance of Postfix. - Improved init.d script to support SuSE 9.1 properly. * Fixes * - Forced AVG to run in English. - Corrected problem with negative failure counts from RBLs and SA. - Fixed bug in LDAP ruleset handling. - Sendmail code now auto-detects the correct lock type to use, flock or posix. - Sendmail qf files no longer have to define an IP address. - Corrected report when archive is nested too deeply. - ZMailer forwarding fix provided by Mariano. - Fixed Postfix message corruption on recent Postfixes on some architectures. - Worked around latest tweaks to Postfix spec. - Fixed problems with PDF docs when signing messages. PR: ports/67542 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de> (maintainer)
2004-06-04 00:08:06 +00:00
DISTNAME= ${PORTNAME}-install-${PORTVERSION}-${PATCHLEVEL}
MAINTAINER= j.koopmann@seceidos.de
COMMENT= Powerful virus/spam scanning framework for mail gateways
BUILD_DEPENDS= \
${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools \
[MAINTAINER] mail/MailScanner: update to 4.49.7 - Update to 4.49.7 * New Features and Improvements * - Speed improvements for sendmail systems by changing the way temporary files are handled and how attachments are parsed. This should be really noticeable if I've got it right. Thanks for the great help of the Vodafone SHARK team. - Added speed improvements for Exim. - Added speed improvements for Postfix. - Now changes the command line listed in `ps` (ie $0) to show what MailScanner is doing. Should help diagnose slow system problems. - 4 new configuration options, which list patterns against which filenames and filetypes are matched to see if we should allow them or block them. This is implemented for the benefit of web-based configuration systems for MailScanner, it is not really intended for human use as it will complicate the filename/filetype matching unless you understand it. Read the comments in the MailScanner.conf and suggest better explanations! "Allow Filenames", "Deny Filenames", "Allow Filetypes", "Deny Filetypes". Note: There are 2 new entries in languages.conf so remember to run an upgrade_languages_conf. - Upgraded tnef program to 1.3.4. - Added message 'actions' property for MailWatch reporting. - Custom Function filenames must end in .pm or .pl. Others will be logged and skipped. - Various minor speed improvements. * Fixes * - Changed Postfix code to better support latest revision of Perl. - Now stops MailScanner more reliably on SuSE systems. - Logging of <img> tags only done if logging HTML tags. - Fixed minor array ref problem in Perl 5.8.7 on FreeBSD 6.0 (which is not a public stable release anyway). PR: ports/91306 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de>
2006-01-04 21:29:16 +00:00
${SITE_PERL}/${PERL_ARCH}/Bundle/DBI.pm:${PORTSDIR}/databases/p5-DBI \
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
${SITE_PERL}/Convert/BinHex.pm:${PORTSDIR}/converters/p5-Convert-BinHex \
${SITE_PERL}/Net/CIDR.pm:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
[MAINTAINER] mail/MailScanner: update to 4.49.7 - Update to 4.49.7 * New Features and Improvements * - Speed improvements for sendmail systems by changing the way temporary files are handled and how attachments are parsed. This should be really noticeable if I've got it right. Thanks for the great help of the Vodafone SHARK team. - Added speed improvements for Exim. - Added speed improvements for Postfix. - Now changes the command line listed in `ps` (ie $0) to show what MailScanner is doing. Should help diagnose slow system problems. - 4 new configuration options, which list patterns against which filenames and filetypes are matched to see if we should allow them or block them. This is implemented for the benefit of web-based configuration systems for MailScanner, it is not really intended for human use as it will complicate the filename/filetype matching unless you understand it. Read the comments in the MailScanner.conf and suggest better explanations! "Allow Filenames", "Deny Filenames", "Allow Filetypes", "Deny Filetypes". Note: There are 2 new entries in languages.conf so remember to run an upgrade_languages_conf. - Upgraded tnef program to 1.3.4. - Added message 'actions' property for MailWatch reporting. - Custom Function filenames must end in .pm or .pl. Others will be logged and skipped. - Various minor speed improvements. * Fixes * - Changed Postfix code to better support latest revision of Perl. - Now stops MailScanner more reliably on SuSE systems. - Logging of <img> tags only done if logging HTML tags. - Fixed minor array ref problem in Perl 5.8.7 on FreeBSD 6.0 (which is not a public stable release anyway). PR: ports/91306 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de>
2006-01-04 21:29:16 +00:00
${SITE_PERL}/Net/Ident.pm:${PORTSDIR}/net/p5-Net-Ident \
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite \
${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
- Update to 4.53.7 3/5/2006 New in Version 4.53.7-1 ================================ * New Features and Improvements * - Attachment extraction now checks for available disk space and a DoS attack using messages with high expansion ratios will fail even quicker than it did before. - Added new setting "SpamAssassin Local State Dir" to support the sa-update tool provided with MailScanner these days, to provide a way of auto- updating the core SpamAssassin rulesets. The default value is set to what you need for Linux (/var/lib). - Added new cron job to run sa-update every night. The location of the sa-update program is read from /etc/sysconfig/MailScanner. - Added support for new header -H file format in Exim 4.61. - Added 2 new configuration options "Gunzip Command" and "Gunzip Timeout" to enable unpacking of gzip-ed files for filename and filetype checking. Even if this is disabled, gzip-ed files will still be virus scanned. - Added support for numerical entries in phishing.safe.sites.conf file. - Added support for optional multipliers in numbers in MailScanner.conf. So you can now write "50M" instead of "50000000". The multipliers supported are "k", "m" and "g" to denote 1 thousand, 1 million and 1 billion (10^9) in upper or lower case. You must *not* put any spaces between the number and the multiplier character. - Added a new configuration option "Ignored Web Bug Filenames". This allows you to whitelist a bunch of filenames that can appear in the URLs of potential web bugs. So if you decide that all potential web bugs with "spacer" or "pixel.gif" in the filename are just padding for page layout, then you can make it ignore them by adding them to this list. A sample list is provided in MailScanner.conf. This is disabled by default, as spammers may start to use this as a means of circumventing the Web Bug trap. - When Web Bugs are disarmed, the URL used to replace the original web bug can now be set using the new configuration option "Web Bug Replacement". If this is not specified, then the old value of "MailScannerWebBug" is used. The default value supplied in the MailScanner.conf file is the address of an untracked 1x1 pixel transparent gif (51 bytes) hosted on the MailScanner web site. This will not be tracked other than to supply an overall count of the number of hits this image gets, for overall statistical purposes. - Added Razor2 to the list of plugins automatically enabled by the ClamAV+SA easy-to-install package, due to the recent change in licence. Now if DCC could go the same way... - Updated Catalan translations. * Fixes * - Fixed bug in DoS attack handler. Thanks for Jorge for this. - Commented out setting of "SpamAssassin Local State Dir" in MailScanner.conf. PR: ports/96751 Submitted by: maintainer
2006-05-05 10:38:03 +00:00
${SITE_PERL}/Time/Zone.pm:${PORTSDIR}/devel/p5-TimeDate \
${SITE_PERL}/${PERL_ARCH}/Filesys/Df.pm:${PORTSDIR}/devel/p5-Filesys-Statvfs_Df
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
RUN_DEPENDS= ${BUILD_DEPENDS} \
bash:${PORTSDIR}/shells/bash \
tnef:${PORTSDIR}/converters/tnef \
wget:${PORTSDIR}/ftp/wget
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
OPTIONS= SPAMASSASSIN "Install SpamAssassin" on \
CLAMAV "Install ClamAV" on \
CLAMAVMODULE "Install ClamAV Module" off \
BDC "Install BitDefender" off
CONFLICTS= MailScanner-devel-[0-9]*
[MAINTAINER] mail/MailScanner: update to 4.49.7 - Update to 4.49.7 * New Features and Improvements * - Speed improvements for sendmail systems by changing the way temporary files are handled and how attachments are parsed. This should be really noticeable if I've got it right. Thanks for the great help of the Vodafone SHARK team. - Added speed improvements for Exim. - Added speed improvements for Postfix. - Now changes the command line listed in `ps` (ie $0) to show what MailScanner is doing. Should help diagnose slow system problems. - 4 new configuration options, which list patterns against which filenames and filetypes are matched to see if we should allow them or block them. This is implemented for the benefit of web-based configuration systems for MailScanner, it is not really intended for human use as it will complicate the filename/filetype matching unless you understand it. Read the comments in the MailScanner.conf and suggest better explanations! "Allow Filenames", "Deny Filenames", "Allow Filetypes", "Deny Filetypes". Note: There are 2 new entries in languages.conf so remember to run an upgrade_languages_conf. - Upgraded tnef program to 1.3.4. - Added message 'actions' property for MailWatch reporting. - Custom Function filenames must end in .pm or .pl. Others will be logged and skipped. - Various minor speed improvements. * Fixes * - Changed Postfix code to better support latest revision of Perl. - Now stops MailScanner more reliably on SuSE systems. - Logging of <img> tags only done if logging HTML tags. - Fixed minor array ref problem in Perl 5.8.7 on FreeBSD 6.0 (which is not a public stable release anyway). PR: ports/91306 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de>
2006-01-04 21:29:16 +00:00
PATCHLEVEL= 1
USE_PERL5= yes
Update to version 4.31.6. Changelog: * New Features and Improvements * - Added install.sh script for tar distribution which builds all Perl modules, tnef decoder and MailScanner automatically. - Added configuration option "Dangerous Content Scanning" to allow you to disable all the content scanning except for the virus scanning. - Added support for Vexira virus scanner. - Implemented support for F-Secure 4.61. - Implemented support for Nod32 2.01. If you are still running 1.99, you will need to edit /etc/MailScanner/virus.scanners.conf. - Reports can now contain %variables% such as %org-name%. - Changed default installation location of Bitdefender to /opt/bdc. - Upgraded tnef to latest release from sourceforge. - Moved ExtUtils::MakeMaker into list of normal perl modules to install. - Linux distributions now auto-detect MTA setting in /etc/sysconfig/MailScanner. - Can now detect very small images in a message, that may be "web bugs" to track you. These can be disarmed if you want. - Changed documentation to just list single-instance version of Postfix. - Changed init.d scripts to work well with both single and double instance of Postfix. - Improved init.d script to support SuSE 9.1 properly. * Fixes * - Forced AVG to run in English. - Corrected problem with negative failure counts from RBLs and SA. - Fixed bug in LDAP ruleset handling. - Sendmail code now auto-detects the correct lock type to use, flock or posix. - Sendmail qf files no longer have to define an IP address. - Corrected report when archive is nested too deeply. - ZMailer forwarding fix provided by Mariano. - Fixed Postfix message corruption on recent Postfixes on some architectures. - Worked around latest tweaks to Postfix spec. - Fixed problems with PDF docs when signing messages. PR: ports/67542 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de> (maintainer)
2004-06-04 00:08:06 +00:00
WRKSRC= ${WRKDIR}/${PORTNAME}-install-${PORTVERSION}
SUB_FILES= pkg-message
MAN8= MailScanner.8
MAN5= MailScanner.conf.5
MLINKS= MailScanner.8 mailscanner.8 \
MailScanner.conf.5 mailscanner.conf.5
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= dependency requires newer Perl
.endif
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
.if defined(WITH_SPAMASSASSIN)
RUN_DEPENDS+= spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin
PLIST_SUB+= SPAMASSASSIN=""
.else
PLIST_SUB+= SPAMASSASSIN="@comment "
.endif
# backwards compatibility
.if defined(NO_SPAMASSASSIN_SYMLINK)
WITHOUT_SPAMASSASSIN_SYMLINK=${NO_SPAMASSASSIN_SYMLINK}
.endif
.if defined(WITHOUT_SPAMASSASSIN_SYMLINK)
PLIST_SUB+= SPAMASSASSIN_SYMLINK="@comment "
.else
PLIST_SUB+= SPAMASSASSIN_SYMLINK=""
.endif
.if defined(WITH_CLAMAV)
RUN_DEPENDS+= clamscan:${PORTSDIR}/security/clamav
.endif
.if defined(WITH_CLAMAVMODULE)
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Mail/ClamAV.pm:${PORTSDIR}/mail/p5-Mail-ClamAV
.endif
.if defined(WITH_CLAMAV)||defined(WITH_CLAMAVMODULE)
RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip \
unrar:${PORTSDIR}/archivers/unrar \
zoo:${PORTSDIR}/archivers/zoo \
unarj:${PORTSDIR}/archivers/unarj \
unace:${PORTSDIR}/archivers/unace \
lha:${PORTSDIR}/archivers/lha
.endif
.if defined(WITH_BDC)
RUN_DEPENDS+= bdc:${PORTSDIR}/security/bdc
.endif
DOC_FILES= INSTALL INSTALL.FreeBSD INSTALL.OpenBSD README
ETC_FILES= MailScanner.conf filename.rules.conf \
filetype.rules.conf spam.assassin.prefs.conf \
spam.lists.conf virus.scanners.conf \
phishing.safe.sites.conf \
country.domains.conf
MCP_FILES= mcp.spam.assassin.prefs.conf \
10_example.cf
USRLOCAL_FILES_LIB= \
bitdefender-autoupdate f-prot-autoupdate \
f-secure-wrapper inoculan-autoupdate \
kavdaemonclient-wrapper mcafee-autoupdate \
nod32-autoupdate rav-autoupdate \
rav-wrapper sophos-autoupdate
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
USE_RC_SUBR= mailscanner.sh mta.sh
Update to version 4.31.6. Changelog: * New Features and Improvements * - Added install.sh script for tar distribution which builds all Perl modules, tnef decoder and MailScanner automatically. - Added configuration option "Dangerous Content Scanning" to allow you to disable all the content scanning except for the virus scanning. - Added support for Vexira virus scanner. - Implemented support for F-Secure 4.61. - Implemented support for Nod32 2.01. If you are still running 1.99, you will need to edit /etc/MailScanner/virus.scanners.conf. - Reports can now contain %variables% such as %org-name%. - Changed default installation location of Bitdefender to /opt/bdc. - Upgraded tnef to latest release from sourceforge. - Moved ExtUtils::MakeMaker into list of normal perl modules to install. - Linux distributions now auto-detect MTA setting in /etc/sysconfig/MailScanner. - Can now detect very small images in a message, that may be "web bugs" to track you. These can be disarmed if you want. - Changed documentation to just list single-instance version of Postfix. - Changed init.d scripts to work well with both single and double instance of Postfix. - Improved init.d script to support SuSE 9.1 properly. * Fixes * - Forced AVG to run in English. - Corrected problem with negative failure counts from RBLs and SA. - Fixed bug in LDAP ruleset handling. - Sendmail code now auto-detects the correct lock type to use, flock or posix. - Sendmail qf files no longer have to define an IP address. - Corrected report when archive is nested too deeply. - ZMailer forwarding fix provided by Mariano. - Fixed Postfix message corruption on recent Postfixes on some architectures. - Worked around latest tweaks to Postfix spec. - Fixed problems with PDF docs when signing messages. PR: ports/67542 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de> (maintainer)
2004-06-04 00:08:06 +00:00
post-extract:
cd ${WRKSRC} && ${TAR} xvzf perl-tar/MailScanner-${PORTVERSION}-${PATCHLEVEL}.tar.gz > /dev/null && ${MV} MailScanner-${PORTVERSION}/* .
Update to version 4.31.6. Changelog: * New Features and Improvements * - Added install.sh script for tar distribution which builds all Perl modules, tnef decoder and MailScanner automatically. - Added configuration option "Dangerous Content Scanning" to allow you to disable all the content scanning except for the virus scanning. - Added support for Vexira virus scanner. - Implemented support for F-Secure 4.61. - Implemented support for Nod32 2.01. If you are still running 1.99, you will need to edit /etc/MailScanner/virus.scanners.conf. - Reports can now contain %variables% such as %org-name%. - Changed default installation location of Bitdefender to /opt/bdc. - Upgraded tnef to latest release from sourceforge. - Moved ExtUtils::MakeMaker into list of normal perl modules to install. - Linux distributions now auto-detect MTA setting in /etc/sysconfig/MailScanner. - Can now detect very small images in a message, that may be "web bugs" to track you. These can be disarmed if you want. - Changed documentation to just list single-instance version of Postfix. - Changed init.d scripts to work well with both single and double instance of Postfix. - Improved init.d script to support SuSE 9.1 properly. * Fixes * - Forced AVG to run in English. - Corrected problem with negative failure counts from RBLs and SA. - Fixed bug in LDAP ruleset handling. - Sendmail code now auto-detects the correct lock type to use, flock or posix. - Sendmail qf files no longer have to define an IP address. - Corrected report when archive is nested too deeply. - ZMailer forwarding fix provided by Mariano. - Fixed Postfix message corruption on recent Postfixes on some architectures. - Worked around latest tweaks to Postfix spec. - Fixed problems with PDF docs when signing messages. PR: ports/67542 Submitted by: Jan-Peter Koopmann <j.koopmann@seceidos.de> (maintainer)
2004-06-04 00:08:06 +00:00
do-build:
${PERL} -pi -e \
's,/opt/MailScanner/lib,${PREFIX}/lib/MailScanner,g; \
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
${WRKSRC}/bin/MailScanner
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,${PREFIX}/bin,g; \
s,/opt/MailScanner/etc/reports,${DATADIR}/reports,g; \
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g; \
s,/opt/MailScanner/lib,${PREFIX}/lib/MailScanner,g; \
s,/usr/bin/unrar,${LOCALBASE}/bin/unrar,g; \
s,/etc/mail/spamassassin,${LOCALBASE}/etc/mail/spamassassin,g;' \
${WRKSRC}/etc/MailScanner.conf
${PERL} -pi -e \
's,/opt/MailScanner/lib,${PREFIX}/libexec/MailScanner,g; \
s,/bin/false,/usr/bin/false,;' ${WRKSRC}/etc/virus.scanners.conf
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
${WRKSRC}/bin/update_virus_scanners
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
${WRKSRC}/bin/cron/update_virus_scanners.cron
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
${WRKSRC}/bin/update_phishing_sites
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
${WRKSRC}/bin/cron/update_phishing_sites.cron
- Update to 4.53.7 3/5/2006 New in Version 4.53.7-1 ================================ * New Features and Improvements * - Attachment extraction now checks for available disk space and a DoS attack using messages with high expansion ratios will fail even quicker than it did before. - Added new setting "SpamAssassin Local State Dir" to support the sa-update tool provided with MailScanner these days, to provide a way of auto- updating the core SpamAssassin rulesets. The default value is set to what you need for Linux (/var/lib). - Added new cron job to run sa-update every night. The location of the sa-update program is read from /etc/sysconfig/MailScanner. - Added support for new header -H file format in Exim 4.61. - Added 2 new configuration options "Gunzip Command" and "Gunzip Timeout" to enable unpacking of gzip-ed files for filename and filetype checking. Even if this is disabled, gzip-ed files will still be virus scanned. - Added support for numerical entries in phishing.safe.sites.conf file. - Added support for optional multipliers in numbers in MailScanner.conf. So you can now write "50M" instead of "50000000". The multipliers supported are "k", "m" and "g" to denote 1 thousand, 1 million and 1 billion (10^9) in upper or lower case. You must *not* put any spaces between the number and the multiplier character. - Added a new configuration option "Ignored Web Bug Filenames". This allows you to whitelist a bunch of filenames that can appear in the URLs of potential web bugs. So if you decide that all potential web bugs with "spacer" or "pixel.gif" in the filename are just padding for page layout, then you can make it ignore them by adding them to this list. A sample list is provided in MailScanner.conf. This is disabled by default, as spammers may start to use this as a means of circumventing the Web Bug trap. - When Web Bugs are disarmed, the URL used to replace the original web bug can now be set using the new configuration option "Web Bug Replacement". If this is not specified, then the old value of "MailScannerWebBug" is used. The default value supplied in the MailScanner.conf file is the address of an untracked 1x1 pixel transparent gif (51 bytes) hosted on the MailScanner web site. This will not be tracked other than to supply an overall count of the number of hits this image gets, for overall statistical purposes. - Added Razor2 to the list of plugins automatically enabled by the ClamAV+SA easy-to-install package, due to the recent change in licence. Now if DCC could go the same way... - Updated Catalan translations. * Fixes * - Fixed bug in DoS attack handler. Thanks for Jorge for this. - Commented out setting of "SpamAssassin Local State Dir" in MailScanner.conf. PR: ports/96751 Submitted by: maintainer
2006-05-05 10:38:03 +00:00
${PERL} -pi -e \
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
s,/usr/bin/sa-update,${LOCALBASE}/bin/sa-update,g; \
s,%%RC_SUBR%%,${RC_SUBR},g;' \
${WRKSRC}/bin/cron/sa-update.cron
${PERL} -pi -e \
's,/etc/MailScanner/MailScanner.conf,${PREFIX}/etc/MailScanner/MailScanner.conf,g;' \
${WRKSRC}/bin/clean.SA.cache
${PERL} -pi -e \
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
s,/opt/MailScanner/bin,${PREFIX}/bin,g; \
s,/opt/MailScanner/etc/reports,${DATADIR}/reports,g; \
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
${WRKSRC}/lib/MailScanner/ConfigDefs.pl
${PERL} -pi -e \
's,/bin/sed,/usr/bin/sed,g;' ${WRKSRC}/lib/MailScanner/SystemDefs.pm
${PERL} -pi -e \
's,/usr/bin/clamscan,${LOCALBASE}/bin/clamscan,g;' \
${WRKSRC}/lib/clamav-wrapper
${PERL} -pi -e \
's,/usr/bin/wget,${LOCALBASE}/bin/wget,g;' \
${WRKSRC}/lib/sophos-autoupdate
${PERL} -pi -e \
's,/usr/bin/unzip,${LOCALBASE}/bin/unzip,g;' \
${WRKSRC}/lib/sophos-autoupdate
.for FILE in ${USRLOCAL_FILES_LIB}
${PERL} -pi -e \
's,/usr/local,${LOCALBASE},g;' \
${WRKSRC}/lib/${FILE}
.endfor
do-install:
#
# Step 1: Install bin files
#
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${PREFIX}/sbin/mailscanner
${LN} -s ${LOCALBASE}/sbin/mailscanner ${PREFIX}/sbin/MailScanner
#
# Step 2: Install libexec files
#
${MKDIR} ${PREFIX}/libexec/MailScanner
${CHMOD} -R ${BINMODE} ${PREFIX}/libexec/MailScanner
cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/libexec/MailScanner/{}.sample \;
cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/libexec/MailScanner/{}.sample \;
${INSTALL_SCRIPT} ${WRKSRC}/bin/analyse_SpamAssassin_cache \
${PREFIX}/libexec/MailScanner/analyse_SpamAssassin_cache
${INSTALL_SCRIPT} ${WRKSRC}/bin/clean.SA.cache \
${PREFIX}/libexec/MailScanner/clean.SA.cache
${INSTALL_SCRIPT} ${WRKSRC}/bin/clean.quarantine \
${PREFIX}/libexec/MailScanner/clean.quarantine
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_phishing_sites \
${PREFIX}/libexec/MailScanner/update_phishing_sites
${INSTALL_SCRIPT} ${WRKSRC}/bin/cron/update_phishing_sites.cron \
${PREFIX}/libexec/MailScanner/update_phishing_sites.cron
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_virus_scanners \
${PREFIX}/libexec/MailScanner/update_virus_scanners
${INSTALL_SCRIPT} ${WRKSRC}/bin/cron/update_virus_scanners.cron \
${PREFIX}/libexec/MailScanner/update_virus_scanners.cron
- Update to 4.53.7 3/5/2006 New in Version 4.53.7-1 ================================ * New Features and Improvements * - Attachment extraction now checks for available disk space and a DoS attack using messages with high expansion ratios will fail even quicker than it did before. - Added new setting "SpamAssassin Local State Dir" to support the sa-update tool provided with MailScanner these days, to provide a way of auto- updating the core SpamAssassin rulesets. The default value is set to what you need for Linux (/var/lib). - Added new cron job to run sa-update every night. The location of the sa-update program is read from /etc/sysconfig/MailScanner. - Added support for new header -H file format in Exim 4.61. - Added 2 new configuration options "Gunzip Command" and "Gunzip Timeout" to enable unpacking of gzip-ed files for filename and filetype checking. Even if this is disabled, gzip-ed files will still be virus scanned. - Added support for numerical entries in phishing.safe.sites.conf file. - Added support for optional multipliers in numbers in MailScanner.conf. So you can now write "50M" instead of "50000000". The multipliers supported are "k", "m" and "g" to denote 1 thousand, 1 million and 1 billion (10^9) in upper or lower case. You must *not* put any spaces between the number and the multiplier character. - Added a new configuration option "Ignored Web Bug Filenames". This allows you to whitelist a bunch of filenames that can appear in the URLs of potential web bugs. So if you decide that all potential web bugs with "spacer" or "pixel.gif" in the filename are just padding for page layout, then you can make it ignore them by adding them to this list. A sample list is provided in MailScanner.conf. This is disabled by default, as spammers may start to use this as a means of circumventing the Web Bug trap. - When Web Bugs are disarmed, the URL used to replace the original web bug can now be set using the new configuration option "Web Bug Replacement". If this is not specified, then the old value of "MailScannerWebBug" is used. The default value supplied in the MailScanner.conf file is the address of an untracked 1x1 pixel transparent gif (51 bytes) hosted on the MailScanner web site. This will not be tracked other than to supply an overall count of the number of hits this image gets, for overall statistical purposes. - Added Razor2 to the list of plugins automatically enabled by the ClamAV+SA easy-to-install package, due to the recent change in licence. Now if DCC could go the same way... - Updated Catalan translations. * Fixes * - Fixed bug in DoS attack handler. Thanks for Jorge for this. - Commented out setting of "SpamAssassin Local State Dir" in MailScanner.conf. PR: ports/96751 Submitted by: maintainer
2006-05-05 10:38:03 +00:00
${INSTALL_SCRIPT} ${WRKSRC}/bin/cron/sa-update.cron \
${PREFIX}/libexec/MailScanner/sa-update.cron
#
# Step 3: Install etc files
#
${MKDIR} ${PREFIX}/etc/MailScanner
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner
.for FILE in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
${PREFIX}/etc/MailScanner/${FILE}.sample
.endfor
${MKDIR} ${PREFIX}/etc/MailScanner/rules
cd ${WRKSRC}/etc/rules && \
${INSTALL_DATA} EXAMPLES README ${PREFIX}/etc/MailScanner/rules
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
${MKDIR} ${PREFIX}/etc/MailScanner/mcp
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner/mcp
.for FILE in ${MCP_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/mcp/${FILE} \
${PREFIX}/etc/MailScanner/mcp/${FILE}.sample
.endfor
#
# Step 4: Install files in share
#
@${MKDIR} ${DATADIR}
cd ${WRKSRC}/etc && ${FIND} reports -type d ! -name "*.old" -exec \
${MKDIR} ${DATADIR}/{} \;
# cd ${WRKSRC}/etc && ${FIND} reports -type f ! -name "*.orig" -exec ...
cd ${WRKSRC}/etc && ${FIND} reports \( -type d -name "*.old" -prune \) \
-o \( -type f ! -name "*.orig" -exec ${INSTALL_DATA} {} ${DATADIR}/{}.sample \; \)
${CHMOD} -R ${BINMODE} ${DATADIR}/reports
#
# Step 5: Install lib
#
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner/CustomFunctions
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
${PREFIX}/lib/MailScanner/MailScanner.pm
cd ${WRKSRC}/lib/MailScanner && ${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/lib/MailScanner/MailScanner/{} \;
#
# Step 6: Docs & Manpages
#
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/CHANGES.port ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
cd ${WRKSRC}/docs && \
${FIND} * -type d -exec ${MKDIR} ${DOCSDIR}/{} \; && \
${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif
cd ${WRKSRC}/docs/man && \
${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5 && \
${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
# Sophos install script
${INSTALL_SCRIPT} ${FILESDIR}/Sophos.install.freebsd ${DOCSDIR}
${PERL} -pi -e \
's,%%LOCALBASE%%,${LOCALBASE},g; \
s,%%PREFIX%%,${PREFIX},g;' \
${DOCSDIR}/Sophos.install.freebsd
.if exists(${PREFIX}/etc/MailScanner/MailScanner.conf)
# Upgrading MailScanner.conf file... Please wait
@${WRKSRC}/bin/upgrade_MailScanner_conf \
${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.sample > \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} \
2> /dev/null
# Diff the files. If the files do not differ, delete the new file
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
then ${ECHO} "No changes in MailScanner.conf options found" ; \
${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
else \
${ECHO} "Changes in MailScanner.conf found. Please look at \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
fi
.endif
# Languages.conf update
@for LANG_DIR in ${DATADIR}/reports/*; do \
if [ -f $${LANG_DIR}/languages.conf ]; then \
${ECHO} -n Upgrading $${LANG_DIR}/languages.conf... Please wait...; \
${WRKSRC}/bin/upgrade_languages_conf \
$${LANG_DIR}/languages.conf \
$${LANG_DIR}/languages.conf.sample > \
$${LANG_DIR}/languages.conf.new.${PORTVERSION} \
2> /dev/null ; \
if diff -b -B -q $${LANG_DIR}/languages.conf \
$${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
then ${ECHO} " no changes"; \
${RM} $${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
else ${ECHO} " done"; \
${CP} $${LANG_DIR}/languages.conf.new.${PORTVERSION} $${LANG_DIR}/languages.conf ; \
fi; \
fi; \
done
@${CAT} ${PKGMESSAGE}
post-install:
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
.if defined(WITH_SPAMASSASSIN) && !defined(WITHOUT_SPAMASSASSIN_SYMLINK)
@if [ ! -r ${PREFIX}/etc/mail/spamassassin/mailscanner.cf ]; then \
${ECHO} ${LN} -s ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf ${PREFIX}/etc/mail/spamassassin/mailscanner.cf; \
${LN} -s ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf ${PREFIX}/etc/mail/spamassassin/mailscanner.cf; \
else \
${ECHO} "File ${PREFIX}/etc/mail/spamassassin/mailscanner.cf already exists!"; \
fi;
.endif
# Display warning about new start/stop scripts
@${CAT} ${FILESDIR}/rcwarning.txt
.if !defined(BATCH)
@${ECHO} Press ENTER to continue...
@read a
.endif
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
renew-wrapper: configure
# Renew virus wrapper scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-wrapper ${PREFIX}/libexec/MailScanner
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
renew-autoupdate: configure
# Renew autoupdate scripts
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-autoupdate ${PREFIX}/libexec/MailScanner
- Update to 4.50.15 - OPTIONSify - Use USE_RC_SUBR Change Log: - Speed increased significantly! Caches SpamAssassin results. Note you need to run my install.sh script to get the new modules required. - If "Virus Scanners = auto" (ie. the installed default value) then it searches for and uses every available installed virus scanner. - Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the distributions. 99% written by Steve Freegard of MailWatch fame. - Upgraded ClamAV+SA bundle to ClamAV 0.88. - Added default headers that Thunderbird 1.5 will use to automatically identify spam based on SpamAssassin's spam headers. - Added UU-decoder to automatically extract files from attachments that were stored in uu-encoded form. This behaves similarly to the zip and rar decoders. The virus scanners should check inside these files for themselves anyway, but this assists them when they do not. It also allows for filename and filetype checking of files stored in uu-encoded attachments. - Added configuration option "Find UU-Encoded Files" to set whether uu-encoded files are decoded or not. These files are very rarely used, and the overhead of finding them is fairly large as it involves reading all existing attachments looking for the signature of them. So the default is to not look for them. A ruleset can be used to protect particularly vulnerable recipients or senders. - You can now start up MailScanner without changing MailScanner.conf at all. It will auto-detect SpamAssassin and all available virus scanners. - Changed default setting to "Use SpamAssassin = yes" and now auto- detect installation of SpamAssassin, logging installation instructions if it is not already installed and working. - Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts when you upgrade or install this version. - Added American spelling of "analyze_SpamAssassin_cache" as well as English spelling of "analyse_SpamAssassin_cache". - DBI installation is forced in RPM distributions. - Improved RPM installer to handle DBI module dependencies better. It now installs cleanly on the systems I have tested it on. These include Fedora Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4. - Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not all installed properly. - Improved comments about "Allow Filenames" and "Allow Filetypes" in MailScanner.conf. - Improvement to F-Prot output parser to handle new strings. - Changed filename/type traps to account for new vulnerability in TNEF files. - Adapted trend-autoupdate for 2006 onwards. - --help implemented so you can see how to use it now. - --debug now written. Works just like "Debug = yes" in MailScanner.conf. - --debug-sa now written. Works just like "Debug SpamAssassin = yes". - --check ruleset-checker now written. Takes max 1 from address, multiple to addresses, client IP address and virus name. - Added a new command-line parameter "--lint" to verify the config file. - --lint now prints what virus scanners you have chosen to use, and what - --lint now checks SpamAssassin configuration too. scanners it can find installed. - Added hi-res timing so the batch speed timings are now displayed to micro-second accuracy. - Added Time::HiRes to the list of required modules. You must use ./ install.sh to upgrade to, or install, this version in order to get the new module. Time taken to process the entire batch is logged, and time taken to do "Always Looked Up Last" is logged separately if it is being used at all. - Added check that MailScanner.conf has at least been customised to set the organisation name, long name and web site. - Added "SpamAssassin Cache Timings" configuration option for the few people who need to adjust these settings. Do *not* change it unless you really know what you are doing, the default settings will work nicely. - Updated important perl modules. - Removed duplicate logging of warnings about infected messages. - Added detection of no virus scanners being installed, giving the user advice about how to install ClamAV using my easy-installation package. - Improved ClamAV+SA easy-installation package so that it automatically enables the updates by commenting out the "Example" lines. - Changed default Lock Type for sendmail to "posix" instead of "flock" as new Linux systems (the most popular platform by far) run sendmail 8.13 or later, which requires this to be "posix". - Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package. - Disabled movie format "deny" rules in filetype.rules.conf and have enabled filetype checking by default. - Updated man pages. - Updated AVG parser to handle latest version 7.1. - Added "Always Looked Up Last After Batch" which is looked up after the "Always Looked Up Last" option. The 2nd of those is looked up once for each message, the "...After Batch" value is looked up once for the entire batch. It is only intended for use with a Custom Function, its value is ignored. * Fixes * - Improved reliability of Bayes rebuilds a lot. - Force installation of DBI as previous versions cause problems. - Removed broken patch I was given, which was temporarily in 4.50. - Packaging bug in 4.50.9-1 fixed. MailTools version typo. - Fixed bug where temporary files were not cleaned up properly. - Fixed missing HTML-Parser 3.48 package. PR: ports/93026 Submitted by: maintainer
2006-02-15 10:47:00 +00:00
renew-reports: configure
# Renew reports
cd ${WRKSRC}/etc/reports/en && ${FIND} * -type f ! -name "*.orig" \
-exec ${INSTALL_DATA} {} ${DATADIR}/reports/en/{} \;
initial-config: renew-wrapper renew-autoupdate renew-reports
cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETC_FILES} \
${PREFIX}/etc/MailScanner
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
@${ECHO} "******************************************************************************"
@${ECHO} "The provided default configuration requires several directories to be created:"
@${ECHO} "/var/spool/MailScanner/incoming"
@${ECHO} "/var/spool/MailScanner/quarantine"
@${ECHO} "/var/spool/mqueue"
@${ECHO} "Either create those directories or change the configuration."
@${ECHO} "******************************************************************************"
.include <bsd.port.post.mk>