blob: f14d38cfd603294d69b07a3cc293c9093822ce7e (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/email/email-2.3.3.ebuild,v 1.3 2005/04/27 13:27:18 ticho Exp $
DESCRIPTION="Advanced CLI tool for sending email."
HOMEPAGE="http://email.cleancode.org"
SRC_URI="http://email.cleancode.org/download/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~amd64"
IUSE=""
DEPEND="virtual/libc"
src_compile() {
local myconf=""
if [ -f /etc/rc.conf ]; then
. /etc/rc.conf
if [ x$CLOCK = "xUTC" ]; then
einfo "Using UTC timestamps (from /etc/rc.conf)"
myconf="${myconf} --with-utc"
fi
fi
sed -i -e "s:/doc/email-\${version}:/share/doc:" configure
sed -i -e "s:DIVIDER = '---':DIVIDER = '-- ':" email.conf
econf ${myconf} || die "econf failed"
emake || die "emake failed"
}
src_install() {
doman email.1
dodoc INSTALL quoted-printable.rfc RFC821 TODO
make DESTDIR=${D} install || die "install failed"
}
pkg_preinst() {
rm ${D}/usr/share/doc/${P}/email.1
}
pkg_postinst() {
echo
einfo "Do not forget to edit /etc/email/email.conf file before using email."
echo
}
|