summaryrefslogtreecommitdiff
blob: 91033637fe41987f24ce7d2ae0b39ffc281e0181 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

# Marked STABLE (comment necessary for update script)

inherit eutils depend.php

MY_P=${PN}-2.1-gentoo-20070528

DESCRIPTION="The kolab webadmin frontend"
HOMEPAGE="http://www.kolab.org"
SRC_URI="http://files.pardus.de/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""

DEPEND=""

RDEPEND="
>=dev-php/smarty-2.6.12
>=dev-php/PEAR-PEAR-1.4.6-r1
>=dev-php/PEAR-Auth_SASL-1.0.1-r1
>=dev-php/PEAR-Net_Socket-1.0.6-r1
"

S=${WORKDIR}/${MY_P}

need_php

pkg_setup() {

	require_php_with_use ldap nls

}

src_unpack() {

	unpack ${A} && cd "${S}"

	for PATCH in ${FILESDIR}/*-${PV}.patch
	do
		epatch ${PATCH}
	done

}

src_compile() {

	local myconf
	myconf="${myconf} --with-dist=gentoo"
	myconf="${myconf} --libexecdir=/usr/lib"
	myconf="${myconf} --localstatedir=/var"

	econf ${myconf} || die
	emake || die
}

src_install() {

	make DESTDIR="${D}" install || die "Install failed"

	keepdir /var/www/kolab/htdocs/admin/templates_c
	fowners apache:apache /var/www/kolab/htdocs/admin/templates_c
}