LINUX.ORG.RU

Обновление SpamAssassin


0

0

Доброго времени суток.
На системе RedHat EL 4 установлен следующий пакет spamassassin:
rpm -qa| grep spam
spamassassin-3.0.6-1.el4
разумеется что обновлять spamassassin тоже нужно из rpm пакета.
т.е. качаем с
http://spamassassin.apache.org/downloads.cgi?update=200707251349 свежую
версию
# wget
http://www.sai.msu.su/apache/spamassassin/source/Mail-SpamAssassin-3.2.2.tar.gz
затем делаем rpm пакет, так как написано в документации на том же сайте
# rpmbuild -tb Mail-SpamAssassin-3.2.2.tar.gz
Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.52451
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf Mail-SpamAssassin-3.2.2
+ /usr/bin/gzip -dc /root/Mail-SpamAssassin-3.2.2.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Mail-SpamAssassin-3.2.2
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Выполняется(%build): /bin/sh -e /var/tmp/rpm-tmp.52451
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd Mail-SpamAssassin-3.2.2
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4'
+ export CFLAGS
+ /usr/bin/perl Makefile.PL PREFIX=/usr SYSCONFDIR=/etc
DESTDIR=/var/tmp/spamassassin-root
What email address or URL should be used in the suspected-spam report
text for users who want more information on your filter installation?
(In particular, ISPs should change this to a local Postmaster contact)
default text: [the administrator of that system] the administrator of that
system

NOTE: settings for "make test" are now controlled using "t/config.dist".
See that file if you wish to customise what tests are run, and how.

checking module dependencies and their versions...

***************************************************************************
ERROR: the required HTML::Parser (version 3.43) module is installed,
but is not an up-to-date version. at
lib/Mail/SpamAssassin/Util/DependencyInfo.pm line 293.


HTML is used for an ever-increasing amount of email so this dependency
is unavoidable. Run "perldoc -q html" for additional information.


***************************************************************************
NOTE: the optional Mail::SPF module is not installed.

Used to check DNS Sender Policy Framework (SPF) records to fight email
address forgery and make it easier to identify spams. (This is preferred
over Mail::SPF::Query.)


***************************************************************************
NOTE: the optional Mail::SPF::Query module is not installed.

Used to check DNS Sender Policy Framework (SPF) records to fight email
address forgery and make it easier to identify spams. (Mail::SPF is
preferred instead of this module.)


***************************************************************************
NOTE: the optional IP::Country module is not installed.

Used by the RelayCountry plugin (not enabled by default) to determine
the domain country codes of each relay in the path of an email.


***************************************************************************
NOTE: the optional Razor2 (version 2.61) module is not installed.

Used to check message signatures against Vipul's Razor collaborative
filtering network. Razor has a large number of dependencies on CPAN
modules. Feel free to skip installing it, if this makes you nervous;
SpamAssassin will still work well without it.

More info on installing and using Razor can be found
at http://wiki.apache.org/spamassassin/InstallingRazor .


***************************************************************************
NOTE: the optional Net::Ident module is not installed.

If you plan to use the --auth-ident option to spamd, you will need
to install this module.


***************************************************************************
NOTE: the optional IO::Socket::INET6 module is not installed.

This is required if the first nameserver listed in your IP
configuration or /etc/resolv.conf file is available only via
an IPv6 address.


***************************************************************************
NOTE: the optional IO::Socket::SSL module is not installed.

If you wish to use SSL encryption to communicate between spamc and
spamd (the --ssl option to spamd), you need to install this
module. (You will need the OpenSSL libraries and use the
ENABLE_SSL="yes" argument to Makefile.PL to build and run an SSL
compatibile spamc.)


***************************************************************************
NOTE: the optional Compress::Zlib module is not installed.

If you wish to use the optional zlib compression for communication
between spamc and spamd (the -z option to spamc), you need to install
this module.


***************************************************************************
NOTE: the optional Mail::DomainKeys module is not installed.

If this module is installed, and you enable the DomainKeys plugin,
SpamAssassin will perform Domain Key lookups when Domain Key
information is present in the message headers. (Note that new versions
of Mail::DKIM render this module superfluous.)


***************************************************************************
NOTE: the optional Mail::DKIM module is not installed.

If this module is installed, and you enable the DKIM plugin,
SpamAssassin will perform DKIM lookups when a DKIM-Signature
header is present in the message headers. (New versions of this module
support both Domain Keys and DKIM, rendering Mail::DomainKeys obsolete.)


***************************************************************************
NOTE: the optional Archive::Tar (version 1.23) module is not installed.

The "sa-update" script requires this module to access tar update
archive files.


***************************************************************************
NOTE: the optional IO::Zlib (version 1.04) module is not installed.

The "sa-update" script requires this module to access compressed
update archive files.


***************************************************************************
NOTE: the optional Encode::Detect module is not installed.

If you plan to use the normalize_charset config setting to detect
charsets and convert them into Unicode, you will need to install
this module.

REQUIRED module out of date: HTML::Parser
optional module missing: Mail::SPF
optional module missing: Mail::SPF::Query
optional module missing: IP::Country
optional module missing: Razor2
optional module missing: Net::Ident
optional module missing: IO::Socket::INET6
optional module missing: IO::Socket::SSL
optional module missing: Compress::Zlib
optional module missing: Mail::DomainKeys
optional module missing: Mail::DKIM
optional module missing: Archive::Tar
optional module missing: IO::Zlib
optional module missing: Encode::Detect

warning: some functionality may not be available,
please read the above report before continuing!

ошибка: Неверный код возврата из /var/tmp/rpm-tmp.52451 (%build)


Ошибки сборки пакетов:
Неверный код возврата из /var/tmp/rpm-tmp.52451 (%build)

Т.е. не хватает видимо перечисленных модулей, где их найти и как установить? И нужно ли что либо еще для того чтобы собрать пакет для SpamAssassin и обновить существующую версию до свежей с помощью
# rpm -Uhv ...

Используй CPAN для установки перловых модулей.

MiracleMan ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.