summaryrefslogtreecommitdiff
blob: 9926bccffa00855e38af4675d7859568fb82ef91 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/ximian-connector/ximian-connector-1.4.5.0.6.1.ebuild,v 1.4 2004/03/04 16:26:39 obz Exp $

inherit rpm gnome2

DESCRIPTION="Ximian Connector (An Evolution Plugin to talk to Exchange Servers)"
HOMEPAGE="http://www.ximian.com"

IUSE=""
LICENSE="Ximian-Connector"
SLOT="0"
KEYWORDS="~x86 -ppc -sparc -alpha -mips"
RESTRICT="nomirror fetch nostrip"

# there doesn't seem to be one for ppc anymore
XIMIAN_DIST="redhat-90-i386"
XIMIAN_ARCH="i386"

# make the ximian rev from the package version
# bash magic to extract last 2 versions as XIMIAN_V,
# third last version as RPM_V and the rest as MY_PV
MY_PV=${PV%.[0-9]*.[0-9]*.[0-9]*}
END_V=${PV/${MY_PV}./}
RPM_V=${END_V%.[0-9]*.[0-9]*}
XIMIAN_V=${END_V#[0-9]*.}

SRC_URI="${PN}-${MY_PV}-${RPM_V}.ximian.${XIMIAN_V}.${XIMIAN_ARCH}.rpm"

RDEPEND="=net-mail/evolution-${MY_PV}*
	>=gnome-extra/gal-1.99.10
	>=app-crypt/mit-krb5-1.2"
DEPEND=""

S=${WORKDIR}

pkg_setup() {
	if [ -z "`use krb4`" ]; then
		eerror "Ximian Connector requires Kerberos 4 support in app-crypt/mit-krb5."
		eerror "You will need to remerge it by executing:"
		eerror ""
		eerror "USE='krb4' emerge mit-krb5 ximian-connector"
		die "missing kerberos 4 support"
	fi
}

pkg_nofetch() {
	einfo "This package requires that you download the rpm from:"
	einfo "http://ximian.com/products/connector/download/download.html"
	einfo "and place it in ${DISTFILES}."
	einfo ""
	einfo "NOTE: x86 users should download the package for ${XIMIAN_ARCH}"
#	einfo "      ppc users should download the package for yellowdog-22-ppc"
}

src_compile() {
	return;
}

src_install() {
	cp -dpR * ${D}
}

pkg_postinst(){
	gnome2_gconf_install
	einfo "NOTE: Ximian connector requires the purchase of a"
	einfo "key from Ximian to function properly."
}