Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 build-essential
curl
cpanminus
git
pyzor
razor
subversion
libdb-dev
libdbi-dev
libidn11-dev
libidn2-dev
libmaxminddb-dev
libssl-dev
zlib1g-dev
poppler-utils
tesseract-ocr

libarchive-zip-perl
libberkeleydb-perl
libbsd-resource-perl
libdbi-perl
libdigest-sha-perl
libencode-detect-perl
libgeo-ip-perl
libgeoip2-perl
libio-compress-perl
libio-socket-inet6-perl
libio-socket-ssl-perl
libio-string-perl
libmail-dkim-perl
libmail-spf-perl
libnet-patricia-perl
libnet-dns-perl
libnetaddr-ip-perl
libfile-sharedir-install-perl
libtest-exception-perl
libregexp-common-perl
libxml-libxml-perl
libsocket6-perl
libsys-hostname-long-perl
libtest-pod-coverage-perl
libtest-pod-perl
libdbd-sqlite2-perl
libdbd-sqlite3-perl
libdevel-cycle-perl
libemail-address-xs-perl
libgeography-countries-perl
libtest-perl-critic-perl
libconfig-tiny-perl
libdbix-simple-perl
libemail-mime-perl
libemail-sender-perl
libemail-simple-perl
libnet-idn-encode-perl
libtest-file-sharedir-perl
libtest-output-perl
libnet-imap-simple-perl
libnet-smtps-perl
libtext-diff-perl

Install the following packages from CPAN which do not have equivalent apt packages on Ubuntu already.
The -S option causes the installation step to be run as root using sudo.


cpanm -S Digest::SHA1 IP::Country::DB_File IP::Country Mail::DMARC::PurePerl Net::LibIDN2 \
Perl::Critic::Policy::Bangs::ProhibitBitwiseOperators Perl::Critic::Policy::Perlsecret \
Perl::Critic::Policy::Compatibility::ProhibitThreeArgumentOpen \
Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire \
Perl::Critic::Policy::ValuesAndExpressions::PreventSQLInjection \
Perl::Critic::Policy::ControlStructures::ProhibitReturnInDoBlock

Install dcc from source: Get the source from the link at https://www.dcc-servers.net/dcc/ and 

...

Initialize the razor installation by running once (not as root) after razor is installed
  razor-admin -create-create  
  razor-admin --register

Now that everything is installed, verify that you have a working build and test environment by downloading
the trunk svn working directory, build it, and run tests.

...

The following commands in a terminal shell will download and install plenv into your home directory, install perl 5.16.3,
cpanm,
and all the CPAN modules required for SpamAssassin building and testing.
After running this, log out of Ubuntu and log back in again to get the new environment with the perl 5.16.3,
cd to the working directory
and rebuild SpamAssassin starting with the perl Makefile.PL command.

...

git clone https://github.com/tokuhirom/plenv.git ~/.plenv
git clone https://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/
echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(plenv init -)"' >> ~/.profile
export PATH="$HOME/.plenv/bin:$PATH"
eval "$(plenv init -)"
plenv install 5.16.3
plenv rehash
plenv global 5.16.3
perl -v
plenv install-cpanm

cpanm HTML::Parser Net::DNS NetAddr::IP Archive::Zip BSD::Resource BerkeleyDB Compress::Zlib DBI DB_File Devel::Cycle \
Digest::SHA Digest::SHA1 DigestEmail::Address::SHA DB_File Mail::SPFXS Encode::Detect Encode::Detect::Detector \
Geo::IP GeoIP2 GeoIP2::Database::Reader GeoGeography::Countries HTML::IPParser IPHTTP::CountryCookies \
HTTP::DB_FileDaemon NetHTTP::CIDRDate HTTP::LiteNegotiate \
IO::Socket::INET6 IO::Socket::SSL Mail::DKIM DBI IO::String \
IP::Country IP::Country::DB_File LWP::Protocol::https LWP::UserAgent HTTPMail::DateDKIM \
Encode::Detect::DetectorMail::DMARC::PurePerl Math::Int128 MaxMind::DB::Reader::XS Net::CIDR::Lite Net::PatriciaDNS \
Net::DNS::Nameserver \
BSDNet::ResourceLibIDN ArchiveNet::ZipLibIDN2 IONet::CompressPatricia IONet::String BerkeleyDB BSDWorks::ResourceNetwork DBI EncodeNetAddr::DetectIP \
MailParams::Validate Razor2::Client::DKIMAgent Sys::Hostname::Long Test::PodPerl::CoverageCritic Test::Pod \
DevelTest::Pod::SawAmpersandCoverage MailWWW::DMARCRobotRules Text::PurePerl Devel::Cycle Email::Address::XS \
Geography::Countries IP::Country Math::Int128 Net::Works::Network Net::LibIDN2 \
Net::LibIDN MaxMind::DB::Reader::XS Test::Perl::CriticDiff \
Perl::Critic::Policy::Bangs::ProhibitBitwiseOperators Perl::Critic::Policy::Perlsecret \
Perl::Critic::Policy::Compatibility::ProhibitThreeArgumentOpen \
Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire \
Perl::Critic::Policy::ValuesAndExpressions::PreventSQLInjection \
Perl::Critic::Policy::ControlStructures::ProhibitReturnInDoBlock

cpanm Mail::SPF -n --install-args="--install_path sbin=$HOME/bin" 

...