0
|
1 # Copyright 1999-2007 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header: /var/cvsroot/gentoo-x86/net-mail/up-imapproxy/up-imapproxy-1.2.5_rc2.ebuild,v 1.3 2007/02/06 13:08:54 blubb Exp $
|
|
4
|
|
5 inherit eutils
|
|
6
|
|
7 DESCRIPTION="Proxy IMAP transactions between an IMAP client and an IMAP server."
|
|
8 HOMEPAGE="http://www.imapproxy.org/"
|
|
9 SRC_URI="http://www.imapproxy.org/downloads/${P/_/}.tar.gz"
|
|
10
|
|
11 LICENSE="GPL-2"
|
|
12 SLOT="0"
|
|
13 KEYWORDS="amd64 ~ppc x86"
|
|
14 IUSE="kerberos ssl tcpd"
|
|
15
|
|
16 DEPEND=">=sys-libs/ncurses-5.1
|
|
17 kerberos? ( virtual/krb5 )
|
|
18 ssl? ( >=dev-libs/openssl-0.9.6 )
|
|
19 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
|
|
20
|
|
21 S="${WORKDIR}/${P/_/}"
|
|
22 src_unpack() {
|
|
23 unpack ${A} && cd "${S}"
|
|
24 sed -i -e 's:in\.imapproxyd:imapproxyd:g' \
|
|
25 README Makefile.in include/imapproxy.h || die "sed failed"
|
125
|
26 epatch "${FILESDIR}/${PN}-${PV}-overflow.patch"
|
0
|
27 }
|
|
28
|
|
29 src_compile() {
|
|
30 econf \
|
|
31 $(use_with kerberos krb5) \
|
|
32 $(use_with ssl openssl) \
|
|
33 $(use_with tcpd libwrap) \
|
|
34 || die "econf failed"
|
|
35
|
|
36 emake || die "emake failed"
|
|
37 }
|
|
38
|
|
39 src_install() {
|
|
40 dosbin bin/imapproxyd bin/pimpstat || die "dosbin failed"
|
|
41
|
|
42 insinto /etc
|
|
43 doins scripts/imapproxy.conf || die "doins failed"
|
|
44
|
|
45 newinitd "${FILESDIR}"/imapproxy.rc6 imapproxy || die "initd failed"
|
|
46
|
|
47 dodoc ChangeLog README README.known_issues README.ssl
|
|
48 }
|