ChangeLog

# ChangeLog for mail-filter/spamassassin
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.158 2008/05/14 21:25:56 sbriesen Exp $

14 May 2008; Stefan Briesenick
files/3.0.0-spamd.init:
fixed init-script for openrc (solves bug #218008).

12 May 2008; Christian Hartmann files/3.0.0-spamd.conf:
Fixed bug #211394

*spamassassin-3.2.4 (09 Jan 2008)

09 Jan 2008; Christian Hartmann
+spamassassin-3.2.4.ebuild:
Version bump; bug #204943

19 Aug 2007; Christian Hartmann
spamassassin-3.2.1.ebuild, spamassassin-3.2.1-r1.ebuild,
spamassassin-3.2.2.ebuild, spamassassin-3.2.3.ebuild:
Fixed mirror

*spamassassin-3.2.3 (19 Aug 2007)

19 Aug 2007; Christian Hartmann
+spamassassin-3.2.3.ebuild:
Version bump; bug #189089

19 Aug 2007; Christian Hartmann
spamassassin-3.2.1.ebuild, spamassassin-3.2.1-r1.ebuild,
spamassassin-3.2.2.ebuild:
Fix bug #186715

29 Jul 2007; Christian Heim spamassassin-3.1.8.ebuild,
spamassassin-3.1.8-r1.ebuild, spamassassin-3.2.0.ebuild,
spamassassin-3.2.0-r1.ebuild, spamassassin-3.2.1.ebuild,
spamassassin-3.2.1-r1.ebuild:
Fixing the SRC_URI, as UPSTREAM decided to remove the DISTFILE from its
mirrors. See #186715 for further details.

*spamassassin-3.2.2 (29 Jul 2007)

29 Jul 2007; Christian Hartmann
+files/3.2.2-upstream-5574-fix.patch,
+files/3.2.2-upstream-5574-testcase.patch, +spamassassin-3.2.2.ebuild:
Versionbump bug #186668; fixed upstream bug #5574; reenabled tests

26 Jun 2007; Markus Rothe
spamassassin-3.2.1-r1.ebuild:
Stable on ppc64; bug #181941

25 Jun 2007; Gustavo Zacarias
spamassassin-3.2.1-r1.ebuild:
Stable on sparc wrt security #181941

24 Jun 2007; Tobias Scherbaum
spamassassin-3.2.1-r1.ebuild:
ppc stable, bug #181941

24 Jun 2007; Raúl Porcel
spamassassin-3.2.1-r1.ebuild:
alpha/ia64/x86 stable wrt security #181941

23 Jun 2007; Jeroen Roovers spamassassin-3.2.1-r1.ebuild:
Stable for HPPA (bug #181941).

23 Jun 2007; Christoph Mende
spamassassin-3.2.1-r1.ebuild:
Stable on amd64 wrt security bug 181941

21 Jun 2007; Raúl Porcel
spamassassin-3.2.1-r1.ebuild:
Add ~alpha wrt #177144

18 Jun 2007; Michael Cummings
spamassassin-3.2.1-r1.ebuild:
Fixed deps (again), disabled tests, see
http://www.gossamer-threads.com/lists/spamassassin/users/102895

*spamassassin-3.2.1-r1 (18 Jun 2007)

18 Jun 2007; Michael Cummings
+spamassassin-3.2.1-r1.ebuild:
Dep fixes; tests are still failing on some platforms, opened upstream bug
5524 on the SA bugzilla

*spamassassin-3.2.1 (18 Jun 2007)

18 Jun 2007; Michael Cummings
+spamassassin-3.2.1.ebuild:
Version bump

08 May 2007; Raúl Porcel
spamassassin-3.2.0-r1.ebuild:
Add ~ia64 wrt bug 177144

06 May 2007; Andrej Kacian
spamassassin-3.2.0-r1.ebuild:
Depend on >=re2c-0.12.0, because 0.11.3 can produce buggy code. Bug #177302,
reported by Andreas Korinek .

05 May 2007; Jeroen Roovers spamassassin-3.2.0-r1.ebuild:
Marked ~hppa (bug #177144).

*spamassassin-3.2.0-r1 (05 May 2007)

05 May 2007; Christian Hartmann
+spamassassin-3.2.0-r1.ebuild:
New dep; bug #176997

*spamassassin-3.2.0 (03 May 2007)

03 May 2007; Christian Hartmann
+spamassassin-3.2.0.ebuild:
Version bump

21 Apr 2007; Raúl Porcel
spamassassin-3.1.8-r1.ebuild:
ia64 + x86 stable

18 Apr 2007; Gustavo Zacarias
spamassassin-3.1.8-r1.ebuild:
Stable on sparc

09 Apr 2007; Michael Cummings
spamassassin-3.1.8-r1.ebuild:
Marking stable amd64

*spamassassin-3.1.8-r1 (25 Feb 2007)

25 Feb 2007; Christian Hartmann
+files/3.1.8-archive-iterator.patch, +spamassassin-3.1.8-r1.ebuild:
Fix bug #167515

23 Feb 2007; Christian Hartmann
spamassassin-3.1.8.ebuild:
Fixed bug #167585

22 Feb 2007; Christian Hartmann
-files/spamassassin-3.1.3-bug-4930.diff, -files/spamd.conf,
-files/spamd.init, -spamassassin-3.1.3.ebuild,
-spamassassin-3.1.3-r1.ebuild, -spamassassin-3.1.4.ebuild,
-spamassassin-3.1.5.ebuild, -spamassassin-3.1.6.ebuild,
-spamassassin-3.1.7.ebuild:
Cleanup

19 Feb 2007; spamassassin-3.1.8.ebuild:
Stable on amd64 wrt bug #166969

18 Feb 2007; Jason Wever spamassassin-3.1.8.ebuild:
Stable on SPARC WRT security bug #166969.

18 Feb 2007; Raúl Porcel spamassassin-3.1.8.ebuild:
x86 stable wrt security bug 166969

18 Feb 2007; Tobias Scherbaum
spamassassin-3.1.8.ebuild:
Stable on ppc wrt bug #166969.

18 Feb 2007; Alexander H. Færøy
spamassassin-3.1.8.ebuild:
Stable on Alpha, IA64 and MIPS; bug #166969

18 Feb 2007; Markus Rothe spamassassin-3.1.8.ebuild:
Stable on ppc64; bug #166969

18 Feb 2007; Jeroen Roovers spamassassin-3.1.8.ebuild:
Stable for HPPA (bug #166969).

*spamassassin-3.1.8 (16 Feb 2007)

16 Feb 2007; Michael Cummings
+spamassassin-3.1.8.ebuild:
Version bump, bug 166969

11 Feb 2007; Christian Hartmann files/3.0.0-spamd.init:
Added reload function to spamd; bug #159933

02 Feb 2007; Gustavo Zacarias
spamassassin-3.1.7.ebuild:
Stable on sparc

*spamassassin-3.1.7 (19 Nov 2006)

19 Nov 2006; Michael Cummings
+spamassassin-3.1.7.ebuild:
Version bump

18 Nov 2006; Michael Cummings
spamassassin-3.1.5.ebuild, spamassassin-3.1.6.ebuild:
Typo in the einfo - not a not, a note (tomaw++)

08 Nov 2006; Ilya A. Volynets-Evenbakh
-spamassassin-3.1.0.ebuild, spamassassin-3.1.3.ebuild:
Remove 3.1.0 ebuild, since 3.1.3 is stabled on mips (#140527)

08 Nov 2006; Ilya A. Volynets-Evenbakh
spamassassin-3.1.3.ebuild:
Stable on mips (#140527)

18 Oct 2006; Rajiv Aaron Manglani
files/3.0.0-spamd.init:
new init.d file implementing SPAMD_NICELEVEL, bug 118274.

*spamassassin-3.1.6 (05 Oct 2006)

05 Oct 2006; Michael Cummings
+spamassassin-3.1.6.ebuild:
Version bump

*spamassassin-3.1.5 (30 Aug 2006)

30 Aug 2006; Michael Cummings
+spamassassin-3.1.5.ebuild:
Version bump upstream

*spamassassin-3.1.4 (06 Aug 2006)

06 Aug 2006; Michael Cummings
+spamassassin-3.1.4.ebuild:
Version bump. Closes bug 141907

16 Jul 2006; Christian Hartmann
-files/spamassassin-3.1.1-lint-de.diff, -spamassassin-3.0.4.ebuild,
spamassassin-3.1.0.ebuild, -spamassassin-3.1.0-r1.ebuild,
-spamassassin-3.1.0-r2.ebuild, -spamassassin-3.1.1.ebuild,
-spamassassin-3.1.2.ebuild:
Clean up for bug #140527; still waiting for mips

05 Jul 2006; Stuart Longland
spamassassin-3.1.0.ebuild:
Marked spamassassin-3.1.0 stable on mips as per bug #135746

*spamassassin-3.1.3-r1 (20 Jun 2006)

20 Jun 2006; Christian Hartmann
+files/spamassassin-3.1.3-bug-4930.diff, +spamassassin-3.1.3-r1.ebuild:
Fixed bug #135940 - broken --exit-code command-line option

18 Jun 2006; Bryan Østergaard
spamassassin-3.1.3.ebuild:
Stable on ia64, bug 135746.

07 Jun 2006; Thomas Cort spamassassin-3.1.3.ebuild:
Stable on alpha wrt security Bug #135746.

06 Jun 2006; Gustavo Zacarias
spamassassin-3.1.3.ebuild:
Stable on sparc wrt security #135746

06 Jun 2006; Chris Gianelloni
spamassassin-3.1.3.ebuild:
Stable on amd64 and x86 wrt bug #135746.

06 Jun 2006; Markus Rothe spamassassin-3.1.3.ebuild:
Stable on ppc64; bug #135746

06 Jun 2006; Rene Nussbaumer
spamassassin-3.1.3.ebuild:
Stable on hppa. See bug #135746.

06 Jun 2006; Tobias Scherbaum
spamassassin-3.1.3.ebuild:
ppc stable, bug #135746

*spamassassin-3.1.3 (06 Jun 2006)

06 Jun 2006; Christian Hartmann
+spamassassin-3.1.3.ebuild:
Version bump; security bug #135746

*spamassassin-3.1.2 (26 May 2006)

26 May 2006; +spamassassin-3.1.2.ebuild:
Version bump

21 Apr 2006; Hanno Boeck
+files/spamassassin-3.1.1-lint-de.diff, spamassassin-3.1.1.ebuild:
Add patch to let spamassassin --lint work with german locale.

08 Apr 2006; spamassassin-3.1.1.ebuild:
Keywording ~mips, tested on raq2, closes bug 126672

03 Apr 2006; Mark Loeser spamassassin-3.0.4.ebuild:
fperms prepends ${D} for us

29 Mar 2006; spamassassin-3.1.1.ebuild:
Typo in ebuild for 3.1.1

20 Mar 2006; Michael Cummings
spamassassin-3.1.1.ebuild:
Bug 126959, use-flag abuse curtailed. thanks Halcy0n

19 Mar 2006; Michael Cummings
spamassassin-3.1.1.ebuild:
Typo on line 231

18 Mar 2006; Michael Cummings
spamassassin-3.1.1.ebuild:
One last dep for 3.1.1, doesn't affect keywords :)

18 Mar 2006; Markus Rothe spamassassin-3.1.1.ebuild:
Added ~ppc64; bug #126672

*spamassassin-3.1.1 (18 Mar 2006)

18 Mar 2006; Michael Cummings
files/3.0.0-spamd.conf, +spamassassin-3.1.1.ebuild:
New SA, closes bug 125899, opens bug 126772, 126673, 126674, 126675, 126678,
126679, 126680, 126683, 126684, 126685. Joy

14 Mar 2006; Gustavo Zacarias
spamassassin-3.1.0-r1.ebuild, spamassassin-3.1.0-r2.ebuild:
Keyworded ~hppa, enjoy

12 Mar 2006; Michael Cummings
spamassassin-3.1.0-r1.ebuild, spamassassin-3.1.0-r2.ebuild:
Bug 121841, thanks david for giving me a clue bat

10 Mar 2006; Aron Griffis
spamassassin-3.1.0-r2.ebuild:
Mark 3.1.0-r2 ~ia64

09 Mar 2006; Aron Griffis spamassassin-3.1.0.ebuild:
Mark 3.1.0 stable on ia64

20 Feb 2006; Michael Cummings
spamassassin-3.1.0-r1.ebuild:
Bug 122900, iuse use again

17 Feb 2006; Jeroen Roovers spamassassin-3.1.0-r2.ebuild:
Fixing IUSE if no one else will (bug #112220, comment #7).

15 Feb 2006; spamassassin-3.1.0-r1.ebuild,
spamassassin-3.1.0-r2.ebuild:
Typo in einfo, should be dev-perl not dev-prel, thanks Grant :)

13 Feb 2006; Michael Cummings
spamassassin-3.0.4.ebuild, spamassassin-3.1.0.ebuild,
spamassassin-3.1.0-r1.ebuild, spamassassin-3.1.0-r2.ebuild:
Virtuals for perl-core

15 Jan 2006; Michael Cummings
spamassassin-3.1.0-r2.ebuild:
Bug 80184, cant wait for my pdepend idea, going ahead with daniel black's
suggestion

09 Jan 2006; spamassassin-3.1.0-r2.ebuild:
Bug 107683, ldap use flag

30 Dec 2005; spamassassin-3.0.4.ebuild,
spamassassin-3.1.0-r1.ebuild, spamassassin-3.1.0-r2.ebuild,
spamassassin-3.1.0.ebuild:
PodParser moved to perl-core

*spamassassin-3.1.0-r2 (21 Nov 2005)

21 Nov 2005; spamassassin-3.1.0-r1.ebuild,
+spamassassin-3.1.0-r2.ebuild, spamassassin-3.1.0.ebuild:
Sorry for the bump in -r2, best way to deal with some fixes to configs

17 Nov 2005; Homer Parker spamassassin-3.1.0.ebuild:
Stable on amd64 fixing bug 112063

14 Nov 2005; Michael Hanselmann
spamassassin-3.1.0.ebuild:
Stable on hppa, ppc.

14 Nov 2005; Markus Rothe spamassassin-3.1.0.ebuild:
Stable on ppc64; bug #112063

13 Nov 2005; Mark Loeser spamassassin-3.1.0.ebuild:
Stable on x86; bug #112063

13 Nov 2005; Fernando J. Pereda
spamassassin-3.1.0.ebuild:
stable on alpha wrt bug #112063

13 Nov 2005; Jason Wever spamassassin-3.1.0.ebuild:
Stable on SPARC wrt bug #112063.

12 Nov 2005; Brent Baude spamassassin-3.1.0-r1.ebuild:
Marking spamassassin-3.1.0-r1 ~ppc64 for bug# 112220

12 Nov 2005; Michael Cummings
spamassassin-3.1.0.ebuild, spamassassin-3.1.0-r1.ebuild:
SA 3.1.0 needs the lateste archive-tar

12 Nov 2005; Fernando J. Pereda
spamassassin-3.1.0-r1.ebuild:
marked ~alpha as per bug #112220

*spamassassin-3.1.0-r1 (11 Nov 2005)

11 Nov 2005; Michael Cummings
+spamassassin-3.1.0-r1.ebuild:
3.1.0-r1 adds additional use flags and support, which are not supported by
all architectures atm. Bug 112220 has been created to track this.

*spamassassin-3.1.0 (11 Nov 2005)

11 Nov 2005; Michael Cummings
+spamassassin-3.1.0.ebuild:
Upstream bump, ebuild worked heavily by Brian G. Peterson in bug 106028.
Should also close bug (request for said bump). Additional use flag information that Brian added needed to be removed for the time being - not all arch's are up to date on the relevant dependancies. Will open a bug against arch's for 3.1.0-r1.ebuild.

16 Aug 2005; Michael Cummings files/3.0.0-spamd.conf,
+files/secrets.cf, -spamassassin-2.64-r1.ebuild,
-spamassassin-3.0.2-r1.ebuild, -spamassassin-3.0.3.ebuild,
spamassassin-3.0.4.ebuild:
Cleaning up; bug 91430 resolved, added secrets.cf and a note to the local.cf
file

28 Jun 2005; Michael Cummings
files/3.0.0-spamd.init, spamassassin-3.0.4.ebuild:
Bug 96704

28 Jun 2005; Michael Cummings
files/3.0.0-spamd.init, spamassassin-3.0.4.ebuild:
Bug 85205

28 Jun 2005; Michael Cummings
spamassassin-3.0.4.ebuild:
Bug 96669

18 Jun 2005; Thomas Matthijs spamassassin-3.0.4.ebuild:
stable on x86

17 Jun 2005; Rene Nussbaumer
spamassassin-3.0.4.ebuild:
Stable on hppa. bug #94722

17 Jun 2005; Markus Rothe spamassassin-3.0.4.ebuild:
Stable on ppc64; bug #94722

16 Jun 2005; Bryan Østergaard
spamassassin-3.0.4.ebuild:
Stable on alpha + ia64.

10 Jun 2005; Michael Cummings
files/3.0.0-spamd.init:
init addition for pidfile location

09 Jun 2005; Michael Cummings
spamassassin-3.0.2-r1.ebuild:
3.0.2-r1 tested on mips, keywording

09 Jun 2005; Michael Cummings
-spamassassin-2.63-r1.ebuild, -spamassassin-2.63.ebuild,
-spamassassin-2.64.ebuild, -spamassassin-3.0.0-r1.ebuild,
-spamassassin-3.0.0.ebuild, -spamassassin-3.0.1.ebuild,
-spamassassin-3.0.2.ebuild:
Cleaning. Next task: get mips bumped

08 Jun 2005; Gustavo Zacarias
spamassassin-3.0.4.ebuild:
Stable on sparc wrt #94722

08 Jun 2005; Michael Hanselmann
spamassassin-3.0.4.ebuild:
Stable on ppc.

08 Jun 2005; Simon Stelling spamassassin-3.0.4.ebuild:
marking stable on amd64 wrt bug 94722

*spamassassin-3.0.4 (08 Jun 2005)

08 Jun 2005; Michael Cummings
+spamassassin-3.0.4.ebuild:
Version bump, bug forthcoming

25 May 2005; Michael Cummings
spamassassin-2.64.ebuild:
dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration

25 May 2005; Michael Cummings
spamassassin-2.64-r1.ebuild:
dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration

25 May 2005; Michael Cummings
spamassassin-2.63.ebuild:
dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration

25 May 2005; Michael Cummings
spamassassin-2.63-r1.ebuild:
dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration

25 May 2005; Michael Cummings
spamassassin-2.64.ebuild:
dev-perl/Time-Local => perl-core/Time-Local migration

25 May 2005; Michael Cummings
spamassassin-2.64-r1.ebuild:
dev-perl/Time-Local => perl-core/Time-Local migration

25 May 2005; Michael Cummings
spamassassin-2.63.ebuild:
dev-perl/Time-Local => perl-core/Time-Local migration

25 May 2005; Michael Cummings
spamassassin-2.63-r1.ebuild:
dev-perl/Time-Local => perl-core/Time-Local migration

25 May 2005; Michael Cummings
spamassassin-3.0.3.ebuild:
dev-perl/Time-HiRes => perl-core/Time-HiRes migration

25 May 2005; Michael Cummings
spamassassin-3.0.3.ebuild:
dev-perl/Storable => perl-core/Storable migration

25 May 2005; Michael Cummings
spamassassin-3.0.3.ebuild:
dev-perl/MIME-Base64 => perl-core/MIME-Base64 migration

25 May 2005; Michael Cummings
spamassassin-3.0.2.ebuild:
dev-perl/MIME-Base64 => perl-core/MIME-Base64 migration

25 May 2005; Michael Cummings
spamassassin-3.0.2-r1.ebuild:
dev-perl/MIME-Base64 => perl-core/MIME-Base64 migration

25 May 2005; Michael Cummings
spamassassin-3.0.1.ebuild:
dev-perl/MIME-Base64 => perl-core/MIME-Base64 migration

25 May 2005; Michael Cummings
spamassassin-2.64.ebuild:
dev-perl/Getopt-Long => perl-core/Getopt-Long migration

25 May 2005; Michael Cummings
spamassassin-2.64-r1.ebuild:
dev-perl/Getopt-Long => perl-core/Getopt-Long migration

25 May 2005; Michael Cummings
spamassassin-2.63.ebuild:
dev-perl/Getopt-Long => perl-core/Getopt-Long migration

25 May 2005; Michael Cummings
spamassassin-2.63-r1.ebuild:
dev-perl/Getopt-Long => perl-core/Getopt-Long migration

25 May 2005; Michael Cummings
spamassassin-2.64.ebuild:
dev-perl/File-Spec => perl-core/File-Spec migration

25 May 2005; Michael Cummings
spamassassin-2.64-r1.ebuild:
dev-perl/File-Spec => perl-core/File-Spec migration

25 May 2005; Michael Cummings
spamassassin-2.63.ebuild:
dev-perl/File-Spec => perl-core/File-Spec migration

25 May 2005; Michael Cummings
spamassassin-2.63-r1.ebuild:
dev-perl/File-Spec => perl-core/File-Spec migration

24 May 2005; Michael Cummings
spamassassin-2.63-r1.ebuild, spamassassin-2.63.ebuild,
spamassassin-2.64-r1.ebuild, spamassassin-2.64.ebuild,
spamassassin-3.0.0-r1.ebuild, spamassassin-3.0.0.ebuild,
spamassassin-3.0.1.ebuild, spamassassin-3.0.2-r1.ebuild,
spamassassin-3.0.2.ebuild, spamassassin-3.0.3.ebuild:
dev-perl/DB_File => perl-core/DB_File

10 May 2005; Sven Wegener files/3.0.0-spamd.conf,
files/3.0.0-spamd.init, files/spamd.conf, files/spamd.init,
spamassassin-3.0.3.ebuild:
Moved the declaration of the pid file location from init.d script to conf.d
file. Overriding the value might be needed if we run spamd as non-root. Some
general ebuild cleanup.

*spamassassin-3.0.3 (04 May 2005)

04 May 2005; Michael Cummings
+spamassassin-3.0.3.ebuild:
New version released

02 Apr 2005; Stephen P. Becker
spamassassin-2.64-r1.ebuild:
stable on mips

*spamassassin-3.0.2-r1 (30 Jan 2005)

30 Jan 2005; Michael Cummings files/3.0.0-spamd.conf,
files/spamd.conf, spamassassin-2.63-r1.ebuild, spamassassin-2.63.ebuild,
+spamassassin-2.64-r1.ebuild, spamassassin-2.64.ebuild,
spamassassin-3.0.0-r1.ebuild, spamassassin-3.0.0.ebuild,
+spamassassin-3.0.2-r1.ebuild:
Version bump to reflect bug 76168.

24 Jan 2005; Michael Cummings files/3.0.0-spamd.conf:
Bug 76168 - removing -i from default config file so that SA is only listening
on localhost rather than all available interfaces.

27 Dec 2004; Guy Martin spamassassin-3.0.2.ebuild:
Stable on hppa.

27 Dec 2004; Bryan Østergaard
spamassassin-3.0.2.ebuild:
Stable on alpha, bug 64133.

26 Dec 2004; Jeremy Huddleston
spamassassin-3.0.2.ebuild:
Stable sparc.

26 Dec 2004; Jeremy Huddleston
spamassassin-3.0.2.ebuild:
Stable x86.

23 Dec 2004; Simon Stelling spamassassin-3.0.2.ebuild:
stable on amd64; bug #64133

23 Dec 2004; spamassassin-3.0.2.ebuild:
stable on ppc glsa: 64133

20 Dec 2004; Markus Rothe spamassassin-3.0.2.ebuild:
Stable on ppc64

*spamassassin-3.0.2 (20 Dec 2004)

20 Dec 2004; Michael Cummings
+spamassassin-3.0.2.ebuild:
New version; closes bug 74731
Updates:
SA-bug 4005: Yahoo groups messages flagged as forged
SA-bug 4030: incapable Net::DNS module usage should be a warning
SA-bug 2462: detect legitimate SMTP AUTH submission, to avoid false positives on Dynablock-style rules
SA-bug 4019: Needed to add in RPAD call wherever token was used in a select
SA-bug 3961: Docu fix for two contradicting explanations of the -x switch
SA-bug 4014: change spamcop_submission_address to correct name, spamcop_to_address
SA-bug 3990: two small regexp errors in RegistrarBoundaries
SA-bug 3967: fix performance issues with USERPASS and RATWARE_STORM_URI
SA-bug 3953: Provide better debug output for sa-learn --restore
SA-bug 3816: deal with 'rewrite_header Subject' markup when no Subject header previously existed
SA-bug 3950: Exim 'sender_fullhost' var was not recognized by Received header parser
SA-bug 3942: EvalTests::_check_recipients() would sometimes parse out the wrong addresses/overwrite entries on the array/etc
SA-bug 3941: spamcop now only wants max 2 day old mail
SA-bug 3930: uridnsbl plugin didn't respect the uridnsbl_max_domains value

*spamassassin-3.0.1 (20 Dec 2004)

20 Dec 2004; Michael Cummings
files/3.0.0-spamd.conf, files/spamd.conf, spamassassin-3.0.0-r1.ebuild,
spamassassin-3.0.0.ebuild, spamassassin-3.0.1.ebuild:
Added note regarding potential for DoS against spamd when used against an
untrusted network. Should resolve bug 64133 for now.

26 Oct 2004; Michael Cummings :
Bug 68841. - excessive memory-usage fixes - bug fixed which stopped DCC, Pyzor
working with amavisd - deprecate RCVD_IN_RFC_IPWHOIS - user_prefs were staying
active between different spamd users, fixed - user_prefs blacklist entries
were not working in spamd, fixed - excessive time and memory consumption when
ok_languages is used, fixed - sa-learn -u switch to specify the username for
virtual environments - avoid bug in Sys::Hostname::Long that renames the
hostname when "make test" is run - whitelist the top 125 queried SURBL domains
common in nonspam

28 Sep 2004; Sven Wegener files/3.0.0-spamd.init:
Gentoo Technologies, Inc. -> Gentoo Foundation

26 Sep 2004; Tom Gall spamassassin-2.64.ebuild:
stable on ppc64, bug #59483

*spamassassin-3.0.0-r1 (24 Sep 2004)

24 Sep 2004; Michael Cummings
+spamassassin-3.0.0-r1.ebuild, spamassassin-3.0.0.ebuild:
Mistake on my part with importing the DATADIR that was used in the pre-release
ebuild. Corrected in both 3 and 3-r1 just to be safe. Addresses bug 65102.

22 Sep 2004; Michael Cummings
spamassassin-3.0.0.ebuild:
<= not >= for razor less than 2.4. axxo - good catch

*spamassassin-3.0.0 (22 Sep 2004)

22 Sep 2004; Michael Cummings
+files/3.0.0-spamd.conf, +files/3.0.0-spamd.init,
+spamassassin-3.0.0.ebuild:
New version of spamassassin. Read the UPDATES and CHANGES if upgrading!!This
should close out bug 58057.

06 Aug 2004; Aron Griffis spamassassin-2.64.ebuild:
stable on alpha and ia64 #59483

05 Aug 2004; Tom Martin spamassassin-2.64.ebuild:
Marked stable on amd64 for bug 59483.

*spamassassin-2.64 (05 Aug 2004)

05 Aug 2004; spamassassin-2.64.ebuild:
sparc-ified

21 Jul 2004; Tom Gall spamassassin-2.63-r1.ebuild:
stable on ppc64, bug #57585

*spamassassin-2.63-r1 (04 Jul 2004)

04 Jul 2004; Robin H. Johnson
spamassassin-2.63-r1.ebuild:
add in functionality from bug #49448, qmail-spamc.

08 Jun 2004; Robert Coie spamassassin-2.63.ebuild:
Add Time-Local and Getopt-Long to the stuff that perl can fill

06 Jun 2004; Robert Coie spamassassin-2.63.ebuild:
Modify the File-Spec and MakeMaker deps to be fulfillable by >=perl-5.8.2-r1
itself

*spamassassin-2.63 (03 Jun 2004)

03 Jun 2004; Seemant Kulleen +metadata.xml,
+files/spamd.conf, +files/spamd.init, +spamassassin-2.63.ebuild:
Change category from dev-perl to mail-filter, and change package name from
Mail-SpamAssassin to just plain old spamassassin

16 Apr 2004; Michael Cummings
Mail-SpamAssassin-2.60-r1.ebuild, Mail-SpamAssassin-2.60-r2.ebuild,
Mail-SpamAssassin-2.61.ebuild, Mail-SpamAssassin-2.62.ebuild:
Syntax fix for newdepend, bug 29064

25 Feb 2004; Sven Blumenstein
Mail-SpamAssassin-2.63.ebuild:
Stable on sparc, thanks to Josh Grebe for testing!

20 Feb 2004; Aron Griffis
Mail-SpamAssassin-2.63.ebuild:
stable on alpha and ia64

18 Feb 2004; Eric Sammer Mail-SpamAssassin-2.63.ebuild:
Mark stable on x86 and amd64. This fixes bug #41801 and bug #40828.

09 Feb 2004; Bartosch Pixa
Mail-SpamAssassin-2.63.ebuild:
set ppc in keywords

*Mail-SpamAssassin-2.63 (23 Jan 2004)

23 Jan 2004; Robin H. Johnson
Mail-SpamAssassin-2.63.ebuild:
bug #38844, version bump

19 Jan 2004; Mail-SpamAssassin-2.62.ebuild:
Added ~mips to KEYWORDS.

18 Jan 2004; Mail-SpamAssassin-2.61.ebuild:
Added ~mips to KEYWORDS.

*Mail-SpamAssassin-2.62 (18 Jan 2004)

18 Jan 2004; Eric Sammer Mail-SpamAssassin-2.62.ebuild:
Version bump. Closes bug 38559

10 Jan 2004; Mail-SpamAssassin-2.61.ebuild:
marked stable for sparc and hppa

*Mail-SpamAssassin-2.61 (18 Dec 2003)

18 Dec 2003; Mail-SpamAssassin-2.55-r1.ebuild,
Mail-SpamAssassin-2.55-r2.ebuild, Mail-SpamAssassin-2.55.ebuild,
Mail-SpamAssassin-2.60.ebuild, Mail-SpamAssassin-2.61.ebuild:
Add 2.61, clean house. Address bug 35423

*Mail-SpamAssassin-2.60-r2 (28 Oct 2003)

28 Oct 2003; Robin H. Johnson
Mail-SpamAssassin-2.60-r2.ebuild, files/spamd.init:
improve spamd.init as per bug #22833 so it starts in the correct place, and
bump revision with slight ebuild cleanup

15 Oct 2003; Michael Cummings
Mail-SpamAssassin-2.60-r1.ebuild:
Unmasking for x86, now stable

*Mail-SpamAssassin-2.60-r1 (26 Sep 2003)

26 Sep 2003; Mail-SpamAssassin-2.60-r1.ebuild:
New ebuild that uses final 2.60. Much thanks to Malte S. Stretz in bug 29404
and elsewhere.

*Mail-SpamAssassin-2.55-r2 (24 Sep 2003)

24 Sep 2003; Mail-SpamAssassin-2.55-r2.ebuild:
Fix sandbox problem with rules files

12 Sep 2003; Rajiv Aaron Manglani
Mail-SpamAssassin-2.60.ebuild:
marked unstable as 2.60 is still changing upstream.

08 Sep 2003; Michael Cummings files/spamd.conf:
Added note to spamd.conf for running as non root user - thanks to Joe
in bug 24070 for pointing this out

08 Sep 2003; Michael Cummings
Mail-SpamAssassin-2.60.ebuild:
Put forward again upstream

26 Aug 2003; Michael Cummings
Mail-SpamAssassin-2.60.ebuild:
Pulled back upstream. Leaving the ebuild because 2.60 is forthcoming, but it
has been pulled back for now.

*Mail-SpamAssassin-2.60 (22 Aug 2003)

22 Aug 2003; Michael Cummings
Mail-SpamAssassin-2.60.ebuild:
New version of spamassasin - bug 27037 by Pol brought
this to our attention. New ebuild now has better support for ssl, removes
legacy call for razor1 (no longer supported by spamassassin), and adds support
for DB_File. Also added note for perl 5.8 users to the end regarding
localization support in spamassasin.

18 Jun 2003; Michael Cummings
Mail-SpamAssassin-2.55-r1.ebuild:
New version of the ebuild for 2.55-r1 submitted by Wayne Davison
(gentoo@blorf.net) is a cleaner build using the config vars that SpamAssassis
is looking for (vs our sed's of the resulting files). This should close bug
21349.

*Mail-SpamAssassin-2.55-r1 (18 Jun 2003)

18 Jun 2003; Michael Cummings
Mail-SpamAssassin-2.55-r1.ebuild:
This update is to address an inacurate DEPEND; bad strips in cf files, etc.

*Mail-SpamAssassin-2.55 (20 May 2003)

20 May 2003; Daniel Ahlberg Mail-SpamAssassin-2.55.ebuild :
Version bump.

*Mail-SpamAssassin-2.54 (12 May 2003)

12 May 2003; Jon Portnoy Mail-SpamAssassin-2.54.ebuild :
Version bump.

*Mail-SpamAssassin-2.53 (10 Apr 2003)

16 Apr 2003; Mail-SpamAssassin-2.53.ebuild:
disable razor tests to avoid interactivity in build, again thanks to Wayne
Davison in bug #17988

15 Apr 2003; Mail-SpamAssassin-2.53.ebuild:
remove TODO from docs list, thanks to Wayne Davison in bug
#17988

10 Apr 2003; Daniel Ahlberg Mail-SpamAssassin-2.53.ebuild :
Version bump.

*Mail-SpamAssassin-2.52 (28 Mar 2003)

28 Mar 2003; Daniel Ahlberg Mail-SpamAssassin-2.52.ebuild :
Version bump.

*Mail-SpamAssassin-2.50 (26 Feb 2003)

26 Feb 2003; Hanno Boeck Mail-SpamAssassin-2.50.ebuild :
New version. Just copied the old ebuild.

*Mail-SpamAssassin-2.44 (02 Feb 2003)

02 Feb 2003; Daniel Ahlberg :
Security update.

06 Dec 2002; Rodney Rees : changed sparc ~sparc keywords

*Mail-SpamAssassin-2.43-r3 (01 Dec 2002)

02 Jan 2002; Nick Hadaway
Mail-SpamAssassin-2.43-r3.ebuild :
Marked stable.

01 Dec 2002; Nick Hadaway
Mail-SpamAssassin-2.43-r3.ebuild,
files/digest-Mail-SpamAssassin-2.43-r3 :
Version bump with changes suggested in bug #9756

*Mail-SpamAssassin-2.43-r2 (29 Oct 2002)

29 Oct 2002; Seemant Kulleen ChangeLog :
forced version bump to install into correct locations

*Mail-SpamAssassin-2.43-r1 (27 Oct 2002)

27 Oct 2002; Mail-SpamAssassin-2.43-r1.ebuild :
Adds better options to config to avoid sandbox violations

*Mail-SpamAssassin-2.43 (24 Oct 2002)

24 Oct 2002; Mail-SpamAssassin-2.43.ebuild :
corrects problems with mail filtering adding extra chars to the from field

*Mail-SpamAssassin-2.31-r3 (05 Jul 2002)

31 Jul 2002; Calum Selkirk
Mail-SpamAssassin-2.31-r3.ebuild :

Added ppc to KEYWORDS.

05 Jul 2002; Seemant Kulleen
Mail-SpamAssassin-2.31-r3.ebuild files/digest-Mail-SpamAssassin-2.31-r3 :

Fixed the way the install process went for this.

*Mail-SpamAssassin-2.31-r2 (04 Jul 2002)

04 Jul 2002; Grant Goodyear ChangeLog :

Adding spamd init stuff (thanks to Marcelo Fontenele S Santos); removing
old versions

*Mail-SpamAssassin-2.31-r1 (02 Jul 2002)

02 Jul 2002; Grant Goodyear ChangeLog :

added Time-HiRes dep

*Mail-SpamAssassin-2.31 (28 Jun 2002)

28 Jun 2002; Bruce A. Locke Mail-SpamAssassin-2.31.ebuild:

Version Bump

*Mail-SpamAssassin-2.20 (2 Jun 2002)

2 Jun 2002; Preston A. Elder Mail-SpamAssassin-2.20.ebuild:

new ebuild

*spamassassin-2.20 (21 May 2002)

21 May 2002; Grant Goodyear :

Version bump. Also dodoc'd some useful files.

*spamassassin-2.11-r1 (12 Apr 2002)

12 Apr 2002; Grant Goodyear :

Fixed sandbox violation.

*spamassassin-2.11 (15 Mar 2002)

15 Mar 2002; Bruce A. Locke spamassassin-2.11.ebuild :

Update to 2.11

*spamassassin-2.01 (24 Feb 2002)

24 Feb 2002; Bruce A. Locke spamassassin-2.01.ebuild :

Ebuild contributed by Marc Soda

Manifest

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.1.8-archive-iterator.patch 501 RMD160 6eb7ef7c73d8f207d04e5cffe59e8d924d13c06e SHA1 0b3fbbeb778daffa72094a68d91a48073438ef0a SHA256 244fa7e6af21998f7ba1d7632c618b50924401effb84db79070b9c7c24e41215
AUX 3.2.2-upstream-5574-fix.patch 1271 RMD160 4b8a47313b220701f2fb74d4c2c8f552f90a9c82 SHA1 6a1a42770f30eeef76d29fa38e5f19817b68b827 SHA256 ac262a3950e0d6c00619488d14be34859e774ff3b7b3bd6cf97ce556c36f660d
AUX 3.2.2-upstream-5574-testcase.patch 1611 RMD160 e94baa4f60c825777744ffcd58fdcda2951721f6 SHA1 1a4e7947bb46d2e475d9db33e682136295075c91 SHA256 9d5439c465418c89c10bd10b0802c80f73332fc47d5ce7df3e506696f6cb559e
AUX secrets.cf 664 RMD160 afb1212a464bd7053c1301c1a1e670b73216528a SHA1 a742beddf850e55bc4454a7548dc43c36f8e9760 SHA256 9f134c7b857b21689f612fc6d131f719e5a65e2ba341b282e7aa57402c854139
DIST Mail-SpamAssassin-3.1.8.tar.bz2 1003128 RMD160 90a9cc31795493c194932141d88daa7cc4d7386c SHA1 0d092c4de6e6df66f1d0fb0ca8589147ee4096cb SHA256 ff6ad3d06719859e7bb47bbfd360750bf561bf3bfb6c8443064e73eb05dcb2ea
DIST Mail-SpamAssassin-3.2.0.tar.bz2 1067316 RMD160 45766a196f2154b08c16ed54a9a72446075a2d30 SHA1 2fb864f01fc1c287e6f6e62fab8338f32cd20fb1 SHA256 d3ff42ba43b4eec51adac9031256cd480d495d6f5d8eb724c8a24d3ed508aa45
DIST Mail-SpamAssassin-3.2.1.tar.bz2 981918 RMD160 508e9aae2705d1caaeba78720ba78b6385a6e237 SHA1 3095b38d90d0362c4e47e117fb612778a2ac362b SHA256 bccd0ecf00c3bc6bbcbe4a5eaa486e0db7dc755076130a66c935ec50b3fa8b3c
DIST Mail-SpamAssassin-3.2.2.tar.bz2 989555 RMD160 663a4e21e824bbdaa99f34c5155869a9cb3f098a SHA1 6dfaa36eb8e500f9315cf2461fbd3229ae92a2c7 SHA256 32797587da66214c7453bc0ae102b53cec9a0f5dc27a326cfab5bf96f6e0d69a
DIST Mail-SpamAssassin-3.2.3.tar.bz2 993369 RMD160 208671bcfe6ccfffb79072991bbf3893928a40cf SHA1 53199e0218d2f93043fcdca4db3f164f1f9f7cbc SHA256 a675c91bd005a739891aeb9d6138bb43ba4e9b31407d9d69e41e6a6980f7a680
DIST Mail-SpamAssassin-3.2.4.tar.bz2 1007497 RMD160 9523a5d3fad86b65743c3818b8a10b6af66a6323 SHA1 876fc328a2b6192fa0bb8d7f6926214716178417 SHA256 29f7bdac4a535b4ea668112d0d85e14befed618b21d770f2065be197bcedf7b2
EBUILD spamassassin-3.1.8-r1.ebuild 8085 RMD160 58b2b4cbdf8c57a7200afa09353e1da189f8a641 SHA1 f2ecad25e1d6ab9480787e8c48eb76255561f3ab SHA256 12e91a72687c6ccf65cd34917722dc7b97ce0fc5115e6a73d64a1ef78f6c12e6
EBUILD spamassassin-3.1.8.ebuild 7932 RMD160 08661f01aed67ded5918a23d16785329175edfb9 SHA1 f16da9dc7cf7cdf755a68440c91fe2001cf3a325 SHA256 34a1231669006bbd436138a38736a78ae2a3922e250b27bb5ae65d89a8f20493
EBUILD spamassassin-3.2.0-r1.ebuild 7948 RMD160 c1de17f70d3e265d3a5df63d75296c43a648840c SHA1 70b71e386984383416426f7bf42e4ba6e2d74a75 SHA256 4d6585c69352cc158ce1eb0122ef19da195576c8693b20c0e7305805ce680b1c
EBUILD spamassassin-3.2.0.ebuild 7934 RMD160 67c9836f812e92e37cd379716a50ec3bedbc8e53 SHA1 e6c03416ba3504ea0911a53e6aaa977b56407d79 SHA256 9d53723a3df7ce98e16bf606054252e0d7c0f67293b962cedfee4dc4e7426084
EBUILD spamassassin-3.2.1-r1.ebuild 7949 RMD160 1509f1c482ac07dcef7ae33dde4817a4be7a3dd9 SHA1 0cfde06d21e868adc957714ca2ad7e55b240dfbf SHA256 fa130b681881feb5cf64b18e26e6c24829ee9ef283f5ed9b5b074f1ccc21b968
EBUILD spamassassin-3.2.1.ebuild 7907 RMD160 3cd89b296a57adee3e55ab31481d47ccbf03ee46 SHA1 1c298a20f6f8db31be3942b40a463f6d73649c84 SHA256 5cb2a0f08e8268e34d21e5ba1a0bf4fe4235574ece639870d553072e76262e96
EBUILD spamassassin-3.2.2.ebuild 8159 RMD160 8100bfae9e404405c4f3a5b992f4555cf69f0e6e SHA1 fca44d73b8846f5112e93e20d1b93557eaed26b3 SHA256 fece6aa2dcd38f2efb13feb9a1aafddfb046152933020098183a612a2191a25c
EBUILD spamassassin-3.2.3.ebuild 7988 RMD160 3dc5f27d6d50f8b9e9e4dc40987d082dd59b5da6 SHA1 2ff01b85b47d771a685c97e5597f6322edcf218d SHA256 8106dec0e77c13be5f450cf0fb836783ecdd2e2bd26ec22c9a645ec574a7f3d8
EBUILD spamassassin-3.2.4.ebuild 7988 RMD160 b946f0856da5ab5626e78fd83a9699213904aea7 SHA1 5b98d8c269dead25fdae10ac8825de13397abd60 SHA256 8a65718afda18aba6e5057a3a5bea82417ba29b6d3ac8dbb10541ed710dc6565
MISC ChangeLog 33362 RMD160 b81af0f69fcf05be5ec9e9e87e2265ed15d3aac8 SHA1 c6868c7062788fac0a0b1112b01bd1f29ee962fc SHA256 603b9c8216cff452b87c48adebbf64593e1fc1a0f20fe4e7bb7226ce15683dac
MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca

files

metadata.xml




perl

perl@gentoo.org
Primary Maintainer


spamassassin-3.1.8-r1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.1.8-r1.ebuild,v 1.5 2007/07/29 11:04:18 phreak 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"

SRC_TEST="do"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ia64 ~mips ~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.31
>=dev-perl/Net-DNS-0.53
dev-perl/Digest-SHA1
dev-perl/libwww-perl
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
dev-perl/IO-Zlib
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
)"

src_unpack() {
unpack ${A}
cd ${S}

# - bug #167515 - should be fixed by upstream in 3.1.9
epatch ${FILESDIR}/3.1.8-archive-iterator.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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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-DomainKeys"

}

spamassassin-3.1.8.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.1.8.ebuild,v 1.10 2007/07/29 11:04:18 phreak 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"

SRC_TEST="do"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 mips 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.31
>=dev-perl/Net-DNS-0.53
dev-perl/Digest-SHA1
dev-perl/libwww-perl
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
dev-perl/IO-Zlib
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
)"

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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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-DomainKeys"

}

spamassassin-3.2.0-r1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.0-r1.ebuild,v 1.5 2007/07/29 11:04:18 phreak 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"

SRC_TEST="do"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~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.31
>=dev-perl/Net-DNS-0.53
dev-perl/Digest-SHA1
dev-perl/libwww-perl
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
dev-perl/IO-Zlib
>=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
)"

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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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"

}

spamassassin-3.2.0.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.0.ebuild,v 1.2 2007/07/29 11:04:18 phreak 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"

SRC_TEST="do"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~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.31
>=dev-perl/Net-DNS-0.53
dev-perl/Digest-SHA1
dev-perl/libwww-perl
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
dev-perl/IO-Zlib
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
)"

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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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"

}

spamassassin-3.2.1-r1.ebuild

# Copyright 1999-2007 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-r1.ebuild,v 1.12 2007/08/19 12:19:06 ian 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
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
>=dev-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
)"

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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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"

}

spamassassin-3.2.1.ebuild

# Copyright 1999-2007 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.ebuild,v 1.4 2007/08/19 12:19:06 ian 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="~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.31
>=dev-perl/Net-DNS-0.53
dev-perl/Digest-SHA1
dev-perl/libwww-perl
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
dev-perl/IO-Zlib
>=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
)"

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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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"

}

spamassassin-3.2.2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.2.ebuild,v 1.3 2007/08/19 12:19:06 ian 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"
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
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
>=dev-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
)"

src_unpack() {
unpack ${A}
cd ${S}
# - Bug #186668 - new setuid code broken under perl 5.6.x and 5.8.x
# (spamassassin 3.2.2)
epatch ${FILESDIR}/3.2.2-upstream-5574-testcase.patch
epatch ${FILESDIR}/3.2.2-upstream-5574-fix.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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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"

}

spamassassin-3.2.3.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.3.ebuild,v 1.2 2007/08/19 12:19:06 ian 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
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
>=dev-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
)"

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
#
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.
# and
# .
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 " 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"
einfo " /usr/share/doc/${PF}/INSTALL.gz"
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"
einfo " /usr/share/doc/${PF}/UPGRADE.gz"
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"

}

spamassassin-3.2.4.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-3.2.4.ebuild,v 1.1 2008/01/09 18:21:54 ian 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
>=dev-perl/Archive-Tar-1.26
app-crypt/gnupg
>=dev-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
)"

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
#
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.
# and
# .
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 "