ChangeLog

# ChangeLog for mail-mta/postfix
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/ChangeLog,v 1.177 2008/09/03 19:47:48 jer Exp $

03 Sep 2008; Jeroen Roovers postfix-2.5.5.ebuild:
Stable for HPPA (bug #236453).

03 Sep 2008; Jeroen Roovers postfix-2.4.9.ebuild:
Stable for HPPA (bug #236453).

03 Sep 2008; Raúl Porcel postfix-2.4.9.ebuild,
postfix-2.5.5.ebuild:
alpha/ia64/sparc/x86 stable wrt #236453

02 Sep 2008; Tobias Heinlein postfix-2.4.9.ebuild,
postfix-2.5.5.ebuild:
amd64 stable wrt security bug #236453

02 Sep 2008; Brent Baude postfix-2.5.5.ebuild:
Marking postfix-2.5.5 ppc64 and ppc for bug 236453

02 Sep 2008; Brent Baude postfix-2.4.9.ebuild:
Marking postfix-2.4.9 ppc64 and ppc for bug 236453

*postfix-2.5.5 (02 Sep 2008)
*postfix-2.4.9 (02 Sep 2008)

02 Sep 2008; Tobias Scherbaum
-postfix-2.2.11-r1.ebuild, -postfix-2.3.8-r1.ebuild,
-postfix-2.4.8.ebuild, +postfix-2.4.9.ebuild, -postfix-2.5.4.ebuild,
+postfix-2.5.5.ebuild:
Version bump, security bug #236453

30 Aug 2008; Tobias Scherbaum
postfix-2.5.4.ebuild:
Install the qshape manpage, #235779 reported by Roland Hopferwieser

23 Aug 2008; Doug Goldstein metadata.xml:
add GLEP 56 USE flag desc from use.local.desc

23 Aug 2008; Doug Goldstein metadata.xml:
new version. fixes issue with PHP warnings enabled. fixes bug #234767.
discussed commit with robbat2 and trapni

*postfix-2.5.4 (19 Aug 2008)
*postfix-2.4.8 (19 Aug 2008)

19 Aug 2008; Tobias Scherbaum
-postfix-2.4.7.ebuild, +postfix-2.4.8.ebuild, -postfix-2.5.3.ebuild,
+postfix-2.5.4.ebuild:
Version bump and cleanup

18 Aug 2008; Raphael Marichez files/postfix.rc6.2.5:
Fix bashisms in the init.d script, fix bug #234838 thanks to Martin Vath

*postfix-2.5.3-r1 (14 Aug 2008)
*postfix-2.4.7-r1 (14 Aug 2008)

14 Aug 2008; Raphael Marichez
+files/postfix-2.4.7-CVE-2008-2936.patch,
+files/postfix-2.4.7-CVE-2008-2937.patch,
+files/postfix-2.5.3-CVE-2008-2936.patch, +postfix-2.4.7-r1.ebuild,
+postfix-2.5.3-r1.ebuild:
Revision bump, security bug 232642

*postfix-2.5.3 (03 Aug 2008)

03 Aug 2008; Tobias Scherbaum
-postfix-2.5.2.ebuild, +postfix-2.5.3.ebuild:
Version bump, #233779

22 Jul 2008; Tobias Scherbaum
postfix-2.2.11-r1.ebuild, postfix-2.3.8-r1.ebuild,
postfix-2.4.6-r2.ebuild, postfix-2.4.7.ebuild, -postfix-2.5.0.ebuild,
-postfix-2.5.1.ebuild, postfix-2.5.2.ebuild:
Add blocker on net-mail/mailwrapper if mailwrapper use-flag isn't used,
#231052

16 Jul 2008; Luca Longinotti postfix-2.2.11-r1.ebuild,
postfix-2.3.8-r1.ebuild, postfix-2.4.6-r2.ebuild, postfix-2.4.7.ebuild,
postfix-2.5.0.ebuild, postfix-2.5.1.ebuild, postfix-2.5.2.ebuild:
Dep on PostgreSQL libs only.

09 Jun 2008; Tobias Scherbaum
postfix-2.5.0.ebuild, postfix-2.5.1.ebuild, postfix-2.5.2.ebuild:
chown keepfile in /var/lib/postfix to postfix to get rid of a postfix
warning (#214342)

*postfix-2.5.2 (09 Jun 2008)

09 Jun 2008; Tobias Scherbaum
postfix-2.5.1.ebuild, +postfix-2.5.2.ebuild:
Fix postgres linking, version bump (#223937)

21 May 2008; Tiziano Müller
postfix-2.2.11-r1.ebuild, postfix-2.3.8-r1.ebuild,
postfix-2.4.6-r2.ebuild, postfix-2.4.7.ebuild, postfix-2.5.0.ebuild,
postfix-2.5.1.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server

13 Apr 2008; Ulrich Mueller -postfix-2.4.5.ebuild:
Remove last vulnerable ebuild wrt bug 201671.

08 Apr 2008; Raphael Marichez files/postfix.rc6.2.5:
Fix bashism in init.d/postfix reported by Peter Alfredsen, bug #216949

*postfix-2.4.7 (21 Mar 2008)

21 Mar 2008; Raphael Marichez +postfix-2.4.7.ebuild:
Version bump 2.4.x series using previous vda-ng patch, closes bug #199330

21 Mar 2008; Raphael Marichez postfix-2.4.5.ebuild,
postfix-2.4.6-r2.ebuild:
QA: remove bindnow-flags, bug #210599; fix repoman warns (LICENSE, copyright)

*postfix-2.5.1 (17 Mar 2008)
*postfix-2.5.0 (17 Mar 2008)

17 Mar 2008; Raphael Marichez +files/postfix.rc6.2.5,
+postfix-2.5.0.ebuild, +postfix-2.5.1.ebuild:
Version bump (bug 207807). Removes bindnow-flags calls, and implements
multi-instances bug 166872, thanks to busby@edoceo.com for his rc script

16 Mar 2008; Ulrich Mueller -postfix-2.2.10-r1.ebuild:
Remove old, bug 201671.

16 Mar 2008; Ryan Hill postfix-2.4.6-r2.ebuild:
Keyword ~mips for bug #201671.

14 Mar 2008; Ulrich Mueller -files/postfix.rc6,
-files/smtp.pam, -postfix-2.1.5-r2.ebuild, -postfix-2.2.10.ebuild,
-postfix-2.3.6.ebuild:
Remove versions vulnerable wrt bug 201671, as far as yet possible.

14 Mar 2008; Steve Dibb postfix-2.2.11-r1.ebuild,
postfix-2.3.8-r1.ebuild, postfix-2.4.6-r2.ebuild:
amd64 stable, bug 201671

13 Mar 2008; postfix-2.1.5-r2.ebuild,
postfix-2.2.10.ebuild:
Drop to ~mips due to unstable deps

17 Feb 2008; nixnut postfix-2.2.11-r1.ebuild,
postfix-2.3.8-r1.ebuild, postfix-2.4.6-r2.ebuild:
Stable on ppc wrt bug 201671

17 Feb 2008; Raúl Porcel postfix-2.2.11-r1.ebuild,
postfix-2.3.8-r1.ebuild, postfix-2.4.6-r2.ebuild:
alpha/ia64/sparc stable wrt #201671

13 Feb 2008; Markus Meier postfix-2.2.11-r1.ebuild,
postfix-2.3.8-r1.ebuild, postfix-2.4.6-r2.ebuild:
x86 stable, bug #201671 and quotes in 2.3.8-r1

13 Feb 2008; Jeroen Roovers postfix-2.2.11-r1.ebuild,
postfix-2.3.8-r1.ebuild, postfix-2.4.6-r2.ebuild:
Stable for HPPA (bug #201671).

11 Feb 2008; Brent Baude postfix-2.2.11-r1.ebuild,
postfix-2.3.8-r1.ebuild, postfix-2.4.6-r2.ebuild:
Marking various postfix ppc64 stable for bug 201671

*postfix-2.4.6-r2 (03 Feb 2008)
*postfix-2.3.8-r1 (03 Feb 2008)
*postfix-2.2.11-r1 (03 Feb 2008)

03 Feb 2008; Ulrich Mueller -postfix-2.2.11.ebuild,
+postfix-2.2.11-r1.ebuild, -postfix-2.3.8.ebuild,
+postfix-2.3.8-r1.ebuild, -postfix-2.4.6-r1.ebuild,
+postfix-2.4.6-r2.ebuild:
Replace docert by install_cert, bug 201671.

12 Dec 2007; Jeroen Roovers postfix-2.4.5.ebuild:
Stable for HPPA (bug #199332).

26 Nov 2007; Christoph Mende postfix-2.4.5.ebuild:
Stable on amd64 wrt bug #199332

*postfix-2.4.6-r1 (26 Nov 2007)

26 Nov 2007; Luca Longinotti -postfix-2.4.6.ebuild,
+postfix-2.4.6-r1.ebuild:
Fix VDA-NG with quota=0 and mailboxes.

*postfix-2.4.6 (25 Nov 2007)

25 Nov 2007; Luca Longinotti -postfix-2.4.1.ebuild,
-postfix-2.4.3.ebuild, +postfix-2.4.6.ebuild:
Remove old Postfix 2.4.X ebuilds. Add Postfix 2.4.6, fix VDA patch for bug
#191384.

20 Nov 2007; Raúl Porcel postfix-2.4.5.ebuild:
alpha/ia64/sparc stable wrt #199332

18 Nov 2007; Markus Rothe postfix-2.4.5.ebuild:
Stable on ppc64; bug #199332

17 Nov 2007; Dawid Węgliński postfix-2.4.5.ebuild:
Stable on x86 (bug #199332)

17 Nov 2007; nixnut postfix-2.4.5.ebuild:
Stable on ppc wrt bug 199332

21 Oct 2007; postfix-2.1.5-r2.ebuild,
postfix-2.2.10.ebuild, postfix-2.2.10-r1.ebuild, postfix-2.2.11.ebuild,
postfix-2.3.6.ebuild, postfix-2.3.8.ebuild, postfix-2.4.1.ebuild,
postfix-2.4.3.ebuild, postfix-2.4.5.ebuild:
- make postfix respect user defined LDFLAGS. 192885

19 Sep 2007; Patrick McLean postfix-2.4.5.ebuild:
Change paths to binaries in default master.cf to standard gentoo paths
(/usr/local/ to /usr/, requested by seemant).

*postfix-2.4.5 (31 Aug 2007)

31 Aug 2007; Patrick McLean +postfix-2.4.5.ebuild:
Version bump, fixes bug #188128

30 Aug 2007; Christian Heim metadata.xml:
Removing langthang from metadata due to his retirement (see #53239 for
reference).

12 Jul 2007; Matthias Schwarzott
files/postfix.rc6.2.2.9:
Removed bashisms from init-script, Bug #181874.

*postfix-2.4.3 (02 Jun 2007)

02 Jun 2007; Luca Longinotti +postfix-2.4.3.ebuild:
Version bump.

12 May 2007; Luca Longinotti
-files/postfix-2.3.0-SASL_README.patch, -files/postfix.rc6.2.2.4,
-files/postfix.rc6.2.2.5, -postfix-2.2.4.ebuild, -postfix-2.2.5.ebuild,
-postfix-2.2.5-r1.ebuild, -postfix-2.2.8.ebuild, -postfix-2.2.8-r1.ebuild,
-postfix-2.2.9.ebuild, -postfix-2.2.9-r1.ebuild, -postfix-2.3.7.ebuild,
-postfix-2.4.0.ebuild, -postfix-2.4.0-r1.ebuild:
Cleanup, remove old ebuild versions and files.

*postfix-2.4.1 (01 May 2007)

01 May 2007; Luca Longinotti +postfix-2.4.1.ebuild:
Version bump to 2.4.1, use newest VDA-NG patch.

28 Apr 2007; Sven Wegener postfix-2.1.5-r2.ebuild:
Fix *initd, *confd and *envd calls (#17388, #174266)

*postfix-2.4.0-r1 (24 Apr 2007)

24 Apr 2007; Luca Longinotti +postfix-2.4.0-r1.ebuild:
General ebuild cleanup, now correctly supports lib/lib64 dirs. Large file
support (fixes bug #174099). Fix CDB/TinyCDB library linking (fixes bug
#174948). Use new VDA-NG patch, partial rewrite of the VDA-e patch, with
bugfixes and new features.

*postfix-2.4.0 (08 Apr 2007)

08 Apr 2007; Raphael Marichez +postfix-2.4.0.ebuild:
Version bump

29 Mar 2007; Timothy Redaelli postfix-2.3.8.ebuild:
Add ~x86-fbsd keyword

25 Mar 2007; Tobias Scherbaum
postfix-2.3.6.ebuild:
Stable on ppc wrt bug #165326.

*postfix-2.3.8 (23 Mar 2007)

23 Mar 2007; Andrej Kacian -postfix-2.3.0.ebuild,
-postfix-2.3.0-r1.ebuild, -postfix-2.3.2.ebuild, -postfix-2.3.2-r1.ebuild,
-postfix-2.3.4.ebuild, -postfix-2.3.5.ebuild, +postfix-2.3.8.ebuild:
Version bump. Requested by Alexander Stoll in bug
#171769. Removed unneeded 2.3.x ebuilds.

22 Feb 2007; Fernando J. Pereda postfix-2.3.6.ebuild:
Stable on alpha as per bug #165326

13 Feb 2007; Markus Rothe postfix-2.3.6.ebuild:
Stable on ppc64; bug #165326

05 Feb 2007; Patrick McLean postfix-2.3.6.ebuild:
Stable on amd64 (bug #165326).

05 Feb 2007; Jeroen Roovers postfix-2.3.6.ebuild:
Stable for HPPA (bug #165326).

05 Feb 2007; Torsten Veller postfix-2.3.6.ebuild:
Stable on x86 (#165326)

05 Feb 2007; Gustavo Zacarias postfix-2.3.6.ebuild:
Stable on sparc wrt #165326

*postfix-2.3.7 (04 Feb 2007)

04 Feb 2007; Andrej Kacian postfix-2.2.10.ebuild,
postfix-2.3.6.ebuild, +postfix-2.3.7.ebuild:
Version bump. Add postfix user to both postfix and mail groups to fix bug
#134776.

*postfix-2.3.6 (04 Jan 2007)

04 Jan 2007; Fernando J. Pereda +postfix-2.3.6.ebuild:
New upstream version, fixes bug #159981

*postfix-2.3.5 (24 Dec 2006)

24 Dec 2006; Andrej Kacian +postfix-2.3.5.ebuild:
Version bump. Use VDA patch version 2.3.3. Closes bug #158033, reported by
Aurélien Requiem .

23 Nov 2006; Francesco Riosa postfix-2.1.5-r2.ebuild,
postfix-2.2.4.ebuild, postfix-2.2.5.ebuild, postfix-2.2.5-r1.ebuild,
postfix-2.2.8.ebuild, postfix-2.2.8-r1.ebuild, postfix-2.2.9.ebuild,
postfix-2.2.9-r1.ebuild, postfix-2.2.10.ebuild, postfix-2.2.10-r1.ebuild,
postfix-2.2.11.ebuild, postfix-2.3.0.ebuild, postfix-2.3.0-r1.ebuild,
postfix-2.3.2.ebuild, postfix-2.3.2-r1.ebuild, postfix-2.3.4.ebuild:
dev-db/mysql => virtual/mysql

*postfix-2.3.4 (10 Nov 2006)

10 Nov 2006; Andrej Kacian +postfix-2.3.4.ebuild:
Version bump. Closes bug #145614, by Erik Logtenberg .

04 Sep 2006; Joshua Kinard postfix-2.2.10.ebuild,
postfix-2.2.10-r1.ebuild:
Marked 2.2.10 stable and 2.2.10-r1 unstable.

*postfix-2.3.2-r1 (01 Aug 2006)
*postfix-2.3.2 (01 Aug 2006)

01 Aug 2006; Tuấn Văn +postfix-2.3.2.ebuild,
+postfix-2.3.2-r1.ebuild:
New postfix 2.3 patch 02.
add vda patch back.

*postfix-2.2.11 (26 Jul 2006)

26 Jul 2006; Tuấn Văn +postfix-2.2.11.ebuild:
bump to patch 11. bump VDA patch to 2.2.10, bug #140099 reported by Alan Mosca


*postfix-2.3.0-r1 (14 Jul 2006)
*postfix-2.3.0 (14 Jul 2006)

14 Jul 2006; Tuấn Văn
+files/postfix-2.3.0-SASL_README.patch, +postfix-2.3.0.ebuild,
+postfix-2.3.0-r1.ebuild:
New release. Drop VDA patch for now as it is not yet available upstream.
Add new Dovecot SASL implementation support. read SASL_README.

25 Jun 2006; Marcus D. Hanwell postfix-2.2.10.ebuild:
Marked stable on amd64, bug 132702.

16 May 2006; Markus Rothe postfix-2.2.10.ebuild:
Stable on ppc64; bug #132702

14 May 2006; Jason Wever postfix-2.2.10.ebuild:
Stable on SPARC wrt bug #132702.

12 May 2006; Chris Gianelloni postfix-2.2.10.ebuild:
Stable on x86 wrt bug #132702.

11 May 2006; Fernando J. Pereda postfix-2.2.10.ebuild:
Stable on alpha wrt bug #132702

11 May 2006; Tobias Scherbaum
postfix-2.2.10.ebuild:
ppc stable, bug #132702

27 Apr 2006; Marien Zwart
files/digest-postfix-2.1.5-r2, files/digest-postfix-2.2.4,
files/digest-postfix-2.2.5, files/digest-postfix-2.2.5-r1,
files/digest-postfix-2.2.8, files/digest-postfix-2.2.8-r1, Manifest:
Fixing SHA256 digest, pass four

*postfix-2.2.10-r1 (07 Apr 2006)
*postfix-2.2.10 (07 Apr 2006)

07 Apr 2006; Tuấn Văn
+files/postfix-master.cf.patch, +postfix-2.2.10.ebuild,
+postfix-2.2.10-r1.ebuild:
patchlevel 10.
add a patch for master.cf . Bug #26130.

07 Mar 2006; Fernando J. Pereda
+files/postfix.rc6.2.2.9, postfix-2.2.9.ebuild, postfix-2.2.9-r1.ebuild:
Add saslauthd to the init script, fixes bug #125376

*postfix-2.2.9-r1 (02 Mar 2006)
*postfix-2.2.9 (02 Mar 2006)

02 Mar 2006; Tuấn Văn +postfix-2.2.9.ebuild,
+postfix-2.2.9-r1.ebuild:
New patch level 9.

02 Mar 2006; Tuấn Văn -postfix-2.2.7.ebuild,
-postfix-2.2.7-r1.ebuild:
remove old/p.masked ebuilds.

20 Feb 2006; Joshua Kinard postfix-2.2.5.ebuild:
Marked stable on mips.

*postfix-2.2.8-r1 (30 Jan 2006)
*postfix-2.2.8 (30 Jan 2006)

30 Jan 2006; Tuấn Văn +postfix-2.2.8.ebuild,
+postfix-2.2.8-r1.ebuild:
patch level 8.
drop ~mips keyword. Bug #115716.

25 Dec 2005; Diego Pettenò
postfix-2.2.7-r1.ebuild:
Use bindnow-flags function instead of -Wl,-z,now.

20 Dec 2005; Fernando J. Pereda
postfix-2.2.7-r1.ebuild:
Set RC_VER in postfix-2.2.7-r1

17 Dec 2005; Tuấn Văn postfix-2.2.7.ebuild,
postfix-2.2.7-r1.ebuild:
fix DEPEND syntax.

*postfix-2.2.7-r1 (16 Dec 2005)
*postfix-2.2.7 (16 Dec 2005)

16 Dec 2005; Tuấn Văn +postfix-2.2.7.ebuild,
+postfix-2.2.7-r1.ebuild:
Patchlevel 7.
Add cdb support, bug #112293. Thanks to Paul Gabriel.
Add missing performance tuning tools. bug #115505. Thanks to Andrea Carpani.

14 Nov 2005; Seemant Kulleen postfix-2.2.5.ebuild:
Stable on amd64 wrt bug #112203

13 Nov 2005; Michael Hanselmann postfix-2.2.5.ebuild:
Stable on hppa, ppc. See bug #112203.

12 Nov 2005; Jason Wever postfix-2.2.5.ebuild:
Stable on SPARC wrt bug #112203.

11 Nov 2005; Brent Baude postfix-2.2.5.ebuild:
Marking ppc64 per bug 112203

11 Nov 2005; Fernando J. Pereda postfix-2.2.5.ebuild:
stable on alpha, wrt bug #112203

11 Nov 2005; Chris Gianelloni postfix-2.2.5.ebuild:
Marking stable wrt bug #112203.

*postfix-2.2.5-r1 (11 Oct 2005)

11 Oct 2005; Tuấn Văn +postfix-2.2.5-r1.ebuild:
mailwrapper/mailer-config ebuild.

*postfix-2.2.5 (11 Oct 2005)

11 Oct 2005; Tuấn Văn +files/postfix.rc6.2.2.5,
+postfix-2.2.5.ebuild:
bump to postfix-2.2.5 without mailer eclass.
remove -ldl as it is not necessary, resolve bug #106446.
change "need net" to "use net", resolve bug #96850.

11 Oct 2005; Tuấn Văn -files/postfix.rc6.2.2.3,
-postfix-2.2.1.ebuild, -postfix-2.2.1-r1.ebuild, -postfix-2.2.2.ebuild,
-postfix-2.2.2-r1.ebuild, -postfix-2.2.2-r2.ebuild, -postfix-2.2.3.ebuild,
-postfix-2.2.3-r1.ebuild:
tidy up.

04 Oct 2005; MATSUU Takuto postfix-2.1.5-r2.ebuild:
Stable on sh.

23 Aug 2005; Andrej Kacian postfix-2.2.1.ebuild,
postfix-2.2.1-r1.ebuild, postfix-2.2.2.ebuild, postfix-2.2.2-r1.ebuild,
postfix-2.2.2-r2.ebuild, postfix-2.2.3.ebuild, postfix-2.2.3-r1.ebuild,
postfix-2.2.4.ebuild:
Use -1 for shell argument to enewuser. Bug #103421.

05 Jul 2005; Andrej Kacian postfix-2.2.3-r1.ebuild,
postfix-2.2.4.ebuild:
Update 2.2.4 with latest mailer-config stuff (rmail binary). Bug #97589.

04 Jul 2005; Andrej Kacian files/mailer.conf,
postfix-2.2.3-r1.ebuild:
Handle rmail binary.

04 Jul 2005; Andrej Kacian postfix-2.2.3-r1.ebuild:
Added compatibility with mailer-config-0.2 - manpages. Bug #97589.

*postfix-2.2.4 (29 Jun 2005)

29 Jun 2005; Tuấn Văn +postfix-2.2.4.ebuild:
Vesion bump with some cleanup.
We're no longer run postconf to change the default alias_maps,
alias_database, local_destination_concurrency_limit,
default_destination_concurrency_limit to resolve issues in bug #96016.
Don't install default certificate if they exist.

18 Jun 2005; Andrej Kacian +files/postfix.rc6.2.2.3,
postfix-2.2.3.ebuild, postfix-2.2.3-r1.ebuild:
Make the initscript 'use postfix_graylist', which is a facility provided by
graylisting engines in portage. Closes bug #55705, by Duncan Hill
.

*postfix-2.2.3-r1 (20 May 2005)

20 May 2005; Fernando J. Pereda
+postfix-2.2.3-r1.ebuild:
make it compatible with g/fbsd, fixes #93177. Thanks to flameeyes

*postfix-2.2.3 (12 May 2005)

12 May 2005; Tuấn Văn +postfix-2.2.3.ebuild:
version bump.

04 May 2005; Fernando J. Pereda
postfix-2.2.2-r2.ebuild:
append provide from mailer.eclass

*postfix-2.2.2-r2 (04 May 2005)

04 May 2005; Fernando J. Pereda files/mailer.conf,
+postfix-2.2.2-r2.ebuild:
postfix-2.2.2-r2 is mailer.eclass aware and pmasked

27 Apr 2005; Fernando J. Pereda
postfix-2.1.5-r2.ebuild:
fix logic to know if postfix is running, wrt #53324

25 Apr 2005; Fernando J. Pereda
postfix-2.2.2-r1.ebuild:
Updated the 'postfix running' check

*postfix-2.2.2-r1 (05 Apr 2005)

05 Apr 2005; Tuấn Văn +postfix-2.2.2-r1.ebuild:
sync VDA patch.

*postfix-2.2.2 (04 Apr 2005)

04 Apr 2005; Tuấn Văn +postfix-2.2.2.ebuild:
Postfix 2.2 patch 02.

22 Mar 2005; Markus Rothe postfix-2.1.5-r2.ebuild:
Stable on ppc64

*postfix-2.2.1-r1 (22 Mar 2005)

22 Mar 2005; Tuấn Văn +postfix-2.2.1-r1.ebuild:
Tidy up, bug #53324.

*postfix-2.2.1 (15 Mar 2005)

15 Mar 2005; Tuấn Văn +postfix-2.2.1.ebuild:
Postfix 2.2 patch 01.
VDA is available with this ebuild.

*postfix-2.2.0 (09 Mar 2005)

09 Mar 2005; Tuấn Văn +postfix-2.2.0.ebuild:
New postfix-2.2.0 release. This release includes IPV6 and TLS in the
official release. "vda" has been removed as it isn't available for
experimetal Postfix release. "vda" will be added as soon as it's available.
Please review these document for more infomation:
ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-2.2.0.RELEA
SE_NOTES http://www.postfix.org/TLS_README.html
http://www.postfix.org/IPV6_README.html

*postfix-2.2.0_rc2 (04 Mar 2005)

04 Mar 2005; Tuấn Văn +postfix-2.2.0_rc2.ebuild:
New official Release Candidate.

*postfix-2.2.0_rc1 (28 Feb 2005)

28 Feb 2005; Tuấn Văn +postfix-2.2.0_rc1.ebuild:
Postfix 2.2.0 official Release Candidate.

*postfix-2.2_beta20050218 (19 Feb 2005)

19 Feb 2005; Tuấn Văn
+postfix-2.2_beta20050218.ebuild:
new experimental snapshot.

17 Feb 2005; Michael Hanselmann postfix-2.1.5-r2.ebuild:
Stable on hppa.

14 Feb 2005; postfix-2.1.5-r2.ebuild:
Mark 2.1.5-r2 ~ia64.

10 Feb 2005; Simon Stelling postfix-2.1.5-r2.ebuild:
stable on amd64 wrt bug 81024

07 Feb 2005; Bryan Østergaard
postfix-2.1.5-r2.ebuild:
Stable on alpha.

*postfix-2.2_beta20050206 (07 Feb 2005)

07 Feb 2005; Tuấn Văn
-postfix-2.2_beta20050119.ebuild, +postfix-2.2_beta20050206.ebuild:
New Postfix 2.2 experimental release snapshot. Remove old snapshot.

07 Feb 2005; Michael Hanselmann
postfix-2.1.5-r2.ebuild:
Stable on ppc.

07 Feb 2005; Gustavo Zacarias postfix-2.1.5-r2.ebuild:
Stable on sparc wrt #81024

06 Feb 2005; Joshua Kinard postfix-2.1.5-r2.ebuild:
Marked stable on mips.

03 Feb 2005; Tuấn Văn postfix-2.1.5-r2.ebuild:
x86 stable.

*postfix-2.2_beta20050203 (03 Feb 2005)

03 Feb 2005; Tuấn Văn
+postfix-2.2_beta20050203.ebuild:
new developmental snapshot.

*postfix-2.1.5-r2 (28 Jan 2005)

28 Jan 2005; Tuấn Văn +postfix-2.1.5-r2.ebuild:
New IPV6 patches.

27 Jan 2005; Andrej Kacian files/postfix.rc6:
Add "use antivirus" to initscript. Bug #76285.

*postfix-2.2_beta20050119 (21 Jan 2005)

21 Jan 2005; Tuấn Văn files/postfix.rc6,
-postfix-2.2_beta20041230.ebuild, +postfix-2.2_beta20050119.ebuild:
add postgresql to postfix.rc6 use statement. Bug #70554.
add check for postfix, postdrop user/group. Bug #77565.
add workaround bug #76512.

*postfix-2.2_beta20041230 (05 Jan 2005)

05 Jan 2005; Tuấn Văn -postfix-2.0.19.ebuild,
-postfix-2.1.3.ebuild, -postfix-2.2.20041221.ebuild,
+postfix-2.2_beta20041230.ebuild:
new dev snapshot.
clean out old ebuilds.

05 Jan 2005; petre rodan postfix-2.1.5-r1.ebuild,
postfix-2.2.20041221.ebuild:
added RDEPEND for selinux systems

02 Jan 2005; Bryan Østergaard
postfix-2.1.5-r1.ebuild:
Stable on alpha.

29 Dec 2004; Ciaran McCreesh :
Change encoding to UTF-8 for GLEP 31 compliance

*postfix-2.2.20041221 (22 Dec 2004)

22 Dec 2004; Tuan Van +postfix-2.2.20041221.ebuild:
2.2 development release with TLS support.
add "nis" USE flag to support uclibc env. Bug #61509.
fix the hardcoded ALIAS_DB_MAP. Bug #75361.
Thanks to Christian Zoffoli .

24 Nov 2004; Hardave Riar postfix-2.1.5-r1.ebuild:
Stable on mips, bug #56088.

17 Nov 2004; Markus Rothe postfix-2.1.5-r1.ebuild:
stable on ppc64

01 Nov 2004; Tuan Van -files/main.cf,
-files/master.cf, -files/smtpd.conf:
remove cruft in FILESDIR.

01 Nov 2004; Tuan Van
-postfix-1.1.11.20020917-r1.ebuild, -postfix-1.1.11.20020917.ebuild,
-postfix-2.0.11.ebuild, -postfix-2.0.16-r1.ebuild, -postfix-2.0.18.ebuild,
-postfix-2.0.19-r1.ebuild, -postfix-2.0.19-r2.ebuild,
-postfix-2.0.19-r3.ebuild, -postfix-2.0.19-r4.ebuild,
-postfix-2.0.20.ebuild, -postfix-2.1.1.ebuild, -postfix-2.1.4.ebuild,
postfix-2.1.5-r1.ebuild:
stable on s390 on behalf of vapier.
remove old ebuilds.

26 Oct 2004; Luca Barbato postfix-2.1.5-r1.ebuild:
Marked ppc

26 Oct 2004; Tuan Van postfix-2.1.5-r1.ebuild:
replace ${CC} with $(tc-getCC), resolve bug #69003.

26 Oct 2004; Tom Martin postfix-2.1.5-r1.ebuild:
Stable on amd64.

25 Oct 2004; Jason Wever postfix-2.1.5-r1.ebuild:
Stable on sparc.

18 Oct 2004; Tuan Van postfix-2.1.5-r1.ebuild:
stable on x86.

16 Oct 2004; Guy Martin postfix-2.1.5-r1.ebuild:
Stable on hppa.

28 Sep 2004; Tuan Van :
Resolve bug #65695.

*postfix-2.1.5-r1 (22 Sep 2004)

22 Sep 2004; Tuan Van +postfix-2.1.5-r1.ebuild:
Version bump to please QA. Bug #62674.

*postfix-2.1.5 (21 Sep 2004)

21 Sep 2004; Tuan Van +postfix-2.1.5.ebuild:
Version bump.

11 Sep 2004; Tom Martin postfix-2.1.3.ebuild:
Stable on amd64.

06 Sep 2004; Ciaran McCreesh postfix-2.0.20.ebuild,
postfix-2.1.3.ebuild, postfix-2.1.4.ebuild:
Switch to use epause and ebeep, bug #62950

30 Aug 2004; Tom Gall postfix-2.1.3.ebuild:
stable on ppc64, bug #61746

*postfix-2.1.4 (23 Aug 2004)

23 Aug 2004; Tuan Van +postfix-2.1.4.ebuild:
Version bump. Close bug #56574.

22 Aug 2004; Bryan Østergaard postfix-2.1.3.ebuild:
Stable on alpha.

20 Aug 2004; Jason Wever postfix-2.1.3.ebuild:
Stable on sparc.

17 Aug 2004; postfix-2.1.3.ebuild:
Added ~mips to KEYWORDS.

15 Aug 2004; Tuan Van postfix-2.1.3.ebuild:
stable on x86.

16 Jul 2004; Bryan Østergaard postfix-2.0.19-r4.ebuild:
Stable on alpha, requested in bug #56088.

*postfix-2.0.20 (04 Jul 2004)

04 Jul 2004; +postfix-2.0.20.ebuild:
Version bump and added warnings to workaround bug #45764.

*postfix-2.1.3 (02 Jul 2004)

02 Jul 2004; metadata.xml, +postfix-2.1.3.ebuild:
Version bump, fix bug #53324, workaround bug #45764, add myself to
metadata.xml

30 Jun 2004; Cory Visi files/postfix-2.0.9-get-FQDN.patch:
Update files/postfix-2.0.9-get-FQDN.patch for better logging, Bug 51504,
thanks to Ryan Earl for research and patch. Affects all
versions <=2.1.1

*postfix-2.0.19-r4 (30 Jun 2004)

30 Jun 2004; Cory Visi postfix-2.0.19-r4.ebuild:
Add queue_minfree setting to default main.cf to fix Bug 51743 - thanks to
drobbins for finding this

16 Jun 2004; Michael Sterrett postfix-2.0.11.ebuild:
take out unused is_postfix_installed() function

11 Jun 2004; Jeremy Huddleston
postfix-2.0.11.ebuild:
Fixed init script to have proper name.

07 Jun 2004; Aron Griffis
postfix-1.1.11.20020917-r1.ebuild, postfix-1.1.11.20020917.ebuild,
postfix-2.0.11.ebuild, postfix-2.0.16-r1.ebuild, postfix-2.0.18.ebuild,
postfix-2.0.19.ebuild:
Fix use invocation

*postfix-2.1.1 (05 Jun 2004)

05 Jun 2004; Grant Goodyear :
Adding the new postfix to the tree (bug # 48796). Thanks to
Davin Boling, Matt Girard, Lang Thang, Mogens Meier Christensen,
theboywho, Andrew Glen-Young, and Ajay Sharma.

05 Jun 2004; Bryan Østergaard postfix-2.0.19-r2.ebuild:
Stable on alpha.

*postfix-2.0.19-r3 (30 May 2004)

30 May 2004; Grant Goodyear files/mailer.conf,
postfix-2.0.19-r2.ebuild, +postfix-2.0.19-r3.ebuild:
Changes to make mailwrapper an optional dep.
Also, I removed "maildir" as a use flag, as it's our default
format.

12 May 2004; Michael McCabe postfix-2.0.19-r2.ebuild:
Added s390 keywords

31 Mar 2004; Max Kalika files/postfix.rc6:
Set $opts properly in init script. Fixes bug #46304.

26 Mar 2004; postfix-2.0.19.ebuild:
Added mips to KEYWORDS.

22 Mar 2004; Max Kalika postfix-2.0.19-r1.ebuild,
postfix-2.0.19-r2.ebuild, postfix-2.0.19.ebuild:
Make sure spool only gets created in pkg_postinst(). Fixes bug #45142.

19 Mar 2004; Jason Wever postfix-2.0.19.ebuild:
Marked stable on sparc.

18 Mar 2004; Grant Goodyear postfix-2.0.19-r2.ebuild:
Whoops, forgot to create sendmail.postfix (bug 44989).

*postfix-2.0.19-r2 (17 Mar 2004)

17 Mar 2004; Grant Goodyear postfix-2.0.16-r1.ebuild,
postfix-2.0.18.ebuild, postfix-2.0.19-r1.ebuild, postfix-2.0.19-r2.ebuild,
postfix-2.0.19.ebuild, files/mailer.conf:
Lots of keyword fixes for bad sasl depends.

*postfix-2.0.19-r2 (17 Mar 2004)

17 Mar 2004; Grant Goodyear postfix-2.0.19-r2.ebuild,
files/mailer.conf:
New revision that uses mailwrapper.

*postfix-2.0.19-r1 (15 Mar 2004)
*postfix-2.0.19 (15 Mar 2004)

15 Mar 2004; Max Kalika postfix-2.0.19-r1.ebuild,
postfix-2.0.19.ebuild:
Bump to version 2.0.19 and mark stable x86. Add new testing version 2.0.19-r1
which includes some use command cleanup and the vda patch, fixing bug 31819.

23 Feb 2004; Jason Wever postfix-2.0.16-r1.ebuild:
Stable on sparc.

19 Feb 2004; Aron Griffis postfix-2.0.16-r1.ebuild,
postfix-2.0.18.ebuild:
Mark 2.0.16-r1 stable on alpha and ia64. Mark 2.0.18 testing on ~ia64 (it
already had ~alpha)

09 Feb 2004; Max Kalika postfix-2.0.18.ebuild:
Bump TLS patch to 2.0.18, IPV6+TLS patch to 1.21.

06 Feb 2004; Max Kalika postfix-2.0.10-r1.ebuild,
postfix-2.0.11.ebuild, postfix-2.0.12-r1.ebuild, postfix-2.0.13-r1.ebuild,
postfix-2.0.14.ebuild, postfix-2.0.15-r1.ebuild, postfix-2.0.17.ebuild,
postfix-2.0.9.ebuild, files/postfix, files/postfix-2.0.8_patch.patch,
files/postfix-pg.postfix-2.0.0.2.patch.bz2, files/saslpass,
files/smtpd-2.0.conf, files/postfix-2.0.0/master.cf.diff,
files/postfix-2.0.14/main.cf.diff:
Cleanup some stale files.

*postfix-2.0.18 (23 Jan 2004)

23 Jan 2004; Max Kalika postfix-2.0.18.ebuild:
Bump version to 2.0.18.

*postfix-2.0.17 (20 Jan 2004)

20 Jan 2004; Max Kalika postfix-2.0.17.ebuild:
Bump version to 2.0.17.

18 Jan 2004; postfix-2.0.16-r1.ebuild:
Added ~mips to KEYWORDS.

16 Jan 2004; Max Kalika postfix-2.0.16-r1.ebuild:
Provide proper include path for PostgreSQL depending on which version is
installed. Fixes bug #38401.

14 Jan 2004; Max Kalika postfix-1.1.11.20020917-r1.ebuild,
postfix-1.1.11.20020917.ebuild, postfix-2.0.10-r1.ebuild,
postfix-2.0.12-r1.ebuild, postfix-2.0.13-r1.ebuild, postfix-2.0.14.ebuild,
postfix-2.0.15-r1.ebuild, postfix-2.0.16-r1.ebuild, postfix-2.0.9.ebuild,
files/gentestcrt.sh, files/tls+ipv6-1.4-pf-1.1.11-20020917.patch.bz2:
Bump 2.0.16-r1 to stable x86. Add FSH link /usr/sbin/sendmail ->
/usr/lib/sendmail. Do not keepdir on the queue directories to minimize bogus
errors in the mail log. Only install the sasl conf to /etc/sasl2 as the latest
sasl looks there for the config files.

10 Jan 2004; Jason Wever postfix-2.0.11.ebuild:
Marked stable on sparc.

20 Dec 2003; Martin Schlemmer files/smtp.pam:
Update pam.d file to use system-auth.

14 Dec 2003; postfix-1.1.11.20020917-r1.ebuild,
postfix-1.1.11.20020917.ebuild:
QA: fixing chown user.group to user:group, bug #35127

10 Nov 2003; postfix-2.0.16-r1.ebuild:
Put back keepdirs for the spool directories. Allows clean unmerge.

10 Nov 2003; postfix-2.0.16-r1.ebuild:
Properly fix spool permissions after merge, take 2.

08 Nov 2003; postfix-2.0.16-r1.ebuild:
Properly fix spool after merging. Fixes bug 31797.

07 Nov 2003; Seemant Kulleen postfix-2.0.16-r1.ebuild:
keepdir to keep the subdirs in /var/spool/postfix

03 Nov 2003; Max Kalika postfix-2.0.16-r1.ebuild:
Allow user to set SSL_ORGANIZATION in make.conf.

03 Nov 2003; Max Kalika postfix-2.0.16-r1.ebuild:
Switch to ssl-cert.eclass.

*postfix-2.0.16-r1 (25 Sep 2003)

25 Sep 2003; Max Kalika postfix-2.0.16-r1.ebuild:
Add the Verisign patch from Wietse.

24 Sep 2003; Max Kalika postfix-2.0.16.ebuild:
Die if postfix-install or postconf fail.

24 Sep 2003; Max Kalika postfix-2.0.16.ebuild:
Add -lpthread to libs. Fixes bug 28044.

*postfix-2.0.16 (23 Sep 2003)

23 Sep 2003; Max Kalika postfix-2.0.16.ebuild,
files/gentestcrt.sh, files/postfix.rc6, files/smtp.pass, files/smtp.sasl:
This is new/testing/experimental: Bump to version 2.0.16 with the latest
available TLS, IPV6, and IPV6+TLS patches. Major cleanup/rewrite: quote
variables where possible; whitespace consistancy; drop creation of postfix
user -- already in baselayout; require >=dev-libs/cyrus-sasl-2; drop support
for cyrus-sasl-1.*; drop is_postfix_installed() routine; move most of the
compilation decisions to src_compile() out of src_unpack(); only use cd once
throughout the whole ebuild; make it die on sed errors; drop CC=gcc hack for
a cleaner bash solution; use /bin/sh postfix-install instead of manually
installing all the files -- simplifies the src_install() routine enormously;
install samples to the doc/defaults instead of /etc/postfix/sample; use newly
installed postconf to set defaults instead of custom patch/sed calls -- makes
it much more resilient to upstream changes; if USE=ssl, install default cert,
key, and pem files similar to net-mail/cyrus-imapd.

12 Sep 2003; Brandon Low postfix-2.0.15.ebuild:
Cleanup

*postfix-2.0.15-r1 (12 Sep 2003)

12 Sep 2003; Brandon Low postfix-2.0.15-r1.ebuild:
Bump patch versions cuz they aren't on the servers any more GRR

*postfix-2.0.15 (08 Sep 2003)

08 Sep 2003; Brandon Low postfix-2.0.15.ebuild:
Bump

*postfix-2.0.14 (01 Sep 2003)

01 Sep 2003; Brandon Low postfix-2.0.14.ebuild:
Bump

15 Aug 2003; Nick Hadaway
files/2.0.0/master.cf.diff, files/postfix-2.0.13-r1.ebuild:
Added a patch for the master.cf based on suggestions by Alexander
Holler on bug #26130. Also made changes to deal with bug #25265.

13 Aug 2003; Nick Hadaway files/postfix.rc6:
Added ypbind to the use list so NIS-related services are started
before the mail server is started. See bug #26405.

21 Jul 2003; Nick Hadaway postfix-2.0.13-r1.ebuild:
Only install the smtpd.conf if sasl is in USE.

18 Jul 2003; lanius@gentoo.org postfix-2.0.11.ebuild,
postfix-2.0.12-r1.ebuild, postfix-2.0.13-r1.ebuild, postfix-2.0.13.ebuild,
files/smtpd-2.0.conf:
fixed smtpd.conf for postfix 2.0 (bug #24556)

*postfix-2.0.13-r1 (14 Jul 2003)

14 Jul 2003; Brandon Low postfix-2.0.13-r1.ebuild:
Just update the TLS and IPV6 patches

11 Jul 2003; Nick Hadaway postfix-2.0.13.ebuild,
files/postfix-pg.postfix-2.0.0.2.patch.bz2:
Added postgres support and associated patch. Also installs a
PGSQL_README. Closes bug #23996

*postfix-2.0.13 (30 Jun 2003)

30 Jun 2003; Brandon Low postfix-2.0.13.ebuild:
Bump, update tls and ipv6 patches

20 Jun 2003; Brandon Low postfix-2.0.12.ebuild:
This version no longer has all required distfiles available.

*postfix-2.0.12-r1 (20 Jun 2003)

20 Jun 2003; Brandon Low postfix-2.0.12-r1.ebuild:
Bump TLS version

16 Jun 2003; Seemant Kulleen postfix-2.0.9.ebuild:
mark stable on sparc

14 Jun 2003; Brandon Low postfix-2.0.10-r1.ebuild,
postfix-2.0.11.ebuild, postfix-2.0.12.ebuild, postfix-2.0.9.ebuild:
Ok, so apparently putting the user's original config file from the wrong
location in a ._cfg file was a Bad Thing (TM) because too many people don't
merge their config files. I therefore have changed it so that the OTHER file
(the blank original config file, if it existed) is saved in a ._cfg which the
user can ignore as seems to be standard proceedure.

13 Jun 2003; Brandon Low postfix-2.0.10-r1.ebuild,
postfix-2.0.9.ebuild:
Fix bug 15252 in stable versions as well

*postfix-2.0.12 (13 Jun 2003)

13 Jun 2003; Brandon Low postfix-2.0.12.ebuild:
Bump, bug 15252 still needs looking at so be careful with this one if you use
sasl2

13 Jun 2003; Seemant Kulleen postfix-2.0.11.ebuild:
smtpd.conf for sasl in USE is now moved to /etc/sasl -- and it should do it
safely. This closes bug #15252 by Nahor

*postfix-2.0.11 (11 Jun 2003)

11 Jun 2003; Brandon Low postfix-2.0.11.ebuild:
Easy bump

09 Jun 2003; postfix-2.0.10-r1.ebuild:
DEPEND on sed >= 4

*postfix-2.0.10-r1 (31 May 2003)

31 May 2003; Brandon Low postfix-2.0.10-r1.ebuild,
postfix-2.0.10.ebuild:
Bump versions of tls, ipv6 patches

*postfix-2.0.10 (22 May 2003)

22 May 2003; Brandon Low postfix-2.0.10.ebuild:
New postfix, this is mostly just a bump, but also we now have better split out
TLS, IPV6 and IPV6+TLS patches, enjoy

*postfix-2.0.9 (28 Apr 2003)

28 Apr 2003; Martin Schlemmer postfix-2.0.9-r1.ebuild,
postfix-2.0.9-get-FQDN.patch :
Postfix do not get the FQDN if no hostname is specified, and thus do not
handle the hostname change in latest baselayout gracefully. Patch it to
fix this issue.

*postfix-2.0.9 (18 Apr 2003)

18 Apr 2003; Daniel Robbins : New release of postfix.
Added /usr/bin/rmail to close bug #19127. Added "provide mta" to postfix
initscript to abide with the recommendation in bug #11455 (not closing since
other MTAs are affected.) set CC in ebuild to close bugs #16547 and #17275.
Unmasking for x86 since so many bugs are fixed.

*postfix-2.0.7 (22 Mar 2003)

16 Apr 2003; Brandon Low Manifest,
postfix-1.1.11-r5.ebuild, postfix-1.1.11-r5.ebuild, postfix-2.0.0.ebuild,
postfix-2.0.0.ebuild, postfix-2.0.2-r1.ebuild, postfix-2.0.2-r1.ebuild,
postfix-2.0.2.ebuild, postfix-2.0.2.ebuild, postfix-2.0.7.ebuild,
postfix-2.0.7.ebuild, files/postfix-1.1.11-saslv2.diff,
files/postfix-2.0.8_patch.patch, files/postfix-2.0.0/main.cf.diff:
Clean up a ton of old stuff, and bump to the latest version.

24 Mar 2003; Brandon Low postfix-2.0.7.ebuild:
Update the TLS+IPV6 patch for this version. No need to -r bump, because this
was a compile stopper

22 Mar 2003; Brandon Low postfix-2.0.6.ebuild,
postfix-2.0.6.ebuild, postfix-2.0.7.ebuild:
Bumpage still unstable

*postfix-2.0.6 (06 Mar 2003)

06 Mar 2003; Brandon Low postfix-2.0.6.ebuild:
Version bump

*postfix-2.0.3 (28 Jan 2003)

13 Feb 2003; Matt Keadle postfix-2.0.3.ebuild :
Moved 'inherit eutils' statement back to the top of the ebuild.
Being placed midway through was causing the package description
to be replaced with "Based on the eutils eclass" instead of one
suitable for Postfix.

12 Feb 2003; Nick Hadaway postfix-2.0.3.ebuild :
Changed CC=cc to CC=${CC}. Thanks to Paul Prince on bug #15477
for the suggestion.

09 Feb 2003; Nick Hadaway postfix-2.0.3.ebuild :
moved the post-install file to the doc directory.

02 Feb 2003; Nick Hadaway postfix-2.0.3.ebuild :
Removed spurious main.cf{~,orig}. Thanks to Phil Richards on bug
#14725 for noticing this.

30 Jan 2003; Nick Hadaway postfix-2.0.3.ebuild :
Marked stable.

28 Jan 2003; Nick Hadaway postfix-2.0.3.ebuild,
files/digest-postfix-2.0.3 :
Version bump. tls and ipv6+tls patches have also been updated for
this new version.

*postfix-2.0.2-r1 (19 Jan 2003)

24 Jan 2003; Nick Hadaway postfix-2.0.2-r1.ebuild :
Marked stable for x86.

19 Jan 2003; Nick Hadaway postfix-2.0.2-r1.ebuild,
files/digest-postfix-2.0.2-r1 :
I made so many individual changes on the last bug I figure I better
release a new revision. added maildir and mbox to IUSE.
Added -lz for linking to mysql.

*postfix-2.0.2 (19 Jan 2003)

19 Jan 2003; Nick Hadaway postfix-2.0.2.ebuild,
files/digest-postfix-2.0.2 :
Version bump. Re-incorporated tls functionality. IPV6 is next.
10 minutes later... ipv6 added. :) Changed so
/var/spool/postfix/tmp is created. Added some sed logic
for the editing of main.cf based on maildir or mbox use variable as
suggested on bug #10356.


*postfix-2.0.0 (23 Dec 2002)

23 Dec 2002; Maik Schreiber : New upstream version.

23 Dec 2002; Maik Schreiber files/postfix.rc6: Added
"use dns" to depend().

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

*postfix-1.1.11.20020917-r1 (14 Nov 2002)

14 Nov 2002; Nick Hadaway
postfix-1.1.11.20020917-r1.ebuild,
files/digest-postfix-1.1.11.20020917 :
New ebuild which places the smtpd.conf for sasl2 in /usr/lib/sasl2
instead of /etc/sasl2. See bug #10650

25 Sep 2002; Maik Schreiber
postfix-1.1.11-r5.ebuild, files/digest-postfix-1.1.11-r5:
Fixed URL of TLS patch.

*postfix-1.1.11.20020917 (19 Sep 2002)

23 Sep 2002; Nick Hadaway
postfix-1.1.11.20020917.ebuild :
Added /var/spool/postfix/hold directory to install. This seems to fix
some postfix start problems.

20 Sep 2002; Nick Hadaway
postfix-1.1.11.20020917.ebuild :
Updated postfix SRC_URI to the pfixtls site. I have also copied files
to gentoo distfiles so it propagates across mirrors. Postfix mirrors
appear to be too erratic with the "experimental builds"

19 Sep 2002; Nick Hadaway
postfix-1.1.11.20020917.ebuild, files/digest-postfix-1.1.11.20020917,
files/tls+ipv6-1.4-pf-1.1.11-20020917.patch.bz2 :
Version bump. Lots of bug fixes(+features) from the 20020822
version. Important fixes include ldap and berkdb related fixes.
See...
http://archive.progeny.com/postfix/experimental/postfix-1.1.11-20020918.HISTORY
for the changelog.

*postfix-1.1.11.20020822 (11 Sep 2002)

17 Sep 2002; Nick Hadaway
postfix-1.1.11.20020822.ebuild :
Added saslv1 and saslv2 support. This should be back to a full
featured postfix ebuild.

11 Sep 2002; Nick Hadaway
postfix-1.1.11.20020822.ebuild :
provide virtual/mda. Moved tls+ipv6 patch to ${FILESDIR} and bzipped
it. SASL support is next.

11 Sep 2002; Nick Hadaway
postfix-1.1.11.20020822.ebuild, files/digest-postfix-1.1.11.20020822 :
New postfix ebuild. Currently masked. Testing ipv6 patch.

*postfix-1.1.11.200206013-r1 (13 Aug 2002)

22 Aug 2002; Nick Hadaway
It appears that this ebuild and digest have magically disappeared from CVS.

15 Aug 2002; Nick Hadaway
postfix-1.1.11.20020613-r1.ebuild :
Updated CCARGS and AUXLIBS variables for a proper TLS enabled postfix.
Fixed a syntax error with the tls+ipv6 patch.

13 Aug 2002; Nick Hadaway
postfix-1.1.11.20020613-r1.ebuild, files/digest-postfix-1.1.11.20020613-r1 :
Many changes have been made to the ebuild so I created a -r1. This
ebuild should copy smtpd.conf into /etc/sasl2 to match the latest
cyrus-sasl ebuild. This should hopefully fix some of the sasl problems
people have been having with postfix.

*postfix-1.1.11-r5 (23 Jul 2002)

11 Sep 2002; Nick Hadaway postfix-1.1.11-r5.ebuild :
provide virtual/mda

29 Aug 2002; Nick Hadaway postfix-1.1.11-r5.ebuild :
Fixed an logic for applying sasl2 related patch

22 Aug 2002; Nick Hadaway postfix-1.1.11-r5.ebuild :
Fixed typo in pkg_postinst, sasl, and ssl detection code.

23 Jul 2002; Martin Schlemmer :
Use the /etc/postfix/master.cf from the source *again*, as
they tend to differ between version. Do NOT change, or if
you really need to use a custom version, please keep a version
updated from that version's source. This should fix the:

warning: connect #3 to subsystem public/cleanup: Connection refused

problem.

*postfix-1.1.11.20020613 (22 Jul 2002)

24 Jul 2002; Nick Hadaway :

Updated ebuild to install the ipv6+tls patch if the ipv6 OR ssl use
flag is enabled. This is a temporary hack until I get the patches
separated from each other and I can enable each addon functionality
separately.

23 Jul 2002; Nick Hadaway :
Updated all ebuilds to include the pam dependancy. Closes bug #5148.

22 Jul 2002; Nick Hadaway
postfix-1.1.11.20020613.ebuild, files/digest-postfix-1.1.11.20020613,
files/tls+ipv6.diff, files/saslv2.diff
New ebuild with tls and ipv6 support. Also added support for saslv2.
Thanks to Philipp Morger for a start on the ebuilds and patches.

21 Jul 2002; Maik Schreiber postfix-1.1.11-r4.ebuild,
ChangeLog:
Cleaned up ebuild once again. Added post-installation note from
bug #4652 once again. Also fixed ChangeLog since it appeared to
really got broken.

*postfix-1.1.8-r1 (19 Jul 2002)

19 Jul 2002; Grant Goodyear :
removed /usr/bin/mail symlink in postfix-1.1.8

*postfix-1.1.11-r4 (19 Jul 2002)

19 Jul 2002; Grant Goodyear :
removed /usr/bin/mail symlink; that's what mailx and nail are for.
Removed old versions. Bumped -r since that symlink really should be yanked.
Closes bug #5096

*postfix-1.1.11-r1 (09 Jul 2002)

09 Jul 2002; Maik Schreiber postfix-1.1.11-r1.ebuild:
Added post-installation note about /etc/mail/aliases. No need to update
if your Postfix installation works correctly. This closes bug #4652.

*postfix-1.1.11 (08 Jul 2002)

08 Jul 2002; Maik Schreiber :
New version + TLS patch, closes bug #4215.

20 May 2002; Daniel Robbins postfix-1.1.8.ebuild:
made "sasl" a USE var (disabled by default) since this seems most appropriate
and since cyrus-sasl appears to be broken if you merge it on a fresh system.
Postfix should work again.

*postfix-1.1.8 (13 May 2002)

13 May 2002; Donny Davies :
Updated to latest postfix + tls patch.

*postfix-1.1.7-r4 (3 May 2002)

3 May 2002; Donny Davies :
Added LICENSE, SLOT, $Headers.

*postfix-1.1.7-r3 (19 Apr 2002)

19 Apr 2002; Ryan Phillips postfix-1.1.7-r3.ebuild,
files/digest-postfix-1.1.7-r3 :
Added INSTALL to dodoc statement. Closes #1923

*postfix-1.1.7-r2 (15 Apr 2002)

15 Apr 2002; Seemant Kulleen postfix-1.1.7-r2.ebuild,
files/digest-postfix-1.1.7-r2 :
Changed the USE flags from mta-ldap, mta-tls, and mta-mysql to ldap, ssl, and
mysql respectively. Also, changed the checks to the official use foo &&
syntax. This has the added advantage of showing the USE flags being used
during the emerge process.

11 Apr 2002; Seemant Kulleen files/digest-postfix-1.1.7-r1 :
digest contains the md5 sums for the postfix tarball and the alternate
tarball.

*postfix-1.1.7-r1 (8 Apr 2002)

9 Apr 2002; Jon Nelson postfix-1.1.7-r1.ebuild:
Clean up some tabbing and use official form of 'if use foo' constructs

*postfix-1.1.7 (8 Apr 2002)

9 Apr 2002; Jon Nelson postfix-1.1.7.ebuild:
Updated to postfix 1.1.7, and altered how the 'if use foo' constructs
are used. Closes #1612

*postfix-1.1.6-r1 (1 Apr 2002)

1 Apr 2002; Grant Goodyear :
Modified the ebuild to link in -lcrypt, -lpam (if pam is in USE),
and -ldl. Thanks to Jon Nelson.

*postfix-1.1.6 (30 Mar 2002)

30 Mar 2002; Seemant Kulleen postfix-1.1.6.ebuild :
Version bump, using previous ebuild, and adjusting the mta-tls filename to
fetch.

*postfix-1.1.3-r3 (24 Mar 2002)

24 Mar 2002; Donny Davies postfix-1.1.3-r3.ebuild :
Fix compile problem with USE mta-mysql. Thanks to fkooman@zeelandnet.nl (F. Kooman)
for the report. Closes #1328.

17 March 2002; Donny Davies postfix-1.1.3-r2.ebuild :
Clarify the pkg_postinst() message about updating master.cf. Cosmetic fix only.
Not bumping package revision. Closes #1153.

*postfix-1.1.3-r2 (20 Feb 2002)

20 Feb 2002; Donny Davies postfix-1.1.3-r2.ebuild :
This update fixes the permissions and ownership on /usr/sbin/postdrop and
/usr/sbin/postqueue, which were not set correctly last time. Moved the
postdrop group detection/creation into pkg_setup() to facilitate this.
*Really* fix the CCARGS and AUXLIBS getting nuked this time. Hooray!

*postfix-1.1.3-r1 (18 Feb 2002)

18 Feb 2002; Donny Davies ChangeLog, postfix-1.1.3-r1.ebuild,
files/postfix.rc6 files/smtp.pam files/smtpd.conf:
Lots of changes, ok here we go: First, we now compile with cyrus-sasl library
support, which gives us smtp authentication. Next, there is support for the mta-tls
USE variable which gives you secure connection support. There are sample files in
the files directory for smtp authentication. This version fixes a glitch with the
maildrop directory (we now let postfix create it itself, which it will do when you
run 'postfix check' for the first time after installing this. We create the postdrop
group now, in pkg_postinst() if its not already on the user's system. Some small
cosmetic changes in the initscript, changing spaces for tabs. The /var/spool/postfix
directory is dropped into the system permanently now, which is good. Fixed a small
bug with CCARGS getting nuked. Special thanks goto Ingo Luetkebohle
for an *excellent* bug report. Thanks Ingo!

NB: I have successfully tested *outbound* authentication, and leave inbound
authentication to those using it. If you find bugs, please report them. Enjoy.

*postfix-1.1.3 (3 Feb 2002)

*postfix-1.1.2-r1 (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 mailer.conf 438 RMD160 b9efd9921c9e6295d8791e621e4e08510b526ac4 SHA1 fad8603d181a0d1ba104f09719e5620bae421288 SHA256 4ea1fb59653bd12841501f30781bda51a66aae56a5560623f7d41709dc97c839
AUX postfix-2.0.9-get-FQDN.patch 1057 RMD160 492e9de53c0a16e71940ab4f4ed99bc4f76061fa SHA1 38f0322792822612a836ded1845368b23d3c1120 SHA256 6e5f5a1f9bc60e04d6decc8491c5955c625396f23698d961c412b50ec793e878
AUX postfix-2.4.7-CVE-2008-2936.patch 1879 RMD160 948efbfaff66fdb933ee3056353f4836c706c93d SHA1 2b5e97cc6210a0659af5183293ce8acfc538bbe0 SHA256 a2d4b352340789dc566ed2f54f3d323afbdcb85ff4566353d981a1cfe347e321
AUX postfix-2.4.7-CVE-2008-2937.patch 22069 RMD160 b511a73873841605e266f769553365579370c32c SHA1 0ad2f1bb69ae8bdbc5f069f60fdd53b790a8f050 SHA256 9f1954df2c3b67cbef21afadcf59328408a6a72355d4021ff4059166583cdf8a
AUX postfix-2.5.3-CVE-2008-2936.patch 1886 RMD160 2967daf2c2a5a81f71bf06a851c43f54551ada38 SHA1 2956880e3ae671b030706288dcd3c52e503da960 SHA256 993cf8fe9373f10739295f5aeec40acede51818b2dc043b2ffef696c93a746a6
AUX postfix-master.cf.patch 1064 RMD160 25283e8c3c27ff156e229ad1ae8643d3be61d6b7 SHA1 86088a034f6cf4a09a68436c97df5e5babf11251 SHA256 b1f7040cb9445379c4318e2161efd79c74bc6927125f4542eb87500ece145f60
AUX postfix.rc6.2.2.9 648 RMD160 5c8242c63e4263734ae2c51f20c5970db53dc604 SHA1 fc8f2b301c853fe01ad920c33a3c1027a4480322 SHA256 8c7c77faf61f81f4e29bafd4255bdd2fc237c15059440b16c975a7f4967b3ac0
AUX postfix.rc6.2.5 1415 RMD160 9d9b7240b1bfb7bcf53d6914dfc5aea2b150572e SHA1 ba08faaa70311605d2b869519ce876c71ce47a5d SHA256 11f79d4a84acfe0c34ebba11b6d1afde9c6dffcf44e8aba8dc895d4fcd0adcac
AUX smtp.pass 141 RMD160 799433a4ee9e9e32f20aa2d31f85f33faa2bc7e6 SHA1 e1d75aa259fa07b257a617e056662aecfd19957f SHA256 c9b3b56a8df2367cc15bc43a70304fac7ebdd7697e1d450d1bcb4bfdd3e078e9
AUX smtp.sasl 131 RMD160 6831f9bbfd76be0d39fdda4270120824ebb9f52f SHA1 613dff95ac21bd306c2917e5360430772efbb146 SHA256 954ba1e80537ca01b935b856e31ec4e3e41c138f04b7cf99ccb969876b8b78e7
DIST postfix-2.4.6-vda-ng-r2.patch.gz 12397 RMD160 a03f29df52eb5c2974206cd3ee32305c24d4be73 SHA1 71c9b71a238093f944865fbc90704a25710d3f3f SHA256 d8186d4c0f19b0a989d98305d9bd1c8e27223c3a4fb549d5581f279e567fadf5
DIST postfix-2.4.6.tar.gz 2935249 RMD160 115b3a4eb982701e29db2e52e294ec8ee69bdae5 SHA1 226222707fd8d963d3173070cac96370c453ffa7 SHA256 00d079d6354bb3979b186da6bbe281b42eea2716620da781bcdb36dd558edcca
DIST postfix-2.4.7.tar.gz 2937251 RMD160 aea8314d39e2ee3802a814c9efd2b0c5f1b8474d SHA1 9957b6ee0abdc15749655b1f00a3d0c084c28712 SHA256 1d3fcb784d21cd93567e94e8cb244445465b9a1d0e6c2589bb1ed4ab90d536dc
DIST postfix-2.4.9.tar.gz 2937677 RMD160 828e3f1daf8623e7ca2a4a59aca37d726da6aa9c SHA1 8bddfa5a0cff8466a1ef5a89ffa018ed58538ca1 SHA256 d4ad643268a3b20bfd5eb4c1a1eaf3c740d16507d42e841ed407571d4c9af65f
DIST postfix-2.5.3-vda-ng.patch.gz 12809 RMD160 4543db88a244eae7edaf7250449eb6d2e78d0156 SHA1 f3fc798f6eede1d600531877dd069c20b0a1e626 SHA256 5690c734072e6231b151449a7ef1da25e9ac091f51b279c4670219751b984799
DIST postfix-2.5.3.tar.gz 3156942 RMD160 3966af29024c587da3eebe56446f059a6cd1a8e4 SHA1 95d511c003ef89cc334c90b73396c4d366c74923 SHA256 4f8f933dd437fd9c29b2b53795cb16a20d6ca73bccf445101aeb5e05068a3a43
DIST postfix-2.5.5.tar.gz 3157877 RMD160 2118fa61710bdb266d4fb8b7a0f60cf0f633c801 SHA1 7240be9e362b991bacfcf7e3771ab611e872ac12 SHA256 8c12c4d539818433d2a65019d44c802c06d0d18667cd069a5b313db06f4bc832
EBUILD postfix-2.4.6-r2.ebuild 11865 RMD160 7055177b96401e61a89f3fe1440d2489dc2389df SHA1 3e9fa6bbc787d9989d95ec9a2ae1c90556c35053 SHA256 1c3fc1a9c1dc3207794217748055ecefabb149c9ad3ec19dd071444f6669444d
EBUILD postfix-2.4.7-r1.ebuild 11922 RMD160 3b8147a2aa44446a513bd366b9cccba0f53f7593 SHA1 66fb08bd791aac18b8229374dfaa4aa2e96e9be9 SHA256 718b7e0d4e28d917ae7dba7ac5e0d2c85ec020c3c11bb545040f69a9240b2593
EBUILD postfix-2.4.9.ebuild 11824 RMD160 a9bf4fd20cb90945575441f5c28ef826e694237d SHA1 16c2e7ec69259f8d5ae721268dfd0bd0ddb3a853 SHA256 c4504c538feb06b519218d7169778bfcc2a1f489c0ca262acbd4e21a980bcfe6
EBUILD postfix-2.5.3-r1.ebuild 12027 RMD160 8755e6b69c83167196e0e50b2bab9a8fdeca65c1 SHA1 eeacbba764edc54f6a9bcbef09b460d22a030e01 SHA256 1926a5f21a9b7e13aa94f94ed03fa103f7fd3309cd470a34d02b13d5bebc0ca0
EBUILD postfix-2.5.5.ebuild 11987 RMD160 6537549f0cd9aac49f41c5cb4c916b5013f066f9 SHA1 2e66204f3bc6a830eced420d3f4fe680ea14fd37 SHA256 91b4d2e4eb37820d333e4cf01667b3c46304b1959a89843fa25b18bf2a7e6803
MISC ChangeLog 52254 RMD160 08d55b95ca76f77e1e9f1be78dc059e67a0c1c2c SHA1 515440a09be0377fa11795441c405ffdb5a64b04 SHA256 277e64457f20b914f6c9d29e4b1cb4b29b42f75b15ecffba707675474366601f
MISC metadata.xml 388 RMD160 9081cc3e1f3c8c56c257a9a525277eb3d3dff496 SHA1 7a266976e60e25df9769df606a9ebfe3bf79b96a SHA256 b2d51b2d3d8eaa9a3e3bbaa3bd21d2c5841abfd73d6338fa833dae7b7df6202f
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkkW1U4ACgkQ67wieSYcaxeB8ACdEwdDL79YPMZFEpoVaoml/WX3
2YMAmwRraMR+hUmYIcP8e66TAf+b3A/E
=2pPn
-----END PGP SIGNATURE-----

files

metadata.xml




net-mail

Enable mail-mta/dovecot protocol
version 1 (server only) SASL implementation

Adds support for virtual delivery agent quota
enforcing


postfix-2.4.6-r2.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.4.6-r2.ebuild,v 1.13 2008/07/22 17:44:21 dertobi123 Exp $

# NOTE: this ebuild is a regular ebuild without mailer-config support!
# Comment lines below "regular ebuild" and uncomment lines below "mailer-config support"
# to turn this ebuild to a mailer-config enabled ebuild.

# regular ebuild
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam
# mailer-config support
#inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic mailer pam

KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"

# regular ebuild
IUSE="cdb dovecot-sasl hardened ipv6 ldap mailwrapper mbox mysql nis pam postgres sasl selinux ssl vda"
# mailer-config support
#IUSE="cdb dovecot-sasl hardened ipv6 ldap mbox mysql nis pam postgres sasl selinux ssl vda"

MY_PV="${PV/_rc/-RC}"
MY_SRC="${PN}-${MY_PV}"
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
VDA_P="${P}-vda-ng-r2"
RC_VER="2.2.9"

DESCRIPTION="A fast and secure drop-in replacement for sendmail."
HOMEPAGE="http://www.postfix.org/"
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz
vda? ( http://gentoo.longitekk.com/${VDA_P}.patch.gz ) "

LICENSE="IPL-1"
SLOT="0"

# regular ebuild
PROVIDE="virtual/mta virtual/mda"
# mailer-config support
#PROVIDE="${PROVIDE} virtual/mda"

DEPEND=">=sys-libs/db-3.2
>=dev-libs/libpcre-3.4
cdb? ( || ( >=dev-db/cdb-0.75-r1 >=dev-db/tinycdb-0.76 ) )
ldap? ( >=net-nds/openldap-1.2 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
sasl? ( >=dev-libs/cyrus-sasl-2 )
ssl? ( >=dev-libs/openssl-0.9.6g )"

# regular ebuild
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? (
!virtual/mta
!net-mail/mailwrapper
)
mailwrapper? ( >=net-mail/mailwrapper-0.2 )
selinux? ( sec-policy/selinux-postfix )"

# mailer-config support
#RDEPEND="${DEPEND}
# >=net-mail/mailbase-0.00
# selinux? ( sec-policy/selinux-postfix )"

S="${WORKDIR}/${MY_SRC}"

group_user_check() {
einfo "Checking for postfix group ..."
enewgroup postfix 207
einfo "Checking for postdrop group ..."
enewgroup postdrop 208
einfo "Checking for postfix user ..."
enewuser postfix 207 -1 /var/spool/postfix postfix,mail
}

pkg_setup() {
# Do not upgrade live from Postfix <2.4
if [[ -f /var/lib/init.d/started/postfix ]] ; then
if has_version ' if [[ "${FORCE_UPGRADE}" ]] ; then
echo
ewarn "You are upgrading from an incompatible version and you have"
ewarn "FORCE_UPGRADE set, will build this package while Postfix is running."
ewarn "You MUST stop Postfix BEFORE installing this version to your system."
echo
else
echo
eerror "You are upgrading from an incompatible version."
eerror "You MUST stop Postfix BEFORE installing this version to your system."
eerror "If you want minimal downtime, emerge postfix with:"
eerror " FORCE_UPGRADE=1 emerge --buildpkgonly postfix"
eerror " /etc/init.d/postfix stop"
eerror " emerge --usepkgonly postfix"
eerror "Then run etc-update or dispatch-conf and merge the configuration files."
eerror "Then restart Postfix with: /etc/init.d/postfix start"
die "Upgrade from an incompatible version!"
echo
fi
else
echo
ewarn "It's safe to upgrade your current version while it's running."
ewarn "If you don't want to take any chance, please hit Ctrl+C now,"
ewarn "stop Postfix, then emerge again."
ewarn "You have been warned!"
ewarn "Waiting 5 seconds before continuing ..."
echo
epause 5
fi
fi

echo
ewarn "Read \"ftp://ftp.porcupine.org/mirrors/postfix-release/official/${MY_SRC}.RELEASE_NOTES\""
ewarn "for incompatible changes before continueing."
ewarn "Bugs should be filed at \"http://bugs.gentoo.org/\" and"
ewarn "assigned to \"net-mail@gentoo.org\"."
echo

# Warnings to work around bug #45764
if has_version '<=mail-mta/postfix-2.0.18' ; then
echo
ewarn "You are upgrading from postfix-2.0.18 or earlier, some of the empty queue"
ewarn "directories get deleted while unmerging the older version (see bug #45764)."
ewarn "Please run '/etc/postfix/post-install upgrade-source' to recreate them."
echo
fi

# TLS non-prod warning
if use ssl ; then
echo
ewarn "You have \"ssl\" in your USE flags, TLS will be enabled."
ewarn "This service is incompatible with the previous TLS patch."
ewarn "Visit http://www.postfix.org/TLS_README.html for more info."
echo
fi

# IPV6 non-prod warn
if use ipv6 ; then
echo
ewarn "You have \"ipv6\" in your USE flags, IPV6 will be enabled."
ewarn "Visit http://www.postfix.org/IPV6_README.html for more info."
echo
fi

# SASL non-prod warning
if use sasl ; then
echo
elog "Postfix 2.3 and newer supports two SASL implementations."
elog "Cyrus SASL and Dovecot protocol version 1 (server only)"
elog "Visit http://www.postfix.org/SASL_README.html for more info."
echo
fi

# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"
}

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

if use vda ; then
epatch "${WORKDIR}/${VDA_P}.patch"
fi

sed -i -e "/^#define ALIAS_DB_MAP/s|hash:/etc/aliases|hash:/etc/mail/aliases|" \
src/util/sys_defs.h || die "sed failed"

# change default paths to better comply with portage standard paths
sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
}

src_compile() {
# 1) Added -Wl,-z,now wrt bug #62674
# 2) Remove -ldl as it is not necessary, solves bug #106446
# 3) -Wl,-z,now replaced by $(bindnow-flags)
# 4) Then bindnow-flags has been simply dropped according to
# http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg23679.html
# 5) Make sure LDFLAGS get passed down to the executables.
local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread"

use pam && mylibs="${mylibs} -lpam"

if use ldap ; then
mycc="${mycc} -DHAS_LDAP"
mylibs="${mylibs} -lldap -llber"
fi

if use mysql ; then
mycc="${mycc} -DHAS_MYSQL -I/usr/include/mysql"
mylibs="${mylibs} -lmysqlclient -lm -lz"
fi

if use postgres ; then
if best_version '=virtual/postgresql-base-7.3*' ; then
mycc="${mycc} -DHAS_PGSQL -I/usr/include/postgresql"
else
mycc="${mycc} -DHAS_PGSQL -I/usr/include/postgresql/pgsql"
fi
mylibs="${mylibs} -lpq"
fi

if use ssl ; then
mycc="${mycc} -DUSE_TLS"
mylibs="${mylibs} -lssl -lcrypto"
fi

if use sasl ; then
if use dovecot-sasl ; then
# Set dovecot as default.
mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
fi
mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
mylibs="${mylibs} -lsasl2"
elif use dovecot-sasl ; then
mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
fi

if ! use nis ; then
sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \
src/util/sys_defs.h || die "sed failed"
fi

if use cdb ; then
mycc="${mycc} -DHAS_CDB"
CDB_LIBS=""

# Tinycdb is preferred.
if has_version dev-db/tinycdb ; then
einfo "Building with dev-db/tinycdb"
CDB_LIBS="-lcdb"
else
einfo "Building with dev-db/cdb"
CDB_PATH="/usr/$(get_libdir)"
for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}"
done
fi

mylibs="${mylibs} ${CDB_LIBS}"
fi

mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\""
mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\""
mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\""
mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\""

# Robin H. Johnson 17/Nov/2006
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
filter-lfs-flags

local my_cc=$(tc-getCC)
einfo "CC=${my_cc:=gcc}"

# Workaround for bug #76512
[[ "$(gcc-version)" == "3.4" ]] && use hardened && replace-flags -O? -Os

make DEBUG="" CC="${my_cc:=gcc}" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
makefiles || die "configure problem"

emake || die "compile problem"
}

src_install () {
/bin/sh postfix-install \
-non-interactive \
install_root="${D}" \
config_directory="/usr/share/doc/${PF}/defaults" \
readme_directory="/usr/share/doc/${PF}/readme" \
|| die "postfix-install failed"

# Fix spool removal on upgrade
rm -Rf "${D}/var"
keepdir /var/spool/postfix

# Install rmail for UUCP, closes bug #19127
dobin auxiliary/rmail/rmail

# mailwrapper stuff
if use mailwrapper ; then
mv "${D}/usr/sbin/sendmail" "${D}/usr/sbin/sendmail.postfix"
mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.postfix"
# mailer-config support
#rm "${D}/usr/bin/mailq" "${D}/usr/bin/newaliases"

mv "${D}/usr/share/man/man1/sendmail.1" \
"${D}/usr/share/man/man1/sendmail-postfix.1"
mv "${D}/usr/share/man/man1/newaliases.1" \
"${D}/usr/share/man/man1/newaliases-postfix.1"
mv "${D}/usr/share/man/man1/mailq.1" \
"${D}/usr/share/man/man1/mailq-postfix.1"
mv "${D}/usr/share/man/man5/aliases.5" \
"${D}/usr/share/man/man5/aliases-postfix.5"

# regular ebuild
insinto /etc/mail
doins "${FILESDIR}/mailer.conf"
# mailer-config support
#mailer_install_conf
else
# Provide another link for legacy FSH
dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail
fi

# Install qshape tool
dobin auxiliary/qshape/qshape.pl

# Performance tuning tools and their manuals
dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1

# Set proper permissions on required files/directories
fowners root:postdrop /usr/sbin/post{drop,queue}
fperms 02711 /usr/sbin/post{drop,queue}

keepdir /etc/postfix
mv "${D}"/usr/share/doc/${PF}/defaults/{*.cf,post*-*} "${D}"/etc/postfix
if use mbox ; then
mypostconf="mail_spool_directory=/var/spool/mail"
else
mypostconf="home_mailbox=.maildir/"
fi
"${D}/usr/sbin/postconf" -c "${D}/etc/postfix" \
-e ${mypostconf} || die "postconf failed"

insinto /etc/postfix
newins "${FILESDIR}/smtp.pass" saslpass
fperms 600 /etc/postfix/saslpass

newinitd "${FILESDIR}/postfix.rc6.${RC_VER}" postfix || die "newinitd failed"

mv "${S}/examples" "${D}/usr/share/doc/${PF}/"
dodoc *README COMPATIBILITY HISTORY INSTALL PORTING RELEASE_NOTES*
dohtml html/*

pamd_mimic_system smtp auth account

if use sasl ; then
insinto /etc/sasl2
newins "${FILESDIR}/smtp.sasl" smtpd.conf
fi
}

pkg_postinst() {
# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"

# Do not install server.{key,pem) SSL certificates if they already exist
if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \
&& ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}"
install_cert /etc/ssl/postfix/server
chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem}
fi

ebegin "Fixing queue directories and permissions"
"${ROOT}/etc/postfix/post-install" upgrade-permissions
echo
ewarn "If you upgraded from Postfix-1.x, you must revisit"
ewarn "your configuration files. See"
ewarn " /usr/share/doc/${PF}/RELEASE_NOTES"
ewarn "for a list of changes."

if [[ ! -e /etc/mail/aliases.db ]] ; then
echo
ewarn "You must edit /etc/mail/aliases to suit your needs"
ewarn "and then run /usr/bin/newaliases. Postfix will not"
ewarn "work correctly without it."
fi

# regular ebuild
if ! use mailwrapper && [[ -e /etc/mailer.conf ]] ; then
einfo
einfo "Since you emerged Postfix without mailwrapper in USE,"
einfo "you may want to 'emerge -C mailwrapper' now."
einfo
fi
# mailer-config support
#mailer_pkg_postinst
}

postfix-2.4.7-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.4.7-r1.ebuild,v 1.2 2008/11/09 12:19:19 vapier Exp $

# NOTE: this ebuild is a regular ebuild without mailer-config support!
# Comment lines below "regular ebuild" and uncomment lines below "mailer-config support"
# to turn this ebuild to a mailer-config enabled ebuild.

# regular ebuild
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam
# mailer-config support
#inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic mailer pam

KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"

# regular ebuild
IUSE="cdb dovecot-sasl hardened ipv6 ldap mailwrapper mbox mysql nis pam postgres sasl selinux ssl vda"
# mailer-config support
#IUSE="cdb dovecot-sasl hardened ipv6 ldap mbox mysql nis pam postgres sasl selinux ssl vda"

MY_PV="${PV/_rc/-RC}"
MY_SRC="${PN}-${MY_PV}"
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
VDA_P="${PN}-2.4.6-vda-ng-r2"
RC_VER="2.5"

DESCRIPTION="A fast and secure drop-in replacement for sendmail."
HOMEPAGE="http://www.postfix.org/"
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz
vda? ( http://gentoo.longitekk.com/${VDA_P}.patch.gz ) "

LICENSE="IPL-1"
SLOT="0"

# regular ebuild
PROVIDE="virtual/mta virtual/mda"
# mailer-config support
#PROVIDE="${PROVIDE} virtual/mda"

DEPEND=">=sys-libs/db-3.2
>=dev-libs/libpcre-3.4
cdb? ( || ( >=dev-db/cdb-0.75-r1 >=dev-db/tinycdb-0.76 ) )
ldap? ( >=net-nds/openldap-1.2 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
sasl? ( >=dev-libs/cyrus-sasl-2 )
ssl? ( >=dev-libs/openssl-0.9.6g )"

# regular ebuild
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )
selinux? ( sec-policy/selinux-postfix )"

# mailer-config support
#RDEPEND="${DEPEND}
# >=net-mail/mailbase-0.00
# selinux? ( sec-policy/selinux-postfix )"

S="${WORKDIR}/${MY_SRC}"

group_user_check() {
einfo "Checking for postfix group ..."
enewgroup postfix 207
einfo "Checking for postdrop group ..."
enewgroup postdrop 208
einfo "Checking for postfix user ..."
enewuser postfix 207 -1 /var/spool/postfix postfix,mail
}

pkg_setup() {
# Do not upgrade live from Postfix <2.4
if [[ -f /var/lib/init.d/started/postfix ]] ; then
if has_version ' if [[ "${FORCE_UPGRADE}" ]] ; then
echo
ewarn "You are upgrading from an incompatible version and you have"
ewarn "FORCE_UPGRADE set, will build this package while Postfix is running."
ewarn "You MUST stop Postfix BEFORE installing this version to your system."
echo
else
echo
eerror "You are upgrading from an incompatible version."
eerror "You MUST stop Postfix BEFORE installing this version to your system."
eerror "If you want minimal downtime, emerge postfix with:"
eerror " FORCE_UPGRADE=1 emerge --buildpkgonly postfix"
eerror " /etc/init.d/postfix stop"
eerror " emerge --usepkgonly postfix"
eerror "Then run etc-update or dispatch-conf and merge the configuration files."
eerror "Then restart Postfix with: /etc/init.d/postfix start"
die "Upgrade from an incompatible version!"
echo
fi
else
echo
ewarn "It's safe to upgrade your current version while it's running."
ewarn "If you don't want to take any chance, please hit Ctrl+C now,"
ewarn "stop Postfix, then emerge again."
ewarn "You have been warned!"
ewarn "Waiting 5 seconds before continuing ..."
echo
epause 5
fi
fi

echo
ewarn "Read \"ftp://ftp.porcupine.org/mirrors/postfix-release/official/${MY_SRC}.RELEASE_NOTES\""
ewarn "for incompatible changes before continueing."
ewarn "Bugs should be filed at \"http://bugs.gentoo.org/\" and"
ewarn "assigned to \"net-mail@gentoo.org\"."
echo

# Warnings to work around bug #45764
if has_version '<=mail-mta/postfix-2.0.18' ; then
echo
ewarn "You are upgrading from postfix-2.0.18 or earlier, some of the empty queue"
ewarn "directories get deleted while unmerging the older version (see bug #45764)."
ewarn "Please run '/etc/postfix/post-install upgrade-source' to recreate them."
echo
fi

# TLS non-prod warning
if use ssl ; then
echo
ewarn "You have \"ssl\" in your USE flags, TLS will be enabled."
ewarn "This service is incompatible with the previous TLS patch."
ewarn "Visit http://www.postfix.org/TLS_README.html for more info."
echo
fi

# IPV6 non-prod warn
if use ipv6 ; then
echo
ewarn "You have \"ipv6\" in your USE flags, IPV6 will be enabled."
ewarn "Visit http://www.postfix.org/IPV6_README.html for more info."
echo
fi

# SASL non-prod warning
if use sasl ; then
echo
elog "Postfix 2.3 and newer supports two SASL implementations."
elog "Cyrus SASL and Dovecot protocol version 1 (server only)"
elog "Visit http://www.postfix.org/SASL_README.html for more info."
echo
fi

# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"
}

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

if use vda ; then
epatch "${WORKDIR}/${VDA_P}.patch"
fi

epatch "${FILESDIR}/${P}-CVE-2008-2936.patch"
epatch "${FILESDIR}/${P}-CVE-2008-2937.patch"

sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
src/util/sys_defs.h || die "sed failed"

# change default paths to better comply with portage standard paths
sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
}

src_compile() {
# 1) Added -Wl,-z,now wrt bug #62674
# 2) Remove -ldl as it is not necessary, solves bug #106446
# 3) -Wl,-z,now replaced by $(bindnow-flags)
# 4) Then bindnow-flags has been simply dropped according to
# http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg23679.html
# 5) Make sure LDFLAGS get passed down to the executables.
local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread"

use pam && mylibs="${mylibs} -lpam"

if use ldap ; then
mycc="${mycc} -DHAS_LDAP"
mylibs="${mylibs} -lldap -llber"
fi

if use mysql ; then
mycc="${mycc} -DHAS_MYSQL -I/usr/include/mysql"
mylibs="${mylibs} -lmysqlclient -lm -lz"
fi

if use postgres ; then
if best_version '=virtual/postgresql-base-7.3*' ; then
mycc="${mycc} -DHAS_PGSQL -I/usr/include/postgresql"
else
mycc="${mycc} -DHAS_PGSQL -I/usr/include/postgresql/pgsql"
fi
mylibs="${mylibs} -lpq"
fi

if use ssl ; then
mycc="${mycc} -DUSE_TLS"
mylibs="${mylibs} -lssl -lcrypto"
fi

if use sasl ; then
if use dovecot-sasl ; then
# Set dovecot as default.
mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
fi
mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
mylibs="${mylibs} -lsasl2"
elif use dovecot-sasl ; then
mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
fi

if ! use nis ; then
sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \
src/util/sys_defs.h || die "sed failed"
fi

if use cdb ; then
mycc="${mycc} -DHAS_CDB"
CDB_LIBS=""

# Tinycdb is preferred.
if has_version dev-db/tinycdb ; then
einfo "Building with dev-db/tinycdb"
CDB_LIBS="-lcdb"
else
einfo "Building with dev-db/cdb"
CDB_PATH="/usr/$(get_libdir)"
for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}"
done
fi

mylibs="${mylibs} ${CDB_LIBS}"
fi

mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\""
mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\""
mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\""
mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\""

# Robin H. Johnson 17/Nov/2006
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
filter-lfs-flags

local my_cc=$(tc-getCC)
einfo "CC=${my_cc:=gcc}"

# Workaround for bug #76512
[[ "$(gcc-version)" == "3.4" ]] && use hardened && replace-flags -O? -Os

make DEBUG="" CC="${my_cc:=gcc}" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
makefiles || die "configure problem"

emake || die "compile problem"
}

src_install () {
/bin/sh postfix-install \
-non-interactive \
install_root="${D}" \
config_directory="/usr/share/doc/${PF}/defaults" \
readme_directory="/usr/share/doc/${PF}/readme" \
|| die "postfix-install failed"

# Fix spool removal on upgrade
rm -Rf "${D}/var"
keepdir /var/spool/postfix

# Install rmail for UUCP, closes bug #19127
dobin auxiliary/rmail/rmail

# mailwrapper stuff
if use mailwrapper ; then
mv "${D}/usr/sbin/sendmail" "${D}/usr/sbin/sendmail.postfix"
mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.postfix"
# mailer-config support
#rm "${D}/usr/bin/mailq" "${D}/usr/bin/newaliases"

mv "${D}/usr/share/man/man1/sendmail.1" \
"${D}/usr/share/man/man1/sendmail-postfix.1"
mv "${D}/usr/share/man/man1/newaliases.1" \
"${D}/usr/share/man/man1/newaliases-postfix.1"
mv "${D}/usr/share/man/man1/mailq.1" \
"${D}/usr/share/man/man1/mailq-postfix.1"
mv "${D}/usr/share/man/man5/aliases.5" \
"${D}/usr/share/man/man5/aliases-postfix.5"

# regular ebuild
insinto /etc/mail
doins "${FILESDIR}/mailer.conf"
# mailer-config support
#mailer_install_conf
else
# Provide another link for legacy FSH
dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail
fi

# Install qshape tool
dobin auxiliary/qshape/qshape.pl

# Performance tuning tools and their manuals
dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1

# Set proper permissions on required files/directories
fowners root:postdrop /usr/sbin/post{drop,queue}
fperms 02711 /usr/sbin/post{drop,queue}

keepdir /etc/postfix
mv "${D}"/usr/share/doc/${PF}/defaults/{*.cf,post*-*} "${D}"/etc/postfix
if use mbox ; then
mypostconf="mail_spool_directory=/var/spool/mail"
else
mypostconf="home_mailbox=.maildir/"
fi
"${D}/usr/sbin/postconf" -c "${D}/etc/postfix" \
-e ${mypostconf} || die "postconf failed"

insinto /etc/postfix
newins "${FILESDIR}/smtp.pass" saslpass
fperms 600 /etc/postfix/saslpass

newinitd "${FILESDIR}/postfix.rc6.${RC_VER}" postfix || die "newinitd failed"

mv "${S}/examples" "${D}/usr/share/doc/${PF}/"
dodoc *README COMPATIBILITY HISTORY INSTALL PORTING RELEASE_NOTES*
dohtml html/*

pamd_mimic_system smtp auth account

if use sasl ; then
insinto /etc/sasl2
newins "${FILESDIR}/smtp.sasl" smtpd.conf
fi
}

pkg_postinst() {
# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"

# Do not install server.{key,pem) SSL certificates if they already exist
if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \
&& ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}"
install_cert /etc/ssl/postfix/server
chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem}
fi

ebegin "Fixing queue directories and permissions"
"${ROOT}/etc/postfix/post-install" upgrade-permissions
echo
ewarn "If you upgraded from Postfix-1.x, you must revisit"
ewarn "your configuration files. See"
ewarn " /usr/share/doc/${PF}/RELEASE_NOTES"
ewarn "for a list of changes."

if [[ ! -e /etc/mail/aliases.db ]] ; then
echo
ewarn "You must edit /etc/mail/aliases to suit your needs"
ewarn "and then run /usr/bin/newaliases. Postfix will not"
ewarn "work correctly without it."
fi

# regular ebuild
if ! use mailwrapper && [[ -e /etc/mailer.conf ]] ; then
einfo
einfo "Since you emerged Postfix without mailwrapper in USE,"
einfo "you may want to 'emerge -C mailwrapper' now."
einfo
fi
# mailer-config support
#mailer_pkg_postinst
}

postfix-2.4.9.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.4.9.ebuild,v 1.6 2008/11/09 12:19:19 vapier Exp $

# NOTE: this ebuild is a regular ebuild without mailer-config support!
# Comment lines below "regular ebuild" and uncomment lines below "mailer-config support"
# to turn this ebuild to a mailer-config enabled ebuild.

# regular ebuild
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam
# mailer-config support
#inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic mailer pam

KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"

# regular ebuild
IUSE="cdb dovecot-sasl hardened ipv6 ldap mailwrapper mbox mysql nis pam postgres sasl selinux ssl vda"
# mailer-config support
#IUSE="cdb dovecot-sasl hardened ipv6 ldap mbox mysql nis pam postgres sasl selinux ssl vda"

MY_PV="${PV/_rc/-RC}"
MY_SRC="${PN}-${MY_PV}"
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
VDA_P="${PN}-2.4.6-vda-ng-r2"
RC_VER="2.5"

DESCRIPTION="A fast and secure drop-in replacement for sendmail."
HOMEPAGE="http://www.postfix.org/"
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz
vda? ( http://gentoo.longitekk.com/${VDA_P}.patch.gz ) "

LICENSE="IPL-1"
SLOT="0"

# regular ebuild
PROVIDE="virtual/mta virtual/mda"
# mailer-config support
#PROVIDE="${PROVIDE} virtual/mda"

DEPEND=">=sys-libs/db-3.2
>=dev-libs/libpcre-3.4
cdb? ( || ( >=dev-db/cdb-0.75-r1 >=dev-db/tinycdb-0.76 ) )
ldap? ( >=net-nds/openldap-1.2 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
sasl? ( >=dev-libs/cyrus-sasl-2 )
ssl? ( >=dev-libs/openssl-0.9.6g )"

# regular ebuild
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )
selinux? ( sec-policy/selinux-postfix )"

# mailer-config support
#RDEPEND="${DEPEND}
# >=net-mail/mailbase-0.00
# selinux? ( sec-policy/selinux-postfix )"

S="${WORKDIR}/${MY_SRC}"

group_user_check() {
einfo "Checking for postfix group ..."
enewgroup postfix 207
einfo "Checking for postdrop group ..."
enewgroup postdrop 208
einfo "Checking for postfix user ..."
enewuser postfix 207 -1 /var/spool/postfix postfix,mail
}

pkg_setup() {
# Do not upgrade live from Postfix <2.4
if [[ -f /var/lib/init.d/started/postfix ]] ; then
if has_version ' if [[ "${FORCE_UPGRADE}" ]] ; then
echo
ewarn "You are upgrading from an incompatible version and you have"
ewarn "FORCE_UPGRADE set, will build this package while Postfix is running."
ewarn "You MUST stop Postfix BEFORE installing this version to your system."
echo
else
echo
eerror "You are upgrading from an incompatible version."
eerror "You MUST stop Postfix BEFORE installing this version to your system."
eerror "If you want minimal downtime, emerge postfix with:"
eerror " FORCE_UPGRADE=1 emerge --buildpkgonly postfix"
eerror " /etc/init.d/postfix stop"
eerror " emerge --usepkgonly postfix"
eerror "Then run etc-update or dispatch-conf and merge the configuration files."
eerror "Then restart Postfix with: /etc/init.d/postfix start"
die "Upgrade from an incompatible version!"
echo
fi
else
echo
ewarn "It's safe to upgrade your current version while it's running."
ewarn "If you don't want to take any chance, please hit Ctrl+C now,"
ewarn "stop Postfix, then emerge again."
ewarn "You have been warned!"
ewarn "Waiting 5 seconds before continuing ..."
echo
epause 5
fi
fi

echo
ewarn "Read \"ftp://ftp.porcupine.org/mirrors/postfix-release/official/${MY_SRC}.RELEASE_NOTES\""
ewarn "for incompatible changes before continueing."
ewarn "Bugs should be filed at \"http://bugs.gentoo.org/\" and"
ewarn "assigned to \"net-mail@gentoo.org\"."
echo

# Warnings to work around bug #45764
if has_version '<=mail-mta/postfix-2.0.18' ; then
echo
ewarn "You are upgrading from postfix-2.0.18 or earlier, some of the empty queue"
ewarn "directories get deleted while unmerging the older version (see bug #45764)."
ewarn "Please run '/etc/postfix/post-install upgrade-source' to recreate them."
echo
fi

# TLS non-prod warning
if use ssl ; then
echo
ewarn "You have \"ssl\" in your USE flags, TLS will be enabled."
ewarn "This service is incompatible with the previous TLS patch."
ewarn "Visit http://www.postfix.org/TLS_README.html for more info."
echo
fi

# IPV6 non-prod warn
if use ipv6 ; then
echo
ewarn "You have \"ipv6\" in your USE flags, IPV6 will be enabled."
ewarn "Visit http://www.postfix.org/IPV6_README.html for more info."
echo
fi

# SASL non-prod warning
if use sasl ; then
echo
elog "Postfix 2.3 and newer supports two SASL implementations."
elog "Cyrus SASL and Dovecot protocol version 1 (server only)"
elog "Visit http://www.postfix.org/SASL_README.html for more info."
echo
fi

# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"
}

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

if use vda ; then
epatch "${WORKDIR}/${VDA_P}.patch"
fi

sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
src/util/sys_defs.h || die "sed failed"

# change default paths to better comply with portage standard paths
sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
}

src_compile() {
# 1) Added -Wl,-z,now wrt bug #62674
# 2) Remove -ldl as it is not necessary, solves bug #106446
# 3) -Wl,-z,now replaced by $(bindnow-flags)
# 4) Then bindnow-flags has been simply dropped according to
# http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg23679.html
# 5) Make sure LDFLAGS get passed down to the executables.
local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread"

use pam && mylibs="${mylibs} -lpam"

if use ldap ; then
mycc="${mycc} -DHAS_LDAP"
mylibs="${mylibs} -lldap -llber"
fi

if use mysql ; then
mycc="${mycc} -DHAS_MYSQL -I/usr/include/mysql"
mylibs="${mylibs} -lmysqlclient -lm -lz"
fi

if use postgres ; then
if best_version '=virtual/postgresql-base-7.3*' ; then
mycc="${mycc} -DHAS_PGSQL -I/usr/include/postgresql"
else
mycc="${mycc} -DHAS_PGSQL -I/usr/include/postgresql/pgsql"
fi
mylibs="${mylibs} -lpq"
fi

if use ssl ; then
mycc="${mycc} -DUSE_TLS"
mylibs="${mylibs} -lssl -lcrypto"
fi

if use sasl ; then
if use dovecot-sasl ; then
# Set dovecot as default.
mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
fi
mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
mylibs="${mylibs} -lsasl2"
elif use dovecot-sasl ; then
mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
fi

if ! use nis ; then
sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \
src/util/sys_defs.h || die "sed failed"
fi

if use cdb ; then
mycc="${mycc} -DHAS_CDB"
CDB_LIBS=""

# Tinycdb is preferred.
if has_version dev-db/tinycdb ; then
einfo "Building with dev-db/tinycdb"
CDB_LIBS="-lcdb"
else
einfo "Building with dev-db/cdb"
CDB_PATH="/usr/$(get_libdir)"
for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}"
done
fi

mylibs="${mylibs} ${CDB_LIBS}"
fi

mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\""
mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\""
mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\""
mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\""

# Robin H. Johnson 17/Nov/2006
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
filter-lfs-flags

local my_cc=$(tc-getCC)
einfo "CC=${my_cc:=gcc}"

# Workaround for bug #76512
[[ "$(gcc-version)" == "3.4" ]] && use hardened && replace-flags -O? -Os

make DEBUG="" CC="${my_cc:=gcc}" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
makefiles || die "configure problem"

emake || die "compile problem"
}

src_install () {
/bin/sh postfix-install \
-non-interactive \
install_root="${D}" \
config_directory="/usr/share/doc/${PF}/defaults" \
readme_directory="/usr/share/doc/${PF}/readme" \
|| die "postfix-install failed"

# Fix spool removal on upgrade
rm -Rf "${D}/var"
keepdir /var/spool/postfix

# Install rmail for UUCP, closes bug #19127
dobin auxiliary/rmail/rmail

# mailwrapper stuff
if use mailwrapper ; then
mv "${D}/usr/sbin/sendmail" "${D}/usr/sbin/sendmail.postfix"
mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.postfix"
# mailer-config support
#rm "${D}/usr/bin/mailq" "${D}/usr/bin/newaliases"

mv "${D}/usr/share/man/man1/sendmail.1" \
"${D}/usr/share/man/man1/sendmail-postfix.1"
mv "${D}/usr/share/man/man1/newaliases.1" \
"${D}/usr/share/man/man1/newaliases-postfix.1"
mv "${D}/usr/share/man/man1/mailq.1" \
"${D}/usr/share/man/man1/mailq-postfix.1"
mv "${D}/usr/share/man/man5/aliases.5" \
"${D}/usr/share/man/man5/aliases-postfix.5"

# regular ebuild
insinto /etc/mail
doins "${FILESDIR}/mailer.conf"
# mailer-config support
#mailer_install_conf
else
# Provide another link for legacy FSH
dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail
fi

# Install qshape tool
dobin auxiliary/qshape/qshape.pl

# Performance tuning tools and their manuals
dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1

# Set proper permissions on required files/directories
fowners root:postdrop /usr/sbin/post{drop,queue}
fperms 02711 /usr/sbin/post{drop,queue}

keepdir /etc/postfix
mv "${D}"/usr/share/doc/${PF}/defaults/{*.cf,post*-*} "${D}"/etc/postfix
if use mbox ; then
mypostconf="mail_spool_directory=/var/spool/mail"
else
mypostconf="home_mailbox=.maildir/"
fi
"${D}/usr/sbin/postconf" -c "${D}/etc/postfix" \
-e ${mypostconf} || die "postconf failed"

insinto /etc/postfix
newins "${FILESDIR}/smtp.pass" saslpass
fperms 600 /etc/postfix/saslpass

newinitd "${FILESDIR}/postfix.rc6.${RC_VER}" postfix || die "newinitd failed"

mv "${S}/examples" "${D}/usr/share/doc/${PF}/"
dodoc *README COMPATIBILITY HISTORY INSTALL PORTING RELEASE_NOTES*
dohtml html/*

pamd_mimic_system smtp auth account

if use sasl ; then
insinto /etc/sasl2
newins "${FILESDIR}/smtp.sasl" smtpd.conf
fi
}

pkg_postinst() {
# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"

# Do not install server.{key,pem) SSL certificates if they already exist
if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \
&& ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}"
install_cert /etc/ssl/postfix/server
chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem}
fi

ebegin "Fixing queue directories and permissions"
"${ROOT}/etc/postfix/post-install" upgrade-permissions
echo
ewarn "If you upgraded from Postfix-1.x, you must revisit"
ewarn "your configuration files. See"
ewarn " /usr/share/doc/${PF}/RELEASE_NOTES"
ewarn "for a list of changes."

if [[ ! -e /etc/mail/aliases.db ]] ; then
echo
ewarn "You must edit /etc/mail/aliases to suit your needs"
ewarn "and then run /usr/bin/newaliases. Postfix will not"
ewarn "work correctly without it."
fi

# regular ebuild
if ! use mailwrapper && [[ -e /etc/mailer.conf ]] ; then
einfo
einfo "Since you emerged Postfix without mailwrapper in USE,"
einfo "you may want to 'emerge -C mailwrapper' now."
einfo
fi
# mailer-config support
#mailer_pkg_postinst
}

postfix-2.5.3-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.5.3-r1.ebuild,v 1.2 2008/11/09 12:19:19 vapier Exp $

# NOTE: this ebuild is a regular ebuild without mailer-config support!
# Comment lines below "regular ebuild" and uncomment lines below "mailer-config support"
# to turn this ebuild to a mailer-config enabled ebuild.

# regular ebuild
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam
# mailer-config support
#inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic mailer pam

KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"

# regular ebuild
IUSE="cdb dovecot-sasl hardened ipv6 ldap mailwrapper mbox mysql nis pam postgres sasl selinux ssl vda"
# mailer-config support
#IUSE="cdb dovecot-sasl hardened ipv6 ldap mbox mysql nis pam postgres sasl selinux ssl vda"

MY_PV="${PV/_rc/-RC}"
MY_SRC="${PN}-${MY_PV}"
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
VDA_PV="2.5.3"
VDA_P="${PN}-${VDA_PV}-vda-ng"
RC_VER="2.5"

DESCRIPTION="A fast and secure drop-in replacement for sendmail."
HOMEPAGE="http://www.postfix.org/"
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz
vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch.gz ) "

LICENSE="IPL-1"
SLOT="0"

# regular ebuild
PROVIDE="virtual/mta virtual/mda"
# mailer-config support
#PROVIDE="${PROVIDE} virtual/mda"

DEPEND=">=sys-libs/db-3.2
>=dev-libs/libpcre-3.4
cdb? ( || ( >=dev-db/cdb-0.75-r1 >=dev-db/tinycdb-0.76 ) )
ldap? ( >=net-nds/openldap-1.2 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
sasl? ( >=dev-libs/cyrus-sasl-2 )
ssl? ( >=dev-libs/openssl-0.9.6g )"

# regular ebuild
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? (
!virtual/mta
!net-mail/mailwrapper
)
mailwrapper? ( >=net-mail/mailwrapper-0.2 )
selinux? ( sec-policy/selinux-postfix )"

# mailer-config support
#RDEPEND="${DEPEND}
# >=net-mail/mailbase-0.00
# selinux? ( sec-policy/selinux-postfix )"

S="${WORKDIR}/${MY_SRC}"

group_user_check() {
einfo "Checking for postfix group ..."
enewgroup postfix 207
einfo "Checking for postdrop group ..."
enewgroup postdrop 208
einfo "Checking for postfix user ..."
enewuser postfix 207 -1 /var/spool/postfix postfix,mail
}

pkg_setup() {
# Do not upgrade live from Postfix <2.5
if [[ -f /var/lib/init.d/started/postfix ]] ; then
if has_version ' if [[ "${FORCE_UPGRADE}" ]] ; then
echo
ewarn "You are upgrading from an incompatible version and you have"
ewarn "FORCE_UPGRADE set, will build this package while Postfix is running."
ewarn "You MUST stop Postfix BEFORE installing this version to your system."
echo
else
echo
eerror "You are upgrading from an incompatible version."
eerror "You MUST stop Postfix BEFORE installing this version to your system."
eerror "If you want minimal downtime, emerge postfix with:"
eerror " FORCE_UPGRADE=1 emerge --buildpkgonly postfix"
eerror " /etc/init.d/postfix stop"
eerror " emerge --usepkgonly postfix"
eerror "Then run etc-update or dispatch-conf and merge the configuration files."
eerror "Then restart Postfix with: /etc/init.d/postfix start"
die "Upgrade from an incompatible version!"
echo
fi
else
echo
ewarn "It's safe to upgrade your current version while it's running."
ewarn "If you don't want to take any chance, please hit Ctrl+C now,"
ewarn "stop Postfix, then emerge again."
ewarn "You have been warned!"
ewarn "Waiting 5 seconds before continuing ..."
echo
epause 5
fi
fi

echo
ewarn "Read \"ftp://ftp.porcupine.org/mirrors/postfix-release/official/${MY_SRC}.RELEASE_NOTES\""
ewarn "for incompatible changes before continueing."
ewarn "Bugs should be filed at \"http://bugs.gentoo.org/\" and"
ewarn "assigned to \"net-mail@gentoo.org\"."
echo

# Warnings to work around bug #45764
if has_version '<=mail-mta/postfix-2.0.18' ; then
echo
ewarn "You are upgrading from postfix-2.0.18 or earlier, some of the empty queue"
ewarn "directories get deleted while unmerging the older version (see bug #45764)."
ewarn "Please run '/etc/postfix/post-install upgrade-source' to recreate them."
echo
fi

# TLS non-prod warning
if use ssl ; then
echo
ewarn "You have \"ssl\" in your USE flags, TLS will be enabled."
ewarn "This service is incompatible with the previous TLS patch."
ewarn "Visit http://www.postfix.org/TLS_README.html for more info."
echo
fi

# IPV6 non-prod warn
if use ipv6 ; then
echo
ewarn "You have \"ipv6\" in your USE flags, IPV6 will be enabled."
ewarn "Visit http://www.postfix.org/IPV6_README.html for more info."
echo
fi

# SASL non-prod warning
if use sasl ; then
echo
elog "Postfix 2.3 and newer supports two SASL implementations."
elog "Cyrus SASL and Dovecot protocol version 1 (server only)"
elog "Visit http://www.postfix.org/SASL_README.html for more info."
echo
fi

# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"
}

src_unpack() {
unpack ${A}

# bug 232642
epatch "${FILESDIR}"/${P}-CVE-2008-2936.patch

cd "${S}"
if use vda ; then
epatch "${WORKDIR}/${VDA_P}.patch"
fi

sed -i -e "/^#define ALIAS_DB_MAP/s|:/etc/aliases|:/etc/mail/aliases|" \
src/util/sys_defs.h || die "sed failed"

# change default paths to better comply with portage standard paths
sed -i -e "s:/usr/local/:/usr/:g" conf/master.cf || die "sed failed"
}

src_compile() {
# 1) Added -Wl,-z,now wrt bug #62674
# 2) Remove -ldl as it is not necessary, solves bug #106446
# 3) -Wl,-z,now replaced by $(bindnow-flags)
# 4) Then bindnow-flags has been simply dropped according to
# http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg23679.html
# 5) Make sure LDFLAGS get passed down to the executables.
local mycc="-DHAS_PCRE" mylibs="${LDFLAGS} -lpcre -lcrypt -lpthread"

use pam && mylibs="${mylibs} -lpam"

if use ldap ; then
mycc="${mycc} -DHAS_LDAP"
mylibs="${mylibs} -lldap -llber"
fi

if use mysql ; then
mycc="${mycc} -DHAS_MYSQL $(mysql_config --include)"
mylibs="${mylibs} -lmysqlclient -lm -lz"
fi

if use postgres ; then
mycc="${mycc} -DHAS_PGSQL -I$(pg_config --includedir)"
mylibs="${mylibs} -lpq -L$(pg_config --libdir)"
fi

if use ssl ; then
mycc="${mycc} -DUSE_TLS"
mylibs="${mylibs} -lssl -lcrypto"
fi

if use sasl ; then
if use dovecot-sasl ; then
# Set dovecot as default.
mycc="${mycc} -DDEF_SASL_SERVER=\\\"dovecot\\\""
fi
mycc="${mycc} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
mylibs="${mylibs} -lsasl2"
elif use dovecot-sasl ; then
mycc="${mycc} -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\\\"dovecot\\\""
fi

if ! use nis ; then
sed -i -e "s|#define HAS_NIS|//#define HAS_NIS|g" \
src/util/sys_defs.h || die "sed failed"
fi

if use cdb ; then
mycc="${mycc} -DHAS_CDB"
CDB_LIBS=""

# Tinycdb is preferred.
if has_version dev-db/tinycdb ; then
einfo "Building with dev-db/tinycdb"
CDB_LIBS="-lcdb"
else
einfo "Building with dev-db/cdb"
CDB_PATH="/usr/$(get_libdir)"
for i in cdb.a alloc.a buffer.a unix.a byte.a ; do
CDB_LIBS="${CDB_LIBS} ${CDB_PATH}/${i}"
done
fi

mylibs="${mylibs} ${CDB_LIBS}"
fi

mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\""
mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\""
mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\""
mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\""

# Robin H. Johnson 17/Nov/2006
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check.
mycc="${mycc} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
filter-lfs-flags

local my_cc=$(tc-getCC)
einfo "CC=${my_cc:=gcc}"

# Workaround for bug #76512
[[ "$(gcc-version)" == "3.4" ]] && use hardened && replace-flags -O? -Os

make DEBUG="" CC="${my_cc:=gcc}" OPT="${CFLAGS}" CCARGS="${mycc}" AUXLIBS="${mylibs}" \
makefiles || die "configure problem"

emake || die "compile problem"
}

src_install () {
/bin/sh postfix-install \
-non-interactive \
install_root="${D}" \
config_directory="/usr/share/doc/${PF}/defaults" \
readme_directory="/usr/share/doc/${PF}/readme" \
|| die "postfix-install failed"

# Fix spool removal on upgrade
rm -Rf "${D}/var"
keepdir /var/spool/postfix

# Install rmail for UUCP, closes bug #19127
dobin auxiliary/rmail/rmail

# mailwrapper stuff
if use mailwrapper ; then
mv "${D}/usr/sbin/sendmail" "${D}/usr/sbin/sendmail.postfix"
mv "${D}/usr/bin/rmail" "${D}/usr/bin/rmail.postfix"
# mailer-config support
#rm "${D}/usr/bin/mailq" "${D}/usr/bin/newaliases"

mv "${D}/usr/share/man/man1/sendmail.1" \
"${D}/usr/share/man/man1/sendmail-postfix.1"
mv "${D}/usr/share/man/man1/newaliases.1" \
"${D}/usr/share/man/man1/newaliases-postfix.1"
mv "${D}/usr/share/man/man1/mailq.1" \
"${D}/usr/share/man/man1/mailq-postfix.1"
mv "${D}/usr/share/man/man5/aliases.5" \
"${D}/usr/share/man/man5/aliases-postfix.5"

# regular ebuild
insinto /etc/mail
doins "${FILESDIR}/mailer.conf"
# mailer-config support
#mailer_install_conf
else
# Provide another link for legacy FSH
dosym /usr/sbin/sendmail /usr/$(get_libdir)/sendmail
fi

# Install qshape tool
dobin auxiliary/qshape/qshape.pl

# Performance tuning tools and their manuals
dosbin bin/smtp-{source,sink} bin/qmqp-{source,sink}
doman man/man1/smtp-{source,sink}.1 man/man1/qmqp-{source,sink}.1

# Set proper permissions on required files/directories
dodir /var/lib/postfix
keepdir /var/lib/postfix
fowners postfix:postfix /var/lib/postfix
fowners postfix:postfix /var/lib/postfix/.keep_${CATEGORY}_${PN}-${SLOT}
fperms 0750 /var/lib/postfix
fowners root:postdrop /usr/sbin/post{drop,queue}
fperms 02711 /usr/sbin/post{drop,queue}

keepdir /etc/postfix
mv "${D}"/usr/share/doc/${PF}/defaults/{*.cf,post*-*} "${D}"/etc/postfix
if use mbox ; then
mypostconf="mail_spool_directory=/var/spool/mail"
else
mypostconf="home_mailbox=.maildir/"
fi
"${D}/usr/sbin/postconf" -c "${D}/etc/postfix" \
-e ${mypostconf} || die "postconf failed"

insinto /etc/postfix
newins "${FILESDIR}/smtp.pass" saslpass
fperms 600 /etc/postfix/saslpass

newinitd "${FILESDIR}/postfix.rc6.${RC_VER}" postfix || die "newinitd failed"

mv "${S}/examples" "${D}/usr/share/doc/${PF}/"
dodoc *README COMPATIBILITY HISTORY INSTALL PORTING RELEASE_NOTES*
dohtml html/*

pamd_mimic_system smtp auth account

if use sasl ; then
insinto /etc/sasl2
newins "${FILESDIR}/smtp.sasl" smtpd.conf
fi
}

pkg_postinst() {
# Add postfix, postdrop user/group (bug #77565)
group_user_check || die "Failed to check/add needed user/group"

# Do not install server.{key,pem) SSL certificates if they already exist
if use ssl && [[ ! -f "${ROOT}"/etc/ssl/postfix/server.key \
&& ! -f "${ROOT}"/etc/ssl/postfix/server.pem ]] ; then
SSL_ORGANIZATION="${SSL_ORGANIZATION:-Postfix SMTP Server}"
install_cert /etc/ssl/postfix/server
chown postfix:mail "${ROOT}"/etc/ssl/postfix/server.{key,pem}
fi

ebegin "Fixing queue directories and permissions"
"${ROOT}/etc/postfix/post-install" upgrade-permissions
echo
ewarn "If you upgraded from Postfix-1.x, you must revisit"
ewarn "your configuration files. See"
ewarn " /usr/share/doc/${PF}/RELEASE_NOTES"
ewarn "for a list of changes."

if [[ ! -e /etc/mail/aliases.db ]] ; then
echo
ewarn "You must edit /etc/mail/aliases to suit your needs"
ewarn "and then run /usr/bin/newaliases. Postfix will not"
ewarn "work correctly without it."
fi

# regular ebuild
if ! use mailwrapper && [[ -e /etc/mailer.conf ]] ; then
einfo
einfo "Since you emerged Postfix without mailwrapper in USE,"
einfo "you may want to 'emerge -C mailwrapper' now."
einfo
fi
# mailer-config support
#mailer_pkg_postinst
}

postfix-2.5.5.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/postfix-2.5.5.ebuild,v 1.6 2008/11/09 12:19:19 vapier Exp $

# NOTE: this ebuild is a regular ebuild without mailer-config support!
# Comment lines below "regular ebuild" and uncomment lines below "mailer-config support"
# to turn this ebuild to a mailer-config enabled ebuild.

# regular ebuild
inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic pam
# mailer-config support
#inherit eutils multilib ssl-cert toolchain-funcs flag-o-matic mailer pam

KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"

# regular ebuild
IUSE="cdb dovecot-sasl hardened ipv6 ldap mailwrapper mbox mysql nis pam postgres sasl selinux ssl vda"
# mailer-config support
#IUSE="cdb dovecot-sasl hardened ipv6 ldap mbox mysql nis pam postgres sasl selinux ssl vda"

MY_PV="${PV/_rc/-RC}"
MY_SRC="${PN}-${MY_PV}"
MY_URI="ftp://ftp.porcupine.org/mirrors/postfix-release/official"
VDA_PV="2.5.3"
VDA_P="${PN}-${VDA_PV}-vda-ng"
RC_VER="2.5"

DESCRIPTION="A fast and secure drop-in replacement for sendmail."
HOMEPAGE="http://www.postfix.org/"
SRC_URI="${MY_URI}/${MY_SRC}.tar.gz
vda? ( http://vda.sourceforge.net/VDA/${VDA_P}.patch.gz ) "

LICENSE="IPL-1"
SLOT="0"

# regular ebuild
PROVIDE="virtual/mta virtual/mda"
# mailer-config support
#PROVIDE="${PROVIDE} virtual/mda"

DEPEND=">=sys-libs/db-3.2
>=dev-libs/libpcre-3.4
cdb? ( || ( >=dev-db/cdb-0.75-r1 >=dev-db/tinycdb-0.76 ) )
ldap? ( >=net-nds/openldap-1.2 )
mysql? ( virtual/mysql )
pam? ( virtual/pam )
postgres? ( virtual/postgresql-base )
sasl? ( >=dev-libs/cyrus-sasl-2 )
ssl? ( >=dev-libs/openssl-0.9.6g )"

# regular ebuild
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? (
!virtual/mta
!net-mail/mailwrapper
)
mailwrapper? ( >=net-mail/mailwrapper-0.2 )
selinux? ( sec-policy/selinux-postfix )"

# mailer-config support
#RDEPEND="${DEPEND}
# >=net-mail/mailbase-0.00
# selinux? ( sec-policy/selinux-postfix )"

S="${WORKDIR}/${MY_SRC}"

group_user_check() {
einfo "Checking for postfix group ..."
enewgroup postfix 207
einfo "Checking for postdrop group ..."
enewgroup postdrop 208
einfo "Checking for postfix user ..."
enewuser postfix 207 -1 /var/spool/postfix postfix,mail
}

pkg_setup() {
# Do not upgrade live from Postfix <2.5
if [[ -f /var/lib/init.d/started/postfix ]] ; then
if has_version ' if [[ "${FORCE_UPGRADE}" ]] ; then
echo
ewarn "You are upgrading from an incompatible version and you have"
ewarn "FORCE_UPGRADE set, will build this package while Postfix is running."
ewarn "You MUST stop Postfix BEFORE installing this version to your system."
echo
else
echo
eerror "You are upgrading from an incompatible version."
eerror "You MUST stop Postfix BEFORE installing this version to your system."
eerror "If you want minimal downtime, emerge postfix with:"
eerror " FORCE_UPGRADE=1 emerge --buildpkgonly postfix"
eerror " /etc/init.d/postfix stop"
eerror " emerge --usepkgonly postfix"
eerror "Then run etc-update or dispatch-conf and merge the configuration files."
eerror "Then restart Postfix with: /etc/init.d/postfix start"
die "Upgrade from an incompatible version!"
echo
fi
else
echo
ewarn "It's safe to upgrade your current version while it's running."
ewarn "If you don't want to take any chance, please hit Ctrl+C now,"
ewarn "stop Postfix, then emerge again."
ewarn "You have been warned!"
ewarn "Waiting 5 seconds before continuing ..."
echo
epause 5
fi
fi