|
|
# Copyright 1999-2004 Gentoo Foundation | # Copyright 1999-2004 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/uw-imap/uw-imap-2002e-r4.ebuild,v 1.2 2004/09/04 18:04:58 squinky86 Exp $ |
# uw-imap-2004a.ebuild |
| |
MY_P=imap-${PV} | MY_P=imap-${PV} |
S=${WORKDIR}/${MY_P} | S=${WORKDIR}/${MY_P} |
|
|
LICENSE="as-is" | LICENSE="as-is" |
SLOT="0" | SLOT="0" |
KEYWORDS="~x86 ~sparc ~ppc ~hppa ~alpha ~amd64" | KEYWORDS="~x86 ~sparc ~ppc ~hppa ~alpha ~amd64" |
IUSE="ssl mbox pic kerberos" |
IUSE="ipv6 ssl mbox pic kerberos" |
| |
PROVIDE="virtual/imapd" | PROVIDE="virtual/imapd" |
PROVIDE="${PROVIDE} virtual/imap-c-client" | PROVIDE="${PROVIDE} virtual/imap-c-client" |
|
|
| |
src_compile() { | src_compile() { |
local mymake | local mymake |
|
local ipver |
|
ipver="IP=4" |
| |
|
use ipv6 && echo ipv6 |
use kerberos && echo kerberos | use kerberos && echo kerberos |
use ssl && echo ssl | use ssl && echo ssl |
|
use ipv6 && ipver="IP=6" |
use kerberos \ | use kerberos \ |
&& mymake="EXTRAAUTHENTICATORS=gss" | && mymake="EXTRAAUTHENTICATORS=gss" |
if use ssl; then | if use ssl; then |
cd ${S} | cd ${S} |
echo ${mymake} | echo ${mymake} |
yes | make lnp ${mymake} SSLTYPE=unix || die |
yes | make lnp ${mymake} ${ipver} SSLTYPE=unix || die |
| |
local i | local i |
for i in imapd ipop3d; do | for i in imapd ipop3d; do |
|
|
umask 022 | umask 022 |
done | done |
else | else |
yes | make lnp ${mymake} SSLTYPE=none || die |
yes | make lnp ${mymake} ${ipver} SSLTYPE=none || die |
fi | fi |
} | } |
| |