ChangeLog

# ChangeLog for mail-mta/msmtp
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/ChangeLog,v 1.70 2008/03/22 14:51:06 tove Exp $

*msmtp-1.4.14 (22 Mar 2008)

22 Mar 2008; Torsten Veller -msmtp-1.4.0.ebuild,
-msmtp-1.4.1.ebuild, -msmtp-1.4.2.ebuild, -msmtp-1.4.4.ebuild,
msmtp-1.4.5.ebuild, msmtp-1.4.7.ebuild, msmtp-1.4.9.ebuild,
-msmtp-1.4.9-r1.ebuild, +msmtp-1.4.14.ebuild:
Version bump (#187065) and cleaning.

14 Jan 2008; Fabian Groffen msmtp-1.4.5.ebuild,
msmtp-1.4.7.ebuild, msmtp-1.4.9.ebuild:
Dropped ppc-macos keyword, see you in prefix

19 Jan 2007; Alexander H. Færøy msmtp-1.4.7.ebuild:
Stable on IA64; bug #151003

17 Jan 2007; nixnut ChangeLog:
Stable on ppc wrt bug 151003

02 Jan 2007; Andrej Kacian msmtp-1.4.7.ebuild:
Stable on x86, bug #151003.

20 Dec 2006; Brent Baude ChangeLog:
Marking msmtp-1.4.7 ppc64 stable for bug#151003

20 Dec 2006; Gustavo Zacarias msmtp-1.4.7.ebuild:
Stable on sparc wrt #151003

*msmtp-1.4.9-r1 (20 Dec 2006)
*msmtp-1.4.9 (20 Dec 2006)

20 Dec 2006; Tom Martin msmtp-1.4.7.ebuild,
-msmtp-1.4.7-r1.ebuild, +msmtp-1.4.9.ebuild, +msmtp-1.4.9-r1.ebuild:
Version bump, remove the old mailer.eclass version. Stabilise 1.4.7 on amd64.

*msmtp-1.4.7-r1 (08 Sep 2006)
*msmtp-1.4.7 (08 Sep 2006)

08 Sep 2006; Tom Martin msmtp-1.4.5.ebuild,
-msmtp-1.4.5-r1.ebuild, +msmtp-1.4.7.ebuild, +msmtp-1.4.7-r1.ebuild:
Version bump, remove the old mailer.eclass version. Stabilise 1.4.5 on amd64.

06 Jul 2006; Emanuele Giaquinta msmtp-1.4.5.ebuild:
Add ~ppc-macos keyword.

27 Apr 2006; Marien Zwart files/digest-msmtp-1.4.0,
files/digest-msmtp-1.4.1, files/digest-msmtp-1.4.2,
files/digest-msmtp-1.4.4, Manifest:
Fixing SHA256 digest, pass four

24 Apr 2006; Emanuele Giaquinta msmtp-1.4.5.ebuild:
Stable on ppc.

*msmtp-1.4.5-r1 (28 Dec 2005)
*msmtp-1.4.5 (28 Dec 2005)

28 Dec 2005; Tom Martin -msmtp-1.4.4-r1.ebuild,
+msmtp-1.4.5.ebuild, +msmtp-1.4.5-r1.ebuild:
Version bump, and purge old mailer.eclass-compatible version.

02 Oct 2005; Aron Griffis msmtp-1.4.2.ebuild:
Mark 1.4.2 stable on ia64

05 Sep 2005; Markus Rothe msmtp-1.4.2.ebuild:
Stable on ppc64

30 Aug 2005; Tom Martin msmtp-1.4.2.ebuild:
Stable amd64, sparc, ia64.

*msmtp-1.4.4-r1 (21 Aug 2005)
*msmtp-1.4.4 (21 Aug 2005)

21 Aug 2005; Tom Martin -msmtp-1.4.0-r1.ebuild,
-msmtp-1.4.1-r1.ebuild, -msmtp-1.4.2-r1.ebuild, +msmtp-1.4.4.ebuild,
+msmtp-1.4.4-r1.ebuild:
Version bump to 1.4.4. Same deal with the mailer.eclass -r1. Purged older
versions with mailer.eclass support: mailer-config remains package.masked.

*msmtp-1.4.2-r1 (08 Jul 2005)
*msmtp-1.4.2 (08 Jul 2005)

08 Jul 2005; Tom Martin +msmtp-1.4.2.ebuild,
+msmtp-1.4.2-r1.ebuild:
Version bump, adds NLS support. Two variants, as ever, one for old-style
mailwrapper and -r1 for new mailer.eclass support.

05 Jul 2005; Tom Martin msmtp-1.4.1.ebuild,
msmtp-1.4.1-r1.ebuild:
Marked ~ia64.

04 Jul 2005; Andrej Kacian msmtp-1.4.1-r1.ebuild:
Better mailer-config compatibility.

*msmtp-1.4.1-r1 (27 May 2005)
*msmtp-1.4.1 (27 May 2005)

27 May 2005; Tom Martin +msmtp-1.4.1.ebuild,
+msmtp-1.4.1-r1.ebuild:
Version bump. The -r1 is committed at the same time -- it's the
package.masked variant with mailer.eclass support.

08 May 2005; Tom Martin -msmtp-1.3.2-r1.ebuild:
One more version purge.

02 May 2005; Michael Hanselmann msmtp-1.4.0.ebuild:
Stable on ppc.

02 May 2005; Elfyn McBratney msmtp-1.4.0.ebuild:
Stable on x86.

01 May 2005; Tom Martin -msmtp-1.2.4.ebuild,
-msmtp-1.3.1.ebuild, -msmtp-1.3.2.ebuild, -msmtp-1.3.4.ebuild,
-msmtp-1.3.5.ebuild, -msmtp-1.3.6.ebuild:
Huge version purge.

01 May 2005; Markus Rothe msmtp-1.4.0.ebuild:
Stable on ppc64

28 Apr 2005; Tom Martin msmtp-1.4.0.ebuild,
msmtp-1.4.0-r1.ebuild:
Stable on amd64, sparc. Also, cosmetic changes to -r1 to fit more
snugly with the mailer.eclass.

*msmtp-1.4.0-r1 (25 Apr 2005)

25 Apr 2005; Tom Martin files/mailer.conf,
msmtp-1.4.0.ebuild, +msmtp-1.4.0-r1.ebuild:
Revision bump for mailer-config support (package.masked as of this writing).
Also, tidy up 1.4.0 with several cosmetic and stylistic changes.

17 Apr 2005; Tom Martin msmtp-1.4.0.ebuild:
Adding missing IUSE.

07 Apr 2005; Bryan Østergaard msmtp-1.4.0.ebuild:
~alpha keyword.

07 Apr 2005; Markus Rothe msmtp-1.4.0.ebuild:
Added ~ppc64 to KEYWORDS; bug #88069

*msmtp-1.4.0 (07 Apr 2005)

07 Apr 2005; Tom Martin msmtp-1.3.6.ebuild,
+msmtp-1.4.0.ebuild:
DEPEND on GnuTLS 1.2.0 and above instead of 1.1.23 and above. Fix use_enable
for GSASL.

09 Mar 2005; Tom Martin msmtp-1.3.6.ebuild:
Initial ~sparc.

22 Feb 2005; Aaron Kulbe msmtp-1.3.2-r1.ebuild:
Stable on PPC

07 Feb 2005; Andrej Kacian msmtp-1.3.2-r1.ebuild:
Stable on x86.

*msmtp-1.3.6 (06 Feb 2005)

06 Feb 2005; Tom Martin +msmtp-1.3.6.ebuild:
Version bump to 1.3.6.

*msmtp-1.3.5

06 Feb 2005; Tom Martin +msmtp-1.3.5.ebuild:
Version bump to 1.3.5.

*msmtp-1.3.4 (22 Jan 2005)

22 Jan 2005; Tom Martin -msmtp-1.2.3.ebuild,
msmtp-1.3.2-r1.ebuild, +msmtp-1.3.4.ebuild:
Version bump, stabilise 1.3.2-r1 on amd64, purge 1.2.3.

22 Jan 2005; Lars Weiler msmtp-1.2.4.ebuild:
Stable on ppc.

*msmtp-1.3.2-r1 (14 Jan 2005)

14 Jan 2005; Tom Martin +msmtp-1.3.2-r1.ebuild:
Added mailwrapper and virtual/mta functionality, resolving bug 77398.

04 Jan 2005; Andrej Kacian msmtp-1.2.4.ebuild:
Stable on x86.

03 Jan 2005; Tom Martin msmtp-1.2.4.ebuild:
Stable on amd64.

03 Jan 2005; Markus Rothe msmtp-1.2.4.ebuild:
Stable on ppc64

*msmtp-1.3.2 (29 Dec 2004)

29 Dec 2004; Tom Martin +msmtp-1.3.2.ebuild:
Version bump.

*msmtp-1.3.1 (25 Dec 2004)

25 Dec 2004; Tom Martin +msmtp-1.3.1.ebuild:
Version bump.

23 Dec 2004; Markus Rothe msmtp-1.2.4.ebuild:
Added ~ppc64 to KEYWORDS; bug #74100

15 Dec 2004; Andrej Kacian msmtp-1.2.3.ebuild:
Stable on x86.

14 Dec 2004; Tom Martin msmtp-1.2.4.ebuild:
Stabilise on amd64, tidy use invocation slightly (cosmetic)

03 Dec 2004; Tom Martin msmtp-1.2.3.ebuild,
msmtp-1.2.4.ebuild:
einstall -> make DESTDIR=${D} install

24 Nov 2004; Tom Martin -msmtp-1.2.1.ebuild,
-msmtp-1.2.2.ebuild, msmtp-1.2.3.ebuild:
Marked 1.2.3 stable on amd64, purged old versions.

*msmtp-1.2.4 (11 Oct 2004)

11 Oct 2004; Tom Martin -msmtp-1.1.2-r1.ebuild,
-msmtp-1.1.3.ebuild, msmtp-1.2.1.ebuild, +msmtp-1.2.4.ebuild:
Version bump -> 1.2.4. Removed outdated 1.1.x series ebuilds. 1.2.1 stable
on amd64.

*msmtp-1.2.3 (07 Sep 2004)

07 Sep 2004; Andrej Kacian +msmtp-1.2.3.ebuild:
Version bump, fixes bug #62968. Reported by Martin Lambers .
Added dev-util/pkgconfig to DEPEND.

*msmtp-1.2.2 (01 Sep 2004)

01 Sep 2004; Andrej Kacian +msmtp-1.2.2.ebuild:
Version bump. Closes #60609, reported by Daniel Webert
. Also specified minimal version number for
dev-libs/openssl dependency to 0.9.6 (according to upstream doc) for
msmtp-1.2.2 and -1.2.1.

10 Aug 2004; Tom Martin msmtp-1.2.1.ebuild:
Add virtual/libc DEPEND.

10 Aug 2004; Tom Martin -msmtp-1.0.0.ebuild,
-msmtp-1.1.2.ebuild:
Remove aging ebuilds.

10 Aug 2004; Tom Martin msmtp-1.2.1.ebuild:
I didn't really improve it at all, sorry Mr_Bones_.

08 Aug 2004; Tom Martin msmtp-1.2.1.ebuild:
Improve USE flag handling.

03 Aug 2004; Michael Sterrett msmtp-1.2.1.ebuild:
fix use invocation

*msmtp-1.2.1 (01 Aug 2004)

01 Aug 2004; Tom Martin +msmtp-1.2.1.ebuild:
Version bump, thanks to Martin Lambers for reporting in
bug 57391.

*msmtp-1.1.3 (10 Jul 2004)

10 Jul 2004; Tom Martin +msmtp-1.1.3.ebuild:
Version bump, thanks to Daniel Webert for reporting in
bug 56602.

*msmtp-1.1.2-r1 (08 Jul 2004)

08 Jul 2004; Tom Martin +msmtp-1.1.2-r1.ebuild:
Revision bumped for gsasl support, through virtual/gsasl. Temporarily removed
~ppc and ~x86 till someone can test this.

*msmtp-1.1.2 (01 Jul 2004)

01 Jul 2004; Grant Goodyear msmtp-1.0.0.ebuild,
+msmtp-1.1.2.ebuild:
Version bump (closes bug # 53054)

22 Jun 2004; Danny van Dyk msmtp-1.0.0.ebuild:
Marked ~amd64.

03 Jun 2004; David Holm msmtp-1.0.0.ebuild:
Added to ~ppc.

*msmtp-1.0.0 (31 May 2004)

31 May 2004; Grant Goodyear +msmtp-1.0.0.ebuild:
New package. Thanks to Martin Lambers (bug # 33423) and
Tom Martin (Bug # 49400)!

Manifest

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

AUX mailer.conf 279 RMD160 1814eab17a6810a29a2b3c30ec3a69741fe40902 SHA1 90864ba7b1a44327abb47d54aadd4448b33e52d5 SHA256 f7be36c6d4957cdafcf5162dd5e766fbe269eed25135bc61af02883896b4c25f
DIST msmtp-1.4.14.tar.bz2 721839 RMD160 c9fbdcead39a213bb21b81bf14414f1c62b8c679 SHA1 f42403348a3c7dd3ca802714915aab8f90142381 SHA256 e805994f72ce0d8b54d86f65b3cca034f9a0fd21bec9c12cbf26c2ad20309345
DIST msmtp-1.4.5.tar.bz2 489336 RMD160 21428a4d7c93da8383fe8f752b224dd2c0aff014 SHA1 2734c4b0ab50d221c6c8248cdafc4af6ee0f6cf5 SHA256 b026edeaef477f839e9672a7a6b36fbd4a1199aae06617f5fea22ad85cdbf342
DIST msmtp-1.4.7.tar.bz2 527853 RMD160 7affd5a339a865638437e093d4e3aba5b6addbcf SHA1 0e907a2269babe5eeb04e5aa8b766b13c8ab714e SHA256 e795dc62a98c9e83ecaea3d1dde074156228cf55eff42f8dbfd835cabad28d89
DIST msmtp-1.4.9.tar.bz2 534510 RMD160 3113edd2efb9839b1ca7ed8a6ac5760b5a9523cb SHA1 bff79c69e667df55fadb80d49cd4f263c410a4ae SHA256 ef7aa594fa4b5a2093be2bde4b4d2d288121906173435464478abdc82b39af3d
EBUILD msmtp-1.4.14.ebuild 1895 RMD160 fadbb481954862ea9aba8eb3c33da4bd9abb71d4 SHA1 9a2bb208bd2b3ccd21d9fa7326016d78b42731b7 SHA256 0f05afd9423e01bde5a2708fbc52579704989f60f9ae118192ced2c2020af287
EBUILD msmtp-1.4.5.ebuild 1642 RMD160 6f763f7213b5fb549c65305efedf890f845fbbe2 SHA1 c792710151375d570ed460307851bf5d374acbba SHA256 d19990283c3b81e245a04c5ba3a34eb18a9d8069889cb31a20cfd0f521a37b1f
EBUILD msmtp-1.4.7.ebuild 1639 RMD160 c6670c97e26f1270b64333ec79b75951d4f288a6 SHA1 3da6982c30fa569b7f3ac69b38de01245b5e061d SHA256 37fca6ea96932de4fc22e3b7e1a9bdb85b335d9917677ad4bd40f82737e84943
EBUILD msmtp-1.4.9.ebuild 1644 RMD160 d4b37da01e528650a6a56d10f7eed483a817777e SHA1 5e183a95d72a9caa3f38d6883030690b9ac0756d SHA256 1e0e306171f82355a571c0443abfe771c16fa73bd9a39fde30bc709ee71603a2
MISC ChangeLog 9823 RMD160 0fca69d364679c1ae78223bbe28aa0ec8e9f7d9b SHA1 644b0b3f39506f44de0d93dea19d7aa474c3bfd0 SHA256 86c42c66884d6f9cbc7b989dc6fdb56121b6ac40f0c61521ca5aee7ffd9995d9
MISC metadata.xml 161 RMD160 273e570423fa3cd9d3f15f7967a43307c8ee9661 SHA1 a1fecd2f7b169d621b88c6ccab9d758209fc8f19 SHA256 4ebf9a8f60040bfb95f13790c1d146a49c69f791f9c421e02a5d96fd6fcb2b32
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFH5R0gV3J2n04EauwRAnxiAJ9wFecMR8NDSG1CQ+fOxHCVOy74lgCdFF9r
v3L1o0bRHafwr6yjrBgJg7g=
=2YwA
-----END PGP SIGNATURE-----

files

metadata.xml




net-mail

msmtp-1.4.14.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/msmtp-1.4.14.ebuild,v 1.1 2008/03/22 14:51:06 tove Exp $

DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
HOMEPAGE="http://msmtp.sourceforge.net/"
SRC_URI="mirror://sourceforge/msmtp/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="doc gnutls idn mailwrapper nls sasl ssl"

DEPEND="idn? ( net-dns/libidn )
nls? ( virtual/libintl )
gnutls? ( >=net-libs/gnutls-1.2.0 )
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
sasl? ( >=virtual/gsasl-0.2.4 )"

RDEPEND="${DEPEND}
!mailwrapper? ( !virtual/mta )
mailwrapper? ( >=net-mail/mailwrapper-0.2 )"

DEPEND="${DEPEND}
nls? ( sys-devel/gettext )
dev-util/pkgconfig"

PROVIDE="virtual/mta"

src_compile () {
local myconf

if use gnutls ; then
myconf="--with-ssl=gnutls"
elif use ssl ; then
myconf="--with-ssl=openssl"
else
myconf="--with-ssl=no"
fi

econf \
$(use_with idn libidn) \
$(use_with sasl libgsasl) \
$(use_enable nls) \
${myconf} \
|| die "configure failed"

emake || die "make failed"
}

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

if use mailwrapper ; then
insinto /etc/mail
doins "${FILESDIR}"/mailer.conf
else
dodir /usr/sbin
dosym /usr/bin/msmtp /usr/sbin/sendmail || die "dosym failed"
fi

dodoc AUTHORS ChangeLog NEWS README THANKS \
doc/{Mutt+msmtp.txt,msmtprc*} || die "dodoc failed"

if use doc ; then
dohtml doc/msmtp.html || die "dohtml failed"
dodoc doc/msmtp.pdf
fi

local msmtpqueuedir=/usr/share/${PN}/msmtpqueue
insinto ${msmtpqueuedir}
exeinto ${msmtpqueuedir}
doins scripts/msmtpqueue/{ChangeLog,README} || die "dodoc scripts/msmtpqueue failed"
doexe scripts/msmtpqueue/*.sh || die "doexe failed"
}

msmtp-1.4.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/msmtp/msmtp-1.4.5.ebuild,v 1.6 2008/03/22 14:51:06 tove Exp $

DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
HOMEPAGE="http://msmtp.sourceforge.net/"
SRC_URI="mirror://sourceforge/msmtp/${P}.tar.bz2"
LICENSE="GPL-2"
IUSE="ssl gnutls sasl mailwrapper doc nls"
SLOT="0"
KEYWORDS="~alpha amd64 ~ia64 ppc ~ppc64 ~sparc ~x86"
DEPEND="virtual/libc
dev-util/pkgconfig
ssl? (
gnutls? ( >=net-libs/gnutls-1.2.0 )
!gnutls? ( >=dev-libs/openssl-0.9.6 )
)
sasl? ( >=virtual/gsasl-0.2.4 )
nls? ( sys-devel/gettext )"
RDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 )
!mailwrapper? ( !virtual/mta )"
PROVIDE="virtual/mta"

src_compile () {
local myconf

if use ssl && use gnutls ; then
myconf="${myconf} --enable-ssl --with-ssl=gnutls"
elif use ssl && ! use gnutls ; then
myconf="${myconf} --enable-ssl --with-ssl=openssl"
else
myconf="${myconf} --disable-ssl"
fi

econf \
$(use_enable sasl gsasl) \
$(use_enable nls) \
${myconf} \
|| die "configure failed"

emake || die "make failed"
}

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

if use mailwrapper; then
insinto /etc/mail
doins "${FILESDIR}"/mailer.conf
else
dodir /usr/sbin /usr/lib
dosym /usr/bin/msmtp /usr/sbin/sendmail || die "dosym failed"
fi

dodoc AUTHORS ChangeLog NEWS README* THANKS \
doc/{Mutt+msmtp.txt,msmtprc*} || die "dodoc failed"

if use doc ; then
dohtml doc/msmtp.html || die "dohtml failed"
dodoc doc/msmtp.pdf
fi
}

msmtp-1.4.7.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/msmtp-1.4.7.ebuild,v 1.8 2008/03/22 14:51:06 tove Exp $

DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
HOMEPAGE="http://msmtp.sourceforge.net/"
SRC_URI="mirror://sourceforge/msmtp/${P}.tar.bz2"
LICENSE="GPL-2"
IUSE="ssl gnutls sasl mailwrapper doc nls"
SLOT="0"
KEYWORDS="~alpha amd64 ia64 ~ppc ppc64 sparc x86"
DEPEND="virtual/libc
dev-util/pkgconfig
ssl? (
gnutls? ( >=net-libs/gnutls-1.2.0 )
!gnutls? ( >=dev-libs/openssl-0.9.6 )
)
sasl? ( >=virtual/gsasl-0.2.4 )
nls? ( sys-devel/gettext )"
RDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 )
!mailwrapper? ( !virtual/mta )"
PROVIDE="virtual/mta"

src_compile () {
local myconf

if use ssl && use gnutls ; then
myconf="${myconf} --enable-ssl --with-ssl=gnutls"
elif use ssl && ! use gnutls ; then
myconf="${myconf} --enable-ssl --with-ssl=openssl"
else
myconf="${myconf} --disable-ssl"
fi

econf \
$(use_enable sasl gsasl) \
$(use_enable nls) \
${myconf} \
|| die "configure failed"

emake || die "make failed"
}

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

if use mailwrapper; then
insinto /etc/mail
doins "${FILESDIR}"/mailer.conf
else
dodir /usr/sbin /usr/lib
dosym /usr/bin/msmtp /usr/sbin/sendmail || die "dosym failed"
fi

dodoc AUTHORS ChangeLog NEWS README* THANKS \
doc/{Mutt+msmtp.txt,msmtprc*} || die "dodoc failed"

if use doc ; then
dohtml doc/msmtp.html || die "dohtml failed"
dodoc doc/msmtp.pdf
fi
}

msmtp-1.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/msmtp/msmtp-1.4.9.ebuild,v 1.3 2008/03/22 14:51:06 tove Exp $

DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
HOMEPAGE="http://msmtp.sourceforge.net/"
SRC_URI="mirror://sourceforge/msmtp/${P}.tar.bz2"
LICENSE="GPL-2"
IUSE="ssl gnutls sasl mailwrapper doc nls"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
DEPEND="virtual/libc
dev-util/pkgconfig
ssl? (
gnutls? ( >=net-libs/gnutls-1.2.0 )
!gnutls? ( >=dev-libs/openssl-0.9.6 )
)
sasl? ( >=virtual/gsasl-0.2.4 )
nls? ( sys-devel/gettext )"
RDEPEND="mailwrapper? ( >=net-mail/mailwrapper-0.2 )
!mailwrapper? ( !virtual/mta )"
PROVIDE="virtual/mta"

src_compile () {
local myconf

if use ssl && use gnutls ; then
myconf="${myconf} --enable-ssl --with-ssl=gnutls"
elif use ssl && ! use gnutls ; then
myconf="${myconf} --enable-ssl --with-ssl=openssl"
else
myconf="${myconf} --disable-ssl"
fi

econf \
$(use_enable sasl gsasl) \
$(use_enable nls) \
${myconf} \
|| die "configure failed"

emake || die "make failed"
}

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

if use mailwrapper; then
insinto /etc/mail
doins "${FILESDIR}"/mailer.conf
else
dodir /usr/sbin /usr/lib
dosym /usr/bin/msmtp /usr/sbin/sendmail || die "dosym failed"
fi

dodoc AUTHORS ChangeLog NEWS README* THANKS \
doc/{Mutt+msmtp.txt,msmtprc*} || die "dodoc failed"

if use doc ; then
dohtml doc/msmtp.html || die "dohtml failed"
dodoc doc/msmtp.pdf
fi
}