/[gentoo-x86]/net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild
Gentoo

Contents of /net-mail/up-imapproxy/up-imapproxy-1.2.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Nov 15 00:42:13 2014 UTC (3 years, 9 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +12 -5 lines
Fix building against sys-libs/ncurses[tinfo] (bug #527570).

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2014 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.7.ebuild,v 1.4 2014/08/10 20:47:04 slyfox Exp $
4
5 EAPI=5
6
7 WANT_AUTOCONF="2.1"
8 inherit autotools eutils toolchain-funcs
9
10 DESCRIPTION="Proxy IMAP transactions between an IMAP client and an IMAP server"
11 HOMEPAGE="http://www.imapproxy.org/"
12 SRC_URI="mirror://sourceforge/squirrelmail/squirrelmail-imap_proxy-${PV}.tar.bz2"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ~ppc x86"
17 IUSE="kerberos ssl +tcpd"
18
19 RDEPEND="sys-libs/ncurses
20 kerberos? ( virtual/krb5 )
21 ssl? ( dev-libs/openssl )
22 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
23 DEPEND="${RDEPEND}
24 sys-apps/sed"
25
26 S=${WORKDIR}/squirrelmail-imap_proxy-${PV}
27
28 src_prepare() {
29 epatch "${FILESDIR}/${P}"-ldflags.patch
30 epatch "${FILESDIR}/${P}"-tinfo.patch
31
32 sed -i \
33 -e 's:in\.imapproxyd:imapproxyd:g' \
34 README Makefile.in include/imapproxy.h || die
35
36 #buffer oveflow
37 #http://lists.andrew.cmu.edu/pipermail/imapproxy-info/2010-June/000874.html
38 sed -i \
39 -e "/define BUFSIZE/s/4096/8192/" \
40 -e "/define MAXPASSWDLEN/s/64/8192/" \
41 include/imapproxy.h
42
43 eautoreconf
44 }
45
46 src_configure() {
47 tc-export CC
48 econf \
49 $(use_with kerberos krb5) \
50 $(use_with ssl openssl) \
51 $(use_with tcpd libwrap)
52 }
53
54 src_install() {
55 dosbin bin/imapproxyd bin/pimpstat
56
57 insinto /etc
58 doins scripts/imapproxy.conf
59
60 newinitd "${FILESDIR}"/imapproxy.initd imapproxy
61
62 dodoc ChangeLog README README.known_issues
63 use ssl && dodoc README.ssl
64
65 doman "${FILESDIR}"/*.8
66 }

  ViewVC Help
Powered by ViewVC 1.1.20