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"
|
|
26 }
|
|
27
|
|
28 src_compile() {
|
|
29 econf \
|
|
30 $(use_with kerberos krb5) \
|
|
31 $(use_with ssl openssl) \
|
|
32 $(use_with tcpd libwrap) \
|
|
33 || die "econf failed"
|
|
34
|
|
35 emake || die "emake failed"
|
|
36 }
|
|
37
|
|
38 src_install() {
|
|
39 dosbin bin/imapproxyd bin/pimpstat || die "dosbin failed"
|
|
40
|
|
41 insinto /etc
|
|
42 doins scripts/imapproxy.conf || die "doins failed"
|
|
43
|
|
44 newinitd "${FILESDIR}"/imapproxy.rc6 imapproxy || die "initd failed"
|
|
45
|
|
46 dodoc ChangeLog README README.known_issues README.ssl
|
|
47 }
|