2013-01-29 19:38:30 +00:00
|
|
|
# Created by: Jan-Peter Koopmann <j.koopmann@seceidos.de>
|
2003-06-18 03:11:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-12-16 21:14:13 +00:00
|
|
|
PORTNAME= MailScanner
|
2014-02-28 20:04:59 +00:00
|
|
|
PORTVERSION= 4.84.6
|
|
|
|
#PORTREVISION= 0
|
2003-06-18 03:11:13 +00:00
|
|
|
CATEGORIES= mail
|
2006-06-06 10:10:38 +00:00
|
|
|
MASTER_SITES= http://www.mailscanner.info/files/4/tar/
|
2004-06-04 00:08:06 +00:00
|
|
|
DISTNAME= ${PORTNAME}-install-${PORTVERSION}-${PATCHLEVEL}
|
2003-06-18 03:11:13 +00:00
|
|
|
|
2012-03-14 18:38:56 +00:00
|
|
|
MAINTAINER= kkobb@skylinecorp.com
|
2004-01-31 23:43:16 +00:00
|
|
|
COMMENT= Powerful virus/spam scanning framework for mail gateways
|
2003-11-20 22:10:36 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= \
|
2012-06-30 13:10:09 +00:00
|
|
|
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
|
|
|
|
2011-05-08 20:54:08 +00:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS} \
|
2006-02-16 16:34:56 +00:00
|
|
|
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
|
|
|
|
2004-10-15 15:44:31 +00:00
|
|
|
CONFLICTS= MailScanner-devel-[0-9]*
|
2003-11-20 22:10:36 +00:00
|
|
|
|
2014-02-28 20:04:59 +00:00
|
|
|
PATCHLEVEL= 1
|
2004-04-02 06:01:03 +00:00
|
|
|
|
2014-02-28 20:04:59 +00:00
|
|
|
USES= perl5 shebangfix
|
|
|
|
SHEBANG_FILES= bin/[^c]* bin/clean* \
|
|
|
|
lib/[^M]* lib/${PORTNAME}/[^C]* lib/${PORTNAME}/*.p[ml] \
|
|
|
|
lib/${PORTNAME}.pm lib/${PORTNAME}/CustomFunctions/*
|
2003-11-20 22:10:36 +00:00
|
|
|
|
2004-06-04 00:08:06 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-install-${PORTVERSION}
|
2012-03-21 21:08:02 +00:00
|
|
|
SUB_FILES= MailScanner.8 pkg-message pkg-install pkg-deinstall
|
2011-06-18 16:35:08 +00:00
|
|
|
SUB_LIST= DATADIR=${DATADIR} \
|
|
|
|
PERL=${PERL} \
|
|
|
|
PKGVERSION=${PKGVERSION} \
|
2012-03-21 21:08:02 +00:00
|
|
|
PORTVERSION=${PORTVERSION} \
|
2011-06-18 16:35:08 +00:00
|
|
|
ETC_FILES="${ETC_FILES}" \
|
|
|
|
MCP_FILES="${MCP_FILES}"
|
2003-06-18 03:11:13 +00:00
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
OPTIONS_DEFINE= SPAMASSASSIN CLAMAV CLAMAVMODULE BDC
|
|
|
|
SPAMASSASSIN_DESC= Install SpamAssassin
|
|
|
|
CLAMAV_DESC= Install ClamAV
|
|
|
|
CLAMAVMODULE_DESC= Install ClamAV Module
|
|
|
|
BDC_DESC= Install BitDefender
|
2003-06-18 03:11:13 +00:00
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
OPTIONS_DEFAULT= SPAMASSASSIN CLAMAV
|
2010-09-21 07:56:43 +00:00
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSPAMASSASSIN}
|
2014-03-11 21:49:40 +00:00
|
|
|
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
|
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
.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
|
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MCLAMAVMODULE}
|
2012-06-30 13:10:09 +00:00
|
|
|
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
|
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
.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
|
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
.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
|
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
# 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
|
|
|
|
|
2011-06-18 16:35:08 +00:00
|
|
|
DOC_FILES= INSTALL.FreeBSD README
|
2003-11-20 22:10:36 +00:00
|
|
|
ETC_FILES= MailScanner.conf filename.rules.conf \
|
2009-09-16 15:00:32 +00:00
|
|
|
archives.filename.rules.conf archives.filetype.rules.conf \
|
2003-11-20 22:10:36 +00:00
|
|
|
filetype.rules.conf spam.assassin.prefs.conf \
|
2005-02-16 16:11:37 +00:00
|
|
|
spam.lists.conf virus.scanners.conf \
|
2006-04-13 16:42:25 +00:00
|
|
|
phishing.safe.sites.conf \
|
2008-03-27 08:11:54 +00:00
|
|
|
phishing.bad.sites.conf \
|
2006-04-13 16:42:25 +00:00
|
|
|
country.domains.conf
|
2004-10-15 15:44:31 +00:00
|
|
|
MCP_FILES= mcp.spam.assassin.prefs.conf \
|
2009-04-30 13:34:40 +00:00
|
|
|
10_example.cf v320.pre
|
2004-01-31 23:43:16 +00:00
|
|
|
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
|
2003-11-20 22:10:36 +00:00
|
|
|
|
2007-02-10 12:56:37 +00:00
|
|
|
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
|
|
|
|
2004-06-04 00:08:06 +00:00
|
|
|
post-extract:
|
2011-05-08 20:54:08 +00:00
|
|
|
@cd ${WRKSRC} \
|
|
|
|
&& ${TAR} xzf \
|
|
|
|
perl-tar/MailScanner-${PORTVERSION}-${PATCHLEVEL}.tar.gz \
|
|
|
|
&& ${MV} MailScanner-${PORTVERSION}-${PATCHLEVEL}/* .
|
2004-06-04 00:08:06 +00:00
|
|
|
|
2012-04-18 07:30:16 +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
|
|
|
|
|
2003-11-20 22:10:36 +00:00
|
|
|
do-build:
|
2011-05-08 20:54:08 +00:00
|
|
|
@${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' \
|
2012-04-18 07:30:16 +00:00
|
|
|
-e 's,/usr/bin/unzip,${UNZIP_CMD},g' \
|
2011-05-08 20:54:08 +00:00
|
|
|
-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 \
|
2004-01-09 17:45:42 +00:00
|
|
|
${WRKSRC}/lib/sophos-autoupdate
|
2011-05-08 20:54:08 +00:00
|
|
|
|
|
|
|
@${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
|
|
|
|
|
2004-01-31 23:43:16 +00:00
|
|
|
.for FILE in ${USRLOCAL_FILES_LIB}
|
2011-05-08 20:54:08 +00:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
|
2004-01-31 23:43:16 +00:00
|
|
|
${WRKSRC}/lib/${FILE}
|
|
|
|
.endfor
|
2011-05-08 20:54:08 +00:00
|
|
|
@${FIND} ${WRKSRC} \( -name "*.bak" -or -name "*.orig" \) -delete
|
2003-06-18 03:11:13 +00:00
|
|
|
|
|
|
|
do-install:
|
2011-06-18 16:35:08 +00:00
|
|
|
@${ECHO_MSG} -n ">> Installing files in ${PREFIX}/sbin..."
|
2014-02-28 20:04:59 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${STAGEDIR}${PREFIX}/sbin/mailscanner
|
|
|
|
${LN} -sf ${PREFIX}/sbin/mailscanner ${STAGEDIR}${PREFIX}/sbin/MailScanner
|
2011-06-18 16:35:08 +00:00
|
|
|
@${ECHO_MSG} " [DONE]"
|
|
|
|
@${ECHO_MSG} -n \
|
|
|
|
">> Installing files in ${PREFIX}/libexec/MailScanner..."
|
2014-02-28 20:04:59 +00:00
|
|
|
${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 \;
|
2011-06-18 16:35:08 +00:00
|
|
|
.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
|
2014-02-28 20:04:59 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${FILE} \
|
|
|
|
${STAGEDIR}${PREFIX}/libexec/MailScanner/
|
2011-06-18 16:35:08 +00:00
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} " [DONE]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing files in ${PREFIX}/etc/MailScanner..."
|
2014-02-28 20:04:59 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner
|
2003-11-20 22:10:36 +00:00
|
|
|
.for FILE in ${ETC_FILES}
|
2014-02-28 20:04:59 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/MailScanner/${FILE}.sample
|
2003-06-18 03:11:13 +00:00
|
|
|
.endfor
|
2014-02-28 20:04:59 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner/rules
|
|
|
|
cd ${WRKSRC}/etc/rules \
|
2011-06-18 16:35:08 +00:00
|
|
|
&& ${INSTALL_DATA} EXAMPLES README \
|
2014-02-28 20:04:59 +00:00
|
|
|
${STAGEDIR}${PREFIX}/etc/MailScanner/rules
|
2011-06-18 16:35:08 +00:00
|
|
|
.for RULES in spam.whitelist.rules bounce.rules max.message.size.rules
|
2014-02-28 20:04:59 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/rules/${RULES} \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/MailScanner/rules/${RULES}.sample
|
2011-06-18 16:35:08 +00:00
|
|
|
.endfor
|
2014-02-28 20:04:59 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner/mcp
|
2004-10-15 15:44:31 +00:00
|
|
|
.for FILE in ${MCP_FILES}
|
2014-02-28 20:04:59 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/mcp/${FILE} \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/MailScanner/mcp/${FILE}.sample
|
2004-10-15 15:44:31 +00:00
|
|
|
.endfor
|
2014-02-28 20:04:59 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/MailScanner/conf.d
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/conf.d/README \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/MailScanner/conf.d/README
|
2011-06-18 16:35:08 +00:00
|
|
|
@${ECHO_MSG} " [DONE]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing files in ${DATADIR}..."
|
2014-02-28 20:04:59 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
cd ${WRKSRC}/etc && ${FIND} reports -type d ! -name "*.old" -exec \
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
|
|
|
|
cd ${WRKSRC}/etc \
|
2011-06-18 16:35:08 +00:00
|
|
|
&& ${FIND} reports \( -type d -name "*.old" -prune \) \
|
|
|
|
-o \( -type f ! \( -name "*.orig" -o -name "*.bak" \) \
|
2014-02-28 20:04:59 +00:00
|
|
|
-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
|
2011-06-18 16:35:08 +00:00
|
|
|
@${ECHO_MSG} " [DONE]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing files in ${PREFIX}/lib..."
|
2014-02-28 20:04:59 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/MailScanner/MailScanner/CustomFunctions
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
|
|
|
|
${STAGEDIR}${PREFIX}/lib/MailScanner/MailScanner.pm
|
|
|
|
cd ${WRKSRC}/lib/MailScanner \
|
2011-06-18 16:35:08 +00:00
|
|
|
&& ${FIND} * -type f ! -name "*.orig" -exec \
|
2014-02-28 20:04:59 +00:00
|
|
|
${INSTALL_SCRIPT} {} ${STAGEDIR}${PREFIX}/lib/MailScanner/MailScanner/{} \;
|
2011-06-18 16:35:08 +00:00
|
|
|
@${ECHO_MSG} " [DONE]"
|
2013-01-29 19:38:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2011-06-18 16:35:08 +00:00
|
|
|
@${ECHO_MSG} -n ">> Installing docs and manpage..."
|
2014-02-28 20:04:59 +00:00
|
|
|
${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}
|
2011-06-18 16:35:08 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
|
|
|
|
-e 's,%%PREFIX%%,${PREFIX},' \
|
2014-02-28 20:04:59 +00:00
|
|
|
${STAGEDIR}${DOCSDIR}/Sophos.install.freebsd
|
|
|
|
@${RM} -f ${STAGEDIR}${DOCSDIR}/Sophos.install.freebsd.bak
|
2011-06-18 16:35:08 +00:00
|
|
|
.else
|
|
|
|
@${ECHO_MSG} -n ">> Installing manpage..."
|
2005-01-26 17:32:05 +00:00
|
|
|
.endif
|
2014-02-28 20:04:59 +00:00
|
|
|
cd ${WRKDIR} && \
|
|
|
|
${INSTALL_MAN} ${PORTNAME}.8 ${STAGEDIR}${PREFIX}/man/man8
|
|
|
|
${LN} -sf ${PREFIX}/man/man8/${PORTNAME}.8 \
|
2014-05-05 09:45:36 +00:00
|
|
|
${STAGEDIR}${PREFIX}/man/man8/${PORTNAME:tl}.8
|
2011-06-18 16:35:08 +00:00
|
|
|
@${ECHO_MSG} " [DONE]"
|
2003-11-20 22:10:36 +00:00
|
|
|
|
2013-01-29 19:38:30 +00:00
|
|
|
.include <bsd.port.mk>
|