|
Lines 1-10
Link Here
|
| 1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.50-r1.ebuild,v 1.6 2005/07/02 19:06:09 kloeri Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
inherit eutils |
5 |
inherit eutils mailer |
| 6 |
|
6 |
|
| 7 |
IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl mailwrapper lmtp ipv6 sasl dnsdb perl mbox X exiscan nis syslog" |
7 |
IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbox X exiscan nis syslog" |
| 8 |
|
8 |
|
| 9 |
DESCRIPTION="A highly configurable, drop-in replacement for sendmail" |
9 |
DESCRIPTION="A highly configurable, drop-in replacement for sendmail" |
| 10 |
SRC_URI="ftp://ftp.exim.org/pub/exim/exim4/${P}.tar.bz2" |
10 |
SRC_URI="ftp://ftp.exim.org/pub/exim/exim4/${P}.tar.bz2" |
|
Lines 12-18
Link Here
|
| 12 |
|
12 |
|
| 13 |
SLOT="0" |
13 |
SLOT="0" |
| 14 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
| 15 |
KEYWORDS="~alpha amd64 ~hppa ~ppc sparc x86" |
15 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" |
| 16 |
|
16 |
|
| 17 |
PROVIDE="virtual/mta" |
17 |
PROVIDE="virtual/mta" |
| 18 |
DEPEND=">=sys-apps/sed-4.0.5 |
18 |
DEPEND=">=sys-apps/sed-4.0.5 |
|
Lines 28-35
Link Here
|
| 28 |
X? ( virtual/x11 )" |
28 |
X? ( virtual/x11 )" |
| 29 |
# added X check for #57206 |
29 |
# added X check for #57206 |
| 30 |
RDEPEND="${DEPEND} |
30 |
RDEPEND="${DEPEND} |
| 31 |
mailwrapper? ( >=net-mail/mailwrapper-0.2 ) |
|
|
| 32 |
!mailwrapper? ( !virtual/mta ) |
| 33 |
>=net-mail/mailbase-0.00-r5" |
31 |
>=net-mail/mailbase-0.00-r5" |
| 34 |
|
32 |
|
| 35 |
src_unpack() { |
33 |
src_unpack() { |
|
Lines 193-215
Link Here
|
| 193 |
fi |
191 |
fi |
| 194 |
fperms 4755 /usr/sbin/exim |
192 |
fperms 4755 /usr/sbin/exim |
| 195 |
|
193 |
|
| 196 |
dodir /usr/bin /usr/sbin /usr/lib |
194 |
dodir /usr/bin /usr/sbin |
| 197 |
dosym ../sbin/exim /usr/bin/mailq |
|
|
| 198 |
dosym ../sbin/exim /usr/bin/newaliases |
| 199 |
einfo "The Exim ebuild will no longer touch /usr/bin/mail, so as not to interfere with mailx/nail." |
195 |
einfo "The Exim ebuild will no longer touch /usr/bin/mail, so as not to interfere with mailx/nail." |
| 200 |
dosym exim /usr/sbin/rsmtp |
196 |
dosym exim /usr/sbin/rsmtp |
| 201 |
dosym exim /usr/sbin/rmail |
|
|
| 202 |
if \[ ! -e /usr/lib/sendmail \]; |
| 203 |
then |
| 204 |
dosym /usr/sbin/sendmail /usr/lib/sendmail |
| 205 |
fi |
| 206 |
|
197 |
|
| 207 |
if use mailwrapper |
198 |
if use mailwrapper |
| 208 |
then |
199 |
then |
| 209 |
insinto /etc/mail |
200 |
mailer_install_conf |
| 210 |
doins ${FILESDIR}/mailer.conf |
|
|
| 211 |
else |
201 |
else |
| 212 |
dosym exim /usr/sbin/sendmail |
202 |
dosym exim /usr/sbin/sendmail |
|
|
203 |
dosym /usr/sbin/sendmail /usr/lib/sendmail |
| 204 |
dosym /usr/sbin/exim /usr/bin/mailq |
| 205 |
dosym /usr/sbin/exim /usr/bin/newaliases |
| 206 |
dosym /usr/sbin/exim /usr/bin/rmail |
| 213 |
fi |
207 |
fi |
| 214 |
|
208 |
|
| 215 |
exeinto /usr/sbin |
209 |
exeinto /usr/sbin |
|
Lines 256-266
Link Here
|
| 256 |
einfo "/etc/exim/auth_conf.sub contains the configuration sub for using smtp auth." |
250 |
einfo "/etc/exim/auth_conf.sub contains the configuration sub for using smtp auth." |
| 257 |
einfo "Please create /etc/exim/exim.conf from /etc/exim/exim.conf.dist." |
251 |
einfo "Please create /etc/exim/exim.conf from /etc/exim/exim.conf.dist." |
| 258 |
|
252 |
|
| 259 |
if ! use mailwrapper && [[ -e /etc/mailer.conf ]] |
253 |
mailer_pkg_postinst |
| 260 |
then |
|
|
| 261 |
einfo |
| 262 |
einfo "Since you emerged $PN without mailwrapper in USE," |
| 263 |
einfo "you probably want to 'emerge -C mailwrapper' now." |
| 264 |
einfo |
| 265 |
fi |
| 266 |
} |
254 |
} |