ChangeLog

# ChangeLog for mail-mta/sendmail
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.80 2008/03/12 17:13:51 phreak Exp $

12 Mar 2008; Christian Heim metadata.xml:
Removing Andrea Barisani (lcars, #94632) from metadata.xml.

*sendmail-8.14.2 (02 Nov 2007)

02 Nov 2007; Andrea Barisani +sendmail-8.14.2.ebuild:
Version bump.

26 Sep 2007; files/sendmail:
The init script now kills using pid file, bug #193554.

10 Sep 2007; Andrea Barisani sendmail-8.13.6-r1.ebuild,
sendmail-8.13.7.ebuild, sendmail-8.13.7-r1.ebuild, sendmail-8.13.8.ebuild,
sendmail-8.14.0.ebuild, sendmail-8.14.1.ebuild:
Replacing arch invocation with uname, bug #191155.

15 Jun 2007; Raúl Porcel sendmail-8.13.8.ebuild,
sendmail-8.14.0.ebuild:
alpha stable wrt #167206

28 Apr 2007; Sven Wegener sendmail-8.13.6-r1.ebuild,
sendmail-8.13.7.ebuild, sendmail-8.13.7-r1.ebuild, sendmail-8.13.8.ebuild,
sendmail-8.14.0.ebuild, sendmail-8.14.1.ebuild:
Fix *initd, *confd and *envd calls (#17388, #174266)

06 Apr 2007; Tobias Scherbaum
sendmail-8.13.8.ebuild, sendmail-8.14.0.ebuild:
ppc stable, bug #167206

*sendmail-8.14.1 (04 Apr 2007)

04 Apr 2007; Andrea Barisani +sendmail-8.14.1.ebuild:
Version bump.

01 Apr 2007; Raúl Porcel sendmail-8.13.8.ebuild:
ia64 stable wrt bug 167206

18 Mar 2007; Simon Stelling sendmail-8.13.8.ebuild,
sendmail-8.14.0.ebuild:
stable on amd64; bug 167206

18 Mar 2007; Marius Mauch sendmail-8.13.6-r1.ebuild,
sendmail-8.13.7.ebuild, sendmail-8.13.7-r1.ebuild, sendmail-8.13.8.ebuild,
sendmail-8.14.0.ebuild:
Replacing einfo with elog

08 Mar 2007; Gustavo Zacarias ChangeLog:
Fix manifest

08 Mar 2007; Gustavo Zacarias
sendmail-8.14.0.ebuild:
Stable on sparc wrt #167206

21 Feb 2007; Jeroen Roovers sendmail-8.14.0.ebuild:
Stable for HPPA (bug #167206).

21 Feb 2007; Jeroen Roovers sendmail-8.13.8.ebuild:
Stable for HPPA (bug #167206).

20 Feb 2007; Raúl Porcel sendmail-8.13.8.ebuild,
sendmail-8.14.0.ebuild:
x86 stable wrt bug 167206

17 Feb 2007; Markus Rothe sendmail-8.13.8.ebuild,
sendmail-8.14.0.ebuild:
Stable on ppc64; bug #167206

*sendmail-8.14.0 (05 Feb 2007)

05 Feb 2007; Andrea Barisani +sendmail-8.14.0.ebuild:
Version bump.

15 Oct 2006; Bryan Østergaard
sendmail-8.13.7-r1.ebuild:
Stable on ia64, bug 135141.

*sendmail-8.13.8 (10 Aug 2006)

10 Aug 2006; Andrea Barisani -sendmail-8.13.3.ebuild,
-sendmail-8.13.4.ebuild, -sendmail-8.13.4-r1.ebuild,
-sendmail-8.13.5.ebuild, -sendmail-8.13.6.ebuild, +sendmail-8.13.8.ebuild:
Security cleanup, bug #140514. Version bump with fixes for bugs #99030, #82825.

25 Jun 2006; Tobias Scherbaum
sendmail-8.13.7-r1.ebuild:
ppc stable, bug #135141

24 Jun 2006; Rene Nussbaumer
sendmail-8.13.7-r1.ebuild:
Stable on hppa. See bug #135141.

20 Jun 2006; Thomas Cort sendmail-8.13.7-r1.ebuild:
Stable on alpha and amd64 wrt security Bug #135141.

20 Jun 2006; Markus Rothe sendmail-8.13.7-r1.ebuild:
Stable on ppc64; bug #135141

20 Jun 2006; Joshua Jackson sendmail-8.13.7-r1.ebuild:
Stable on x86; bug #135141

19 Jun 2006; Gustavo Zacarias
sendmail-8.13.7-r1.ebuild:
Stable on sparc wrt security #135141

*sendmail-8.13.7-r1 (16 Jun 2006)

16 Jun 2006; Andrea Barisani
+files/errata-8.13.7-1.patch, +files/errata-8.13.7-2.patch,
+sendmail-8.13.7-r1.ebuild:
Revision bump with 2 errata published by sendmail.org.

15 Jun 2006; Tobias Scherbaum
sendmail-8.13.7.ebuild:
ppc stable, bug #135141

*sendmail-8.13.7 (15 Jun 2006)
*sendmail-8.13.6-r1 (15 Jun 2006)

15 Jun 2006; Andrea Barisani
+files/sendmail-CVE-2006-1173.patch, +sendmail-8.13.6-r1.ebuild,
+sendmail-8.13.7.ebuild:
Revision (already stable) and version (to be stabilized) bump, security
fix related to bug #135141.

*sendmail-8.13.6 (22 Mar 2006)

22 Mar 2006; Andrea Barisani +sendmail-8.13.6.ebuild:
Version bump, security fix related to bug #125623.

18 Jan 2006; Andrea Barisani
-files/sendmail-8.12.2-makemapman.patch,
-files/sendmail-8.12.2-smrsh-paths.patch,
-files/sendmail-8.12.2-unix.patch, -files/sendmail-8.12.6-r1-gentoo.diff,
-files/sendmail.cf, -files/sendmail-procmail.cf,
-sendmail-8.13.1-r1.ebuild:
Cleaned unused files.

*sendmail-8.13.5 (17 Sep 2005)

17 Sep 2005; Andrea Barisani +sendmail-8.13.5.ebuild:
Version bump.

24 Aug 2005; Andrea Barisani sendmail-8.13.1-r1.ebuild,
sendmail-8.13.3.ebuild, sendmail-8.13.4.ebuild, sendmail-8.13.4-r1.ebuild:
Use cp -pPR instead of cp -a. Bug #103487.

23 Aug 2005; Andrej Kacian sendmail-8.13.4-r1.ebuild:
Use -1 for shell argument to enewuser. Bug #103421.

11 Aug 2005; Grant Goodyear sendmail-8.13.4.ebuild:
Marking stable on x86.

12 Jul 2005; Simon Stelling sendmail-8.13.4.ebuild:
stable on amd64

04 Jul 2005; Andrej Kacian sendmail-8.13.4-r1.ebuild:
Added compatibility with mailer-config-0.2. See bug #97589.

30 Jun 2005; Aron Griffis sendmail-8.13.4.ebuild:
stable on ia64 #96837

30 Jun 2005; Joseph Jezak sendmail-8.13.4.ebuild:
Marked ppc stable for bug #96837.

28 Jun 2005; Andrea Barisani sendmail-8.13.4-r1.ebuild:
Added better smmsp user/group checking and creation in pkg_setup.

24 Jun 2005; Gustavo Zacarias
sendmail-8.13.4.ebuild:
Stable on sparc wrt #96837

24 Jun 2005; lcars sendmail-8.13.4-r1.ebuild:
Added /etc/mail/submit.mc (bug #70309).

23 Jun 2005; Markus Rothe sendmail-8.13.4.ebuild:
Stable on ppc64 (bug #96837)

*sendmail-8.13.4-r1 (23 Jun 2005)

23 Jun 2005; lcars metadata.xml, +sendmail-8.13.4-r1.ebuild:
Taking over maintainership. New revision that uses mailer.eclass.

23 Jun 2005; Fernando J. Pereda sendmail-8.13.4.ebuild:
Stable on alpha

18 Jun 2005; Andrej Kacian files/sendmail:
Added "antivirus" to 'use' in depend(). Bug #76205, by Phil Pennock at spodhuis.demon.nl>.

17 Jun 2005; Michael Hanselmann
sendmail-8.13.3.ebuild:
Stable on ppc.

14 Jun 2005; Fernando J. Pereda
sendmail-8.13.1-r1.ebuild, sendmail-8.13.3.ebuild, sendmail-8.13.4.ebuild:
fix for bug #95964. By Andrea Barisani

29 May 2005; Fernando J. Pereda files/site.config.m4:
fix site.config.m4 wrt #94287

29 Apr 2005; Grant Goodyear files/site.config.m4:
New site.config.m4 file that prevents the 'lazy binding' QA warnings when
installing the setgid binary. Thanks to lcars!

06 Apr 2005; Bryan Østergaard sendmail-8.13.3.ebuild:
Stable on alpha, bug 88038.

05 Apr 2005; Gustavo Zacarias
sendmail-8.13.3.ebuild:
Stable on sparc wrt #88038

05 Apr 2005; Markus Rothe sendmail-8.13.3.ebuild:
Stable on ppc64; bug #88038

*sendmail-8.13.4 (05 Apr 2005)

05 Apr 2005; Grant Goodyear
-sendmail-8.12.11-r3.ebuild, -sendmail-8.13.1.ebuild,
sendmail-8.13.3.ebuild, +sendmail-8.13.4.ebuild:
Version bump (thanks lcars!). Note that with 8.13.4 the "milter" use flag
has been removed, since milter is now compiled in by default. Also some
general cleaning and keywording.

06 Mar 2005; Grant Goodyear sendmail-8.13.3.ebuild:
Aesthetic fix to here docs in the latest sendmail ebuild.

19 Feb 2005; Bryan Østergaard
sendmail-8.13.1-r1.ebuild:
Stable on alpha, bug 81735.

19 Feb 2005; Joseph Jezak sendmail-8.13.1-r1.ebuild:
Marked ppc stable for bug #81735.

14 Feb 2005; Gustavo Zacarias
sendmail-8.13.1-r1.ebuild:
Stable on sparc wrt #81735

13 Feb 2005; Markus Rothe sendmail-8.13.1-r1.ebuild:
Stable on ppc64; bug #81735

12 Feb 2005; Danny van Dyk
sendmail-8.13.1-r1.ebuild:
Marked stable on amd64.

*sendmail-8.13.3 (12 Feb 2005)

12 Feb 2005; Grant Goodyear
sendmail-8.13.1-r1.ebuild, +sendmail-8.13.3.ebuild:
Stable request for 8.13.1-r1. 8.13.3 added to the tree as ~all.

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

21 Dec 2004; Rob Holland files/sendmail:
Remove incorrect sendmail invocation line. On behalf of lcars@gentoo.org

*sendmail-8.13.1 (19 Sep 2004)

19 Sep 2004; Grant Goodyear +sendmail-8.13.1.ebuild:
Version bump

21 Jul 2004; Tom Gall sendmail-8.12.11-r3.ebuild:
stable on ppc64, bug #57573

07 Jul 2004; Travis Tilley sendmail-8.12.11-r3.ebuild:
stable on amd64

02 Jul 2004; Grant Goodyear :
Removing old (and broken) sendmail ebuilds.

03 Jul 2004; Luca Barbato sendmail-8.12.11-r3.ebuild:
Marked ppc

28 Jun 2004; Aron Griffis sendmail-8.12.10.ebuild,
sendmail-8.12.11-r1.ebuild, sendmail-8.12.11-r2.ebuild,
sendmail-8.12.11.ebuild:
fix use invocation

24 Jun 2004; Aron Griffis sendmail-8.12.11-r3.ebuild:
stable on ia64

24 Jun 2004; Christian Birchinger
sendmail-8.12.11-r3.ebuild:
Added sparc stable keyword

24 Jun 2004; Gustavo Zacarias
sendmail-8.12.11-r3.ebuild:
Stable on hppa wrt #54892

23 Jun 2004; Bryan Østergaard
sendmail-8.12.11-r3.ebuild:
Stable on alpha, requested in bug #54892.

23 Jun 2004; Grant Goodyear
sendmail-8.12.11-r3.ebuild:
Marking stable on x86 because it fixes so many current bugs.

03 Jun 2004; Seemant Kulleen sendmail-8.12.10.ebuild,
sendmail-8.12.11-r1.ebuild, sendmail-8.12.11-r2.ebuild,
sendmail-8.12.11-r3.ebuild, sendmail-8.12.11.ebuild:
Change DEPENDency from net-mail/procmail to mail-filter/procmail

*sendmail-8.12.11-r3 (30 May 2004)

30 May 2004; Grant Goodyear files/mailer.conf,
sendmail-8.12.11-r1.ebuild, sendmail-8.12.11-r2.ebuild,
+sendmail-8.12.11-r3.ebuild:
Changes so that mailwrapper can be optional (w/ a "mailwrapper" USE flag).

*sendmail-8.12.11-r2 (30 May 2004)

30 May 2004; Robin H. Johnson metadata.xml,
sendmail-8.12.10.ebuild, sendmail-8.12.11-r1.ebuild,
sendmail-8.12.11-r2.ebuild, sendmail-8.12.11.ebuild, files/mailer.conf,
files/sendmail, files/sendmail-8.12.2-makemapman.patch,
files/sendmail-8.12.2-smrsh-paths.patch, files/sendmail-8.12.2-unix.patch,
files/sendmail-8.12.6-r1-gentoo.diff, files/sendmail-procmail.cf,
files/sendmail-procmail.mc, files/sendmail.cf, files/sendmail.mc,
files/site.config.m4:
Moved from net-mail/sendmail to mail-mta/sendmail.

12 May 2004; Michael McCabe sendmail-8.12.11-r2.ebuild:
Added s390 keywords

*sendmail-8.12.11-r2 (21 Apr 2004)

21 Apr 2004; Grant Goodyear
sendmail-8.12.11-r2.ebuild, files/site.config.m4:
New version thanks to lcars!

*sendmail-8.12.11-r1 (24 Mar 2004)

24 Mar 2004; Grant Goodyear
sendmail-8.12.11-r1.ebuild, files/mailer.conf:
New revision that adds mailwrapper support

19 Mar 2004; Aron Griffis sendmail-8.12.10.ebuild,
sendmail-8.12.11.ebuild:
add alpha/ia64 keywords

*sendmail-8.12.11 (06 Feb 2004)

06 Feb 2004; Greg Fitzgerald sendmail-8.12.11.ebuild:
Version Bump.

*sendmail-8.12.10 (17 Sep 2003)

17 Sep 2003; Greg Fitzgerald sendmail-8.12.10.ebuild:
Version bump / fixes security issue.

13 Jul 2003; Christian Birchinger
sendmail-8.12.9-r2.ebuild:
Added sparc stable keyword

24 May 2003; Todd Berman sendmail-8.12.9-r2.ebuild:
closed bug #21354

23 May 2003; Todd Berman sendmail-8.12.9-r1.ebuild,
sendmail-8.12.9-r2.ebuild:
Closed bug 21521.

12 May 2003; Todd Berman files/sendmail-r5:
Fixed up the sendmail init file some.

11 May 2003; sendmail-8.12.8.ebuild,
sendmail-8.12.9-r1.ebuild, sendmail-8.12.9-r2.ebuild,
sendmail-8.12.9.ebuild:
Fixed bug #20792

*sendmail-8.12.9-r2 (26 Apr 2003)

15 Jun 2003; Guy Martin sendmail-8.12.9-r2.ebuild:
Added hppa to KEYWORDS.

26 Apr 2003; sendmail-8.12.9-r2.ebuild:
Added NIS database support. Closes bug #18578.

*sendmail-8.12.9-r1 (24 Apr 2003)

24 Apr 2003; Jon Portnoy sendmail-8.12.9-r1.ebuild :
Incorporates Todd Berman's work on integrating procmail for
people who aren't using mbox. Fixes bug #19893. Thanks, Todd!

*sendmail-8.12.9 (30 Mar 2003)

30 Mar 2003; Daniel Ahlberg sendmail-8.12.9.ebuild :
Security update.

*sendmail-8.12.8 (03 Mar 2003)

03 Mar 2003; Grant Goodyear sendmail-8.12.8.ebuild:
security update to 8.12.8. Closes bugs 16755 and 16766.

*sendmail-8.12.7-r5 (03 Feb 20003)

03 Feb 2003; Nick Hadaway sendmail-8.12.7-r5.ebuild,
files/digest-sendmail-8.12.7-r5, files/sendmail-r5 :
Changed /usr/sbin/sendmail to sendmail in the stop portion of the
script and added some changes for proper SASL2 usage as suggested
by Alessandro Pisani on bug #14411.

*sendmail-8.12.7-r4 (26 Jan 2003)

26 Jan 2003; Nick Hadaway sendmail-8.12.7-r4.ebuild,
files/digest-sendmail-8.12.7-r4, files/sendmail-r4 :
Now the init script sends 'killall ${KILL_OPTS} /usr/sbin/sendmail'
This should stop all running instances?

*sendmail-8.12.7-r3 (23 Jan 2003)

23 Jan 2003; Nick Hadaway sendmail-8.12.7-r3.ebuild,
files/digest-sendmail-8.12.7-r3, files/sendmail-r3 :
Changed init to incorporate KILL_OPTS so people can choose their level
of daemon shutdown forcefulness.

*sendmail-8.12.7-r2 (23 Jan 2003)

23 Jan 2003; Nick Hadaway files/sendmail-r2,
files/digest-sendmail-8.12.7-r2, sendmail-8.12.7-r2.ebuild :
Version bump to catch new init.d file

23 Jan 2003; Nick Hadaway files/sendmail-r1 :
Added -9 to the kill statement as suggested on bug #14411

*sendmail-8.12.7-r1 (20 Jan 2003)

20 Jan 2003; Nick Hadaway sendmail-8.12.7-r1.ebuild,
files/digest-sendmail-8.12.7-r1 files/sendmail-r1 :
Updated init.d script and conf file so the clientmqueue flushing
daemon shuts down as well as the main mta daemon.

*sendmail-8.12.7 (02 Jan 2003)

19 Jan 2003; Nick Hadaway sendmail-8.12.7.ebuild :
Marked stable for x86. Many important fixes in the source and in
the ebuild.

19 Jan 2003; Nick Hadaway sendmail-8.12.7.ebuild,
files/sendmail :
Added the clientmqueue daemon as suggested by Andrea Barisani on
bug #13836. Log files are now tagged by sm-mta or sm-cm. Added
an extra check to clear xf* from /var/spool/mqueue on start.

02 Jan 2003; Nick Hadaway sendmail-8.12.7.ebuild,
files/digest-sendmail-8.12.7 :
Version bump.

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

*sendmail-8.12.6-r1 (13 Oct 2002)

13 Oct 2002; Daniel Ahlberg :
Security update. Added patch from sendmail to fix smrsh.

*sendmail-8.12.6 (03 Sep 2002)

03 Sep 2002; Nick Hadaway sendmail-8.12.6.ebuild,
files/digest-sendmail-8.12.6.ebuild :
Version bump.

*sendmail-8.12.5 (19 Jul 2002)

19 Jul 2002; Grant Goodyear ChangeLog :
new version; fixes buffer overflow; thanks to raker!

*sendmail-8.12.4-r5 (13 Jul 2002)

13 Jul 2002; Grant Goodyear ChangeLog :
sasl fixes; thanks to Jay 'Eraserhead' Felice

*sendmail-8.12.4-r4 (12 Jul 2002)

12 Jul 2002; Grant Goodyear ChangeLog :
fixed permissions (thanks to Harald Kubota for catching the problem),
moved group/passwd stuff to pkg_preinst

*sendmail-8.12.4-r3 (04 Jul 2002)

04 Jul 2002; Grant Goodyear ChangeLog :
Some useful fixes; thanks to Alessandro Pisani

29 Jun 2002; Seemant Kulleen sendmail-8.12.4-r2.ebuild:
Changed net-misc/hesiod to net-dns/hesiod per bug #4321 by
simons+gentoo@cryp.to (Peter Simons)

27 Jun 2002; Grant Goodyear sendmail-8.12.4-r2.ebuild:
Make sure that queue directories don't get cleaned away.

24 Jun 2002; Thilo Bangert sendmail-8.12.4-r1.ebuild:
added symlink /usr/sbin/sendmail -> /usr/lib/sendmail

22 Jun 2002; William McArthur sendmail-8.12.4-r1.ebuild:
Fixed a type in the use ssl section, "-ssl" should have been "-lssl"

*sendmail-8.12.4-r1 (12 June 2002)

12 June 2002; Grant Goodyear :
Added an init script and fixed permissions. It now
works out-of-the-box, at least for sending mail and
locally receiving mail. Currently set up to use it's
own local mailer.

*sendmail-8.12.4 (10 June 2002)

10 June 2002; Grant Goodyear :
New package.

Manifest

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

AUX errata-8.13.7-1.patch 428 RMD160 2ca5313cdc21569f10bd85c7a96d5ac86d5da862 SHA1 586ba29dae6d24433ec1d8ff5992b42e63c3d886 SHA256 a308384cbb3d829c1990dde5a453b9a1c06c0696ff85965946ffec73232f1b3e
AUX errata-8.13.7-2.patch 554 RMD160 e9fb7716126c61fc27874001a89088b394828ec5 SHA1 61d9b87effac3498adb8049d19ceca5e52bb8444 SHA256 e387011e5c3d183259ba0ed933b313e4a24eaf3a17f2b6e60debfe8cbbfbff04
AUX mailer.conf 1306 RMD160 7f752b3b88208eda71f96de6621e050a684b8fdb SHA1 a2704751d866367f969554841af8f637766db528 SHA256 f07e22401ff9fae449bfb093dfc608b6f8e71af1c7c3790d89a71af9a1411a44
AUX sendmail 696 RMD160 b845d174e643ad7f569939f88d66ce6051fb73ca SHA1 e4d9ba5db7f9b2634d7df3e08e8f3b6bc1ba937a SHA256 65bd511f368943c19ef553666568e548c16cb31e84bc32d00ebbdcf83f04a7b1
AUX sendmail-CVE-2006-1173.patch 1486 RMD160 33a6bf2dcf1bf6cd9d2702bc9705ceb80fbe09f0 SHA1 440e4ee461ffff34e78eef8e4e233373177b5d7d SHA256 9c58001d52682e1e54e39494c65864fafe3e1989e730056173bd8d39e48c4cf9
AUX sendmail-delivered_hdr.patch 341 RMD160 a190574a57c643233c0d23e8b69dbf3cd3943f41 SHA1 17d034625524438dc98a2a7a14a7bfe2fb047420 SHA256 bfe354d1047c66ea857e56cb374f583eb779c8f4ccc92ea766e916ec358cd77c
AUX sendmail-procmail.mc 357 RMD160 e912a3d2f91fc60e0856e1a537b9a9851788172f SHA1 536e5b842ef280f2abd86ee0f8f5987a885350b7 SHA256 8da4cc39758ff1668d7bf7c3713914cb44ef8d084ab822629316ee3caae90856
AUX sendmail.mc 299 RMD160 cb659c515cc2b5de750b645fbcfb7a8a60ad60ae SHA1 c93483684c46356cd1d09899517539c5406b5bd0 SHA256 fbf4f2bf7826cabf2072f6c113b3616c1dffd580864d708e344b5f334f1a8a38
AUX site.config.m4 453 RMD160 e23f701fb3c4558eb118745d24c03b348ee9e52a SHA1 23845f9d174760043be864fd323d2816462d6cb3 SHA256 4e1e7ff81ba6b27a8f4169414a26e9073f93132841b651c08b3ac2a258ae89d1
DIST sendmail.8.13.6.tar.gz 1986576 RMD160 cbb0649b5dec8e4b4850c76ad4a132a15335df3b SHA1 6c35f4780bd9fc5f8982977ad699752e2ccb26d0 SHA256 68764cf48a6cdab3786791e3a4b0cd19941a18b083d4c53a362e4026f4c72a7a
DIST sendmail.8.13.7.tar.gz 2010008 RMD160 a1cab6a7f015bf50c1773a67f35b800c751d55ed SHA1 b70f63f5d577e14794d1a37ef5e825f9127ec996 SHA256 4ed72f2cd43e2ab492c91248319c03e224a272a4d683cfc4c3ee484a79471b22
DIST sendmail.8.13.8.tar.gz 2010975 RMD160 a5d333b073d681f056421e836df4067f331a8ac8 SHA1 8e97c10f52efe5204c08f6cb3f90c08e077ac505 SHA256 48262059aec2d2f1cbbb45dcd4eaf5eb3ba02bc29ebc25c15ae2e04b606f0123
DIST sendmail.8.14.0.tar.gz 2056927 RMD160 2095840c732fb843011c335d2c1f918b9ffdf4e4 SHA1 fd93987ffe081303eef964e0746e344c04881ca9 SHA256 dc2f8663d6e1e8c08029f3501779680e5a61a86017cf2085ec5dc295f2295977
DIST sendmail.8.14.1.tar.gz 2061959 RMD160 180c90e9a64e8896798ed6b9cf883d481e11f5ac SHA1 327a77a3b5a55810f2addae7dfd6cfd95645f476 SHA256 73143bee92ef961498e053f7ec47dca27bb8c450e4974cc69519f24c768ec32e
DIST sendmail.8.14.2.tar.gz 2064346 RMD160 9db665f955b5a2b5d83adad4c3dfd483c6e0b9be SHA1 2b92a1d439374249ef6bf024cfb8072902c5682a SHA256 7be1c533ab0b3c841a8b28954c79bd2e4474b9a212163b0f20cd30e255d06e3a
EBUILD sendmail-8.13.6-r1.ebuild 6641 RMD160 e9cc85791d4cefce8cb820bc17ea0a4127d6a884 SHA1 f39f4426108c6f7b6a83e1da73b05d619f1bc71e SHA256 b3148fbeca9699b8ff21673a1bde252847579ae20c616d3fb634e1021bb59e57
EBUILD sendmail-8.13.7-r1.ebuild 6684 RMD160 fb4369543cd2402681e9c4e2b43eeb8d2280ec8e SHA1 73150f1d6a779aa9569f0cdb13cf9cd789a00346 SHA256 4c488f5cef9a4699233dafa44d1a1f5d8c7fb77638991cbe5951f89faceee0b4
EBUILD sendmail-8.13.7.ebuild 6590 RMD160 cbc9258a0aaa764843da30b0996ae0f0acea59d5 SHA1 aa3a96ddf8e52bea4447dda789ee24048265fef6 SHA256 36d7cc88472a06ab15c9904cbc7e752620a80ed7564d4888b3baadd664c1ec3c
EBUILD sendmail-8.13.8.ebuild 6700 RMD160 e114ad1f04a14f465f7c90237848a7a80f9aa09a SHA1 10acbb69fe77335fa115a50c20e02237cced819e SHA256 929337a114339cd9b74ecf6565c99d8e8896cecf1b625e5471f99f19aa356108
EBUILD sendmail-8.14.0.ebuild 6699 RMD160 cbb20359863bbe66e3b28bdf1dd7c8d7c6102156 SHA1 aaa85bf761663c98f743d397cddd1650622d5b73 SHA256 de704080ecf447a900af24019277879795ea10741bc38fc6adedce996375ceae
EBUILD sendmail-8.14.1.ebuild 6709 RMD160 8a78a23aa9e37d2f15ccce4eb35c31bf487cea16 SHA1 b67fdca54f60ea573ac3449144208cb9c6e1601c SHA256 a444ece752a6e6c66af81da9974ab1b3ec18b179c08f7c2f84db05db1aa50b56
EBUILD sendmail-8.14.2.ebuild 6709 RMD160 0c4f376fddd606dc383882a94e5013ea2eaccf6b SHA1 fbe96a01c7a54e9e3b396f6f6106957a889b4a2c SHA256 faa96d34d4a60ff612eb2f0ce8a72b37d65900583b9125dd0e783cca153b2918
MISC ChangeLog 18096 RMD160 162afe126479c3546bf8cfc511dc3a0273db93c5 SHA1 a3b982575195066058a9a69ecc2cf0b9e99f1526 SHA256 cc890ba7f1cdda73bfe1301b59dcb98a12f9f0f68dedd6cedb5b8d34ecd45673
MISC metadata.xml 162 RMD160 fd38b82541901b3c6df18b630d79fe7883ae3f01 SHA1 e6aecefcc2137d6047cedfe447686775ab59cb48 SHA256 569031668e39895fb20829fb17a49a91a83e8f41b2195b0f04825c4340d2af6b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFH2A/ByuNVb5qfaOYRAvCgAJ91uzoGHnkseLzCtlGvca7NbicgEACfc04p
hl2iZMZ6S0qIVrz8xFAfyaQ=
=zS8i
-----END PGP SIGNATURE-----

files

metadata.xml




net-mail

sendmail-8.13.6-r1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.13.6-r1.ebuild,v 1.4 2007/09/10 09:09:48 lcars Exp $

inherit eutils

DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
HOMEPAGE="http://www.sendmail.org/"
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"

LICENSE="Sendmail"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86"
IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6"

DEPEND="net-mail/mailbase
sys-devel/m4
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
ldap? ( net-nds/openldap )
>=sys-libs/db-3.2
!net-mail/vacation
"
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
PDEPEND="!mbox? ( mail-filter/procmail )"
PROVIDE="virtual/mta"

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

epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die
epatch ${FILESDIR}/sendmail-CVE-2006-1173.patch || die

confCCOPTS="${CFLAGS}"
confMAPDEF="-DMAP_REGEX"
conf_sendmail_LIBS=""
use sasl && confLIBS="${confLIBS} -lsasl2" \
&& confENVDEF="${confENVDEF} -DSASL=2" \
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
&& confLIBS="${confLIBS} -lwrap"
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
&& confLIBS="${confLIBS} -lssl -lcrypto" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
&& confLIBS="${confLIBS} -lldap -llber"
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \
-e "s/@@confENVDEF@@/${confENVDEF}/" \
-e "s/@@confLIBS@@/${confLIBS}/" \
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
}

src_compile() {
sh Build || die "compilation failed in main Build script"
pushd libmilter
sh Build || die "libmilter compilation failed"
popd
}

src_install () {
OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
dodir /usr/bin /usr/lib
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
keepdir /var/spool/{clientmqueue,mqueue}
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/${dir} \
|| die "install failed"
done
for dir in rmail mail.local
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
force-install -C ${OBJDIR}/${dir} \
|| die "install failed"
done

dodir /usr/include/libmilter
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/libmilter \
|| die "install failed"

fowners root:smmsp /usr/sbin/sendmail
fperms 2555 /usr/sbin/sendmail
fowners smmsp:smmsp /var/spool/clientmqueue
fperms 770 /var/spool/clientmqueue
fperms 700 /var/spool/mqueue
dosym /usr/sbin/makemap /usr/bin/makemap
dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
newdoc sendmail/README README.sendmail
newdoc sendmail/SECURITY SECURITY
newdoc sendmail/TUNING TUNING
newdoc smrsh/README README.smrsh
newdoc libmilter/README README.libmilter

newdoc cf/README README.cf
newdoc cf/cf/README README.install-cf
cp -pPR cf/* ${D}/usr/share/sendmail-cf
insinto /etc/mail
if use mbox
then
doins ${FILESDIR}/sendmail.mc
else
newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
fi
m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
> ${D}/etc/mail/sendmail.cf
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
> ${D}/etc/mail/submit.mc
cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
echo "# local-host-names - include all aliases for your machine here" \
> ${D}/etc/mail/local-host-names
cat <<- EOF > ${D}/etc/mail/trusted-users
# trusted-users - users that can send mail as others without a warning
# apache, mailman, majordomo, uucp are good candidates
EOF
cat <<- EOF > ${D}/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#

EOF
cat <<- EOF > ${D}/etc/conf.d/sendmail
# Config file for /etc/init.d/sendmail
# add start-up options here
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here

EOF
doinitd ${FILESDIR}/sendmail
keepdir /usr/adm/sm.bin

if use mailwrapper
then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
rm ${D}/usr/bin/mailq
rm ${D}/usr/bin/newaliases
mv ${D}/usr/share/man/man8/sendmail.8 \
${D}/usr/share/man/man8/sendmail-sendmail.8
mv ${D}/usr/share/man/man1/mailq.1 \
${D}/usr/share/man/man1/mailq-sendmail.1
mv ${D}/usr/share/man/man1/newaliases.1 \
${D}/usr/share/man/man1/newaliases-sendmail.1
mv ${D}/usr/share/man/man5/aliases.5 \
${D}/usr/share/man/man5/aliases-sendmail.5
dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
fi

}

pkg_setup() {
einfo "checking for smmsp group... create if missing."
enewgroup smmsp 209 || die "problem adding group smmsp"
einfo "checking for smmsp user... create if missing."
enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
|| die "problem adding user smmsp"
}

pkg_postinst() {
if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
then
elog
elog "Since you emerged sendmail without mailwrapper in USE,"
elog "you probably want to 'emerge -C mailwrapper' now."
elog
fi
}

sendmail-8.13.7-r1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.13.7-r1.ebuild,v 1.12 2007/09/10 09:09:48 lcars Exp $

inherit eutils

DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
HOMEPAGE="http://www.sendmail.org/"
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"

LICENSE="Sendmail"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86"
IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6"

DEPEND="net-mail/mailbase
sys-devel/m4
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
ldap? ( net-nds/openldap )
>=sys-libs/db-3.2
!net-mail/vacation
"
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
PDEPEND="!mbox? ( mail-filter/procmail )"
PROVIDE="virtual/mta"

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

epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die
epatch ${FILESDIR}/errata-8.13.7-1.patch || die
epatch ${FILESDIR}/errata-8.13.7-2.patch || die

confCCOPTS="${CFLAGS}"
confMAPDEF="-DMAP_REGEX"
conf_sendmail_LIBS=""
use sasl && confLIBS="${confLIBS} -lsasl2" \
&& confENVDEF="${confENVDEF} -DSASL=2" \
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
&& confLIBS="${confLIBS} -lwrap"
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
&& confLIBS="${confLIBS} -lssl -lcrypto" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
&& confLIBS="${confLIBS} -lldap -llber"
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \
-e "s/@@confENVDEF@@/${confENVDEF}/" \
-e "s/@@confLIBS@@/${confLIBS}/" \
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
}

src_compile() {
sh Build || die "compilation failed in main Build script"
pushd libmilter
sh Build || die "libmilter compilation failed"
popd
}

src_install () {
OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
dodir /usr/bin /usr/lib
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
keepdir /var/spool/{clientmqueue,mqueue}
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/${dir} \
|| die "install failed"
done
for dir in rmail mail.local
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
force-install -C ${OBJDIR}/${dir} \
|| die "install failed"
done

dodir /usr/include/libmilter
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/libmilter \
|| die "install failed"

fowners root:smmsp /usr/sbin/sendmail
fperms 2555 /usr/sbin/sendmail
fowners smmsp:smmsp /var/spool/clientmqueue
fperms 770 /var/spool/clientmqueue
fperms 700 /var/spool/mqueue
dosym /usr/sbin/makemap /usr/bin/makemap
dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
newdoc sendmail/README README.sendmail
newdoc sendmail/SECURITY SECURITY
newdoc sendmail/TUNING TUNING
newdoc smrsh/README README.smrsh
newdoc libmilter/README README.libmilter

newdoc cf/README README.cf
newdoc cf/cf/README README.install-cf
cp -pPR cf/* ${D}/usr/share/sendmail-cf
insinto /etc/mail
if use mbox
then
doins ${FILESDIR}/sendmail.mc
else
newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
fi
m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
> ${D}/etc/mail/sendmail.cf
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
> ${D}/etc/mail/submit.mc
cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
echo "# local-host-names - include all aliases for your machine here" \
> ${D}/etc/mail/local-host-names
cat <<- EOF > ${D}/etc/mail/trusted-users
# trusted-users - users that can send mail as others without a warning
# apache, mailman, majordomo, uucp are good candidates
EOF
cat <<- EOF > ${D}/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#

EOF
cat <<- EOF > ${D}/etc/conf.d/sendmail
# Config file for /etc/init.d/sendmail
# add start-up options here
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here

EOF
doinitd ${FILESDIR}/sendmail
keepdir /usr/adm/sm.bin

if use mailwrapper
then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
rm ${D}/usr/bin/mailq
rm ${D}/usr/bin/newaliases
mv ${D}/usr/share/man/man8/sendmail.8 \
${D}/usr/share/man/man8/sendmail-sendmail.8
mv ${D}/usr/share/man/man1/mailq.1 \
${D}/usr/share/man/man1/mailq-sendmail.1
mv ${D}/usr/share/man/man1/newaliases.1 \
${D}/usr/share/man/man1/newaliases-sendmail.1
mv ${D}/usr/share/man/man5/aliases.5 \
${D}/usr/share/man/man5/aliases-sendmail.5
dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
fi

}

pkg_setup() {
einfo "checking for smmsp group... create if missing."
enewgroup smmsp 209 || die "problem adding group smmsp"
einfo "checking for smmsp user... create if missing."
enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
|| die "problem adding user smmsp"
}

pkg_postinst() {
if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
then
elog
elog "Since you emerged sendmail without mailwrapper in USE,"
elog "you probably want to 'emerge -C mailwrapper' now."
elog
fi
}

sendmail-8.13.7.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.13.7.ebuild,v 1.5 2007/09/10 09:09:48 lcars Exp $

inherit eutils

DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
HOMEPAGE="http://www.sendmail.org/"
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"

LICENSE="Sendmail"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ppc ~ppc64 ~s390 ~sparc ~x86"
IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6"

DEPEND="net-mail/mailbase
sys-devel/m4
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
ldap? ( net-nds/openldap )
>=sys-libs/db-3.2
!net-mail/vacation
"
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
PDEPEND="!mbox? ( mail-filter/procmail )"
PROVIDE="virtual/mta"

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

epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die

confCCOPTS="${CFLAGS}"
confMAPDEF="-DMAP_REGEX"
conf_sendmail_LIBS=""
use sasl && confLIBS="${confLIBS} -lsasl2" \
&& confENVDEF="${confENVDEF} -DSASL=2" \
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
&& confLIBS="${confLIBS} -lwrap"
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
&& confLIBS="${confLIBS} -lssl -lcrypto" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
&& confLIBS="${confLIBS} -lldap -llber"
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \
-e "s/@@confENVDEF@@/${confENVDEF}/" \
-e "s/@@confLIBS@@/${confLIBS}/" \
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
}

src_compile() {
sh Build || die "compilation failed in main Build script"
pushd libmilter
sh Build || die "libmilter compilation failed"
popd
}

src_install () {
OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
dodir /usr/bin /usr/lib
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
keepdir /var/spool/{clientmqueue,mqueue}
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/${dir} \
|| die "install failed"
done
for dir in rmail mail.local
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
force-install -C ${OBJDIR}/${dir} \
|| die "install failed"
done

dodir /usr/include/libmilter
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/libmilter \
|| die "install failed"

fowners root:smmsp /usr/sbin/sendmail
fperms 2555 /usr/sbin/sendmail
fowners smmsp:smmsp /var/spool/clientmqueue
fperms 770 /var/spool/clientmqueue
fperms 700 /var/spool/mqueue
dosym /usr/sbin/makemap /usr/bin/makemap
dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
newdoc sendmail/README README.sendmail
newdoc sendmail/SECURITY SECURITY
newdoc sendmail/TUNING TUNING
newdoc smrsh/README README.smrsh
newdoc libmilter/README README.libmilter

newdoc cf/README README.cf
newdoc cf/cf/README README.install-cf
cp -pPR cf/* ${D}/usr/share/sendmail-cf
insinto /etc/mail
if use mbox
then
doins ${FILESDIR}/sendmail.mc
else
newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
fi
m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
> ${D}/etc/mail/sendmail.cf
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
> ${D}/etc/mail/submit.mc
cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
echo "# local-host-names - include all aliases for your machine here" \
> ${D}/etc/mail/local-host-names
cat <<- EOF > ${D}/etc/mail/trusted-users
# trusted-users - users that can send mail as others without a warning
# apache, mailman, majordomo, uucp are good candidates
EOF
cat <<- EOF > ${D}/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#

EOF
cat <<- EOF > ${D}/etc/conf.d/sendmail
# Config file for /etc/init.d/sendmail
# add start-up options here
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here

EOF
doinitd ${FILESDIR}/sendmail
keepdir /usr/adm/sm.bin

if use mailwrapper
then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
rm ${D}/usr/bin/mailq
rm ${D}/usr/bin/newaliases
mv ${D}/usr/share/man/man8/sendmail.8 \
${D}/usr/share/man/man8/sendmail-sendmail.8
mv ${D}/usr/share/man/man1/mailq.1 \
${D}/usr/share/man/man1/mailq-sendmail.1
mv ${D}/usr/share/man/man1/newaliases.1 \
${D}/usr/share/man/man1/newaliases-sendmail.1
mv ${D}/usr/share/man/man5/aliases.5 \
${D}/usr/share/man/man5/aliases-sendmail.5
dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
fi

}

pkg_setup() {
einfo "checking for smmsp group... create if missing."
enewgroup smmsp 209 || die "problem adding group smmsp"
einfo "checking for smmsp user... create if missing."
enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
|| die "problem adding user smmsp"
}

pkg_postinst() {
if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
then
elog
elog "Since you emerged sendmail without mailwrapper in USE,"
elog "you probably want to 'emerge -C mailwrapper' now."
elog
fi
}

sendmail-8.13.8.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.13.8.ebuild,v 1.13 2007/09/10 09:09:48 lcars Exp $

inherit eutils

DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
HOMEPAGE="http://www.sendmail.org/"
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"

LICENSE="Sendmail"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh ~sparc x86"
IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6 nis sockets"

DEPEND="net-mail/mailbase
sys-devel/m4
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
ldap? ( net-nds/openldap )
>=sys-libs/db-3.2
!net-mail/vacation
"
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
PDEPEND="!mbox? ( mail-filter/procmail )"
PROVIDE="virtual/mta"

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

epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die

confCCOPTS="${CFLAGS}"
confMAPDEF="-DMAP_REGEX"
conf_sendmail_LIBS=""
use sasl && confLIBS="${confLIBS} -lsasl2" \
&& confENVDEF="${confENVDEF} -DSASL=2" \
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
&& confLIBS="${confLIBS} -lwrap"
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
&& confLIBS="${confLIBS} -lssl -lcrypto" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
&& confLIBS="${confLIBS} -lldap -llber"
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
use nis && confENVDEF="${confENVDEF} -DNIS"
use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP"
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \
-e "s/@@confENVDEF@@/${confENVDEF}/" \
-e "s/@@confLIBS@@/${confLIBS}/" \
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
}

src_compile() {
sh Build || die "compilation failed in main Build script"
pushd libmilter
sh Build || die "libmilter compilation failed"
popd
}

src_install () {
OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
dodir /usr/bin /usr/lib
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
keepdir /var/spool/{clientmqueue,mqueue}
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/${dir} \
|| die "install failed"
done
for dir in rmail mail.local
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
force-install -C ${OBJDIR}/${dir} \
|| die "install failed"
done

dodir /usr/include/libmilter
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/libmilter \
|| die "install failed"

fowners root:smmsp /usr/sbin/sendmail
fperms 2555 /usr/sbin/sendmail
fowners smmsp:smmsp /var/spool/clientmqueue
fperms 770 /var/spool/clientmqueue
fperms 700 /var/spool/mqueue
dosym /usr/sbin/makemap /usr/bin/makemap
dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
newdoc sendmail/README README.sendmail
newdoc sendmail/SECURITY SECURITY
newdoc sendmail/TUNING TUNING
newdoc smrsh/README README.smrsh
newdoc libmilter/README README.libmilter

newdoc cf/README README.cf
newdoc cf/cf/README README.install-cf
cp -pPR cf/* ${D}/usr/share/sendmail-cf
insinto /etc/mail
if use mbox
then
doins ${FILESDIR}/sendmail.mc
else
newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
fi
m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
> ${D}/etc/mail/sendmail.cf
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
> ${D}/etc/mail/submit.mc
cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
echo "# local-host-names - include all aliases for your machine here" \
> ${D}/etc/mail/local-host-names
cat <<- EOF > ${D}/etc/mail/trusted-users
# trusted-users - users that can send mail as others without a warning
# apache, mailman, majordomo, uucp are good candidates
EOF
cat <<- EOF > ${D}/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#

EOF
cat <<- EOF > ${D}/etc/conf.d/sendmail
# Config file for /etc/init.d/sendmail
# add start-up options here
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here

EOF
doinitd ${FILESDIR}/sendmail
keepdir /usr/adm/sm.bin

if use mailwrapper
then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
rm ${D}/usr/bin/mailq
rm ${D}/usr/bin/newaliases
mv ${D}/usr/share/man/man8/sendmail.8 \
${D}/usr/share/man/man8/sendmail-sendmail.8
mv ${D}/usr/share/man/man1/mailq.1 \
${D}/usr/share/man/man1/mailq-sendmail.1
mv ${D}/usr/share/man/man1/newaliases.1 \
${D}/usr/share/man/man1/newaliases-sendmail.1
mv ${D}/usr/share/man/man5/aliases.5 \
${D}/usr/share/man/man5/aliases-sendmail.5
dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
fi

}

pkg_setup() {
einfo "checking for smmsp group... create if missing."
enewgroup smmsp 209 || die "problem adding group smmsp"
einfo "checking for smmsp user... create if missing."
enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
|| die "problem adding user smmsp"
}

pkg_postinst() {
if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
then
elog
elog "Since you emerged sendmail without mailwrapper in USE,"
elog "you probably want to 'emerge -C mailwrapper' now."
elog
fi
}

sendmail-8.14.0.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.0.ebuild,v 1.12 2007/09/10 09:09:48 lcars Exp $

inherit eutils

DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
HOMEPAGE="http://www.sendmail.org/"
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"

LICENSE="Sendmail"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6 nis sockets"

DEPEND="net-mail/mailbase
sys-devel/m4
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
ldap? ( net-nds/openldap )
>=sys-libs/db-3.2
!net-mail/vacation
"
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
PDEPEND="!mbox? ( mail-filter/procmail )"
PROVIDE="virtual/mta"

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

epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die

confCCOPTS="${CFLAGS}"
confMAPDEF="-DMAP_REGEX"
conf_sendmail_LIBS=""
use sasl && confLIBS="${confLIBS} -lsasl2" \
&& confENVDEF="${confENVDEF} -DSASL=2" \
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
&& confLIBS="${confLIBS} -lwrap"
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
&& confLIBS="${confLIBS} -lssl -lcrypto" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
&& confLIBS="${confLIBS} -lldap -llber"
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
use nis && confENVDEF="${confENVDEF} -DNIS"
use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP"
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \
-e "s/@@confENVDEF@@/${confENVDEF}/" \
-e "s/@@confLIBS@@/${confLIBS}/" \
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
}

src_compile() {
sh Build || die "compilation failed in main Build script"
pushd libmilter
sh Build || die "libmilter compilation failed"
popd
}

src_install () {
OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
dodir /usr/bin /usr/lib
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
keepdir /var/spool/{clientmqueue,mqueue}
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/${dir} \
|| die "install failed"
done
for dir in rmail mail.local
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
force-install -C ${OBJDIR}/${dir} \
|| die "install failed"
done

dodir /usr/include/libmilter
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/libmilter \
|| die "install failed"

fowners root:smmsp /usr/sbin/sendmail
fperms 2555 /usr/sbin/sendmail
fowners smmsp:smmsp /var/spool/clientmqueue
fperms 770 /var/spool/clientmqueue
fperms 700 /var/spool/mqueue
dosym /usr/sbin/makemap /usr/bin/makemap
dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
newdoc sendmail/README README.sendmail
newdoc sendmail/SECURITY SECURITY
newdoc sendmail/TUNING TUNING
newdoc smrsh/README README.smrsh
newdoc libmilter/README README.libmilter

newdoc cf/README README.cf
newdoc cf/cf/README README.install-cf
cp -pPR cf/* ${D}/usr/share/sendmail-cf
insinto /etc/mail
if use mbox
then
doins ${FILESDIR}/sendmail.mc
else
newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
fi
m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
> ${D}/etc/mail/sendmail.cf
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
> ${D}/etc/mail/submit.mc
cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
echo "# local-host-names - include all aliases for your machine here" \
> ${D}/etc/mail/local-host-names
cat <<- EOF > ${D}/etc/mail/trusted-users
# trusted-users - users that can send mail as others without a warning
# apache, mailman, majordomo, uucp are good candidates
EOF
cat <<- EOF > ${D}/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#

EOF
cat <<- EOF > ${D}/etc/conf.d/sendmail
# Config file for /etc/init.d/sendmail
# add start-up options here
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here

EOF
doinitd ${FILESDIR}/sendmail
keepdir /usr/adm/sm.bin

if use mailwrapper
then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
rm ${D}/usr/bin/mailq
rm ${D}/usr/bin/newaliases
mv ${D}/usr/share/man/man8/sendmail.8 \
${D}/usr/share/man/man8/sendmail-sendmail.8
mv ${D}/usr/share/man/man1/mailq.1 \
${D}/usr/share/man/man1/mailq-sendmail.1
mv ${D}/usr/share/man/man1/newaliases.1 \
${D}/usr/share/man/man1/newaliases-sendmail.1
mv ${D}/usr/share/man/man5/aliases.5 \
${D}/usr/share/man/man5/aliases-sendmail.5
dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
fi

}

pkg_setup() {
einfo "checking for smmsp group... create if missing."
enewgroup smmsp 209 || die "problem adding group smmsp"
einfo "checking for smmsp user... create if missing."
enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
|| die "problem adding user smmsp"
}

pkg_postinst() {
if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
then
elog
elog "Since you emerged sendmail without mailwrapper in USE,"
elog "you probably want to 'emerge -C mailwrapper' now."
elog
fi
}

sendmail-8.14.1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.1.ebuild,v 1.3 2007/09/10 09:09:48 lcars Exp $

inherit eutils

DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
HOMEPAGE="http://www.sendmail.org/"
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"

LICENSE="Sendmail"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6 nis sockets"

DEPEND="net-mail/mailbase
sys-devel/m4
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
ldap? ( net-nds/openldap )
>=sys-libs/db-3.2
!net-mail/vacation
"
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
PDEPEND="!mbox? ( mail-filter/procmail )"
PROVIDE="virtual/mta"

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

epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die

confCCOPTS="${CFLAGS}"
confMAPDEF="-DMAP_REGEX"
conf_sendmail_LIBS=""
use sasl && confLIBS="${confLIBS} -lsasl2" \
&& confENVDEF="${confENVDEF} -DSASL=2" \
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
&& confLIBS="${confLIBS} -lwrap"
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
&& confLIBS="${confLIBS} -lssl -lcrypto" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
&& confLIBS="${confLIBS} -lldap -llber"
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
use nis && confENVDEF="${confENVDEF} -DNIS"
use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP"
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \
-e "s/@@confENVDEF@@/${confENVDEF}/" \
-e "s/@@confLIBS@@/${confLIBS}/" \
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
}

src_compile() {
sh Build || die "compilation failed in main Build script"
pushd libmilter
sh Build || die "libmilter compilation failed"
popd
}

src_install () {
OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
dodir /usr/bin /usr/lib
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
keepdir /var/spool/{clientmqueue,mqueue}
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/${dir} \
|| die "install failed"
done
for dir in rmail mail.local
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
force-install -C ${OBJDIR}/${dir} \
|| die "install failed"
done

dodir /usr/include/libmilter
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/libmilter \
|| die "install failed"

fowners root:smmsp /usr/sbin/sendmail
fperms 2555 /usr/sbin/sendmail
fowners smmsp:smmsp /var/spool/clientmqueue
fperms 770 /var/spool/clientmqueue
fperms 700 /var/spool/mqueue
dosym /usr/sbin/makemap /usr/bin/makemap
dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
newdoc sendmail/README README.sendmail
newdoc sendmail/SECURITY SECURITY
newdoc sendmail/TUNING TUNING
newdoc smrsh/README README.smrsh
newdoc libmilter/README README.libmilter

newdoc cf/README README.cf
newdoc cf/cf/README README.install-cf
cp -pPR cf/* ${D}/usr/share/sendmail-cf
insinto /etc/mail
if use mbox
then
doins ${FILESDIR}/sendmail.mc
else
newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
fi
m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
> ${D}/etc/mail/sendmail.cf
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
> ${D}/etc/mail/submit.mc
cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
echo "# local-host-names - include all aliases for your machine here" \
> ${D}/etc/mail/local-host-names
cat <<- EOF > ${D}/etc/mail/trusted-users
# trusted-users - users that can send mail as others without a warning
# apache, mailman, majordomo, uucp are good candidates
EOF
cat <<- EOF > ${D}/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#

EOF
cat <<- EOF > ${D}/etc/conf.d/sendmail
# Config file for /etc/init.d/sendmail
# add start-up options here
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here

EOF
doinitd ${FILESDIR}/sendmail
keepdir /usr/adm/sm.bin

if use mailwrapper
then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
rm ${D}/usr/bin/mailq
rm ${D}/usr/bin/newaliases
mv ${D}/usr/share/man/man8/sendmail.8 \
${D}/usr/share/man/man8/sendmail-sendmail.8
mv ${D}/usr/share/man/man1/mailq.1 \
${D}/usr/share/man/man1/mailq-sendmail.1
mv ${D}/usr/share/man/man1/newaliases.1 \
${D}/usr/share/man/man1/newaliases-sendmail.1
mv ${D}/usr/share/man/man5/aliases.5 \
${D}/usr/share/man/man5/aliases-sendmail.5
dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
fi

}

pkg_setup() {
einfo "checking for smmsp group... create if missing."
enewgroup smmsp 209 || die "problem adding group smmsp"
einfo "checking for smmsp user... create if missing."
enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
|| die "problem adding user smmsp"
}

pkg_postinst() {
if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
then
elog
elog "Since you emerged sendmail without mailwrapper in USE,"
elog "you probably want to 'emerge -C mailwrapper' now."
elog
fi
}

sendmail-8.14.2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.2.ebuild,v 1.1 2007/11/02 20:34:08 lcars Exp $

inherit eutils

DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
HOMEPAGE="http://www.sendmail.org/"
SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"

LICENSE="Sendmail"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ssl ldap sasl tcpd mbox mailwrapper ipv6 nis sockets"

DEPEND="net-mail/mailbase
sys-devel/m4
sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
tcpd? ( sys-apps/tcp-wrappers )
ssl? ( dev-libs/openssl )
ldap? ( net-nds/openldap )
>=sys-libs/db-3.2
!net-mail/vacation
"
RDEPEND="${DEPEND}
>=net-mail/mailbase-0.00
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"
PDEPEND="!mbox? ( mail-filter/procmail )"
PROVIDE="virtual/mta"

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

epatch ${FILESDIR}/sendmail-delivered_hdr.patch || die

confCCOPTS="${CFLAGS}"
confMAPDEF="-DMAP_REGEX"
conf_sendmail_LIBS=""
use sasl && confLIBS="${confLIBS} -lsasl2" \
&& confENVDEF="${confENVDEF} -DSASL=2" \
&& confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
&& confLIBS="${confLIBS} -lwrap"
use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
&& confLIBS="${confLIBS} -lssl -lcrypto" \
&& conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
&& confLIBS="${confLIBS} -lldap -llber"
use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
use nis && confENVDEF="${confENVDEF} -DNIS"
use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP"
sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
-e "s/@@confMAPDEF@@/${confMAPDEF}/" \
-e "s/@@confENVDEF@@/${confENVDEF}/" \
-e "s/@@confLIBS@@/${confLIBS}/" \
-e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
${FILESDIR}/site.config.m4 > ${S}/devtools/Site/site.config.m4
}

src_compile() {
sh Build || die "compilation failed in main Build script"
pushd libmilter
sh Build || die "libmilter compilation failed"
popd
}

src_install () {
OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
dodir /usr/bin /usr/lib
dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
keepdir /var/spool/{clientmqueue,mqueue}
for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/${dir} \
|| die "install failed"
done
for dir in rmail mail.local
do
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
force-install -C ${OBJDIR}/${dir} \
|| die "install failed"
done

dodir /usr/include/libmilter
make DESTDIR=${D} MANROOT=/usr/share/man/man \
SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
MSPQOWN=root CFOWN=root CFGRP=root \
install -C ${OBJDIR}/libmilter \
|| die "install failed"

fowners root:smmsp /usr/sbin/sendmail
fperms 2555 /usr/sbin/sendmail
fowners smmsp:smmsp /var/spool/clientmqueue
fperms 770 /var/spool/clientmqueue
fperms 700 /var/spool/mqueue
dosym /usr/sbin/makemap /usr/bin/makemap
dodoc FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
newdoc sendmail/README README.sendmail
newdoc sendmail/SECURITY SECURITY
newdoc sendmail/TUNING TUNING
newdoc smrsh/README README.smrsh
newdoc libmilter/README README.libmilter

newdoc cf/README README.cf
newdoc cf/cf/README README.install-cf
cp -pPR cf/* ${D}/usr/share/sendmail-cf
insinto /etc/mail
if use mbox
then
doins ${FILESDIR}/sendmail.mc
else
newins ${FILESDIR}/sendmail-procmail.mc sendmail.mc
fi
m4 ${D}/usr/share/sendmail-cf/m4/cf.m4 ${D}/etc/mail/sendmail.mc \
> ${D}/etc/mail/sendmail.cf
echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
> ${D}/etc/mail/submit.mc
cat ${D}/usr/share/sendmail-cf/cf/submit.mc >> ${D}/etc/mail/submit.mc
echo "# local-host-names - include all aliases for your machine here" \
> ${D}/etc/mail/local-host-names
cat <<- EOF > ${D}/etc/mail/trusted-users
# trusted-users - users that can send mail as others without a warning
# apache, mailman, majordomo, uucp are good candidates
EOF
cat <<- EOF > ${D}/etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#

EOF
cat <<- EOF > ${D}/etc/conf.d/sendmail
# Config file for /etc/init.d/sendmail
# add start-up options here
SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
KILL_OPTS="" # add -9/-15/your favorite evil SIG level here

EOF
doinitd ${FILESDIR}/sendmail
keepdir /usr/adm/sm.bin

if use mailwrapper
then
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.sendmail
insinto /etc/mail
doins ${FILESDIR}/mailer.conf
rm ${D}/usr/bin/mailq
rm ${D}/usr/bin/newaliases
mv ${D}/usr/share/man/man8/sendmail.8 \
${D}/usr/share/man/man8/sendmail-sendmail.8
mv ${D}/usr/share/man/man1/mailq.1 \
${D}/usr/share/man/man1/mailq-sendmail.1
mv ${D}/usr/share/man/man1/newaliases.1 \
${D}/usr/share/man/man1/newaliases-sendmail.1
mv ${D}/usr/share/man/man5/aliases.5 \
${D}/usr/share/man/man5/aliases-sendmail.5
dosed 's/} sendmail/} sendmail.sendmail/' /etc/init.d/sendmail
dosed 's/sbin\/sendmail/sbin\/sendmail.sendmail/' /etc/init.d/sendmail
fi

}

pkg_setup() {
einfo "checking for smmsp group... create if missing."
enewgroup smmsp 209 || die "problem adding group smmsp"
einfo "checking for smmsp user... create if missing."
enewuser smmsp 209 -1 /var/spool/mqueue smmsp \
|| die "problem adding user smmsp"
}

pkg_postinst() {
if ! use mailwrapper && [[ -e /etc/mailer.conf ]]
then
elog
elog "Since you emerged sendmail without mailwrapper in USE,"
elog "you probably want to 'emerge -C mailwrapper' now."
elog
fi
}