blob: 38b8be72a4e2db9fcc3ad6ae3fe40d3fb478452e (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
MY_PN="SugarCE"
inherit webapp eutils
DESCRIPTION="A complete CRM and groupware system for businesses of all sizes"
HOMEPAGE="http://www.sugarforge.org/"
SRC_URI="mirror://sourceforge/project/${PN}/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X/SugarCE-${PV}.zip"
LICENSE="GPL-3"
KEYWORDS="~amd64 ~x86"
IUSE="curl imap +json +zlib +mysql +mysqli freetds ldap mssql"
DEPEND=">=dev-lang/php-5.2.10[ssl,soap,unicode,xml,session,tokenizer,ldap?,mssql?,mysql?,mysqli?,zlib?,curl?,imap?,json?]
dev-php/PEAR-DB
dev-php/PEAR-Cache_Lite
dev-php/PEAR-Mail_Mime
virtual/httpd-cgi
freetds? ( >=dev-db/freetds-0.64
mssql? ( >=dev-db/freetds-0.64[mssql] ) )
app-arch/unzip"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_PN}-Full-${PV}"
src_install () {
webapp_src_preinst
cd "${S}"
einfo "Installing main files"
cp -R . "${D}/${MY_HTDOCSDIR}"
webapp_configfile "${MY_HTDOCSDIR}"/config.php
webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
for foo in cache custom data modules include ; do
webapp_serverowned -R "${MY_HTDOCSDIR}"/"${foo}" || die
done
webapp_serverowned "${MY_HTDOCSDIR}"/config.php
elog "Please make adjustment of your php.ini or .htaccess file"
elog "Change value \"session.path = \" according to your desire"
elog "Files of sessions are stored in this directory"
elog "For more info see http://developers.sugarcrm.com/documentation.php"
webapp_postinst_txt en "${FILESDIR}/"postinstall-en.txt
webapp_src_install
}
|