annotate net-mail/up-imapproxy/up-imapproxy-1.2.6.ebuild @ 125:23ee2f4aac03

add fix for crashes with glibc 2.9
author holger@hoho.dyndns.org
date Mon, 13 Apr 2009 20:09:55 +0200
parents 7985ba427c7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
1 # Copyright 1999-2007 Gentoo Foundation
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
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 $
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
4
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
5 inherit eutils
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
6
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
7 DESCRIPTION="Proxy IMAP transactions between an IMAP client and an IMAP server."
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
8 HOMEPAGE="http://www.imapproxy.org/"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
9 SRC_URI="http://www.imapproxy.org/downloads/${P/_/}.tar.gz"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
10
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
11 LICENSE="GPL-2"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
12 SLOT="0"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
13 KEYWORDS="amd64 ~ppc x86"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
14 IUSE="kerberos ssl tcpd"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
15
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
16 DEPEND=">=sys-libs/ncurses-5.1
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
17 kerberos? ( virtual/krb5 )
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
18 ssl? ( >=dev-libs/openssl-0.9.6 )
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
19 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
20
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
21 S="${WORKDIR}/${P/_/}"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
22 src_unpack() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
23 unpack ${A} && cd "${S}"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
24 sed -i -e 's:in\.imapproxyd:imapproxyd:g' \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
25 README Makefile.in include/imapproxy.h || die "sed failed"
125
23ee2f4aac03 add fix for crashes with glibc 2.9
holger@hoho.dyndns.org
parents: 0
diff changeset
26 epatch "${FILESDIR}/${PN}-${PV}-overflow.patch"
0
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
27 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
28
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
29 src_compile() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
30 econf \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
31 $(use_with kerberos krb5) \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
32 $(use_with ssl openssl) \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
33 $(use_with tcpd libwrap) \
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
34 || die "econf failed"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
35
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
36 emake || die "emake failed"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
37 }
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
38
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
39 src_install() {
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
40 dosbin bin/imapproxyd bin/pimpstat || die "dosbin failed"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
41
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
42 insinto /etc
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
43 doins scripts/imapproxy.conf || die "doins failed"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
44
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
45 newinitd "${FILESDIR}"/imapproxy.rc6 imapproxy || die "initd failed"
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
46
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
47 dodoc ChangeLog README README.known_issues README.ssl
7985ba427c7d initial import from svn
holger@wizards.de
parents:
diff changeset
48 }