ChangeLog

# ChangeLog for net-mail/dovecot
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/ChangeLog,v 1.171 2008/07/16 16:25:54 chtekk Exp $

16 Jul 2008; Luca Longinotti dovecot-1.0.13-r1.ebuild,
dovecot-1.0.15-r1.ebuild, dovecot-1.1.1-r1.ebuild:
Dep on PostgreSQL libs only.

*dovecot-1.0.15-r1 (08 Jul 2008)

08 Jul 2008; Wolfram Schlich -dovecot-1.0.15.ebuild,
+dovecot-1.0.15-r1.ebuild, dovecot-1.1.1-r1.ebuild:
/etc/pam.d/managesieve symlink: fix handling for 1.1, added for 1.0

*dovecot-1.1.1-r1 (08 Jul 2008)

08 Jul 2008; Wolfram Schlich -dovecot-1.1.1.ebuild,
+dovecot-1.1.1-r1.ebuild:
fix bugs #229067 and #230375

*dovecot-1.1.1 (23 Jun 2008)
*dovecot-1.0.15 (23 Jun 2008)

23 Jun 2008; Wolfram Schlich -dovecot-1.0.14.ebuild,
+dovecot-1.0.15.ebuild, -dovecot-1.1_rc10.ebuild, +dovecot-1.1.1.ebuild:
version bump, removed old versions

*dovecot-1.1_rc10 (17 Jun 2008)

17 Jun 2008; Wolfram Schlich
-files/dovecot-1.1_rc8-mbox-fixup.patch, -dovecot-1.1_rc8.ebuild,
+dovecot-1.1_rc10.ebuild:
version bump

*dovecot-1.1_rc8 (04 Jun 2008)
*dovecot-1.0.14 (04 Jun 2008)

04 Jun 2008; Wolfram Schlich
+files/dovecot-1.1_rc8-mbox-fixup.patch, -dovecot-1.0.13-r5.ebuild,
+dovecot-1.0.14.ebuild, -dovecot-1.1_rc6.ebuild, +dovecot-1.1_rc8.ebuild:
version bump

01 Jun 2008; Wolfram Schlich
-dovecot-1.1_rc5-r1.ebuild, +dovecot-1.1_rc6.ebuild:
version bump

*dovecot-1.1_rc6 (01 Jun 2008)

01 Jun 2008; Wolfram Schlich
-dovecot-1.1_rc5-r1.ebuild, +dovecot-1.1_rc6.ebuild:
version bump, remove old version

21 May 2008; Tiziano Müller
dovecot-1.0.13-r1.ebuild, dovecot-1.0.13-r5.ebuild,
dovecot-1.1_rc5-r1.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server

*dovecot-1.1_rc5-r1 (20 May 2008)
*dovecot-1.0.13-r5 (20 May 2008)

20 May 2008; Wolfram Schlich
-dovecot-1.0.13-r4.ebuild, +dovecot-1.0.13-r5.ebuild,
-dovecot-1.1_rc5.ebuild, +dovecot-1.1_rc5-r1.ebuild:
sieve plugin version bump

*dovecot-1.1_rc5 (05 May 2008)
*dovecot-1.0.13-r4 (05 May 2008)

05 May 2008; Wolfram Schlich
-files/dovecot-1.1_rc3-body.patch, -dovecot-1.0.13-r3.ebuild,
+dovecot-1.0.13-r4.ebuild, -dovecot-1.1_rc4.ebuild,
-dovecot-1.1_rc4-r2.ebuild, +dovecot-1.1_rc5.ebuild:
version bump for 1.1, managesieve bump for 1.0 and 1.1

*dovecot-1.1_rc4-r2 (21 Apr 2008)
*dovecot-1.0.13-r3 (21 Apr 2008)

21 Apr 2008; Wolfram Schlich
-dovecot-1.0.13-r2.ebuild, +dovecot-1.0.13-r3.ebuild,
-dovecot-1.1_rc4-r1.ebuild, +dovecot-1.1_rc4-r2.ebuild:
revbump due to lastly committed init script dependency fix

21 Apr 2008; Wolfram Schlich files/dovecot.init,
files/dovecot.init-r1:
fix init script dependencies and indention (bug #217941, comment #3)

*dovecot-1.1_rc4-r1 (17 Apr 2008)

17 Apr 2008; Wolfram Schlich +files/dovecot.init-r1,
+dovecot-1.1_rc4-r1.ebuild:
add multiple instances support to init script

*dovecot-1.1_rc4 (02 Apr 2008)

02 Apr 2008; Wolfram Schlich
-dovecot-1.1_rc3-r1.ebuild, -dovecot-1.1_rc3-r2.ebuild,
+dovecot-1.1_rc4.ebuild:
version bump, removed old versions

18 Mar 2008; Wolfram Schlich -dovecot-1.0.10.ebuild,
-dovecot-1.0.13.ebuild, -dovecot-1.1_rc3.ebuild:
removed old versions

*dovecot-1.1_rc3-r2 (18 Mar 2008)
*dovecot-1.0.13-r2 (18 Mar 2008)

18 Mar 2008; Wolfram Schlich
+dovecot-1.0.13-r2.ebuild, +dovecot-1.1_rc3-r2.ebuild:
add sqlite3 USE flag wrt bug #201985

15 Mar 2008; Wolfram Schlich
dovecot-1.0.13-r1.ebuild, dovecot-1.1_rc3-r1.ebuild:
fix mail group setting (thanks to rbu)

14 Mar 2008; Tobias Scherbaum
dovecot-1.0.13-r1.ebuild:
ppc stable, bug #212336

14 Mar 2008; Steve Dibb dovecot-1.0.13.ebuild,
dovecot-1.0.13-r1.ebuild:
amd64 stable, bug 212336

12 Mar 2008; Raúl Porcel dovecot-1.0.13-r1.ebuild:
alpha/sparc stable wrt #212336

12 Mar 2008; Christian Faulhammer
dovecot-1.0.13-r1.ebuild:
stable x86, security bug 212336

*dovecot-1.1_rc3-r1 (11 Mar 2008)
*dovecot-1.0.13-r1 (11 Mar 2008)

11 Mar 2008; Wolfram Schlich
+files/dovecot-1.0.13-body.patch, +files/dovecot-1.1_rc3-body.patch,
+dovecot-1.0.13-r1.ebuild, +dovecot-1.1_rc3-r1.ebuild:
added patches for fetch_bodystructure/imap_bodystructure_write

10 Mar 2008; Wolfram Schlich
-dovecot-1.0.10-r1.ebuild, -dovecot-1.0.11.ebuild, -dovecot-1.0.12.ebuild,
-dovecot-1.1_beta15.ebuild, -dovecot-1.1_beta16.ebuild,
-dovecot-1.1_rc1.ebuild, -dovecot-1.1_rc1-r1.ebuild:
removed old versions

*dovecot-1.1_rc3 (10 Mar 2008)
*dovecot-1.0.13 (10 Mar 2008)

10 Mar 2008; Wolfram Schlich metadata.xml,
+dovecot-1.0.13.ebuild, +dovecot-1.1_rc3.ebuild:
version bump

*dovecot-1.0.12 (06 Mar 2008)

06 Mar 2008; Wolfram Schlich +dovecot-1.0.12.ebuild:
version bump

*dovecot-1.0.11 (04 Mar 2008)

04 Mar 2008; Wolfram Schlich +dovecot-1.0.11.ebuild:
version bump

*dovecot-1.1_rc1-r1 (03 Mar 2008)

03 Mar 2008; Wolfram Schlich
+dovecot-1.1_rc1-r1.ebuild:
version bump of the MANAGESIEVE plugin

*dovecot-1.1_rc1 (22 Feb 2008)

22 Feb 2008; Wolfram Schlich
+dovecot-1.1_rc1.ebuild:
version bump

*dovecot-1.1_beta16 (17 Feb 2008)

17 Feb 2008; Wolfram Schlich
+dovecot-1.1_beta16.ebuild:
version bump

14 Feb 2008; Wolfram Schlich -dovecot-1.0.8.ebuild,
-dovecot-1.0.9.ebuild, -dovecot-1.1_beta14.ebuild:
removed old versions

*dovecot-1.1_beta15 (14 Feb 2008)
*dovecot-1.0.10-r1 (14 Feb 2008)

14 Feb 2008; Wolfram Schlich
+dovecot-1.0.10-r1.ebuild, +dovecot-1.1_beta15.ebuild:
1.1 version bump, 1.0 managesieve patch update

23 Jan 2008; Wolfram Schlich -dovecot-1.0.3.ebuild,
-dovecot-1.0.5.ebuild, -dovecot-1.0.6.ebuild, -dovecot-1.0.7.ebuild,
-dovecot-1.1_beta11.ebuild, -dovecot-1.1_beta12.ebuild,
-dovecot-1.1_beta13.ebuild:
removed old versions

*dovecot-1.1_beta14 (22 Jan 2008)

22 Jan 2008; Wolfram Schlich
+dovecot-1.1_beta14.ebuild:
version bump

22 Jan 2008; Peter Weller dovecot-1.0.10.ebuild:
Stable on amd64; bug 203731

07 Jan 2008; Raúl Porcel dovecot-1.0.10.ebuild:
alpha/sparc stable wrt security #203731

06 Jan 2008; Tobias Scherbaum
dovecot-1.0.10.ebuild:
ppc stable, bug #203731

03 Jan 2008; Christian Faulhammer
dovecot-1.0.10.ebuild:
stable x86, security bug 203731

*dovecot-1.1_beta13 (30 Dec 2007)

30 Dec 2007; Wolfram Schlich
+dovecot-1.1_beta13.ebuild:
version bump

*dovecot-1.1_beta12 (29 Dec 2007)
*dovecot-1.0.10 (29 Dec 2007)

29 Dec 2007; Wolfram Schlich +dovecot-1.0.10.ebuild,
+dovecot-1.1_beta12.ebuild:
version bump

25 Dec 2007; Christian Heim metadata.xml:
Removing uberlord from metadata.xml as per #199318.

*dovecot-1.1_beta11 (12 Dec 2007)

12 Dec 2007; Wolfram Schlich
+dovecot-1.1_beta11.ebuild:
add a 1.1 beta version

*dovecot-1.0.9 (12 Dec 2007)

12 Dec 2007; Wolfram Schlich +dovecot-1.0.9.ebuild:
version bump

09 Dec 2007; Wolfram Schlich dovecot-1.0.8.ebuild:
ROOT fixes

09 Dec 2007; Wolfram Schlich dovecot-1.0.8.ebuild:
fix bug #201686

*dovecot-1.0.8 (08 Dec 2007)

08 Dec 2007; Wolfram Schlich +dovecot-1.0.8.ebuild:
version bump, add managesieve patch, small cleanups

06 Nov 2007; Raúl Porcel dovecot-1.0.5.ebuild:
alpha/sparc stable wrt #197388

03 Nov 2007; Lars Weiler dovecot-1.0.5.ebuild:
stable ppc, bug #197388

02 Nov 2007; Roy Marples files/dovecot.init:
Start after ntp-client and ntp, #197872 thanks to James Pattinson

*dovecot-1.0.7 (30 Oct 2007)

30 Oct 2007; Roy Marples +dovecot-1.0.7.ebuild:
Double Bump

29 Oct 2007; Dawid Węgliński dovecot-1.0.5.ebuild:
Stable on x86 (bug #197388)

29 Oct 2007; Daniel Gryniewicz dovecot-1.0.5.ebuild:
Marked stable on amd64 for bug #197388

*dovecot-1.0.6 (29 Oct 2007)

29 Oct 2007; Roy Marples +dovecot-1.0.6.ebuild:
Bump

*dovecot-1.0.5 (10 Sep 2007)

10 Sep 2007; Roy Marples +dovecot-1.0.5.ebuild:
Bump.

24 Aug 2007; Raúl Porcel dovecot-1.0.3.ebuild:
alpha stable wrt security #187512

23 Aug 2007; Andrej Kacian dovecot-1.0.3.ebuild:
Stable on x86, security bug #187512.

23 Aug 2007; Tobias Scherbaum
dovecot-1.0.3.ebuild:
ppc stable, bug #187512

23 Aug 2007; Christoph Mende dovecot-1.0.3.ebuild:
Stable on amd64 wrt security bug #187512

23 Aug 2007; Gustavo Zacarias dovecot-1.0.3.ebuild:
Stable on sparc wrt security #187512

08 Aug 2007; Roy Marples dovecot-1.0.3.ebuild:
Update sieve to 1.0.2, #188147 thanks to Andrew Roberts.

*dovecot-1.0.3 (01 Aug 2007)

01 Aug 2007; Roy Marples dovecot-1.0_rc29-r1.ebuild,
dovecot-1.0.2-r1.ebuild, +dovecot-1.0.3.ebuild:
New version and change download URL.

*dovecot-1.0.2-r1 (19 Jul 2007)
*dovecot-1.0_rc29-r1 (19 Jul 2007)

19 Jul 2007; Roy Marples
+dovecot-1.0_rc29-r1.ebuild, +dovecot-1.0.2-r1.ebuild:
fperms are now u+s for suid.

*dovecot-1.0.2 (15 Jul 2007)

15 Jul 2007; Roy Marples +dovecot-1.0.2.ebuild:
Bump, #185407 thanks to Kilburn Abrahams

28 Jun 2007; Roy Marples dovecot-1.0.1.ebuild:
Update sieve to 1.0.1, #182182 thanks to Yoann Pannier

*dovecot-1.0.1 (26 Jun 2007)

26 Jun 2007; Roy Marples +dovecot-1.0.1.ebuild:
Bump, #182182 thanks to Kilburn Abrahams.

12 Jun 2007; Marius Mauch dovecot-1.0_rc29.ebuild,
dovecot-1.0_rc31.ebuild, dovecot-1.0_rc31-r1.ebuild,
dovecot-1.0_rc32.ebuild, dovecot-1.0.0.ebuild:
Replacing einfo with elog

*dovecot-1.0.0 (13 Apr 2007)

13 Apr 2007; Roy Marples +dovecot-1.0.0.ebuild:
This is the fourth sign of the apocalypse! Debian 4.0, me being funny, the
Engineer I work with thanking me; Dovecot-1.0.0 released!

*dovecot-1.0_rc32 (12 Apr 2007)

12 Apr 2007; Roy Marples +dovecot-1.0_rc32.ebuild:
Another day, another dovecot.

*dovecot-1.0_rc31-r1 (12 Apr 2007)

12 Apr 2007; Roy Marples
+files/dovecot-1.0_rc31-ldap.patch, +dovecot-1.0_rc31-r1.ebuild:
Define LDAP_DEPRECATED for OpenLDAP 2.3 users #162437 which also stops it
segfaulting on amd64, #174139.

*dovecot-1.0_rc31 (10 Apr 2007)

10 Apr 2007; Roy Marples +dovecot-1.0_rc31.ebuild:
Boing.

07 Apr 2007; Peter Weller dovecot-1.0_rc29.ebuild:
Stable on amd64 wrt bug 172795

*dovecot-1.0_rc30 (06 Apr 2007)

06 Apr 2007; Roy Marples +dovecot-1.0_rc30.ebuild:
New version - hopefully the last before v1.0 (but don't hold your breath!)

03 Apr 2007; Gustavo Zacarias
dovecot-1.0_rc29.ebuild:
Stable on sparc wrt security #172795

02 Apr 2007; Jose Luis Rivero
dovecot-1.0_rc29.ebuild:
Stable on alpha wrt security bug #172795

02 Apr 2007; Tobias Scherbaum
dovecot-1.0_rc29.ebuild:
ppc stable, bug #172795

30 Mar 2007; Andrej Kacian dovecot-1.0_rc29.ebuild:
Stable on x86, security bug #172795.

*dovecot-1.0_rc29 (30 Mar 2007)

30 Mar 2007; Roy Marples +dovecot-1.0_rc29.ebuild:
New version fixes a security hole in the zlib plugin.

*dovecot-1.0_rc28 (28 Mar 2007)

28 Mar 2007; Roy Marples +dovecot-1.0_rc28.ebuild:
Bumpage - but with a fix!
suid USE flag now installs deliver as suid, #172576.

*dovecot-1.0_rc27 (13 Mar 2007)

13 Mar 2007; Roy Marples +dovecot-1.0_rc27.ebuild:
U L T R A B U M P !

*dovecot-1.0_rc26 (07 Mar 2007)

07 Mar 2007; Roy Marples +dovecot-1.0_rc26.ebuild:
Bumpage!

*dovecot-1.0_rc25 (01 Mar 2007)

01 Mar 2007; Roy Marples +dovecot-1.0_rc25.ebuild:
Another day, another RC.

*dovecot-1.0_rc24 (22 Feb 2007)

22 Feb 2007; Roy Marples +dovecot-1.0_rc24.ebuild:
Bumpage

*dovecot-1.0_rc23 (20 Feb 2007)

20 Feb 2007; Roy Marples +dovecot-1.0_rc23.ebuild:
Bump.

12 Feb 2007; Roy Marples dovecot-1.0_rc22.ebuild:
Added ~x86-fbsd keyword, #166391

*dovecot-1.0_rc22 (11 Feb 2007)

11 Feb 2007; Roy Marples +dovecot-1.0_rc22.ebuild:
New release.

*dovecot-1.0_rc21 (02 Feb 2007)

02 Feb 2007; Roy Marples +dovecot-1.0_rc21.ebuild:
New version.

30 Jan 2007; Roy Marples dovecot-1.0_rc19.ebuild:
Uncomment ssl_*_file directices with correct path, #163851.

*dovecot-1.0_rc19 (25 Jan 2007)

25 Jan 2007; Roy Marples +dovecot-1.0_rc19.ebuild:
Yay, another RC.

08 Jan 2007; Roy Marples dovecot-1.0_rc17.ebuild:
Use docert from ssl-cert eclass to make our certs.
Touch certs in pkg_postinst so newer portages don't remove them.

*dovecot-1.0_rc17 (07 Jan 2007)

07 Jan 2007; Roy Marples +dovecot-1.0_rc17.ebuild:
New release, fixes mysql auth in rc16.

*dovecot-1.0_rc16 (05 Jan 2007)

05 Jan 2007; Roy Marples +dovecot-1.0_rc16.ebuild:
New RC

*dovecot-1.0_rc15-r1 (05 Dec 2006)

05 Dec 2006; Roy Marples
+dovecot-1.0_rc15-r1.ebuild:
Add sieve support, #141743. Thanks to Brian G. Peterson and the others on the
bug.

05 Dec 2006; Roy Marples files/dovecot.init:
Add a reload function to the init script, #157139 thanks to Marshal Newrock.

25 Nov 2006; Bryan Østergaard
dovecot-1.0_rc15.ebuild:
Stable on Alpha, bug 155654.

23 Nov 2006; Francesco Riosa dovecot-1.0_beta8.ebuild,
dovecot-1.0_rc15.ebuild:
dev-db/mysql => virtual/mysql, manually

23 Nov 2006; Roy Marples dovecot-1.0_rc15.ebuild:
Fix mbox location in default dovecot.conf

22 Nov 2006; Tobias Scherbaum
dovecot-1.0_rc15.ebuild:
ppc stable, bug #155654

20 Nov 2006; dovecot-1.0_rc15.ebuild:
stable on amd64

20 Nov 2006; Gustavo Zacarias
dovecot-1.0_rc15.ebuild:
Stable on sparc wrt security #155654

20 Nov 2006; Christian Faulhammer
dovecot-1.0_rc15.ebuild:
stable x86, security bug #155654

*dovecot-1.0_rc15 (19 Nov 2006)

19 Nov 2006; Roy Marples +dovecot-1.0_rc15.ebuild:
New release. Fixes a off-by-one buffer overflow in cache file handling.
The code is executed only with mmap_disable=yes and only if index files
are used (ie. INDEX=MEMORY is safe).

*dovecot-1.0_rc14 (12 Nov 2006)

12 Nov 2006; Roy Marples +dovecot-1.0_rc14.ebuild:
New RC

*dovecot-1.0_rc13 (08 Nov 2006)

08 Nov 2006; Roy Marples +dovecot-1.0_rc13.ebuild:
YARC

*dovecot-1.0_rc12 (05 Nov 2006)

05 Nov 2006; Roy Marples +dovecot-1.0_rc12.ebuild:
New upstream release, fixes #154104.

*dovecot-1.0_rc11 (04 Nov 2006)

04 Nov 2006; Roy Marples +dovecot-1.0_rc11.ebuild:
New upstream rc - maybe last before 1.0?

*dovecot-1.0_rc10 (16 Oct 2006)

16 Oct 2006; Roy Marples +dovecot-1.0_rc10.ebuild:
Version bump.

*dovecot-1.0_rc9 (14 Oct 2006)

14 Oct 2006; Roy Marples +dovecot-1.0_rc9.ebuild:
Version bump.
Index files will be rebuilt on 64-bit machines, you will see warnings about
this in your logs.

*dovecot-1.0_rc8 (09 Oct 2006)

09 Oct 2006; Roy Marples +dovecot-1.0_rc8.ebuild:
Bump.

05 Sep 2006; Roy Marples dovecot-1.0_rc7.ebuild:
Only install developer documentation with doc USE flag, #145433.

30 Aug 2006; dovecot-1.0_beta8.ebuild:
stable on amd64

20 Aug 2006; Roy Marples dovecot-1.0_rc7.ebuild:
Fix no ipv6 support, #144450 thanks to Marcin Deranek.

*dovecot-1.0_rc7 (18 Aug 2006)

18 Aug 2006; Roy Marples +dovecot-1.0_rc7.ebuild:
Bump.

*dovecot-1.0_rc6 (08 Aug 2006)

08 Aug 2006; Roy Marples
+files/dovecot-1.0_rc6-proxy-ssl.patch, +dovecot-1.0_rc6.ebuild:
rc6 is out - include a patch for ssl proxies.

*dovecot-1.0_rc5 (03 Aug 2006)

03 Aug 2006; Roy Marples +dovecot-1.0_rc5.ebuild:
Version bump to fix mbox problems caused in rc3, #142576
thanks to Kilburn Abrahams.

*dovecot-1.0_rc3 (02 Aug 2006)

02 Aug 2006; Roy Marples +dovecot-1.0_rc3.ebuild:
Bump

*dovecot-1.0_rc2 (04 Jul 2006)

04 Jul 2006; Roy Marples +dovecot-1.0_rc2.ebuild:
Version bump.

*dovecot-1.0_rc1 (28 Jun 2006)

28 Jun 2006; Roy Marples +dovecot-1.0_rc1.ebuild:
New upstream release.

*dovecot-1.0_beta9-r2 (16 Jun 2006)

16 Jun 2006; Roy Marples
+files/dovecot-1.0_beta9-ssl_listen.patch, +dovecot-1.0_beta9-r2.ebuild:
Add upstream patch to fix #136781 a whole load better.

*dovecot-1.0_beta9-r1 (16 Jun 2006)

16 Jun 2006; Roy Marples
+files/dovecot-1.0_beta9-configure.patch, +dovecot-1.0_beta9-r1.ebuild:
Patch configure.in to detect working inotify, epoll, kqueue, dnotify as
we cannot do so in the ebuild.

15 Jun 2006; Roy Marples
dovecot-1.0_beta8-r1.ebuild, dovecot-1.0_beta9.ebuild:
We now only enable inotify support if you have >=linux-headers-2.6.16 and
>=glibc-2.4 - hopefully glibc-2.4 has been emerged against
>=linux-headers-2.6.16, but we have no way of knowing this :/

14 Jun 2006; Roy Marples dovecot-1.0_beta9.ebuild:
Documentation now installed via the doc USE flag.
Example configs for ldap and sql are now copied instead of moved, #136812.
Set ssl_listen = * when emerged without ipv6, #136781

*dovecot-1.0_beta9 (13 Jun 2006)

13 Jun 2006; Roy Marples +dovecot-1.0_beta9.ebuild:
Version bump.

31 May 2006; Roy Marples
dovecot-1.0_beta8-r1.ebuild:
For Linux we now enable epoll
Also we enable inotify if we have >=glibc-2.4
For FreeBSD we now enable kqueue by default

*dovecot-1.0_beta8-r1 (30 May 2006)

30 May 2006; Roy Marples
+dovecot-1.0_beta8-r1.ebuild:
Install sample LDAP and/or SQL config files based on USE flags.
Fixes #123049 thanks to Max Lorenz.

14 May 2006; Tobias Scherbaum
dovecot-1.0_beta8.ebuild:
ppc stable, bug #133149

13 May 2006; Fernando J. Pereda
dovecot-1.0_beta8.ebuild:
Stable on alpha wrt bug #133149

13 May 2006; Gustavo Zacarias
dovecot-1.0_beta8.ebuild:
Stable on sparc wrt security #133149

13 May 2006; Krzysiek Pawlik
dovecot-1.0_beta8.ebuild:
Stable on x86, see bug #133149.

*dovecot-1.0_beta8 (12 May 2006)

12 May 2006; Roy Marples +dovecot-1.0_beta8.ebuild:
New upstream release, #113149 thanks to Jan Kundrát.

*dovecot-1.0_beta7 (13 Apr 2006)

13 Apr 2006; Roy Marples +dovecot-1.0_beta7.ebuild:
New upstream release.

10 Apr 2006; Roy Marples dovecot-1.0_beta5.ebuild:
Removed berkdb depenency as afaik dovecot does not use berkdb anymore.
Fixes #124039.

*dovecot-1.0_beta5 (10 Apr 2006)

10 Apr 2006; Roy Marples +dovecot-1.0_beta5.ebuild:
New release, #129295.
ipv6 USE flag now enables listening on ipv6 by default in the config file.

26 Feb 2006; Stefaan De Roeck
dovecot-1.0_beta3.ebuild:
Stable on alpha (wrt security bug #123024)

23 Feb 2006; Gustavo Zacarias
dovecot-1.0_beta3.ebuild:
Stable on sparc wrt security #123024

22 Feb 2006; Tobias Scherbaum
dovecot-1.0_beta3.ebuild:
ppc stable, bug #123024

22 Feb 2006; Joshua Jackson dovecot-1.0_beta3.ebuild:
Stable on x86; bug #123024 for Ticho

*dovecot-1.0_beta3 (10 Feb 2006)

10 Feb 2006; Roy Marples +dovecot-1.0_beta3.ebuild:
New upstream version.
We can now create DH SSL parameters via emerge --config dovecot.

*dovecot-1.0_beta2 (24 Jan 2006)

24 Jan 2006; Roy Marples +dovecot-1.0_beta2.ebuild:
New upstream version.
WARNING: beta2 requires DH parameters for SSL/TLS usage now. These will be
generated the next time dovecot is started and may take some time. It took
around 10 minutes on my VIA C3-2 1 GigaHertz server. This is a onetime
operation.

*dovecot-1.0_alpha5 (14 Dec 2005)

14 Dec 2005; Roy Marples files/dovecot.init,
+dovecot-1.0_alpha5.ebuild:
nopop3d USE flag changed to pop3d - I hate double negatives
sasl USE flag dropped as dovecot has its own internal version - no need to
depend on cyrus-sasl
maildir USE flag dropped as -mbox implies maildir
kerberos USE flag added
init script is now more robust and should start after all authenticators
Oh yeah - new upstream version too ;)

10 Nov 2005; Fernando J. Pereda
dovecot-0.99.14-r1.ebuild:
fix for bug #112070

*dovecot-1.0_alpha3 (23 Sep 2005)

23 Sep 2005; Wolfram Schlich
+dovecot-1.0_alpha3.ebuild:
version bump

13 Sep 2005; Wolfram Schlich
dovecot-1.0_alpha2.ebuild:
fixups

*dovecot-1.0_alpha2 (13 Sep 2005)

13 Sep 2005; Wolfram Schlich
+dovecot-1.0_alpha2.ebuild:
version bump

23 Aug 2005; Andrej Kacian dovecot-0.99.11-r1.ebuild,
dovecot-0.99.13.ebuild, dovecot-0.99.14.ebuild, dovecot-0.99.14-r1.ebuild:
Use -1 for shell argument to enewuser. Bug #103421.

17 Jun 2005; Fernando J. Pereda
dovecot-0.99.14-r1.ebuild:
Stable on alpha

20 May 2005; Fernando J. Pereda
dovecot-0.99.14-r1.ebuild:
keyworded ~alpha wrt #93325

16 May 2005; Jason Wever dovecot-0.99.14-r1.ebuild:
Stable on SPARC.

01 May 2005; Michael Hanselmann
dovecot-0.99.14-r1.ebuild:
Stable on ppc.

09 Apr 2005; Andrej Kacian dovecot-0.99.14-r1.ebuild:
Stable on x86. Closes #87676, reported by Daniel Webert .

01 Apr 2005; Wolfram Schlich
dovecot-0.99.11-r1.ebuild, dovecot-0.99.13.ebuild,
dovecot-0.99.14-r1.ebuild, dovecot-0.99.14.ebuild:
fix broken sed calls (-ie -> -i -e)

*dovecot-0.99.14-r1 (25 Feb 2005)

25 Feb 2005; Andrej Kacian +dovecot-0.99.14-r1.ebuild:
Use common PAM profiles provided by >=net-mail/mailbase-0.00-r8 if pam USE
flag is set. This only means changing auth_passdb setting in installed
config file to "pam *".

*dovecot-0.99.14 (18 Feb 2005)

18 Feb 2005; Grant Goodyear dovecot-0.99.13.ebuild,
+dovecot-0.99.14.ebuild:
Version bump (bug #82493), thanks to Daniel Webert.

*dovecot-0.99.13 (08 Jan 2005)

08 Jan 2005; Grant Goodyear -dovecot-0.99.12.ebuild,
+dovecot-0.99.13.ebuild:
Version bump. Should solve bugs 74334 (thanks Daniel Webert)
and 77131 (thanks Alexander Skwar). Removing .12.

*dovecot-0.99.12 (07 Dec 2004)

07 Dec 2004; Grant Goodyear +dovecot-0.99.12.ebuild:
Version bump; thanks to Andreas Simon (bug #73561).

*dovecot-0.99.11-r1 (01 Nov 2004)

01 Nov 2004; Grant Goodyear
-dovecot-0.99.10.9-r1.ebuild, +dovecot-0.99.11-r1.ebuild,
-dovecot-0.99.11.ebuild:
New revision that removes gnutls support, since
upstream tells us that gnutls will be broken for some
time (http://www.dovecot.org/list/dovecot/2004-November/005169.html),
thanks to Ooblick (bug #67628) for finding the problem. Also fixed
permissions, thanks to tove (bug #68824). Marking stable on x86
and removing old (and broken) versions.

22 Sep 2004; Andrej Kacian dovecot-0.99.10.9-r1.ebuild,
dovecot-0.99.11.ebuild:
Do not use ${HOMEPAGE} in SRC_URI.

*dovecot-0.99.11 (19 Sep 2004)

19 Sep 2004; Grant Goodyear
dovecot-0.99.10.9-r1.ebuild, +dovecot-0.99.11.ebuild:
Version bump. Thanks to Daniel Webert (bug #63849).
Also set static uid/gid. (Thanks to Nils Marving, bug #58772)

*dovecot-0.99.10.9-r1 (31 Aug 2004)

31 Aug 2004; +dovecot-0.99.10.9-r1.ebuild:
Applied patch to add mysql USE flag, committed by pille .
Closes #61297.

*dovecot-0.99.10.9 (17 Aug 2004)

17 Aug 2004; Grant Goodyear -dovecot-0.99.10.7.ebuild,
+dovecot-0.99.10.9.ebuild:
Whoops, should have bumped to .9, not .7.

*dovecot-0.99.10.7 (16 Aug 2004)

16 Aug 2004; Grant Goodyear dovecot-0.99.10.6.ebuild,
+dovecot-0.99.10.7.ebuild:
Version bump (Bug 57136; thanks to Andreas Simon and Daniel Webert),
removing old versions, marking .6 stable on x86.

*dovecot-0.99.10.6 (24 Jun 2004)

24 Jun 2004; Grant Goodyear +dovecot-0.99.10.6.ebuild:
Version bump (Thanks to Andreas Simon, Bug # 54826).

*dovecot-0.99.10.5-r1 (12 Jun 2004)

12 Jun 2004; Grant Goodyear
+dovecot-0.99.10.4-r1.ebuild, -dovecot-0.99.10.4.ebuild,
+dovecot-0.99.10.5-r1.ebuild, -dovecot-0.99.10.5.ebuild:
Security fix: old ebuilds installed /etc/dovecot.conf w/ 0644
permissions, but sql passwords might be stored there.

Thanks to Andreas Simon (Bug #53707).

11 Jun 2004; Aron Griffis dovecot-0.99.10.4.ebuild:
Fix use invocation

03 Jun 2004; David Holm dovecot-0.99.10.5.ebuild:
Added to ~ppc.

30 May 2004; Grant Goodyear dovecot-0.99.10.4.ebuild:
Added "gnutls" to IUSE and fixed ssl certificate handling
(thanks to Andreas Simon, bugs # 49876 and # 49690)

*dovecot-0.99.10.5 (30 May 2004)

30 May 2004; Grant Goodyear +dovecot-0.99.10.5.ebuild:
Version bump (thanks to David Pufer, bug # 52371). I also did some
fairly massive cleaning, so this ebuild could be massively broken
(although it does seem to be working just fine for me -- dovecot is the imap
server that my family uses). Also replaced the "maildir" USE flag with
"mbox", since maildir is the Gentoo default and thus should never have
been a USE flag, and cleaned up the logic to make gnutls preferred over
ssl if both gnutls and ssl are secified in USE.

09 May 2004; Jason Wever dovecot-0.99.10.4.ebuild:
Added ~sparc keyword.

07 May 2004; Danny van Dyk dovecot-0.99.10.4.ebuild:
Marked ~amd64.

*dovecot-0.99.10.4 (10 Apr 2004)

10 Apr 2004; Grant Goodyear :
Long overdue new package. Thanks to Zach Bagnell, Andreas Simon, Lars
Trieloff, Andrew Cooks, Tony Vroon, and tseng.

Manifest

AUX dovecot-1.0.13-body.patch 840 RMD160 7bc36d98943eede3d358b574e6dab8a6d9d44aba SHA1 f83bde6ec9f7a422c5807076b515b2e4b9067c37 SHA256 0af400d465e84e2978f5351a2e8e88e6b551728c91f2757145bcee8be5e076d4
AUX dovecot.init 874 RMD160 aa899b69d42946dcf2262c38731319474e759041 SHA1 4f0a95cf6ba9e86bd9008694ea927dc97703b24d SHA256 145d68382d757110aa86f58b2567fb25648fa0ca62788e3461f2b45fc5999c80
AUX dovecot.init-r1 1670 RMD160 1c147fe3780adcee11009695adc8e10ee5a33100 SHA1 ee708766e5657b8cfce7b4fc02305506d9cff049 SHA256 bdd58f6466fdb0cd98f46ac8493cc73f80c3e13a15283e3dc267707717d17412
DIST dovecot-1.0.13-MANAGESIEVE-v9.2.diff.gz 104733 RMD160 15add312a917580a449cfc09539f279e574529eb SHA1 cd08eef3d1b4d8bef36af7f79675bfe194f16962 SHA256 65c86d9a9b1beaa3a5ed3b2a8dffec501444e30310e7f663a373d493618c8e19
DIST dovecot-1.0.13.tar.gz 1774025 RMD160 1ba2c6b14e41c9bc4d36c12ea90a0fad024409db SHA1 8690b27d01e8a68edef5ed162681c79f4074c9c1 SHA256 16da29b2bc08d0178a09323bf0787a2a0e953075655566a7b4b6b148c87ac25f
DIST dovecot-1.0.15-MANAGESIEVE-v9.3.diff.gz 105361 RMD160 30cba9148d657cc986e2f119197f9c38736d35a2 SHA1 c80c999ba4c8a193c6f9fc59d339eb9898b24171 SHA256 6dcee66e753ce07f8c953900f9ea72904ffd02c0b742dc6450e6a7f1d72d75d6
DIST dovecot-1.0.15.tar.gz 1783347 RMD160 d882e3dbed60cbcbacdcb6023d0c12213a0d35ac SHA1 4e1f40e37461f848459df9dde809097fef46c376 SHA256 2b4d8720d5f5868d57df294350ee0f5a8d2723e9937dab1eea2084478ace9597
DIST dovecot-1.1-managesieve-0.10.3.tar.gz 395123 RMD160 bc8cc1be276d15d574e6a49ee4de67504b159399 SHA1 3f4764da34e7416cd280a6ab801e2a20b970b30c SHA256 ac70ee48cdec2d472c14cb93bc9f3339a30763e418a579ddea0b9b18befac5ac
DIST dovecot-1.1.1-managesieve-0.10.3.diff.gz 6130 RMD160 f71e03c2a25fb6b4cbd56a1e8ce15a7e221adf51 SHA1 0dfd2f9b249b716f866e4c631c6ed92982d8d4f2 SHA256 923115908647a5177d2a45c2b36d265c739760a4ec69a95dd76c196a20bed97c
DIST dovecot-1.1.1.tar.gz 2273779 RMD160 be522b080f221dbf655d9afa1f3fb1a786d4c3b2 SHA1 039993d8769237dd7d1c0c3ef277734f7013c66b SHA256 936982d0259035b380315599668d37276cfa5dd26f889126f50ccc03fecf9f5e
DIST dovecot-sieve-1.0.2.tar.gz 451753 RMD160 8bed283ae672aafa61271f154f1f58d200bd4f5f SHA1 70b423eae6e47bc38f81faa36503228c1a8a5550 SHA256 9042eaf6d1237577a67ab3aa233953d640f62a296c5ffaaaed75ff25b657642a
DIST dovecot-sieve-1.0.3.tar.gz 455806 RMD160 b575a1181fb2389a47db4cdd2815a47a2fe30b91 SHA1 48f67c33c08689c50a254bc6faeecba407d12294 SHA256 3f9e23abc64e7ae70343144b9a20f8da50aa102e3d9b85774ddd8ac0d1480fe1
DIST dovecot-sieve-1.1.5.tar.gz 468913 RMD160 825a8ec07d49527d8551cb5f3f86b638fddbafbd SHA1 672adf0a2f1627d96f97fc63fecaf024dd9f7a42 SHA256 ec1ea94311d5fb6cb5dd7e451728784afb39521a6a580f640b4d2115505a5ddf
EBUILD dovecot-1.0.13-r1.ebuild 7264 RMD160 425e44c901f892c18dd2937b9f68f5e7c275d869 SHA1 067aad2e0bc8144ccf77a4b26fc2b7b277d95ff0 SHA256 c3fcfd5d1c0f1b65229804ca3c8432a89dd65134a5ce75c8614c3f295efa087e
EBUILD dovecot-1.0.15-r1.ebuild 7356 RMD160 d2f7648d0fbfed72a732f04732cc83334e108c44 SHA1 6c4562dcebd24f1e813b45440f92b4677a8a8d35 SHA256 78b7c9190078213245b50537b2f8e48bbd4c780426d8a7276d4828888a9bc3dc
EBUILD dovecot-1.1.1-r1.ebuild 7974 RMD160 985528486d5504dce410e34b4c1b767f07c5b238 SHA1 516e11d86a679f4651c47a4f743e7fad6bcb0fe6 SHA256 563080b1e5c1523c586c0c56628099f3b0f697ed55fe5ae23fbc4901b3f21b8f
MISC ChangeLog 28218 RMD160 8028865a0bffd0c40341aaec4e0e72b7fbb2ccb9 SHA1 5555e1af27f57fced0ed40d2e8a8d9c2f0bc49be SHA256 0cacf800a9674799ebad11fd4f103b639b9713f88911c16f6ae91426ced0f727
MISC metadata.xml 307 RMD160 ed31b92a1f8c8c5c1cc6166bc0136dd03299bb9b SHA1 ac1cb79f5d3340ed9a9d3117531c1c7fa2af8edf SHA256 180d5598a7d709bf7969219969218d54d7283af53b238bf74c3f7223ca2190ef

dovecot-1.0.13-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.0.13-r1.ebuild,v 1.8 2008/07/16 16:25:54 chtekk Exp $

inherit autotools eutils ssl-cert versionator

MY_P="${P/_/.}"
MY_PV12=$(get_version_component_range 1-2 ${PV})
S="${WORKDIR}/${MY_P}"
SIEVE="dovecot-sieve-1.0.2"
SIEVE_S="${WORKDIR}/${SIEVE}"
MANAGESIEVE="MANAGESIEVE-v9.2"

SRC_URI="http://dovecot.org/releases/1.0/${MY_P}.tar.gz
sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz )
managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE}.diff.gz )"

DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
HOMEPAGE="http://www.dovecot.org/"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="alpha amd64 ppc sparc x86 ~x86-fbsd"

IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve ssl suid vpopmail"

# Developer documentation, controlled by the doc USE flag
DEVDOCS="auth-protocol index multiaccess securecoding"

DEPEND=">=sys-apps/sed-4
kerberos? ( virtual/krb5 )
ldap? ( net-nds/openldap )
pam? ( virtual/pam )
ssl? ( dev-libs/openssl )
postgres? ( virtual/postgresql-base )
mysql? ( virtual/mysql )
vpopmail? ( net-mail/vpopmail )"

RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00-r8"

src_unpack() {
unpack ${A}
cd "${S}"
# http://hg.dovecot.org/dovecot-1.0/rev/538f8892a2f1
epatch "${FILESDIR}"/${P}-body.patch
if use managesieve; then
epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE}.diff
eautoreconf
fi
}

pkg_setup() {
if ! use sieve && use managesieve; then
eerror "managesieve USE flag selected but sieve USE flag unselected"
die "USE flag problem"
fi
# Add user and group for login process (same as for fedora/redhat)
enewgroup dovecot 97
enewuser dovecot 97 -1 /dev/null dovecot
}

src_compile() {
local myconf=
use ssl && myconf="${myconf} --with-ssl=openssl" \
|| myconf="${myconf} --without-ssl"
econf \
--localstatedir=/var \
--sysconfdir=/etc/dovecot \
--enable-header-install \
--with-ioloop=best \
--with-poll=best \
$(use_enable debug) \
$(use_enable ipv6) \
$(use_with kerberos gssapi) \
$(use_with ldap) \
$(use_with mysql) \
$(use_with pam) \
$(use_with pop3d) \
$(use_with postgres pgsql) \
$(use_with vpopmail) \
${myconf} \
|| die "configure failed"
emake || die "make failed"

if use sieve; then
einfo "Building sieve"
cd "${SIEVE_S}"
econf --with-dovecot="${S}" || die "configure failed (sieve)"
emake || die "make failed (sieve)"
fi
}

src_install () {
make DESTDIR="${D}" install || die "make install failed"
use suid && fperms u+s /usr/libexec/dovecot/deliver

rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf

newinitd "${FILESDIR}"/dovecot.init dovecot

# Documentation
rm -rf "${D}"/usr/share/doc/dovecot
dodoc AUTHORS NEWS README TODO dovecot-example.conf
use managesieve && dodoc README.managesieve
if use doc; then
dodoc doc/*.txt
else
local x= n=
for x in doc/*.txt; do
n=$(basename "${x}" .txt)
[[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}"
done
fi

# Create the dovecot.conf file from the dovecot-example.conf file that
# the dovecot folks nicely left for us....
local conf="${D}/etc/dovecot/dovecot.conf"
mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf

# .maildir is the Gentoo default, but we need to support mbox to
local mail_location="maildir:~/.maildir"
if use mbox; then
mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u"
keepdir /var/dovecot
sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' "${conf}"
fi
sed -i -e \
"s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \
|| die "failed to update mail location settings in dovecot.conf"

# We're using pam files (imap and pop3) provided by mailbase
if use pam; then
sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
"${conf}" || die "failed to update PAM settings in dovecot.conf"
fi

# Listen on ipv6 and ipv4
if use ipv6; then
sed -i -e 's/^#listen = \*/listen = \[::\]/g' "${conf}" \
|| die "failed to update listen settings in dovecot.conf"
fi

# Update ssl cert locations
if use ssl; then
sed -i -e 's,^#ssl_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \
-e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \
"${conf}" || die "failed to update SSL settings in dovecot.conf"
fi

# Install SQL configuration
if use mysql || use postgres; then
cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf
fperms 600 /etc/dovecot/dovecot-sql.conf
sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \
|| die "failed to update SQL settings in dovecot-sql.conf"
dodoc doc/dovecot-sql-example.conf
fi

# Install LDAP configuration
if use ldap; then
cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf
fperms 600 /etc/dovecot/dovecot-ldap.conf
sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \
|| die "failed to update LDAP settings in dovecot-ldap.conf"
dodoc doc/dovecot-ldap-example.conf
fi

# Install sieve plugin
if use sieve; then
make -C "${SIEVE_S}" DESTDIR="${D}" install \
|| die "make install failed (sieve)"
fi

dodir /var/run/dovecot
fowners root:0 /var/run/dovecot
fperms 0755 /var/run/dovecot
keepdir /var/run/dovecot/login
fowners root:dovecot /var/run/dovecot/login
fperms 0750 /var/run/dovecot/login
}

get_config_var() {
local varname=${1}
if [[ -z ${varname} ]]; then
die "${FUNCNAME}: variable name missing"
fi
sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \
"${ROOT}"/etc/dovecot/dovecot.conf
}

pkg_postinst() {
elog "The Dovecot configuration has vastly changed since 0.99."
elog "You are encouraged to start afresh with a new configuration file."
elog "see http://wiki.dovecot.org/ for configuration examples."

if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then
echo
ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot"
fi

local base_dir="$(get_config_var base_dir)"
base_dir="${base_dir:-/var/run/dovecot}"
if use ssl; then
# Let's not make a new certificate if we already have one
if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
-e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
einfo "Creating SSL certificate"
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
install_cert /etc/ssl/dovecot/server
chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem}
fi
if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then
echo
elog "Dovecot requires DH SSL Parameters if you use SSL connections"
elog "These take some time to make, and dovecot will create them before"
elog "it allows any SSL connections."
elog "You can create them now before starting dovecot like so"
elog " emerge --config =${PF}"
fi
fi
}

pkg_config() {
local base_dir="$(get_config_var base_dir)"
base_dir="${base_dir:-/var/run/dovecot}"

if use ssl; then
einfo "Regenerating SSL parameters. This will take some time."
"${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat"
fi
}

dovecot-1.0.15-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.0.15-r1.ebuild,v 1.2 2008/07/16 16:25:54 chtekk Exp $

inherit autotools eutils ssl-cert versionator

MY_P="${P/_/.}"
MY_PV12=$(get_version_component_range 1-2 ${PV})
S="${WORKDIR}/${MY_P}"
SIEVE="dovecot-sieve-1.0.3"
SIEVE_S="${WORKDIR}/${SIEVE}"
MANAGESIEVE="MANAGESIEVE-v9.3"

SRC_URI="http://dovecot.org/releases/1.0/${MY_P}.tar.gz
sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz )
managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE}.diff.gz )"

DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
HOMEPAGE="http://www.dovecot.org/"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"

IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail"

# Developer documentation, controlled by the doc USE flag
DEVDOCS="auth-protocol index multiaccess securecoding"

DEPEND=">=sys-apps/sed-4
kerberos? ( virtual/krb5 )
ldap? ( net-nds/openldap )
pam? ( virtual/pam )
ssl? ( dev-libs/openssl )
postgres? ( virtual/postgresql-base )
mysql? ( virtual/mysql )
sqlite3? ( =dev-db/sqlite-3* )
vpopmail? ( net-mail/vpopmail )"

RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00-r8"

src_unpack() {
unpack ${A}
cd "${S}"
if use managesieve; then
epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE}.diff
eautoreconf
fi
}

pkg_setup() {
if ! use sieve && use managesieve; then
eerror "managesieve USE flag selected but sieve USE flag unselected"
die "USE flag problem"
fi
# Add user and group for login process (same as for fedora/redhat)
enewgroup dovecot 97
enewuser dovecot 97 -1 /dev/null dovecot
}

src_compile() {
local myconf=
use ssl && myconf="${myconf} --with-ssl=openssl" \
|| myconf="${myconf} --without-ssl"
econf \
--localstatedir=/var \
--sysconfdir=/etc/dovecot \
--enable-header-install \
--with-ioloop=best \
--with-poll=best \
$(use_enable debug) \
$(use_enable ipv6) \
$(use_with kerberos gssapi) \
$(use_with ldap) \
$(use_with mysql) \
$(use_with pam) \
$(use_with pop3d) \
$(use_with postgres pgsql) \
$(use_with sqlite3 sqlite) \
$(use_with vpopmail) \
${myconf} \
|| die "configure failed"
emake || die "make failed"

if use sieve; then
einfo "Building sieve"
cd "${SIEVE_S}"
econf --with-dovecot="${S}" || die "configure failed (sieve)"
emake || die "make failed (sieve)"
fi
}

src_install () {
make DESTDIR="${D}" install || die "make install failed"
use suid && fperms u+s /usr/libexec/dovecot/deliver

rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf

newinitd "${FILESDIR}"/dovecot.init dovecot

# Documentation
rm -rf "${D}"/usr/share/doc/dovecot
dodoc AUTHORS NEWS README TODO dovecot-example.conf
use managesieve && dodoc README.managesieve
if use doc; then
dodoc doc/*.txt
else
local x= n=
for x in doc/*.txt; do
n=$(basename "${x}" .txt)
[[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}"
done
fi

# Create the dovecot.conf file from the dovecot-example.conf file that
# the dovecot folks nicely left for us....
local conf="${D}/etc/dovecot/dovecot.conf"
mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf

# .maildir is the Gentoo default, but we need to support mbox to
local mail_location="maildir:~/.maildir"
if use mbox; then
mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u"
keepdir /var/dovecot
sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' "${conf}"
fi
sed -i -e \
"s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \
|| die "failed to update mail location settings in dovecot.conf"

# We're using pam files (imap and pop3) provided by mailbase
if use pam; then
sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
"${conf}" || die "failed to update PAM settings in dovecot.conf"
# mailbase does not provide a managesieve pam file
use managesieve && dosym imap /etc/pam.d/managesieve
fi

# Listen on ipv6 and ipv4
if use ipv6; then
sed -i -e 's/^#listen = \*/listen = \[::\]/g' "${conf}" \
|| die "failed to update listen settings in dovecot.conf"
fi

# Update ssl cert locations
if use ssl; then
sed -i -e 's,^#ssl_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \
-e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \
"${conf}" || die "failed to update SSL settings in dovecot.conf"
fi

# Install SQL configuration
if use mysql || use postgres; then
cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf
fperms 600 /etc/dovecot/dovecot-sql.conf
sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \
|| die "failed to update SQL settings in dovecot-sql.conf"
dodoc doc/dovecot-sql-example.conf
fi

# Install LDAP configuration
if use ldap; then
cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf
fperms 600 /etc/dovecot/dovecot-ldap.conf
sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \
|| die "failed to update LDAP settings in dovecot-ldap.conf"
dodoc doc/dovecot-ldap-example.conf
fi

# Install sieve plugin
if use sieve; then
make -C "${SIEVE_S}" DESTDIR="${D}" install \
|| die "make install failed (sieve)"
fi

dodir /var/run/dovecot
fowners root:0 /var/run/dovecot
fperms 0755 /var/run/dovecot
keepdir /var/run/dovecot/login
fowners root:dovecot /var/run/dovecot/login
fperms 0750 /var/run/dovecot/login
}

get_config_var() {
local varname=${1}
if [[ -z ${varname} ]]; then
die "${FUNCNAME}: variable name missing"
fi
sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \
"${ROOT}"/etc/dovecot/dovecot.conf
}

pkg_postinst() {
elog "The Dovecot configuration has vastly changed since 0.99."
elog "You are encouraged to start afresh with a new configuration file."
elog "see http://wiki.dovecot.org/ for configuration examples."

if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then
echo
ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot"
fi

local base_dir="$(get_config_var base_dir)"
base_dir="${base_dir:-/var/run/dovecot}"
if use ssl; then
# Let's not make a new certificate if we already have one
if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
-e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
einfo "Creating SSL certificate"
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
install_cert /etc/ssl/dovecot/server
chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem}
fi
if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then
echo
elog "Dovecot requires DH SSL Parameters if you use SSL connections"
elog "These take some time to make, and dovecot will create them before"
elog "it allows any SSL connections."
elog "You can create them now before starting dovecot like so"
elog " emerge --config =${PF}"
fi
fi
}

pkg_config() {
local base_dir="$(get_config_var base_dir)"
base_dir="${base_dir:-/var/run/dovecot}"

if use ssl; then
einfo "Regenerating SSL parameters. This will take some time."
"${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat"
fi
}

dovecot-1.1.1-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/dovecot-1.1.1-r1.ebuild,v 1.3 2008/07/16 16:25:54 chtekk Exp $

inherit autotools eutils ssl-cert versionator

MY_P="${P/_/.}"
MY_PV12=$(get_version_component_range 1-2 ${PV})
S="${WORKDIR}/${MY_P}"
SIEVE="dovecot-sieve-1.1.5"
SIEVE_S="${WORKDIR}/${SIEVE}"
MANAGESIEVE_PATCH="managesieve-0.10.3"
MANAGESIEVE="managesieve-0.10.3"
MANAGESIEVE_S="${WORKDIR}/${PN}-${MY_PV12}-${MANAGESIEVE}"

SRC_URI="http://dovecot.org/releases/${MY_PV12}/${MY_P}.tar.gz
sieve? ( http://dovecot.org/releases/sieve/${SIEVE}.tar.gz )
managesieve? ( http://www.rename-it.nl/${PN}/${MY_PV12}/${MY_P}-${MANAGESIEVE_PATCH}.diff.gz
http://www.rename-it.nl/${PN}/${MY_PV12}/${PN}-${MY_PV12}-${MANAGESIEVE}.tar.gz )"

DESCRIPTION="An IMAP and POP3 server written with security primarily in mind"
HOMEPAGE="http://www.dovecot.org/"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"

IUSE="debug doc ipv6 kerberos ldap managesieve mbox mysql pop3d pam postgres sieve sqlite3 ssl suid vpopmail"

# Developer documentation, controlled by the doc USE flag
DEVDOCS="auth-protocol index multiaccess securecoding"

DEPEND=">=sys-apps/sed-4
kerberos? ( virtual/krb5 )
ldap? ( net-nds/openldap )
pam? ( virtual/pam )
ssl? ( dev-libs/openssl )
postgres? ( virtual/postgresql-base )
mysql? ( virtual/mysql )
sqlite3? ( =dev-db/sqlite-3* )
vpopmail? ( net-mail/vpopmail )"

RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00-r8"

src_unpack() {
unpack ${A}
cd "${S}"
if use managesieve; then
epatch "${WORKDIR}"/${MY_P}-${MANAGESIEVE_PATCH}.diff
eautoreconf
fi
}

pkg_setup() {
if ! use sieve && use managesieve; then
eerror "managesieve USE flag selected but sieve USE flag unselected"
die "USE flag problem"
fi
# Add user and group for login process (same as for fedora/redhat)
enewgroup dovecot 97
enewuser dovecot 97 -1 /dev/null dovecot
}

src_compile() {
local myconf=
use ssl && myconf="${myconf} --with-ssl=openssl" \
|| myconf="${myconf} --without-ssl"
econf \
--localstatedir=/var \
--sysconfdir=/etc/dovecot \
--enable-header-install \
--with-ioloop=best \
--with-poll=best \
$(use_enable debug) \
$(use_enable ipv6) \
$(use_with kerberos gssapi) \
$(use_with ldap) \
$(use_with mysql) \
$(use_with pam) \
$(use_with pop3d) \
$(use_with postgres pgsql) \
$(use_with sqlite3 sqlite) \
$(use_with vpopmail) \
${myconf} \
|| die "configure failed"
emake || die "make failed"

if use sieve; then
einfo "Building sieve"
cd "${SIEVE_S}"
econf --with-dovecot="${S}" || die "configure failed (sieve)"
emake || die "make failed (sieve)"
fi

if use managesieve; then
einfo "Building managesieve"
cd "${MANAGESIEVE_S}"
econf --with-dovecot="${S}" --with-dovecot-sieve="${SIEVE_S}" \
|| die "configure failed (managesieve)"
emake || die "make failed (managesieve)"
fi
}

src_install () {
make DESTDIR="${D}" install || die "make install failed"
use suid && fperms u+s /usr/libexec/dovecot/deliver

rm -f "${D}"/etc/dovecot/dovecot-{ldap,sql}-example.conf

newinitd "${FILESDIR}"/dovecot.init-r1 dovecot

# Documentation
rm -rf "${D}"/usr/share/doc/dovecot
dodoc AUTHORS NEWS README TODO dovecot-example.conf
use managesieve && newdoc ${MANAGESIEVE_S}/README README.managesieve
if use doc; then
dodoc doc/*.txt
else
local x= n=
for x in doc/*.txt; do
n=$(basename "${x}" .txt)
[[ " ${DEVDOCS} " != *" ${n} "* ]] && dodoc "${x}"
done
fi

# Create the dovecot.conf file from the dovecot-example.conf file that
# the dovecot folks nicely left for us....
local conf="${D}/etc/dovecot/dovecot.conf"
mv "${D}"/etc/dovecot/dovecot-example.conf "${D}"/etc/dovecot/dovecot.conf

# .maildir is the Gentoo default, but we need to support mbox to
local mail_location="maildir:~/.maildir"
if use mbox; then
mail_location="mbox:/var/spool/mail/%u:INDEX=/var/dovecot/%u"
keepdir /var/dovecot
sed -i -e 's|#mail_privileged_group =|mail_privileged_group = mail|' "${conf}"
fi
sed -i -e \
"s|#mail_location =|mail_location = ${mail_location}|" "${conf}" \
|| die "failed to update mail location settings in dovecot.conf"

# We're using pam files (imap and pop3) provided by mailbase
if use pam; then
sed -i -e '/passdb pam/, /^[ \t]*}/ s|#args = dovecot|args = "\*"|' \
"${conf}" || die "failed to update PAM settings in dovecot.conf"
# mailbase does not provide a managesieve pam file
use managesieve && dosym imap /etc/pam.d/managesieve
fi

# Listen on ipv6 and ipv4
if use ipv6; then
sed -i -e 's/^#listen = \*/listen = \[::\]/g' "${conf}" \
|| die "failed to update listen settings in dovecot.conf"
fi

# Update ssl cert locations
if use ssl; then
sed -i -e 's,^#ssl_cert_file =.*,ssl_cert_file = /etc/ssl/dovecot/server.pem,' \
-e 's,^#ssl_key_file =.*,ssl_key_file = /etc/ssl/dovecot/server.key,' \
"${conf}" || die "failed to update SSL settings in dovecot.conf"
fi

# Install SQL configuration
if use mysql || use postgres; then
cp doc/dovecot-sql-example.conf "${D}"/etc/dovecot/dovecot-sql.conf
fperms 600 /etc/dovecot/dovecot-sql.conf
sed -i -e '/db sql/,/args/ s|=|= /etc/dovecot-sql.conf|' "${conf}" \
|| die "failed to update SQL settings in dovecot-sql.conf"
dodoc doc/dovecot-sql-example.conf
fi

# Install LDAP configuration
if use ldap; then
cp doc/dovecot-ldap-example.conf "${D}"/etc/dovecot/dovecot-ldap.conf
fperms 600 /etc/dovecot/dovecot-ldap.conf
sed -i -e '/db ldap/,/args/ s|=|= /etc/dovecot-ldap.conf|' "${conf}" \
|| die "failed to update LDAP settings in dovecot-ldap.conf"
dodoc doc/dovecot-ldap-example.conf
fi

# Install sieve plugin
if use sieve; then
make -C "${SIEVE_S}" DESTDIR="${D}" install \
|| die "make install failed (sieve)"
fi

# Install managesieve
if use managesieve; then
make -C "${MANAGESIEVE_S}" DESTDIR="${D}" install \
|| die "make install failed (managesieve)"
fi

dodir /var/run/dovecot
fowners root:0 /var/run/dovecot
fperms 0755 /var/run/dovecot
keepdir /var/run/dovecot/login
fowners root:dovecot /var/run/dovecot/login
fperms 0750 /var/run/dovecot/login
}

get_config_var() {
local varname=${1}
if [[ -z ${varname} ]]; then
die "${FUNCNAME}: variable name missing"
fi
sed -n 's/^[[:space:]]\?'"${varname}"'[[:space:]]*="*\([^#"]\+\)"*/\1/p' \
"${ROOT}"/etc/dovecot/dovecot.conf
}

pkg_postinst() {
elog "The Dovecot configuration has vastly changed since 0.99."
elog "You are encouraged to start afresh with a new configuration file."
elog "see http://wiki.dovecot.org/ for configuration examples."

if [[ -e "${ROOT}"/etc/dovecot.conf ]]; then
echo
ewarn "The Dovecot configuration now resides in ${ROOT}/etc/dovecot"
fi

local base_dir="$(get_config_var base_dir)"
base_dir="${base_dir:-/var/run/dovecot}"
if use ssl; then
# Let's not make a new certificate if we already have one
if ! [[ -e "${ROOT}"/etc/ssl/dovecot/server.pem && \
-e "${ROOT}"/etc/ssl/dovecot/server.key ]]; then
einfo "Creating SSL certificate"
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Dovecot IMAP Server}"
install_cert /etc/ssl/dovecot/server
chown dovecot:mail "${ROOT}"/etc/ssl/dovecot/server.{key,pem}
fi
if [[ ! -e "${ROOT}${base_dir}/login/ssl-parameters.dat" ]]; then
echo
elog "Dovecot requires DH SSL Parameters if you use SSL connections"
elog "These take some time to make, and dovecot will create them before"
elog "it allows any SSL connections."
elog "You can create them now before starting dovecot like so"
elog " emerge --config =${PF}"
fi
fi
}

pkg_config() {
local base_dir="$(get_config_var base_dir)"
base_dir="${base_dir:-/var/run/dovecot}"

if use ssl; then
einfo "Regenerating SSL parameters. This will take some time."
"${ROOT}"/usr/libexec/dovecot/ssl-build-param "${base_dir}/login/ssl-parameters.dat"
fi
}

files

metadata.xml




net-mail

wschlich@gentoo.org
Wolfram Schlich
Primary maintainer