blob: fa2f83d075e85104ef3a9a4b3f6251470d018046 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/egroupware/egroupware-1.4.004.ebuild,v 1.8 2012/10/06 16:55:20 armin76 Exp $
inherit eutils webapp depend.php
MY_PN=eGroupWare
DESCRIPTION="Web-based GroupWare suite"
HOMEPAGE="http://www.egroupware.org/"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-2.tar.bz2
mirror://sourceforge/${PN}/${MY_PN}-egw-pear-${PV}-2.tar.bz2"
LICENSE="GPL-2"
KEYWORDS="amd64 hppa ppc ~sparc x86"
IUSE="jpgraph ldap mssql mysql postgres"
RDEPEND="jpgraph? ( dev-php/jpgraph )
dev-php/PEAR-PEAR
virtual/cron"
need_httpd_cgi
need_php_httpd
S="${WORKDIR}"/${PN}
pkg_setup () {
webapp_pkg_setup
has_php
local php_flags="imap session unicode"
for f in ldap mssql mysql postgres; do
use ${f} && php_flags="${php_flags} ${f}"
done
if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \
! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
die "Re-install ${PHP_PKG} with ${php_flags} and either gd or gd-external."
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
esvn_clean
if use jpgraph; then
einfo "Fixing jpgraph location"
sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph.php'|'/usr/share/php${PHP_VERSION}/jpgraph/jpgraph.php'|" \
projectmanager/inc/class.ganttchart.inc.php || die
sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph_gantt.php'|'/usr/share/php${PHP_VERSION}/jpgraph/jpgraph_gantt.php'|" \
projectmanager/inc/class.ganttchart.inc.php || die
fi
}
src_install() {
webapp_src_preinst
insinto "${MY_HTDOCSDIR}"
doins -r .
webapp_serverowned "${MY_HTDOCSDIR}"/phpgwapi/images
webapp_postinst_txt en "${FILESDIR}"/postinstall-en-1.2.txt
webapp_src_install
}
pkg_postinst() {
if use ldap; then
elog "If you are using LDAP contacts/addressbook, please read the upgrade instructions at"
elog "http://www.egroupware.org/index.php?page_name=wiki&wikipage=ManualSetupUpdate"
elog "before running the egroupware setup"
fi
webapp_pkg_postinst
}
|