blob: d4bbf0654fe6a8452e8a2a96d173d35da3cab4c5 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imap-admin/cyrus-imap-admin-2.3.14-r1.ebuild,v 1.2 2009/07/03 16:06:23 dertobi123 Exp $
inherit autotools perl-app eutils
MY_PV=${PV/_/}
PIC_PATCH_VER="2.2"
DESCRIPTION="Utilities and Perl modules to administer a Cyrus IMAP server."
HOMEPAGE="http://asg.web.cmu.edu/cyrus/imapd/"
SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-${MY_PV}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="ssl kerberos kolab"
RDEPEND=">=sys-libs/db-3.2
>=dev-lang/perl-5.6.1
>=dev-libs/cyrus-sasl-2.1.13
dev-perl/Term-ReadLine-Perl
dev-perl/TermReadKey
ssl? ( >=dev-libs/openssl-0.9.6 )
kerberos? ( virtual/krb5 )"
DEPEND="$RDEPEND
sys-devel/libtool
>=sys-devel/autoconf-2.58
sys-devel/automake
>=sys-apps/sed-4"
S="${WORKDIR}/cyrus-imapd-${MY_PV}"
src_unpack() {
unpack ${A} && cd "${S}"
# Versioned symbols.
epatch "${FILESDIR}/${PN}-${PIC_PATCH_VER}-fPIC.patch"
# Recreate configure.
WANT_AUTOCONF="2.5"
eautoreconf
# When linking with rpm, you need to link with more libraries.
sed -e "s:lrpm:lrpm -lrpmio -lrpmdb:" -i configure || die "sed failed"
# Add kolab support.
if use kolab ; then
epatch "${FILESDIR}/${P}-kolab-annotations.patch" || die "epatch failed"
fi
}
src_compile() {
local myconf
myconf="${myconf} `use_with ssl openssl`"
myconf="${myconf} $(use_enable kerberos gssapi) $(use_enable kerberos krb5afspts)"
if use kerberos; then
myconf="${myconf} --with-krb=$(krb5-config --prefix) --with-krbdes=no"
else
myconf="${myconf} --with-krb=no"
fi
econf \
--disable-server \
--enable-murder \
--enable-listext \
--enable-netscapehack \
--with-cyrus-group=mail \
--with-com_err=yes \
--with-perl=/usr/bin/perl \
${myconf} || die "econf failed"
emake -C "${S}/lib" all || die "compile problem"
emake -C "${S}/perl" all || die "compile problem"
}
src_install () {
make -C "${S}/perl" DESTDIR="${D}" install || die "install problem"
fixlocalpod # bug #98122
}
|