ChangeLog

# ChangeLog for mail-filter/maildrop
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.80 2008/06/09 09:15:29 ferdy Exp $

09 Jun 2008; Fernando J. Pereda
-maildrop-2.0.2-r1.ebuild, -maildrop-2.0.3.ebuild:
Spring cleaning.

22 Dec 2007; Tobias Scherbaum
maildrop-2.0.4.ebuild:
ppc stable, bug #202591

21 Dec 2007; Raúl Porcel maildrop-2.0.4.ebuild:
alpha/ia64/sparc/x86 stable wrt #202591

18 Dec 2007; Doug Klima maildrop-2.0.4.ebuild:
amd64 stable wrt bug #202591

17 Dec 2007; Jeroen Roovers maildrop-2.0.4.ebuild:
Stable for HPPA (bug #202591).

13 Aug 2007; Fernando J. Pereda maildrop-2.0.4.ebuild:
Do not use bindnow-flags

26 Apr 2007; Fernando J. Pereda
+files/maildrop-2.0.4-makedat.patch, maildrop-2.0.4.ebuild:
Fix for bug #175948

*maildrop-2.0.4 (23 Apr 2007)

23 Apr 2007; Fernando J. Pereda +maildrop-2.0.4.ebuild:
New upstream version.

18 Mar 2007; Marius Mauch maildrop-2.0.2-r1.ebuild,
maildrop-2.0.3.ebuild:
Replacing einfo with elog

04 Jan 2007; Fernando J. Pereda
-files/maildrop-1.8.0-db4.patch, -maildrop-2.0.1.ebuild,
-maildrop-2.0.1-r1.ebuild:
Remove ebuilds incorrectly handling autotools as per bug #160010

04 Jan 2007; Bryan Østergaard
maildrop-2.0.2-r1.ebuild:
Stable on IA64.

*maildrop-2.0.3 (03 Jan 2007)

03 Jan 2007; Fernando J. Pereda +maildrop-2.0.3.ebuild:
New upstream version.

13 Nov 2006; René Nussbaumer
maildrop-2.0.2-r1.ebuild:
Stable on hppa. See bug #153896.

30 Oct 2006; Gustavo Zacarias
maildrop-2.0.2-r1.ebuild:
Stable on sparc wrt #152632

29 Oct 2006; Fernando J. Pereda
maildrop-2.0.2-r1.ebuild:
Stable on alpha as per bug #152632.

29 Oct 2006; Thomas Cort maildrop-2.0.2-r1.ebuild:
Stable on amd64 wrt Bug #152632.

29 Oct 2006; nixnut maildrop-2.0.2-r1.ebuild:
Stable on ppc wrt bug 152632

29 Oct 2006; Torsten Veller maildrop-2.0.2-r1.ebuild:
Stable on x86 (#152632)

29 Oct 2006; Fernando J. Pereda
maildrop-2.0.2-r1.ebuild:
Set WANT_AUTO{CONF,MAKE} to latest.

14 Aug 2006; Fernando J. Pereda
maildrop-2.0.2-r1.ebuild:
Added net-mail/mailbase dependency. maildrop needs /var/spool/mail to exist.

14 Aug 2006; Fernando J. Pereda
-files/maildrop-1.7.0-0x0B-fix.patch,
-files/maildrop-1.7.0-db4-bdbobj_configure.in.patch,
-files/maildrop-1.7.0-db4-configure.in.patch, -maildrop-1.7.0-r3.ebuild,
-maildrop-1.7.0.20040907-r1.ebuild, -maildrop-1.8.0-r3.ebuild,
-maildrop-1.8.1-r2.ebuild, maildrop-2.0.1.ebuild,
maildrop-2.0.1-r1.ebuild, -maildrop-2.0.2.ebuild:
Cleanup and fix WANT_AUTOCONF use as per bug #143429.

*maildrop-2.0.2-r1 (27 Jun 2006)

27 Jun 2006; Fernando J. Pereda
+maildrop-2.0.2-r1.ebuild:
Use autotools.eclass to remove an old hand-made hack. Thanks to Diego
Pettenò

26 Jun 2006; Diego Pettenò maildrop-2.0.2.ebuild:
Don't depend strictly on autoconf 2.59 to avoid up/down grade cycles.

29 May 2006; +files/maildrop-1.8.0-db4-r1.patch,
maildrop-2.0.2.ebuild:
Make the checking of db libraries compatible with db-4.4 and db-4.3.
Fixes bug #124982

*maildrop-2.0.2 (01 Mar 2006)

01 Mar 2006; Fernando J. Pereda +maildrop-2.0.2.ebuild:
New upstream version. Add authlib USE-flag, bug #113846. Reported by Remy
Blank

17 Feb 2006; Aron Griffis maildrop-2.0.1.ebuild:
Mark 2.0.1 stable on ia64

23 Dec 2005; Simon Stelling maildrop-2.0.1.ebuild:
stable on amd64

*maildrop-2.0.1-r1 (26 Nov 2005)

26 Nov 2005; Fernando J. Pereda
+maildrop-2.0.1-r1.ebuild:
filter -fomit-frame-pointer wrt bug #113263

24 Nov 2005; Gustavo Zacarias maildrop-2.0.1.ebuild:
Stable on sparc wrt #112687

20 Nov 2005; Joseph Jezak maildrop-2.0.1.ebuild:
Marked ppc stable for bug #112687.

19 Nov 2005; Mark Loeser maildrop-2.0.1.ebuild:
Stable on x86; bug #112687

16 Nov 2005; Fernando J. Pereda maildrop-2.0.1.ebuild:
Stable on alpha

19 Oct 2005; Fernando J. Pereda
maildrop-1.8.1-r2.ebuild, maildrop-2.0.1.ebuild:
replace-flags -Os -O2 since it causes segfaults. Discovered by Diego
'Flameeyes' Pettenò

16 Oct 2005; Fernando J. Pereda
maildrop-1.8.1-r2.ebuild, maildrop-2.0.1.ebuild:
fix for bug #109460. Thanks to Marek Szuba

*maildrop-2.0.1 (12 Oct 2005)

12 Oct 2005; Fernando J. Pereda
-files/maildrop-2.0.0-fix-maildir_la.patch, -maildrop-2.0.0.ebuild,
+maildrop-2.0.1.ebuild:
version bump. remove old version

12 Oct 2005; Fernando J. Pereda maildrop-2.0.0.ebuild:
use bindnow-flags

*maildrop-2.0.0 (20 Sep 2005)

20 Sep 2005; Fernando J. Pereda
+files/maildrop-2.0.0-fix-maildir_la.patch,
-maildrop-1.8.1.20050828.ebuild, +maildrop-2.0.0.ebuild:
version bump. removing development version. add alias to trusted users wrt
bug #105230

16 Sep 2005; Ciaran McCreesh ChangeLog:
Converted to UTF-8, fixed encoding screwups

15 Sep 2005; Fernando J. Pereda
maildrop-1.8.1-r2.ebuild, maildrop-1.8.1.20050828.ebuild:
Fix DEPEND atoms

*maildrop-1.8.1-r2 (10 Sep 2005)

10 Sep 2005; Fernando J. Pereda
+files/maildrop-1.8.1-disable-fam.patch, -maildrop-1.8.1-r1.ebuild,
+maildrop-1.8.1-r2.ebuild, maildrop-1.8.1.20050828.ebuild:
fix 1.8.1 and development versions adding fam use flag. Remove -r1 in favour
of -r2

05 Sep 2005; Fernando J. Pereda
maildrop-1.8.1-r1.ebuild:
Found a possible bug, returning back to ~testing

05 Sep 2005; Fernando J. Pereda
maildrop-1.8.1.20050828.ebuild:
add missing deps on development version

*maildrop-1.8.1.20050828 (05 Sep 2005)

05 Sep 2005; Fernando J. Pereda
maildrop-1.8.1-r1.ebuild, +maildrop-1.8.1.20050828.ebuild:
add maildrop development version (p.masked)

30 Aug 2005; Fernando J. Pereda
maildrop-1.8.1-r1.ebuild:
stable on alpha and x86

06 Aug 2005; Fernando J. Pereda -maildrop-1.8.1.ebuild,
maildrop-1.8.1-r1.ebuild:
Block mail-mta/courier (as per bug #99253). Also remove
maildrop-1.8.1.ebuild, not usable

*maildrop-1.8.1-r1 (29 Jul 2005)

29 Jul 2005; Fernando J. Pereda
+maildrop-1.8.1-r1.ebuild:
fix use usage and fix bug #100055

13 Jul 2005; Diego Pettenò
maildrop-1.8.0-r3.ebuild:
Marked stable on amd64.

30 Jun 2005; Aron Griffis maildrop-1.8.0-r3.ebuild:
Fix use invocation

*maildrop-1.8.1 (23 Jun 2005)

23 Jun 2005; Fernando J. Pereda metadata.xml,
+maildrop-1.8.1.ebuild:
version bump. taking over maintainership

05 Jun 2005; Michael Hanselmann
maildrop-1.8.0-r3.ebuild:
Stable on ppc.

29 May 2005; maildrop-1.8.0-r3.ebuild:
- update maildrop to use libc expanded variable elibc_uclibc vs uclibc so
USE=-* works

23 May 2005; Fernando J. Pereda
maildrop-1.8.0-r3.ebuild:
Don't use lazy bindings on maildrop

08 May 2005; Aron Griffis maildrop-1.8.0-r3.ebuild:
stable on ia64

05 May 2005; Sven Wegener maildrop-1.7.0-r3.ebuild,
maildrop-1.7.0.20040907-r1.ebuild, maildrop-1.8.0-r3.ebuild:
Removed * postfix from <, <=, >= and > dependencies.

05 May 2005; Jeffrey Forman maildrop-1.8.0-r3.ebuild:
stable on sparc, bug 91465

05 May 2005; Bryan Østergaard
maildrop-1.8.0-r3.ebuild:
Stable on alpha, bug 91465.

04 May 2005; Fernando J. Pereda
-maildrop-1.4.0-r1.ebuild, -maildrop-1.5.2.ebuild, -maildrop-1.5.3.ebuild,
-maildrop-1.5.3-r1.ebuild, -maildrop-1.7.0.ebuild,
-maildrop-1.7.0-r2.ebuild, -maildrop-1.7.0.20040907.ebuild,
-maildrop-1.8.0.ebuild, -maildrop-1.8.0-r1.ebuild,
-maildrop-1.8.0-r2.ebuild, maildrop-1.8.0-r3.ebuild:
cutting off old ebuilds and add a security-related ewarn

*maildrop-1.7.0-r3 (04 May 2005)

04 May 2005; Fernando J. Pereda
+maildrop-1.7.0-r3.ebuild:
fix security bug (#91465), reported by: eromang

*maildrop-1.8.0-r3 (10 Mar 2005)

10 Mar 2005; Fernando J. Pereda
+maildrop-1.8.0-r3.ebuild:
ebuild cleanup wrt #84684. Thanks to Diego Pettenò


*maildrop-1.8.0-r2 (16 Feb 2005)

16 Feb 2005; Fernando J. Pereda
+maildrop-1.8.0-r2.ebuild:
Make maildrop setuid root as it is safe from maildrop man page. wrt #81391

*maildrop-1.8.0-r1 (13 Feb 2005)

13 Feb 2005; Fernando J. Pereda
+files/maildrop-1.8.0-db4.patch, +maildrop-1.8.0-r1.ebuild:
Make maildrop use courier-authlib and clean the ebuild. Re-Closes #81391.
Thanks to Scott Taylor for the initial ebuild.

*maildrop-1.8.0 (09 Feb 2005)

09 Feb 2005; Fernando J. Pereda +maildrop-1.8.0.ebuild:
Version bump, closes #81391. Reported by: valli

30 Dec 2004; Bryan Østergaard
maildrop-1.7.0.20040907-r1.ebuild:
Stable on alpha.

*maildrop-1.7.0.20040907-r1 (28 Dec 2004)

28 Dec 2004; Andrej Kacian
+files/maildrop-1.7.0-0x0B-fix.patch, +maildrop-1.7.0.20040907-r1.ebuild:
Apply patch to fix segfault when maildropmysql.cf can not be read. Bug
#75846, reported by Ivo Bitter . Keeping stable
keywords.

21 Dec 2004; Ferris McCormick
maildrop-1.7.0.20040907.ebuild:
Stable for sparc (using MySQL database for lookup, bogofilter as xfilter).

14 Dec 2004; Andrej Kacian maildrop-1.7.0-r2.ebuild,
maildrop-1.7.0.20040907.ebuild, maildrop-1.7.0.ebuild:
Stable on x86.

11 Nov 2004; Aron Griffis maildrop-1.7.0-r2.ebuild:
add ~ia64

22 Sep 2004; Andrej Kacian
maildrop-1.7.0.20040907.ebuild:
Fixed SRC_URI to download tarball from courier-mta.org instead of
sourceforge.net, where it has been removed. Reported by Thomas Kirchner
, closes #64961.

20 Sep 2004; Andrej Kacian -maildrop-1.7.0-r1.ebuild:
Removed, because maildrop-1.7.0.20040907.ebuild supersedes it.

*maildrop-1.7.0.20040907 (20 Sep 2004)

20 Sep 2004; Andrej Kacian
+maildrop-1.7.0.20040907.ebuild:
Version bump. Upstream fixed issue in #59608 here.

20 Sep 2004; Andrej Kacian maildrop-1.7.0-r1.ebuild,
maildrop-1.7.0-r2.ebuild, maildrop-1.7.0.ebuild:
Updated homepage Closes #64577, reported by Daniel Webert
.

*maildrop-1.7.0-r2 (28 Aug 2004)

28 Aug 2004; Tom Martin +maildrop-1.7.0-r2.ebuild:
Revision bump. Added dspam and apache to the list of trusted users to
resolve problems with the dspam CGI script. See bug 61670. Thanks to Mark
Wagner for the fix.

*maildrop-1.7.0-r1 (20 Aug 2004)

20 Aug 2004; Tuan Van
+files/maildrop-1.7.0-db4-bdbobj_configure.in.patch,
+files/maildrop-1.7.0-db4-configure.in.patch, +maildrop-1.7.0-r1.ebuild:
Revision bump. Attemp to fix bug #59608.
Add patches to support db-4.x. Remove flag-o-matic.

06 Aug 2004; Tom Knight maildrop-1.5.3-r1.ebuild,
maildrop-1.7.0.ebuild:
Fixed use invocation, removed redundant RDEPEND.

05 Aug 2004; Tom Martin -files/maildrop-1.7.0-db3.patch,
maildrop-1.7.0.ebuild:
Tidy; removed epatch as it seems to be unnecessary.

*maildrop-1.7.0 (05 Aug 2004)

05 Aug 2004; Tom Martin +files/maildrop-1.7.0-db3.patch,
+maildrop-1.7.0.ebuild:
Version bump, thanks to all contributors in bug 34316.

07 Jun 2004; Aron Griffis maildrop-1.5.2.ebuild,
maildrop-1.5.3-r1.ebuild, maildrop-1.5.3.ebuild:
Fix use invocation

*maildrop-1.5.3 (03 Jun 2004)

03 Jun 2004; Seemant Kulleen +metadata.xml,
+files/maildroprc, +maildrop-1.4.0-r1.ebuild, +maildrop-1.5.2.ebuild,
+maildrop-1.5.3-r1.ebuild, +maildrop-1.5.3.ebuild:
Moved from net-mail/maildrop to mail-filter/maildrop.

15 May 2004; Danny van Dyk maildrop-1.5.3-r1.ebuild:
Marked ~amd64.

22 Mar 2004; Seemant Kulleen maildrop-1.5.3-r1.ebuild:
move 1.5.3-r1 to stable, as it compiles for people. f3ew in #gentoo reported
1.5.3 not working with gdbm and -gdbm, but -r1 worked on a remote server for
him.

13 Mar 2004; David Holm maildrop-1.5.3-r1.ebuild:
Added to ~ppc.

27 Feb 2004; Sven Blumenstein maildrop-1.5.3-r1.ebuild:
Stable on sparc.

20 Oct 2003; Aron Griffis maildrop-1.5.3-r1.ebuild:
Stable on alpha

16 Oct 2003; Martin Holzer maildrop-1.5.2.ebuild:
fixing #15763.

*maildrop-1.5.3-r1 (01 Aug 2003)

01 Aug 2003; Paul de Vrieze maildrop-1.5.3-r1.ebuild:
Remove optional dependency on berkdb as it will not work with berkdb4 and
patching is nontrivial

*maildrop-1.5.3 (09 Jul 2003)
09 Jul 2003; Jared Hudson : Version bump.

*maildrop-1.5.2 (14 Feb 2003)

11 Jun 2003; Robin Johnson maildrop-1.5.2.ebuild:
While maildroprc goes into /etc, the mysql+ldap configs need to go
/etc/maildrop. Fixes bug #20257.

23 Mar 2003; Seemant Kulleen maildrop-1.5.2.ebuild :

maildroprc in /etc instead of /etc/maildrop, closing bug #17785 by Duke


14 Feb 2003; Nick Hadaway maildrop-1.5.2.ebuild,
files/digest-maildrop-1.5.2 :
Version bump. Stable builds of gcc include the CXX environment
variable, so removed the fix.

*maildrop-1.5.1 (01 Jan 2002)

02 Jan 2002; Nick Hadaway maildrop-1.5.1.ebuild :
Added CXX='g++' so builds on gcc2 systems don't fail.

01 Jan 2002; Nick Hadaway maildrop-1.5.1.ebuild,
files/digest-maildrop-1.5.1 :
Version bump.

21 Dec 2002; Nick Hadaway maildrop-*.ebuild :
Updated all maildrop ebuilds to filter -fomit-frame-pointer and
-funroll-loops.

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

*maildrop-1.5.0-r1 (8 Nov 2002)

12 Dec 2002; Nick Hadaway maildrop-1.5.0-r1.ebuild :
Added berkdb use variable code. Also fixed some $myconf stuff.
Changed ebuild to use the filter-flags function to remove the
-funroll-loops flags.

11 Nov 2002; Kyle Manna maildrop-1.5.0-r1.ebuild :
Updated trusted users and added a sed for MySQL socket.

8 Nov 2002; Kyle Manna maildrop-1.5.0-r1.ebuild :
Added support for experimental mysql support. Also added facilites
for LDAP, but haven't had a chance to test LDAP support yet.

*maildrop-1.5.0 (27 Oct 2002)

27 Oct 2002; Donny Davies : Chase latest release.
Downloads .bz2 instead of .gz.

*maildrop-1.4.0-r1 (5 Sep 2002)

12 Sep 2002; Nick Hadaway maildrop-1.4.0-r1.ebuild :
Changed etc-dir to /etc instead of /etc/maildrop to fix compatibility
with MTAs. Thanks to Kang on bug #7834

5 Sep 2002; Jared H. Hudson maildrop-1.4.0-r1.ebuild :
Added dependency checking for virtual/mta and made maildrop provide
virtual/mda. Thanks to Eric Renfro for suggesting
these improvements in bug #6806.

*maildrop-1.4.0 (24 Jun 2002)

19 Aug 2002; Nick Hadaway maildrop-1.4.0.ebuild :
Updated dependancies to include net-mai/mailbase as maildrop requires
/var/spool/mail/ in order to complete configure.

24 Jun 2002; Donny Davies :
Chase latest release; make it use the sourceforge mirror://.

*maildrop-1.3.9-r1 (23 Jun 2002)

23 Jun 2002; Ben Lutgens :
I'm explicitly stripping out -funroll-loops cause it's causing maildrop
to not compile.

*maildrop-1.3.8-r1 (2 May 2002)

2 May 2002; Donny Davies :
Zap -fomit-frame-pointer and -ffast-math from CFLAGS if present.

*maildrop-1.3.8 (1 May 2002)

1 May 2002; Donny Davies maildrop-1.3.8.ebuild,
files/maildroprc : Updated to latest release, added a system default
maildroprc file, added the documentation, added the development files,
cleaned up the /usr/share/maildrop dir, added SLOT and LICENSE.

*maildrop-1.3.6 (1 Feb 2002)

1 Feb 2002; G.Bevin ChangeLog :
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX maildrop-1.8.0-db4-r1.patch 2529 RMD160 bf6e31be2227b53f5e7cbc5838b819f81dcd62d9 SHA1 4ba67fa469c422deef77c461e0ea33d97c511687 SHA256 1e5eef7afba0c496e8e6ee627bb8ccf182ffd39ea4c8f8fc8f9723fce97c51ae
AUX maildrop-1.8.1-disable-fam.patch 2511 RMD160 3fc7bf21d425c6e676475458c99a5ed2d4e93469 SHA1 7b6148b485bbc0379fa849a8af2706b93ea22432 SHA256 e4621bbe990d7a90d703e7a8b8cf07bb59655a22a96e62c275352d28c79684a3
AUX maildrop-2.0.4-makedat.patch 1119 RMD160 e6f8a0b677b3ab3a03c87e7cddc2506b45539579 SHA1 78bb74fde5fab0156e1a26951a7847d3541fd86e SHA256 5636617c387769f295812b9aceb63ad90c8117f52f29071f09351331165983e6
AUX maildroprc 58 RMD160 1d53d6c05cb809bb9d637ae347d9dee1362f1b09 SHA1 a2fd605991606a3bf89296f2d3f3a5f7a7327aba SHA256 2feec7b63d9b3fae442ddab96810929ce4080871c31a1f23401cd3b61d00add1
DIST maildrop-2.0.4.tar.bz2 2286125 RMD160 9c0a349879cc0791ad01e5bae04b680de3a7a606 SHA1 df2755c1d0e00d19506b0659e59bf5d4756cce17 SHA256 573032d6525ac7454377eb400372c363446bb3d9abd9249da9cf6676aef85671
EBUILD maildrop-2.0.4.ebuild 2896 RMD160 47af7fda54dad6715e6073626ff9cd3187218c3e SHA1 babce3864c9276a7474e4aa3a86fe4f627adbaa2 SHA256 a67103c042126cb8a18df224c7188dfe6529f133c36722955a69b82809d60b90
MISC ChangeLog 17773 RMD160 1431b807909c6f7bb88deee20edd3bcebdd508be SHA1 a47d5eae286fa9c25202eda3289122de9581bee8 SHA256 f2b320755b807efbe96b6e2c62a2cf2a932610d1e85037dc74d918092e4f95ee
MISC metadata.xml 259 RMD160 ce66370016fba0ddf047802d9dc8463041b4a585 SHA1 9f7a04d0cab1654d39498db3f124fc755202adb7 SHA256 d0e8725b6ece5de6014dd4b18064854b993b1e3ab04d838370d7744756656ae5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFITPS6ViELBEf1JB0RAqZJAJ0cqc9z6wiDP9OtA/C8ll959vRjywCeK9Ns
Dlrq+DMe7UdWUjKTA5ZKLYc=
=nnkm
-----END PGP SIGNATURE-----

files

maildrop-2.0.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/maildrop/maildrop-2.0.4.ebuild,v 1.8 2008/01/13 08:34:55 vapier Exp $

inherit eutils flag-o-matic autotools

DESCRIPTION="Mail delivery agent/filter"
[[ -z ${PV/?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
[[ -z ${PV/?.?.?/} ]] && SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
[[ -z ${SRC_URI} ]] && SRC_URI="http://www.courier-mta.org/beta/${PN}/${P%%_pre}.tar.bz2"
HOMEPAGE="http://www.courier-mta.org/maildrop/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc s390 sh sparc x86"
IUSE="berkdb debug fam gdbm ldap mysql postgres authlib"

DEPEND="!mail-mta/courier
net-mail/mailbase
dev-libs/libpcre
gdbm? ( >=sys-libs/gdbm-1.8.0 )
mysql? ( net-libs/courier-authlib )
postgres? ( net-libs/courier-authlib )
ldap? ( net-libs/courier-authlib )
authlib? ( net-libs/courier-authlib )
fam? ( virtual/fam )
!gdbm? (
berkdb? (
>=sys-libs/db-3
)
)"
RDEPEND="${DEPEND}
dev-lang/perl"
PROVIDE="virtual/mda"

S=${WORKDIR}/${P%%_pre}

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

epatch "${FILESDIR}"/${P}-makedat.patch

# Prefer gdbm over berkdb
if use gdbm ; then
use berkdb && elog "Both gdbm and berkdb selected. Using gdbm."
elif use berkdb ; then
epatch "${FILESDIR}"/${PN}-1.8.0-db4-r1.patch
fi

if ! use fam ; then
epatch "${FILESDIR}"/${PN}-1.8.1-disable-fam.patch
fi

eautoreconf
}

src_compile() {
local myconf
local mytrustedusers="apache dspam root mail \
daemon postmaster qmaild mmdf vmail alias"

# These flags make maildrop cry
replace-flags -Os -O2
filter-flags -fomit-frame-pointer

if use gdbm ; then
myconf="${myconf} --with-db=gdbm"
elif use berkdb ; then
myconf="${myconf} --with-db=db"
else
myconf="${myconf} --without-db"
fi

if ! use mysql && ! use postgres && ! use ldap && ! use authlib ; then
myconf="${myconf} --disable-authlib"
fi

econf \
$(use_enable fam) \
--disable-dependency-tracker \
--with-devel \
--disable-tempdir \
--enable-syslog=1 \
--enable-use-flock=1 \
--enable-maildirquota \
--enable-use-dotlock=1 \
--enable-restrict-trusted=1 \
--enable-trusted-users="${mytrustedusers}" \
--enable-maildrop-uid=root \
--enable-maildrop-gid=mail \
--with-default-maildrop=./.maildir/ \
--enable-sendmail=/usr/sbin/sendmail \
--cache-file="${S}"/configuring.cache \
${myconf} || die

emake || die "compile problem"
}

src_install() {
make DESTDIR="${D}" install || die

fperms 4755 /usr/bin/maildrop

dodoc AUTHORS ChangeLog INSTALL NEWS README \
README.postfix UPGRADE maildroptips.txt

dodir /usr/share/doc/${PF}
mv "${D}"/usr/share/maildrop/html "${D}"/usr/share/doc/${PF}/

dohtml {INSTALL,README,UPGRADE}.html

insinto /etc
doins "${FILESDIR}"/maildroprc
}

metadata.xml




net-mail

ferdy@gentoo.org
Fernando J. Pereda