blob: 45a06325f7379187a9f9b5b1abde5ed242990d41 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/ssmtp/ssmtp-2.48.ebuild,v 1.5 2003/02/28 18:19:04 avenj Exp $
DESCRIPTION="Extremely simple MTA to get mail off the system to a
Mailhub"
SRC_URI="ftp://metalab.unc.edu/pub/Linux/system/mail/mta/${P}.tar.gz"
HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/system/mail/mta/"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc ~alpha ~hppa arm"
LICENSE="GPL-2"
IUSE=""
DEPEND="virtual/glibc"
RDEPEND="!virtual/mta net-mail/mailbase"
PROVIDE="virtual/mta"
S=${WORKDIR}/${P}
src_compile() {
make clean || die
make ${MAKEOPTS} || die
}
src_install() {
dodir /usr/bin /usr/sbin /usr/lib
dosbin ssmtp
chmod 755 ${D}/usr/sbin/ssmtp
dosym /usr/sbin/ssmtp /usr/bin/mailq
dosym /usr/sbin/ssmtp /usr/bin/newaliases
# Removed symlink due to conflict with mailx
# See bug #7448
#dosym /usr/sbin/ssmtp /usr/bin/mail
dosym /usr/sbin/ssmtp /usr/sbin/sendmail
dosym /usr/sbin/ssmtp /usr/lib/sendmail
doman ssmtp.8
dosym /usr/share/man/man8/ssmtp.8 /usr/share/man/man8/sendmail.8
dodoc INSTALL README TLS
newdoc ssmtp-2.48.lsm DESC
insinto /etc/ssmtp
doins ssmtp.conf revaliases
}
pkg_config() {
local conffile="/etc/ssmtp/ssmtp.conf"
local hostname=`hostname -f`
local domainname=`hostname -d`
mv ${conffile} ${conffile}.orig
sed -e "s:rewriteDomain=:rewriteDomain=${domainname}:g" \
-e "s:_HOSTNAME_:${hostname}:" \
-e "s:^mailhub=mail:mailhub=mail.${domainname}:g" \
${conffile}.orig > ${conffile}
}
|