1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/mail/mailscanner/Makefile

290 lines
11 KiB
Makefile
Raw Normal View History

# Created by: Jan-Peter Koopmann <j.koopmann@seceidos.de>
# $FreeBSD$
PORTNAME= MailScanner
PORTVERSION= 4.84.6
#PORTREVISION= 0
CATEGORIES= mail
MASTER_SITES= http://www.mailscanner.info/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= kkobb@skylinecorp.com
COMMENT= Powerful virus/spam scanning framework for mail gateways
BUILD_DEPENDS= \
p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools \
p5-HTML-Tagset>=0:${PORTSDIR}/www/p5-HTML-Tagset \
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools \
p5-Convert-TNEF>=0:${PORTSDIR}/converters/p5-Convert-TNEF \
p5-Convert-BinHex>=0:${PORTSDIR}/converters/p5-Convert-BinHex \
p5-Net-CIDR>=0:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
p5-Net-Ident>=0:${PORTSDIR}/net/p5-Net-Ident \
p5-Archive-Zip>=0:${PORTSDIR}/archivers/p5-Archive-Zip \
p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite \
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \
p5-Filesys-Df>=0:${PORTSDIR}/sysutils/p5-Filesys-Df \
p5-Sys-Hostname-Long>=0:${PORTSDIR}/sysutils/p5-Sys-Hostname-Long \
p5-OLE-Storage_Lite>=0:${PORTSDIR}/devel/p5-OLE-Storage_Lite \
p5-Sys-SigAction>=0:${PORTSDIR}/devel/p5-Sys-SigAction
- 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
CONFLICTS= MailScanner-devel-[0-9]*
PATCHLEVEL= 1
USES= perl5 shebangfix
SHEBANG_FILES= bin/[^c]* bin/clean* \
lib/[^M]* lib/${PORTNAME}/[^C]* lib/${PORTNAME}/*.p[ml] \
lib/${PORTNAME}.pm lib/${PORTNAME}/CustomFunctions/*
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= MailScanner.8 pkg-message pkg-install pkg-deinstall
SUB_LIST= DATADIR=${DATADIR} \
PERL=${PERL} \
PKGVERSION=${PKGVERSION} \
PORTVERSION=${PORTVERSION} \
ETC_FILES="${ETC_FILES}" \
MCP_FILES="${MCP_FILES}"
OPTIONS_DEFINE= SPAMASSASSIN CLAMAV CLAMAVMODULE BDC
SPAMASSASSIN_DESC= Install SpamAssassin
CLAMAV_DESC= Install ClamAV
CLAMAVMODULE_DESC= Install ClamAV Module
BDC_DESC= Install BitDefender
OPTIONS_DEFAULT= SPAMASSASSIN CLAMAV
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSPAMASSASSIN}
RUN_DEPENDS+= spamassassin:${PORTSDIR}/mail/spamassassin
- 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
PLIST_SUB+= SPAMASSASSIN=""
.else
PLIST_SUB+= SPAMASSASSIN="@comment "
.endif
.if ${PORT_OPTIONS:MCLAMAV}
- 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+= clamscan:${PORTSDIR}/security/clamav
.endif
.if ${PORT_OPTIONS:MCLAMAVMODULE}
RUN_DEPENDS+= p5-Mail-ClamAV>=0:${PORTSDIR}/mail/p5-Mail-ClamAV
- 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
.endif
.if ${PORT_OPTIONS:MCLAMAV} || ${PORT_OPTIONS:MCLAMAVMODULE}
- 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+= 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 ${PORT_OPTIONS:MBDC}
- 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+= bdc:${PORTSDIR}/security/bdc
.endif
# backwards compatibility
.if defined(NO_SPAMASSASSIN_SYMLINK)
WITHOUT_SPAMASSASSIN_SYMLINK=${NO_SPAMASSASSIN_SYMLINK}
.endif
.if defined(WITHOUT_SPAMASSASSIN_SYMLINK) || ! ${PORT_OPTIONS:MSPAMASSASSIN}
PLIST_SUB+= SPAMASSASSIN_SYMLINK="@comment "
SUB_LIST+= WITHOUT_SPAMASSASSIN_SYMLINK=yes
.else
PLIST_SUB+= SPAMASSASSIN_SYMLINK=""
SUB_LIST+= WITHOUT_SPAMASSASSIN_SYMLINK=no
.endif
DOC_FILES= INSTALL.FreeBSD README
ETC_FILES= MailScanner.conf filename.rules.conf \
archives.filename.rules.conf archives.filetype.rules.conf \
filetype.rules.conf spam.assassin.prefs.conf \
spam.lists.conf virus.scanners.conf \
phishing.safe.sites.conf \
phishing.bad.sites.conf \
country.domains.conf
MCP_FILES= mcp.spam.assassin.prefs.conf \
10_example.cf v320.pre
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
USE_RC_SUBR= mailscanner mta
- 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
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} xzf \
perl-tar/MailScanner-${PORTVERSION}-${PATCHLEVEL}.tar.gz \
&& ${MV} MailScanner-${PORTVERSION}-${PATCHLEVEL}/* .
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-patch:
${REINPLACE_CMD} -e 's,\$$(mktemp),$$(mktemp -t tmp),' \
${WRKSRC}/lib/clamav-wrapper \
${WRKSRC}/lib/trend-autoupdate \
${WRKSRC}/lib/bitdefender-wrapper \
${WRKSRC}/lib/kaspersky-wrapper \
${WRKSRC}/bin/Sophos.install
do-build:
@${REINPLACE_CMD} \
-e 's,/bin/bash,${LOCALBASE}/bin/bash,g' \
-e 's,/bin/sed,/usr/bin/sed,g' \
-e 's,/etc/MailScanner/MailScanner.conf,${PREFIX}/etc/MailScanner/MailScanner.conf,g' \
-e 's,/etc/init.d/MailScanner,${LOCALBASE}/etc/rc.d/mailscanner,g' \
-e 's,/etc/mail/,${LOCALBASE}/etc/mail/,g' \
-e 's,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g' \
-e 's,/opt/MailScanner/etc/reports,${DATADIR}/reports,g' \
-e 's,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g' \
-e 's,/opt/MailScanner/lib,${PREFIX}/lib/MailScanner,g' \
-e 's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g' \
-e 's,/usr/bin/clamscan,${LOCALBASE}/bin/clamscan,g' \
-e 's,/usr/bin/sa-compile,${LOCALBASE}/bin/sa-compile,g' \
-e 's,/usr/bin/sa-update,${LOCALBASE}/bin/sa-update,g' \
-e 's,/usr/bin/unzip,${UNZIP_CMD},g' \
-e 's,/usr/bin/wget,${LOCALBASE}/bin/wget,g' \
-e 's,/usr/lib/sendmail,/usr/sbin/sendmail,g' \
${WRKSRC}/bin/MailScanner \
${WRKSRC}/bin/mailscanner_create_locks \
${WRKSRC}/bin/processing_messages_alert \
${WRKSRC}/bin/update_virus_scanners \
${WRKSRC}/bin/cron/update_virus_scanners.cron \
${WRKSRC}/bin/update_bad_phishing_emails \
${WRKSRC}/bin/update_phishing_sites \
${WRKSRC}/bin/update_bad_phishing_sites \
${WRKSRC}/bin/cron/update_phishing_sites.cron \
${WRKSRC}/bin/cron/update_bad_phishing_sites.cron \
${WRKSRC}/bin/cron/update_spamassassin.cron \
${WRKSRC}/bin/update_spamassassin \
${WRKSRC}/bin/clean.SA.cache \
${WRKSRC}/lib/MailScanner/ConfigDefs.pl \
${WRKSRC}/lib/MailScanner/SystemDefs.pm \
${WRKSRC}/lib/clamav-wrapper \
${WRKSRC}/lib/sophos-autoupdate
@${REINPLACE_CMD} \
-e 's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g' \
-e 's,/usr/lib/sendmail,/usr/sbin/sendmail,g' \
-e 's,/opt/MailScanner/bin,${PREFIX}/bin,g' \
-e 's,/opt/MailScanner/etc/reports,${DATADIR}/reports,g' \
-e 's,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g' \
-e 's,/opt/MailScanner/lib,${PREFIX}/lib/MailScanner,g' \
-e 's,/usr/bin/unrar,${LOCALBASE}/bin/unrar,g' \
-e 's,/bin/gunzip,/usr/bin/gunzip,g' \
-e 's,/etc/mail/spamassassin,${LOCALBASE}/etc/mail/spamassassin,g' \
-e 's,/tmp/clamd.socket,/var/run/clamav/clamd.sock,g' \
-e 's,/usr/local/share/clamav,/var/db/clamav,g' \
${WRKSRC}/etc/MailScanner.conf
@${REINPLACE_CMD} \
-e 's,/opt/MailScanner/lib,${PREFIX}/libexec/MailScanner,g' \
-e 's,/bin/false,/usr/bin/false,' \
${WRKSRC}/etc/virus.scanners.conf
.for FILE in ${USRLOCAL_FILES_LIB}
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/lib/${FILE}
.endfor
@${FIND} ${WRKSRC} \( -name "*.bak" -or -name "*.orig" \) -delete
do-install:
@${ECHO_MSG} -n ">> Installing files in ${PREFIX}/sbin..."
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${STAGEDIR}${PREFIX}/sbin/mailscanner
${LN} -sf ${PREFIX}/sbin/mailscanner ${STAGEDIR}${PREFIX}/sbin/MailScanner
@${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n \
">> Installing files in ${PREFIX}/libexec/MailScanner..."
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/MailScanner
cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec \
${INSTALL_SCRIPT} {} ${STAGEDIR}${PREFIX}/libexec/MailScanner/{}.sample \;
cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
${INSTALL_SCRIPT} {} ${STAGEDIR}${PREFIX}/libexec/MailScanner/{}.sample \;
.for FILE in analyse_SpamAssassin_cache clean.SA.cache clean.quarantine \
mailscanner_create_locks processing_messages_alert Quick.Peek \
update_bad_phishing_emails update_phishing_sites \
update_bad_phishing_sites cron/update_phishing_sites.cron \
cron/update_bad_phishing_sites.cron update_virus_scanners \
cron/update_virus_scanners.cron update_spamassassin \
cron/update_spamassassin.cron
${INSTALL_SCRIPT} ${WRKSRC}/bin/${FILE} \
${STAGEDIR}${PREFIX}/libexec/MailScanner/
.endfor
@${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n ">> Installing files in ${PREFIX}/etc/MailScanner..."
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner
.for FILE in ${ETC_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
${STAGEDIR}${PREFIX}/etc/MailScanner/${FILE}.sample
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner/rules
cd ${WRKSRC}/etc/rules \
&& ${INSTALL_DATA} EXAMPLES README \
${STAGEDIR}${PREFIX}/etc/MailScanner/rules
.for RULES in spam.whitelist.rules bounce.rules max.message.size.rules
${INSTALL_DATA} ${WRKSRC}/etc/rules/${RULES} \
${STAGEDIR}${PREFIX}/etc/MailScanner/rules/${RULES}.sample
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner/mcp
.for FILE in ${MCP_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/mcp/${FILE} \
${STAGEDIR}${PREFIX}/etc/MailScanner/mcp/${FILE}.sample
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner/conf.d
${INSTALL_DATA} ${WRKSRC}/etc/conf.d/README \
${STAGEDIR}${PREFIX}/etc/MailScanner/conf.d/README
@${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n ">> Installing files in ${DATADIR}..."
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC}/etc && ${FIND} reports -type d ! -name "*.old" -exec \
${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
cd ${WRKSRC}/etc \
&& ${FIND} reports \( -type d -name "*.old" -prune \) \
-o \( -type f ! \( -name "*.orig" -o -name "*.bak" \) \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{}.sample \; \)
${INSTALL_SCRIPT} ${WRKSRC}/bin/upgrade_MailScanner_conf \
${STAGEDIR}${DATADIR}
${LN} -sf ${DATADIR}/upgrade_MailScanner_conf \
${STAGEDIR}${DATADIR}/upgrade_languages_conf
@${ECHO_MSG} " [DONE]"
@${ECHO_MSG} -n ">> Installing files in ${PREFIX}/lib..."
${MKDIR} ${STAGEDIR}${PREFIX}/lib/MailScanner/MailScanner/CustomFunctions
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
${STAGEDIR}${PREFIX}/lib/MailScanner/MailScanner.pm
cd ${WRKSRC}/lib/MailScanner \
&& ${FIND} * -type f ! -name "*.orig" -exec \
${INSTALL_SCRIPT} {} ${STAGEDIR}${PREFIX}/lib/MailScanner/MailScanner/{} \;
@${ECHO_MSG} " [DONE]"
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing docs and manpage..."
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${STAGEDIR}${DOCSDIR}
${INSTALL_SCRIPT} ${FILESDIR}/Sophos.install.freebsd ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${STAGEDIR}${DOCSDIR}
@${REINPLACE_CMD} \
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
-e 's,%%PREFIX%%,${PREFIX},' \
${STAGEDIR}${DOCSDIR}/Sophos.install.freebsd
@${RM} -f ${STAGEDIR}${DOCSDIR}/Sophos.install.freebsd.bak
.else
@${ECHO_MSG} -n ">> Installing manpage..."
.endif
cd ${WRKDIR} && \
${INSTALL_MAN} ${PORTNAME}.8 ${STAGEDIR}${PREFIX}/man/man8
${LN} -sf ${PREFIX}/man/man8/${PORTNAME}.8 \
${STAGEDIR}${PREFIX}/man/man8/${PORTNAME:tl}.8
@${ECHO_MSG} " [DONE]"
.include <bsd.port.mk>