blob: 6aa926c5ee71381719d4ddd7f90c8d64a393db9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-mta/esmtp/esmtp-0.5.0-r1.ebuild,v 1.12 2009/09/23 18:05:37 patrick Exp $
DESCRIPTION="esmtp is a user configurable relay-only Mail Transfer Agent (MTA) with a sendmail compatible syntax"
HOMEPAGE="http://esmtp.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 ppc ~sparc x86"
IUSE="mailwrapper"
DEPEND="net-libs/libesmtp
dev-libs/openssl"
RDEPEND="${DEPEND}
mailwrapper? ( >=net-mail/mailwrapper-0.2 )
!mailwrapper? ( !virtual/mta )"
PROVIDE="virtual/mta"
src_install() {
make DESTDIR=${D} install || die "einstall failed"
dodoc AUTHORS COPYING ChangeLog NEWS README TODO
if use mailwrapper
then
# We install sendmail binary to be compatible with mailwrapper
mv ${D}/usr/sbin/sendmail ${D}/usr/sbin/sendmail.esmtp
dosym /usr/sbin/sendmail /usr/lib/sendmail
rm ${D}/usr/bin/mailq ${D}/usr/bin/newaliases
fi
}
|