summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2011-03-20 07:58:48 +0000
committerTorsten Veller <tove@gentoo.org>2011-03-20 07:58:48 +0000
commit2de8d96e12a9c1b52ddbfc332b8410f3cb19848c (patch)
tree2e3fe48f711877c7abeb2dc3f598020a396ca482 /mail-filter
parentCleanup (diff)
downloadhistorical-2de8d96e12a9c1b52ddbfc332b8410f3cb19848c.tar.gz
historical-2de8d96e12a9c1b52ddbfc332b8410f3cb19848c.tar.bz2
historical-2de8d96e12a9c1b52ddbfc332b8410f3cb19848c.zip
Cleanup
Package-Manager: portage-2.2.0_alpha28/cvs/Linux x86_64
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/spamassassin/ChangeLog8
-rw-r--r--mail-filter/spamassassin/Manifest11
-rw-r--r--mail-filter/spamassassin/files/3.0.0-spamd.init39
-rw-r--r--mail-filter/spamassassin/files/FH_DATE_PAST_20XX.patch11
-rw-r--r--mail-filter/spamassassin/files/spamassassin-3.2.5-DESTDIR.patch273
-rw-r--r--mail-filter/spamassassin/spamassassin-3.2.1-r2.ebuild262
-rw-r--r--mail-filter/spamassassin/spamassassin-3.2.5-r2.ebuild257
-rw-r--r--mail-filter/spamassassin/spamassassin-3.3.1-r2.ebuild200
-rw-r--r--mail-filter/spamassassin/spamassassin-3.3.1-r3.ebuild203
9 files changed, 8 insertions, 1256 deletions
diff --git a/mail-filter/spamassassin/ChangeLog b/mail-filter/spamassassin/ChangeLog
index 71761f2bddae..106b3991af90 100644
--- a/mail-filter/spamassassin/ChangeLog
+++ b/mail-filter/spamassassin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/spamassassin
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.196 2011/01/13 17:12:21 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.197 2011/03/20 07:58:48 tove Exp $
+
+ 20 Mar 2011; Torsten Veller <tove@gentoo.org> -files/3.0.0-spamd.init,
+ -spamassassin-3.2.1-r2.ebuild, -spamassassin-3.2.5-r2.ebuild,
+ -files/spamassassin-3.2.5-DESTDIR.patch, -files/FH_DATE_PAST_20XX.patch,
+ -spamassassin-3.3.1-r2.ebuild, -spamassassin-3.3.1-r3.ebuild:
+ Cleanup
13 Jan 2011; Brent Baude <ranger@gentoo.org> spamassassin-3.3.1-r4.ebuild:
stable ppc, bug 342591
diff --git a/mail-filter/spamassassin/Manifest b/mail-filter/spamassassin/Manifest
index f29755bd2ab1..39e6a136da0e 100644
--- a/mail-filter/spamassassin/Manifest
+++ b/mail-filter/spamassassin/Manifest
@@ -1,18 +1,9 @@
AUX 3.0.0-spamd.conf 1527 RMD160 8075268aecdf6f41f5cdacb683fe92567d860dae SHA1 01623333cecb1ef38b25a130d3b5afe016e70f1c SHA256 ea61041e8b6b1616ec096cc42245ab8442b962f72c318695f5acff1fd794ee34
-AUX 3.0.0-spamd.init 891 RMD160 d8f80c02238e22704cd588f0fee5d198f787df38 SHA1 2ed966512c79a016f8bf2242c76879434367942c SHA256 09bcdf5287b2464e754f78647c939b0de86c135433eaa3ca45d89ab2b68a79ac
AUX 3.3.1-spamd.init 1030 RMD160 c5ae0c1fbcbc2b67722b990ac73533b85d002836 SHA1 73cc4c4619a5e9a3a264847e7a58abb57c06d0df SHA256 d05c8fcaf23f705180a13227e46aa925d13729e4bf768eb8531bbbf7c6d51106
-AUX FH_DATE_PAST_20XX.patch 416 RMD160 85ccd5fce6faa70ceb16bbdc98cf0c710dd15847 SHA1 c97166533adcfe5c75cd6df9ae07632ea98e7306 SHA256 682668c68d0765cddda23f731c2d83a4da0852c38557a1406e4e74b18f5100c3
AUX secrets.cf 664 RMD160 afb1212a464bd7053c1301c1a1e670b73216528a SHA1 a742beddf850e55bc4454a7548dc43c36f8e9760 SHA256 9f134c7b857b21689f612fc6d131f719e5a65e2ba341b282e7aa57402c854139
-AUX spamassassin-3.2.5-DESTDIR.patch 8856 RMD160 c7aa95f1ddc21e7668266fe3eb00342ba5569c8c SHA1 045a446362b8b0491164a53cff18391c49fe6786 SHA256 f73e3d63b7fd79c364799cd1e3525369ac483019e55c079f33529b6ce81c9264
AUX spamassassin-3.3.1-PERL-5-12.patch 8952 RMD160 f748f6568adeedd9db7b6302cd9f484cc9882599 SHA1 fd2b8f081d26c062a1e21f4ccf90b2b4079f89e1 SHA256 6054e7ac297e22c0f24ca524169140526e4d036dc0c11bedf4e64e30c6cbb593
AUX spamassassin-3.3.1-uninitialized_value.patch 754 RMD160 0dea62c4b2a716557d4dd485336d60a885a0108e SHA1 6fb6781deb9f8e3344930e755baaeb3c387c7a52 SHA256 b393684a626240bf75e2c6fe7fe56bedc4b64c59220d7129ee0b1d99381493be
-DIST Mail-SpamAssassin-3.2.1.tar.bz2 981918 RMD160 508e9aae2705d1caaeba78720ba78b6385a6e237 SHA1 3095b38d90d0362c4e47e117fb612778a2ac362b SHA256 bccd0ecf00c3bc6bbcbe4a5eaa486e0db7dc755076130a66c935ec50b3fa8b3c
-DIST Mail-SpamAssassin-3.2.5.tar.bz2 1011883 RMD160 444baab6d966d4366834b82cde34c81e3e521144 SHA1 32b701ffc68f7975eded107c456b902bc710d8b2 SHA256 baaab5e4da7d3b0e04c0db579bdb44bbd6be916d29540682346eccead23f6c8a
DIST Mail-SpamAssassin-3.3.1.tar.bz2 1015008 RMD160 b681fc60292cd30efd405585aad70f39c9633260 SHA1 f5748043eb286b1acb456093039a55db00c6f25e SHA256 4c348cd951fc2c5688e9713fcbc6ba453df51d32a1ab332a63800d20ff18bdb4
-EBUILD spamassassin-3.2.1-r2.ebuild 8078 RMD160 05527bb9d179b8a1d6c2b11bee8f9728150ae5e0 SHA1 6c755a53eefa1127ce1eab21a663a57d9e569038 SHA256 4374dd320ed8ca621b9f3cf44bd2621146625dd3d56df44d7b93e19ee1e1d7a1
-EBUILD spamassassin-3.2.5-r2.ebuild 8086 RMD160 6256a7d4bcb166ce185e33c4a5421bb33f2dc14c SHA1 50aca493f070c924c05c7db26967529b6918ba87 SHA256 1c950c1edade9d4e036e4c3d82dcf9fed4a73d8d3594142a365ae246370a229c
-EBUILD spamassassin-3.3.1-r2.ebuild 6663 RMD160 5bebdcf53a4ae008a924732cddf6aeed3f4915ff SHA1 5f2b41e2990259981524846772b45fdad59a3a36 SHA256 44494d3cd28b66302b8d7ec45f35a95131dacebc1e374023086e5d6dfd6d0c6c
-EBUILD spamassassin-3.3.1-r3.ebuild 6777 RMD160 1af1ebba73939b2a336476c3a982fcaae55f639d SHA1 2a5ed0f57e3dd475779322c0565bf9c4897781cc SHA256 adeabe44062dbc7ed6028bc02b68053015949c954d9f5241f85556a0c19981b0
EBUILD spamassassin-3.3.1-r4.ebuild 6823 RMD160 828335a81f036fab0786e6847c65baad9bd4f379 SHA1 d843234daa6a40bf3c452cd89c2410615548c84b SHA256 314955897dc7935e722f826a5a204d8938992ad2fdc516e61dbb4d9337c5a20a
-MISC ChangeLog 39700 RMD160 0af925e8dca1d03aedfc87a05b3f65cae24af7bc SHA1 ca82e0208be9c64b7667f60fd83e77797d059ecf SHA256 a8570e37b4eef3dad362d54845db121399529384a98adc7066573817abc8baab
+MISC ChangeLog 39985 RMD160 938df1af6ced081f58fd3797e362c4112e03daba SHA1 7e0799605e0ec8701c87122add73b569a1bb587b SHA256 ba0e1b401ee4e5bc4f2057bdf10997500fd26ac543e9311ee3ba8fcbfaf20fa2
MISC metadata.xml 397 RMD160 57fce2ddbc573f348530f856bc0735ba1aae08b9 SHA1 ffab343d82e13c81c74ecb9d0724634a4df755d8 SHA256 6b960f56b7be9f2ecb4b7023b54e20fc6d5583d8ff9ea0b1a4a987c6d86b0a0a
diff --git a/mail-filter/spamassassin/files/3.0.0-spamd.init b/mail-filter/spamassassin/files/3.0.0-spamd.init
deleted file mode 100644
index a5e465faf024..000000000000
--- a/mail-filter/spamassassin/files/3.0.0-spamd.init
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.0.0-spamd.init,v 1.8 2008/05/14 21:25:56 sbriesen Exp $
-
-# NB: Config is in /etc/conf.d/spamd
-
-# Provide a default location if they haven't in /etc/conf.d/spamd
-PIDFILE=${PIDFILE:-/var/run/spamd.pid}
-
-opts="reload"
-
-depend() {
- need net
- before mta
- use logger
-}
-
-start() {
- ebegin "Starting spamd"
- start-stop-daemon --start --quiet \
- --name spamd \
- --nicelevel ${SPAMD_NICELEVEL:-0} \
- --exec /usr/sbin/spamd -- -d -r ${PIDFILE} \
- ${SPAMD_OPTS}
- eend $? "Failed to start spamd"
-}
-
-stop() {
- ebegin "Stopping spamd"
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $? "Failed to stop spamd"
-}
-
-reload() {
- ebegin "Reloading configuration"
- kill -HUP $(< ${PIDFILE})
- eend $?
-}
diff --git a/mail-filter/spamassassin/files/FH_DATE_PAST_20XX.patch b/mail-filter/spamassassin/files/FH_DATE_PAST_20XX.patch
deleted file mode 100644
index e7b2aa097c66..000000000000
--- a/mail-filter/spamassassin/files/FH_DATE_PAST_20XX.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- rules/72_active.cf.orig 2010-01-01 23:09:53.794608796 +0100
-+++ rules/72_active.cf 2010-01-01 23:12:14.622599894 +0100
-@@ -562,7 +562,7 @@
- ##} FH_DATE_IS_19XX
-
- ##{ FH_DATE_PAST_20XX
--header FH_DATE_PAST_20XX Date =~ /20[1-9][0-9]/ [if-unset: 2006]
-+header FH_DATE_PAST_20XX Date =~ /20[2-9][0-9]/ [if-unset: 2006]
- describe FH_DATE_PAST_20XX The date is grossly in the future.
- ##} FH_DATE_PAST_20XX
-
diff --git a/mail-filter/spamassassin/files/spamassassin-3.2.5-DESTDIR.patch b/mail-filter/spamassassin/files/spamassassin-3.2.5-DESTDIR.patch
deleted file mode 100644
index a9765fc55db1..000000000000
--- a/mail-filter/spamassassin/files/spamassassin-3.2.5-DESTDIR.patch
+++ /dev/null
@@ -1,273 +0,0 @@
---- Mail-SpamAssassin-3.2.5/Makefile.PL.old 2009-10-21 23:25:18.000000000 +0200
-+++ Mail-SpamAssassin-3.2.5/Makefile.PL 2009-10-21 23:31:28.000000000 +0200
-@@ -12,12 +12,12 @@
-
- # avoid stupid 'Argument "6.30_01" isn't numeric in numeric ge (>=)' warnings;
- # strip off the beta subversion noise that causes the trouble.
- $mm_version =~ s/_\S+$//; # "6.30_01" => "6.30"
-
--if ($mm_version+0 < 5.45) {
-- die "SpamAssassin Makefile.PL requires at least ExtUtils::MakeMaker v5.45";
-+if ($mm_version < 6.17) {
-+ die "SpamAssassin Makefile.PL requires at least ExtUtils::MakeMaker v6.17";
- }
-
- use constant RUNNING_ON_WINDOWS => ($^O =~ /^(mswin|dos|os2)/oi);
- use constant HAS_DBI => eval { require DBI; };
-
-@@ -82,11 +82,10 @@
- );
-
-
- sub parse_arg {
- my($val, $name) = (@_);
--
- if ($val =~ /^($name)=["']?(.*?)["']?$/) {
- return $2;
- } else {
- return undef;
- }
-@@ -107,53 +106,27 @@
- return 'yes' if bool($val, $def);
- return 'no';
- }
-
-
--
- my %opt = (
-- 'build_spamc' => undef,
-+ 'build_spamc' => undef,
- 'enable_ssl' => undef,
- 'contact_address' => undef,
- 'destdir' => undef,
- );
- ARGV: foreach (@ARGV) {
- foreach my $key (keys %opt) {
-- my $val;
--
-- $val = parse_arg($_, uc($key));
-+ my $val = parse_arg($_, uc($key));
- if (defined $val) {
- $opt{$key} = $val;
- next ARGV;
- }
- }
- }
-
-
--# Gather some information about what EU::MM offers and/or needs
--my(
-- $mm_knows_destdir,
-- $mm_has_destdir,
-- $mm_has_good_destdir,
-- $mm_needs_destdir,
--);
--
--# MakeMaker prior to 6.11 doesn't support DESTDIR which is needed for
--# packaging with builddir!=destdir. See bug 2388.
--$mm_knows_destdir = $ExtUtils::MakeMaker::Recognized_Att_Keys{DESTDIR};
--$mm_has_good_destdir = $mm_version >= 6.11;
--# Add DESTDIR hack only if it's requested (and necessary)
--$mm_needs_destdir = $opt{'destdir'} && !$mm_has_good_destdir;
--$mm_has_destdir = $mm_knows_destdir || $mm_needs_destdir;
--push(@ATT_KEYS, 'DESTDIR') if $mm_needs_destdir;
--
--# Now make EU::MM understand our extended vars
--foreach my $key (@ATT_KEYS) {
-- $ExtUtils::MakeMaker::Recognized_Att_Keys{$key} = 1;
--}
--
--
- # Gather the rules files in the range 00-69; we do this in perl because
- # it's more portable. Also, plugin .pm files.
- my @datafiles = map { s,^rules/,,; $_ }
- grep { -f $_ } (<rules/*.cf>, <rules/*.pm>);
- my $datafiles = join(' ', (grep
-@@ -270,75 +243,27 @@
-
- # We have only this Makefile.PL and this option keeps MakeMaker from
- # asking all questions twice after a 'make dist*'.
- 'NORECURS' => 1,
-
-- # bug 5074: perl 5.6.1 (with ExtUtils::MakeMaker 5.45) attempts to
-- # recurse anyway unless this is explicitly specified
-- 'DIR' => [ ],
--
- # Don't add META.yml to the MANIFEST for god's sake!
- 'NO_META' => 1,
- );
-
- # rules/72_active.cf is built from "rulesrc", but *must* exist before
- # WriteMakefile() is called due to shortcomings in MakeMaker.
- my @FILES_THAT_MUST_EXIST = qw(
- rules/72_active.cf
- );
-
--# That META.yml stuff was introduced with Perl 6.06_03, see
--# <http://archive.develooper.com/makemaker@perl.org/msg00922.html>
--# <http://archive.develooper.com/makemaker@perl.org/msg00984.html>
--delete $makefile{'NO_META'} if $mm_version < 6.06_03;
--
- # make sure certain optional modules are up-to-date if they are installed
- # also see PREREQ_PM above
- my %CURRENT_PM = (
- 'Net::DNS' => (RUNNING_ON_WINDOWS ? 0.46 : 0.34),
- 'Razor2::Client::Agent' => 2.40,
- );
-
--if ($mm_needs_destdir) {
-- my $error = <<DESTDIR_HACK;
--
-- ***********************************************************************
-- ExtUtils::MakeMaker ${mm_version} doesn't include support for DESTDIR,
-- so if you want to be on the safe side, you might want to upgrade your
-- ExtUtils::MakeMaker to version 6.11 or later. It is available via CPAN.
--
-- You can use either the CPAN shell or go to
-- <http://search.cpan.org/search?module=ExtUtils::MakeMaker>
-- to get an up-to-date version.
--
-- This should only be necessary if you are creating binary packages.
-- ***********************************************************************
--
--DESTDIR_HACK
-- $error =~ s/^ {4}//gm;
-- warn $error;
--}
--elsif ($opt{'destdir'} and !$mm_has_good_destdir) {
-- my $error = <<DESTDIR_BUG;
--
-- ***********************************************************************
-- ExtUtils::MakeMaker ${mm_version} contains bugs that may cause problems
-- in the \"make\" process. It is recommended that you upgrade
-- ExtUtils::MakeMaker to version 6.11 or later. It is available via CPAN.
--
-- You can use either the CPAN shell or go to
-- <http://search.cpan.org/search?module=ExtUtils::MakeMaker>
-- to get an up-to-date version.
--
-- This should only be necessary if you are creating binary packages.
-- ***********************************************************************
--
--DESTDIR_BUG
-- $error =~ s/^ {4}//gm;
-- warn $error;
--}
--
-
- # All the $(*MAN1*) stuff is empty/zero if Perl was Configured with -Dman1dir=none;
- # however, support site/vendor man1 dirs (bug 5338)
- unless($Config{installman1dir}
- || $Config{installsiteman1dir}
-@@ -405,22 +330,19 @@
-
- # Now finish the meta hash and dump the Makefile
- $makefile{EXE_FILES} = [ values %{$makefile{EXE_FILES}} ];
- $makefile{AUTHOR} =~ s/(<.+) at (.+>)/$1\@$2/;
- WriteMakefile(%makefile);
--print "Makefile written by ExtUtils::MakeMaker ${mm_version}\n";
-+print "Makefile written by ExtUtils::MakeMaker $mm_version\n";
-
- #######################################################################
-
- package MY;
-
--
- use vars qw(
- $MY_GLOBALS_ARE_SANE
--
- $RUNNING_ON_WINDOWS
--
- @REPOSITORIES
-
- $MACRO_RE
- $EQ_RE
- $EQ
-@@ -906,19 +828,10 @@
- init_MY_globals($self);
-
- foreach (@code) {
- # Add our install targets as a dependency to all top-level install targets
- s/^(install(?:_[a-z]+)?\s*::?\s*.*)$/$1 conf__install data__install/;
--
-- # Now do the DESTDIR hack, if necessary.
-- next if !$mm_needs_destdir;
-- # Write the correct path to perllocal.pod
-- next if /installed into/;
--
-- # Replace all other $(INSTALL*) vars (except $(INSTALLDIRS) of course)
-- # with their $(DESTINSTALL*) counterparts
-- s/\Q$(\E(INSTALL(?!DIRS)${MACRO_RE})\Q)\E/\$(DEST$1)/g;
- }
-
- clean_MY_globals($self);
- return join("\n", @code);
- }
-@@ -956,32 +869,10 @@
- set_macro($rprefix, macro_ref('PREFIX'));
- $line .= "\n" . macro_def($rprefix);
- }
- }
- }
--
-- if (line_has_macro_def($line, 'MM_VERSION')) {
-- # These macros are just for debugging purposes.
-- $line = join("\n", $line,
-- macro_def(MM_HAS_DESTDIR => ::yesno($mm_has_destdir)),
-- macro_def(MM_HAS_GOOD_DESTDIR => ::yesno($mm_has_good_destdir)),
-- macro_def(MM_KNOWS_DESTDIR => ::yesno($mm_knows_destdir)),
-- macro_def(MM_NEEDS_DESTDIR => ::yesno($mm_needs_destdir)),
-- );
-- }
--
-- # Add DESTDIR support if necessary
-- if ($mm_needs_destdir) {
-- if (line_has_macro_def($line, 'INSTALLDIRS')) {
-- $line .= "\n" . macro_def('DESTDIR');
-- }
-- elsif (line_has_macro_def($line, qr/INSTALL${MACRO_RE}/)) {
-- my $macro = get_macro_name_from_line($line);
-- $line .= "\n" . macro_def('DEST' . $macro,
-- macro_ref('DESTDIR') . macro_ref($macro));
-- }
-- }
- }
- push(@code, qq{});
-
- # Add some additional target dirs
- {
-@@ -1015,13 +906,11 @@
- foreach my $r (@REPOSITORIES) {
- my $macro = 'INSTALL' . repository($r) . $m;
- # The INSTALL* macros.
- push(@code, macro_def($macro));
- # The DESTINSTALL* macros.
-- push(@code, macro_def('DEST' . $macro,
-- macro_ref('DESTDIR') . macro_ref($macro)))
-- if $mm_has_destdir;
-+ push(@code, macro_def('DEST' . $macro, macro_ref('DESTDIR') . macro_ref($macro)));
- }
- }
- }
-
- # Set the PERL_* stuff
-@@ -1068,17 +957,12 @@
- # SCRIPT macro is the same for all repositories.
- foreach my $macro (qw(SCRIPT DATA CONF LIB)) {
- push(@code, macro_def('I_' . $macro . 'DIR',
- macro_ref('INSTALL' . repository($repository, $macro eq 'SCRIPT') . $macro)));
-
-- if ($mm_has_destdir) {
-- push(@code, macro_def('B_' . $macro . 'DIR',
-- macro_ref('DESTINSTALL' . repository($repository, $macro eq 'SCRIPT') . $macro)));
-- } else {
-- push(@code, macro_def('B_' . $macro . 'DIR',
-- macro_ref('I_' . $macro . 'DIR')));
-- }
-+ push(@code, macro_def('B_' . $macro . 'DIR',
-+ macro_ref('DESTINSTALL' . repository($repository, $macro eq 'SCRIPT') . $macro)));
- }
- }
-
- clean_MY_globals($self);
- return join("\n", @code);
diff --git a/mail-filter/spamassassin/spamassassin-3.2.1-r2.ebuild b/mail-filter/spamassassin/spamassassin-3.2.1-r2.ebuild
deleted file mode 100644
index 3a934c2c6a3c..000000000000
--- a/mail-filter/spamassassin/spamassassin-3.2.1-r2.ebuild
+++ /dev/null
@@ -1,262 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.1-r2.ebuild,v 1.8 2010/10/22 19:36:22 ssuominen Exp $
-
-inherit perl-module eutils
-
-MY_P=Mail-SpamAssassin-${PV//_/-}
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam."
-HOMEPAGE="http://spamassassin.apache.org/"
-SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
-
-#SRC_TEST="do"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
-#KEYWORDS="~amd64 ~sparc ~x86"
-IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite tools ipv6"
-
-DEPEND=">=dev-lang/perl-5.8.2-r1
- virtual/perl-MIME-Base64
- >=virtual/perl-PodParser-1.32
- virtual/perl-Storable
- virtual/perl-Time-HiRes
- >=dev-perl/HTML-Parser-3.43
- >=dev-perl/Net-DNS-0.53
- dev-perl/Digest-SHA1
- dev-perl/libwww-perl
- >=virtual/perl-Archive-Tar-1.26
- app-crypt/gnupg
- >=virtual/perl-IO-Zlib-1.04
- >=dev-util/re2c-0.12.0
- ssl? (
- dev-perl/IO-Socket-SSL
- dev-libs/openssl
- )
- berkdb? (
- virtual/perl-DB_File
- )
- ldap? ( dev-perl/perl-ldap )
- mysql? (
- dev-perl/DBI
- dev-perl/DBD-mysql
- )
- postgres? (
- dev-perl/DBI
- dev-perl/DBD-Pg
- )
- sqlite? (
- dev-perl/DBI
- dev-perl/DBD-SQLite
- )
-
- ipv6? (
- dev-perl/IO-Socket-INET6
- )"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/FH_DATE_PAST_20XX.patch"
-}
-
-src_compile() {
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again
- # (just to be sure, nobody knows how it could happen in the first place).
- myconf="SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin"
-
- # If ssl is enabled, spamc can be built with ssl support
- if use ssl; then
- myconf="${myconf} ENABLE_SSL=yes"
- else
- myconf="${myconf} ENABLE_SSL=no"
- fi
-
- # Set the path to the Perl executable explictly. This will be used to
- # create the initial sharpbang line in the scripts and might cause
- # a versioned app name end in there, see
- # <http://bugs.gentoo.org/show_bug.cgi?id=62276>
- myconf="${myconf} PERL_BIN=/usr/bin/perl"
-
- # If you are going to enable taint mode, make sure that the bug where
- # spamd doesn't start when the PATH contains . is addressed, and make
- # sure you deal with versions of razor <2.36-r1 not being taint-safe.
- # <http://bugzilla.spamassassin.org/show_bug.cgi?id=2511> and
- # <http://spamassassin.org/released/Razor2.patch>.
- myconf="${myconf} PERL_TAINT=no"
-
- # No settings needed for 'make all'.
- mymake=""
-
- # Neither for 'make install'.
- myinst=""
-
- # Add Gentoo tag to make it easier for the upstream devs to spot
- # possible modifications or patches.
- version_tag="g${PV:6}${PR}"
- version_str="${PV//_/-}-${version_tag}"
-
- # Create the Gentoo config file before Makefile.PL is called so it
- # is copied later on.
- echo "version_tag ${version_tag}" > rules/11_gentoo.cf
-
- # Setting the following env var ensures that no questions are asked.
- export PERL_MM_USE_DEFAULT=1
- perl-module_src_prep
- # Run the autoconf stuff now, just to make the build sequence look more
- # familiar to the user :) Plus feeding the VERSION_STRING skips some
- # calls to Perl.
- make spamc/Makefile VERSION_STRING="${version_str}"
-
- # Now compile all the stuff selected.
- perl-module_src_compile
- if use qmail; then
- make spamc/qmail-spamc || die building qmail-spamc failed
- fi
-
- # Remove the MANIFEST files as they aren't docu files
- rm -f MANIFEST*
-
- use doc && make text_html_doc
-}
-
-src_install () {
- perl-module_src_test
-}
-
-src_install () {
- perl-module_src_install
-
- # Create the stub dir used by sa-update and friends
- dodir /var/lib/spamassassin
-
- # Move spamd to sbin where it belongs.
- dodir /usr/sbin
- mv "${D}"/usr/bin/spamd "${D}"/usr/sbin/spamd || die
-
- use qmail && dobin spamc/qmail-spamc
-
- dosym /etc/mail/spamassassin /etc/spamassassin
-
- # Disable plugin by default
- sed -i -e 's/^loadplugin/\#loadplugin/g' "${D}"/etc/mail/spamassassin/init.pre
-
- # Add the init and config scripts.
- newinitd "${FILESDIR}"/3.0.0-spamd.init spamd
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd
-
- if use doc; then
- dodoc NOTICE TRADEMARK CREDITS INSTALL UPGRADE BUGS USAGE \
- sql/README.bayes sql/README.awl README.ldap procmailrc.example \
- sample-nonspam.txt sample-spam.txt rules/STATISTICS-set0.txt \
- STATISTICS-set1.txt STATISTICS-set2.txt STATISTICS-set3.txt \
- spamd/PROTOCOL
-
- # Rename some docu files so they don't clash with others
- newdoc spamd/README README.spamd
- newdoc sql/README README.sql
- newdoc ldap/README README.ldap
- use qmail && newdoc spamc/README.qmail README.qmail
-
- dohtml doc/*.html
- docinto sql
- dodoc sql/*.sql
- fi
-
- # Install provided tools. See bug 108168
- if use tools; then
- docinto tools
- dodoc tools/*
- fi
-
- cp "${FILESDIR}"/secrets.cf "${D}"/etc/mail/spamassassin/secrets.cf.example
- fperms 0400 /etc/mail/spamassassin/secrets.cf.example
- echo "">>${D}/etc/mail/spamassassin/local.cf.example
- echo "# Sensitive data, such as database connection info, should">>${D}/etc/mail/spamassassin/local.cf.example
- echo "# be stored in /etc/mail/spamassassin/secrets.cf with">>${D}/etc/mail/spamassassin/local.cf.example
- echo "# appropriate permissions">>${D}/etc/mail/spamassassin/local.cf.example
-}
-
-pkg_postinst() {
- perl-module_pkg_postinst
-
- if ! has_version "perl-core/DB_File"; then
- einfo "The Bayes backend requires the Berkeley DB to store its data. You"
- einfo "need to emerge perl-core/DB_File or USE=berkdb to make it available."
- fi
-
- if has_version "mail-filter/razor"; then
- if ! has_version ">=mail-filter/razor-2.61"; then
- ewarn "You have $(best_version mail-filter/razor) installed but SpamAssassin"
- if has_version "<mail-filter/razor-2.40"; then
- ewarn "requires at least version 2.40, version 2.61 or later is recommended."
- else
- ewarn "recommends at least version 2.61."
- fi
- fi
- fi
-
- if use doc; then
- einfo
- einfo "Please read the file INSTALL in"
- einfo " /usr/share/doc/${PF}/"
- einfo "to find out which optional modules you need to install to enable"
- einfo "additional features which depend on them."
- einfo
- einfo "If upgraded from 2.x, please read the file UPGRADE in"
- einfo " /usr/share/doc/${PF}/"
- einfo
- fi
-
- ewarn
- ewarn "spamd is not designed to listen to an untrusted network"
- ewarn "and is vulnerable to DoS attacks (and eternal doom) if"
- ewarn "configured to do so"
- ewarn
- elog "If you plan on using the -u flag to spamd, please read the notes"
- elog "in /etc/conf.d/spamd regarding the location of the pid file."
-
- einfo
- einfo "If you build ${PN} with optional dependancy support,"
- einfo "you can enable them in /etc/mail/spamassassin/init.pre"
- einfo
-
- if has_version '>=dev-lang/perl-5.8.8'; then
- elog "A note from the SA developers:"
- elog "Perl 5.8 now uses Unicode internally by default, which causes trouble for"
- elog "SpamAssassin (and almost all other reasonably complex pieces of perl"
- elog "code!)."
- elog ""
- elog "We've worked around this in most places, as far as we know, but there may"
- elog "still be some issues. In addition, there is a speed hit, which it would"
- elog "be nice to avoid."
- elog ""
- elog "Setting the LANG environment variable before any invocation of"
- elog "SpamAssassin sometimes seems to help fix it, like so:"
- elog ""
- elog " export LANG=en_US"
- elog ""
- elog "Notably, the LANG setting must not include \"utf8\". However, some folks"
- elog "have reported that this makes no difference. ;)"
- fi
- einfo
- if ! has_version 'dev-perl/Mail-SPF-Query'; then
- elog "For spf support, please emerge dev-perl/Mail-SPF-Query"
- fi
- if ! has_version 'mail-filter/dcc'; then
- elog "For dcc support, please emerge mail-filter/dcc"
- fi
- if ! has_version 'dev-python/pyzor'; then
- elog "For pyzor support, please emerge dev-python/pyzor"
- fi
- if ! has_version 'mail-filter/razor'; then
- elog "For razor support, please emerge mail-filter/razor"
- fi
- einfo
- elog "For addtional functionality, you may wish to emerge:"
- elog "dev-perl/IP-Country dev-perl/Net-Ident "
- elog "dev-perl/Mail-DKIM"
-
-}
diff --git a/mail-filter/spamassassin/spamassassin-3.2.5-r2.ebuild b/mail-filter/spamassassin/spamassassin-3.2.5-r2.ebuild
deleted file mode 100644
index 4c671678afb8..000000000000
--- a/mail-filter/spamassassin/spamassassin-3.2.5-r2.ebuild
+++ /dev/null
@@ -1,257 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.5-r2.ebuild,v 1.8 2010/10/22 19:35:05 ssuominen Exp $
-
-inherit perl-module eutils
-
-MY_P=Mail-SpamAssassin-${PV//_/-}
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam."
-HOMEPAGE="http://spamassassin.apache.org/"
-SRC_URI="http://archive.apache.org/dist/spamassassin/source/${MY_P}.tar.bz2 mirror://gentoo/${MY_P}.tar.bz2"
-
-SRC_TEST="do"
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
-IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite tools ipv6"
-
-DEPEND=">=dev-lang/perl-5.8.2-r1
- virtual/perl-MIME-Base64
- >=virtual/perl-PodParser-1.32
- virtual/perl-Storable
- virtual/perl-Time-HiRes
- >=dev-perl/HTML-Parser-3.43
- >=dev-perl/Net-DNS-0.53
- dev-perl/Digest-SHA1
- dev-perl/libwww-perl
- >=virtual/perl-Archive-Tar-1.26
- app-crypt/gnupg
- >=virtual/perl-IO-Zlib-1.04
- >=dev-util/re2c-0.12.0
- ssl? (
- dev-perl/IO-Socket-SSL
- dev-libs/openssl
- )
- berkdb? (
- virtual/perl-DB_File
- )
- ldap? ( dev-perl/perl-ldap )
- mysql? (
- dev-perl/DBI
- dev-perl/DBD-mysql
- )
- postgres? (
- dev-perl/DBI
- dev-perl/DBD-Pg
- )
- sqlite? (
- dev-perl/DBI
- dev-perl/DBD-SQLite
- )
-
- ipv6? (
- dev-perl/IO-Socket-INET6
- )"
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}/${PN}-3.2.5-DESTDIR.patch"
- "${FILESDIR}/FH_DATE_PAST_20XX.patch" )
-
-src_compile() {
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again
- # (just to be sure, nobody knows how it could happen in the first place).
- myconf="SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin"
-
- # If ssl is enabled, spamc can be built with ssl support
- if use ssl; then
- myconf="${myconf} ENABLE_SSL=yes"
- else
- myconf="${myconf} ENABLE_SSL=no"
- fi
-
- # Set the path to the Perl executable explictly. This will be used to
- # create the initial sharpbang line in the scripts and might cause
- # a versioned app name end in there, see
- # <http://bugs.gentoo.org/show_bug.cgi?id=62276>
- myconf="${myconf} PERL_BIN=/usr/bin/perl"
-
- # If you are going to enable taint mode, make sure that the bug where
- # spamd doesn't start when the PATH contains . is addressed, and make
- # sure you deal with versions of razor <2.36-r1 not being taint-safe.
- # <http://bugzilla.spamassassin.org/show_bug.cgi?id=2511> and
- # <http://spamassassin.org/released/Razor2.patch>.
- myconf="${myconf} PERL_TAINT=no"
-
- # No settings needed for 'make all'.
- mymake=""
-
- # Neither for 'make install'.
- myinst=""
-
- # Add Gentoo tag to make it easier for the upstream devs to spot
- # possible modifications or patches.
- version_tag="g${PV:6}${PR}"
- version_str="${PV//_/-}-${version_tag}"
-
- # Create the Gentoo config file before Makefile.PL is called so it
- # is copied later on.
- echo "version_tag ${version_tag}" > rules/11_gentoo.cf
-
- # Setting the following env var ensures that no questions are asked.
- export PERL_MM_USE_DEFAULT=1
- perl-module_src_prep
- # Run the autoconf stuff now, just to make the build sequence look more
- # familiar to the user :) Plus feeding the VERSION_STRING skips some
- # calls to Perl.
- make spamc/Makefile VERSION_STRING="${version_str}"
-
- # Now compile all the stuff selected.
- perl-module_src_compile
- if use qmail; then
- make spamc/qmail-spamc || die building qmail-spamc failed
- fi
-
- # Remove the MANIFEST files as they aren't docu files
- rm -f MANIFEST*
-
- use doc && make text_html_doc
-}
-
-src_test() {
- perl-module_src_test
-}
-
-src_install () {
- perl-module_src_install
-
- # Create the stub dir used by sa-update and friends
- dodir /var/lib/spamassassin
-
- # Move spamd to sbin where it belongs.
- dodir /usr/sbin
- mv "${D}"/usr/bin/spamd "${D}"/usr/sbin/spamd || die
-
- use qmail && dobin spamc/qmail-spamc
-
- dosym /etc/mail/spamassassin /etc/spamassassin
-
- # Disable plugin by default
- sed -i -e 's/^loadplugin/\#loadplugin/g' "${D}"/etc/mail/spamassassin/init.pre
-
- # Add the init and config scripts.
- newinitd "${FILESDIR}"/3.0.0-spamd.init spamd
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd
-
- if use doc; then
- dodoc NOTICE TRADEMARK CREDITS INSTALL INSTALL.VMS UPGRADE USAGE \
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \
- sample-spam.txt spamassassin.spec spamd/PROTOCOL spamd/README.vpopmail \
- spamd-apache2/README.apache
-
- # Rename some docu files so they don't clash with others
- newdoc spamd/README README.spamd
- newdoc sql/README README.sql
- newdoc ldap/README README.ldap
- use qmail && newdoc spamc/README.qmail README.qmail
-
- dohtml doc/*.html
- docinto sql
- dodoc sql/*.sql
- fi
-
- # Install provided tools. See bug 108168
- if use tools; then
- docinto tools
- dodoc tools/*
- fi
-
- cp "${FILESDIR}"/secrets.cf "${D}"/etc/mail/spamassassin/secrets.cf.example
- fperms 0400 /etc/mail/spamassassin/secrets.cf.example
- echo "">>${D}/etc/mail/spamassassin/local.cf.example
- echo "# Sensitive data, such as database connection info, should">>${D}/etc/mail/spamassassin/local.cf.example
- echo "# be stored in /etc/mail/spamassassin/secrets.cf with">>${D}/etc/mail/spamassassin/local.cf.example
- echo "# appropriate permissions">>${D}/etc/mail/spamassassin/local.cf.example
-}
-
-pkg_postinst() {
- perl-module_pkg_postinst
-
- if ! has_version "perl-core/DB_File"; then
- einfo "The Bayes backend requires the Berkeley DB to store its data. You"
- einfo "need to emerge perl-core/DB_File or USE=berkdb to make it available."
- fi
-
- if has_version "mail-filter/razor"; then
- if ! has_version ">=mail-filter/razor-2.61"; then
- ewarn "You have $(best_version mail-filter/razor) installed but SpamAssassin"
- if has_version "<mail-filter/razor-2.40"; then
- ewarn "requires at least version 2.40, version 2.61 or later is recommended."
- else
- ewarn "recommends at least version 2.61."
- fi
- fi
- fi
-
- if use doc; then
- einfo
- einfo "Please read the file INSTALL in"
- einfo " /usr/share/doc/${PF}/"
- einfo "to find out which optional modules you need to install to enable"
- einfo "additional features which depend on them."
- einfo
- einfo "If upgraded from 2.x, please read the file UPGRADE in"
- einfo " /usr/share/doc/${PF}/"
- einfo
- fi
-
- ewarn
- ewarn "spamd is not designed to listen to an untrusted network"
- ewarn "and is vulnerable to DoS attacks (and eternal doom) if"
- ewarn "configured to do so"
- ewarn
- elog "If you plan on using the -u flag to spamd, please read the notes"
- elog "in /etc/conf.d/spamd regarding the location of the pid file."
-
- einfo
- einfo "If you build ${PN} with optional dependancy support,"
- einfo "you can enable them in /etc/mail/spamassassin/init.pre"
- einfo
-
- if has_version '>=dev-lang/perl-5.8.8'; then
- elog "A note from the SA developers:"
- elog "Perl 5.8 now uses Unicode internally by default, which causes trouble for"
- elog "SpamAssassin (and almost all other reasonably complex pieces of perl"
- elog "code!)."
- elog ""
- elog "We've worked around this in most places, as far as we know, but there may"
- elog "still be some issues. In addition, there is a speed hit, which it would"
- elog "be nice to avoid."
- elog ""
- elog "Setting the LANG environment variable before any invocation of"
- elog "SpamAssassin sometimes seems to help fix it, like so:"
- elog ""
- elog " export LANG=en_US"
- elog ""
- elog "Notably, the LANG setting must not include \"utf8\". However, some folks"
- elog "have reported that this makes no difference. ;)"
- fi
- einfo
- if ! has_version 'dev-perl/Mail-SPF-Query'; then
- elog "For spf support, please emerge dev-perl/Mail-SPF-Query"
- fi
- if ! has_version 'mail-filter/dcc'; then
- elog "For dcc support, please emerge mail-filter/dcc"
- fi
- if ! has_version 'dev-python/pyzor'; then
- elog "For pyzor support, please emerge dev-python/pyzor"
- fi
- if ! has_version 'mail-filter/razor'; then
- elog "For razor support, please emerge mail-filter/razor"
- fi
- einfo
- elog "For addtional functionality, you may wish to emerge:"
- elog "dev-perl/IP-Country dev-perl/Net-Ident "
- elog "dev-perl/Mail-DKIM"
-
-}
diff --git a/mail-filter/spamassassin/spamassassin-3.3.1-r2.ebuild b/mail-filter/spamassassin/spamassassin-3.3.1-r2.ebuild
deleted file mode 100644
index fb96995fbf5c..000000000000
--- a/mail-filter/spamassassin/spamassassin-3.3.1-r2.ebuild
+++ /dev/null
@@ -1,200 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.1-r2.ebuild,v 1.3 2010/07/06 21:01:14 ssuominen Exp $
-
-EAPI="2"
-
-inherit perl-module eutils
-
-MY_P=Mail-SpamAssassin-${PV//_/-}
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam."
-HOMEPAGE="http://spamassassin.apache.org/"
-SRC_URI="http://apache.osuosl.org/spamassassin/source/${MY_P}.tar.bz2"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
-# need keyword request for Mail-SPF ppc ppc64
-IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite ipv6"
-
-DEPEND=">=dev-lang/perl-5.8.8-r8
- virtual/perl-MIME-Base64
- >=virtual/perl-PodParser-1.32
- virtual/perl-Storable
- virtual/perl-Time-HiRes
- >=dev-perl/HTML-Parser-3.43
- >=dev-perl/Mail-DKIM-0.37
- >=dev-perl/Net-DNS-0.53
- dev-perl/Digest-SHA1
- dev-perl/libwww-perl
- >=virtual/perl-Archive-Tar-1.26
- app-crypt/gnupg
- >=virtual/perl-IO-Zlib-1.04
- >=dev-util/re2c-0.12.0
- dev-perl/Mail-SPF
- dev-perl/NetAddr-IP
- ssl? (
- dev-perl/IO-Socket-SSL
- dev-libs/openssl
- )
- berkdb? (
- virtual/perl-DB_File
- )
- ldap? ( dev-perl/perl-ldap )
- mysql? (
- dev-perl/DBI
- dev-perl/DBD-mysql
- )
- postgres? (
- dev-perl/DBI
- dev-perl/DBD-Pg
- )
- sqlite? (
- dev-perl/DBI
- dev-perl/DBD-SQLite
- )
- ipv6? (
- dev-perl/IO-Socket-INET6
- )"
-
-RDEPEND="${DEPEND}"
-
-# - Disable tests as they will fail
-# - Please see http://www.cpantesters.org/distro/M/Mail-SpamAssassin.html#Mail-SpamAssassin-3.3.1
-# - for more info, upstream problem not specific to Gentoo
-SRC_TEST="skip"
-
-src_configure() {
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again
- # (just to be sure, nobody knows how it could happen in the first place).
- myconf="SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin"
-
- # If ssl is enabled, spamc can be built with ssl support
- if use ssl; then
- myconf+=" ENABLE_SSL=yes"
- else
- myconf+=" ENABLE_SSL=no"
- fi
-
- # Set the path to the Perl executable explictly. This will be used to
- # create the initial sharpbang line in the scripts and might cause
- # a versioned app name end in there, see
- # <http://bugs.gentoo.org/show_bug.cgi?id=62276>
- myconf+=" PERL_BIN=/usr/bin/perl"
-
- # Add Gentoo tag to make it easy for the upstream devs to spot
- # possible modifications or patches.
- #version_tag="g${PV:6}${PR}"
- #version_str="${PV//_/-}-${version_tag}"
-
- # Create the Gentoo config file before Makefile.PL is called so it
- # is copied later on.
- #echo "version_tag ${version_tag}" > rules/11_gentoo.cf
-
- # Setting the following env var ensures that no questions are asked.
- perl-module_src_configure
-}
-
-src_compile() {
- export PERL_MM_USE_DEFAULT=1
- emake spamc/Makefile || die "emake failed"
-
- # Now compile all the stuff selected.
- perl-module_src_compile
-
- if use qmail; then
- emake spamc/qmail-spamc || die "building qmail-spamc emake failed"
- fi
-
-}
-
-src_install () {
- perl-module_src_install
-
- # Create the stub dir used by sa-update and friends
- dodir /var/lib/spamassassin || die
-
- # Move spamd to sbin where it belongs.
- dodir /usr/sbin
- mv "${D}"/usr/bin/spamd "${D}"/usr/sbin/spamd || die "move spamd failed"
-
- if use qmail; then
- dobin spamc/qmail-spamc || die
- fi
-
- dosym /etc/mail/spamassassin /etc/spamassassin || die
-
- # Disable plugin by default
- sed -i -e 's/^loadplugin/\#loadplugin/g' "${D}"/etc/mail/spamassassin/init.pre || die
-
- # Add the init and config scripts.
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd || die
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd || die
-
- use postgres && \
- sed -i -e 's:@USEPOSTGRES@::' "${D}/etc/init.d/spamd" || \
- sed -i -e '/@USEPOSTGRES@/d' "${D}/etc/init.d/spamd"
-
- use mysql && \
- sed -i -e 's:@USEMYSQL@::' "${D}/etc/init.d/spamd" || \
- sed -i -e '/@USEMYSQL@/d' "${D}/etc/init.d/spamd"
-
- dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \
- sample-spam.txt spamassassin.spec spamd/PROTOCOL spamd/README.vpopmail \
- spamd-apache2/README.apache || die
-
- # Rename some docu files so they don't clash with others
- newdoc spamd/README README.spamd || die
- newdoc sql/README README.sql || die
- newdoc ldap/README README.ldap || die
-
- if use qmail; then
- dodoc spamc/README.qmail || die
- fi
-
- cp "${FILESDIR}"/secrets.cf "${D}"/etc/mail/spamassassin/secrets.cf.example || die
- fperms 0400 /etc/mail/spamassassin/secrets.cf.example
-
- cat <<EOF > "${T}/local.cf.example"
-# Sensitive data, such as database connection info, should be stored in
-# /etc/mail/spamassassin/secrets.cf with appropriate permissions
-EOF
-
- insinto /etc/mail/spamassassin/
- doins "${T}/local.cf.example" || die
-}
-
-pkg_postinst() {
- perl-module_pkg_postinst
- elog "If you plan on using the -u flag to spamd, please read the notes"
- elog "in /etc/conf.d/spamd regarding the location of the pid file.\n"
- elog "If you build ${PN} with optional dependancy support,"
- elog "you can enable them in /etc/mail/spamassassin/init.pre\n"
- elog "You need to configure your database to be able to use Bayes filter"
- elog "with database backend, otherwise it will still use (and need) the"
- elog "Berkeley DB support."
- elog "Look at the sql/README.bayes file in the documentation directory"
- elog "for how to configure it.\n"
- elog "If you plan to use Vipul's Razor, note that versions up to and"
- elog "including version 2.82 include a bug that will slow down the entire"
- elog "perl interpreter. Version 2.83 or later fixes this."
- elog "If you do not plan to use this plugin, be sure to comment out"
- elog "its loadplugin line in /etc/mail/spamassassin/v310.pre.\n"
- elog "The DKIM plugin is now enabled by default for new installs,"
- elog "if the perl module Mail::DKIM is installed."
- elog "However, installation of SpamAssassin will not overwrite existing"
- elog ".pre configuration files, so to use DKIM when upgrading from a"
- elog "previous release that did not use DKIM, a directive:\n"
- elog "loadplugin Mail::SpamAssassin::Plugin::DKIM"
- elog "will need to be uncommented in file 'v312.pre', or added"
- elog "to some other .pre file, such as local.pre.\n"
- ewarn "Rules are no longer included with SpamAssassin out of the box".
- ewarn "You will need to immediately run sa-update, or download"
- ewarn "the additional rules .tgz package and run sa-update --install"
- ewarn "with it, to get a ruleset.\n"
- elog "If when you run sa-update and receive a GPG validation error."
- elog "Then you need to import an updated sa-update key."
- elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt\n"
-}
diff --git a/mail-filter/spamassassin/spamassassin-3.3.1-r3.ebuild b/mail-filter/spamassassin/spamassassin-3.3.1-r3.ebuild
deleted file mode 100644
index 81dd9541a4e6..000000000000
--- a/mail-filter/spamassassin/spamassassin-3.3.1-r3.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.3.1-r3.ebuild,v 1.9 2010/10/23 19:09:58 ranger Exp $
-
-EAPI="2"
-
-inherit perl-module toolchain-funcs eutils
-
-MY_P=Mail-SpamAssassin-${PV//_/-}
-S=${WORKDIR}/${MY_P}
-DESCRIPTION="SpamAssassin is an extensible email filter which is used to identify spam."
-HOMEPAGE="http://spamassassin.apache.org/"
-SRC_URI="http://apache.osuosl.org/spamassassin/source/${MY_P}.tar.bz2"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
-# need keyword request for Mail-SPF ppc ppc64
-IUSE="berkdb qmail ssl doc ldap mysql postgres sqlite ipv6"
-
-DEPEND=">=dev-lang/perl-5.8.8-r8
- virtual/perl-MIME-Base64
- >=virtual/perl-PodParser-1.32
- virtual/perl-Storable
- virtual/perl-Time-HiRes
- >=dev-perl/HTML-Parser-3.43
- >=dev-perl/Mail-DKIM-0.37
- >=dev-perl/Net-DNS-0.53
- dev-perl/Digest-SHA1
- dev-perl/libwww-perl
- >=virtual/perl-Archive-Tar-1.26
- app-crypt/gnupg
- >=virtual/perl-IO-Zlib-1.04
- >=dev-util/re2c-0.12.0
- dev-perl/Mail-SPF
- dev-perl/NetAddr-IP
- ssl? (
- dev-perl/IO-Socket-SSL
- dev-libs/openssl
- )
- berkdb? (
- virtual/perl-DB_File
- )
- ldap? ( dev-perl/perl-ldap )
- mysql? (
- dev-perl/DBI
- dev-perl/DBD-mysql
- )
- postgres? (
- dev-perl/DBI
- dev-perl/DBD-Pg
- )
- sqlite? (
- dev-perl/DBI
- dev-perl/DBD-SQLite
- )
- ipv6? (
- dev-perl/IO-Socket-INET6
- )"
-
-PATCHES=( "${FILESDIR}/${P}-PERL-5-12.patch" )
-
-RDEPEND="${DEPEND}"
-
-# - Disable tests as they will fail
-# - Please see http://www.cpantesters.org/distro/M/Mail-SpamAssassin.html#Mail-SpamAssassin-3.3.1
-# - for more info, upstream problem not specific to Gentoo
-SRC_TEST="skip"
-
-src_configure() {
- # - Set SYSCONFDIR explicitly so we can't get bitten by bug 48205 again
- # (just to be sure, nobody knows how it could happen in the first place).
- myconf="SYSCONFDIR=/etc DATADIR=/usr/share/spamassassin"
-
- # If ssl is enabled, spamc can be built with ssl support
- if use ssl; then
- myconf+=" ENABLE_SSL=yes"
- else
- myconf+=" ENABLE_SSL=no"
- fi
-
- # Set the path to the Perl executable explictly. This will be used to
- # create the initial sharpbang line in the scripts and might cause
- # a versioned app name end in there, see
- # <http://bugs.gentoo.org/show_bug.cgi?id=62276>
- myconf+=" PERL_BIN=/usr/bin/perl"
-
- # Add Gentoo tag to make it easy for the upstream devs to spot
- # possible modifications or patches.
- #version_tag="g${PV:6}${PR}"
- #version_str="${PV//_/-}-${version_tag}"
-
- # Create the Gentoo config file before Makefile.PL is called so it
- # is copied later on.
- #echo "version_tag ${version_tag}" > rules/11_gentoo.cf
-
- # Setting the following env var ensures that no questions are asked.
- perl-module_src_configure
- # Configure spamc
- emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" spamc/Makefile || die "emake failed"
-}
-
-src_compile() {
- export PERL_MM_USE_DEFAULT=1
-
- # Now compile all the stuff selected.
- perl-module_src_compile
-
- if use qmail; then
- emake spamc/qmail-spamc || die "building qmail-spamc emake failed"
- fi
-
-}
-
-src_install () {
- perl-module_src_install
-
- # Create the stub dir used by sa-update and friends
- dodir /var/lib/spamassassin || die
-
- # Move spamd to sbin where it belongs.
- dodir /usr/sbin
- mv "${D}"/usr/bin/spamd "${D}"/usr/sbin/spamd || die "move spamd failed"
-
- if use qmail; then
- dobin spamc/qmail-spamc || die
- fi
-
- dosym /etc/mail/spamassassin /etc/spamassassin || die
-
- # Disable plugin by default
- sed -i -e 's/^loadplugin/\#loadplugin/g' "${D}"/etc/mail/spamassassin/init.pre || die
-
- # Add the init and config scripts.
- newinitd "${FILESDIR}"/3.3.1-spamd.init spamd || die
- newconfd "${FILESDIR}"/3.0.0-spamd.conf spamd || die
-
- use postgres && \
- sed -i -e 's:@USEPOSTGRES@::' "${D}/etc/init.d/spamd" || \
- sed -i -e '/@USEPOSTGRES@/d' "${D}/etc/init.d/spamd"
-
- use mysql && \
- sed -i -e 's:@USEMYSQL@::' "${D}/etc/init.d/spamd" || \
- sed -i -e '/@USEMYSQL@/d' "${D}/etc/init.d/spamd"
-
- dodoc NOTICE TRADEMARK CREDITS INSTALL.VMS UPGRADE USAGE \
- sql/README.bayes sql/README.awl procmailrc.example sample-nonspam.txt \
- sample-spam.txt spamassassin.spec spamd/PROTOCOL spamd/README.vpopmail \
- spamd-apache2/README.apache || die
-
- # Rename some docu files so they don't clash with others
- newdoc spamd/README README.spamd || die
- newdoc sql/README README.sql || die
- newdoc ldap/README README.ldap || die
-
- if use qmail; then
- dodoc spamc/README.qmail || die
- fi
-
- cp "${FILESDIR}"/secrets.cf "${D}"/etc/mail/spamassassin/secrets.cf.example || die
- fperms 0400 /etc/mail/spamassassin/secrets.cf.example
-
- cat <<EOF > "${T}/local.cf.example"
-# Sensitive data, such as database connection info, should be stored in
-# /etc/mail/spamassassin/secrets.cf with appropriate permissions
-EOF
-
- insinto /etc/mail/spamassassin/
- doins "${T}/local.cf.example" || die
-}
-
-pkg_postinst() {
- perl-module_pkg_postinst
- elog "If you plan on using the -u flag to spamd, please read the notes"
- elog "in /etc/conf.d/spamd regarding the location of the pid file.\n"
- elog "If you build ${PN} with optional dependancy support,"
- elog "you can enable them in /etc/mail/spamassassin/init.pre\n"
- elog "You need to configure your database to be able to use Bayes filter"
- elog "with database backend, otherwise it will still use (and need) the"
- elog "Berkeley DB support."
- elog "Look at the sql/README.bayes file in the documentation directory"
- elog "for how to configure it.\n"
- elog "If you plan to use Vipul's Razor, note that versions up to and"
- elog "including version 2.82 include a bug that will slow down the entire"
- elog "perl interpreter. Version 2.83 or later fixes this."
- elog "If you do not plan to use this plugin, be sure to comment out"
- elog "its loadplugin line in /etc/mail/spamassassin/v310.pre.\n"
- elog "The DKIM plugin is now enabled by default for new installs,"
- elog "if the perl module Mail::DKIM is installed."
- elog "However, installation of SpamAssassin will not overwrite existing"
- elog ".pre configuration files, so to use DKIM when upgrading from a"
- elog "previous release that did not use DKIM, a directive:\n"
- elog "loadplugin Mail::SpamAssassin::Plugin::DKIM"
- elog "will need to be uncommented in file 'v312.pre', or added"
- elog "to some other .pre file, such as local.pre.\n"
- ewarn "Rules are no longer included with SpamAssassin out of the box".
- ewarn "You will need to immediately run sa-update, or download"
- ewarn "the additional rules .tgz package and run sa-update --install"
- ewarn "with it, to get a ruleset.\n"
- elog "If when you run sa-update and receive a GPG validation error."
- elog "Then you need to import an updated sa-update key."
- elog "sa-update --import /usr/share/spamassassin/sa-update-pubkey.txt\n"
-}