| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/sugarcrm/sugarcrm-6.4.0.ebuild,v 1.1 2012/02/25 14:29:50 maksbotan Exp $ |
| 4 |
|
| 5 |
EAPI="2" |
| 6 |
|
| 7 |
MY_PN="SugarCE" |
| 8 |
|
| 9 |
inherit webapp eutils |
| 10 |
|
| 11 |
DESCRIPTION="A complete CRM and groupware system for businesses of all sizes." |
| 12 |
HOMEPAGE="http://www.sugarforge.org/" |
| 13 |
SRC_URI="http://www.sugarforge.org/frs/download.php/8838/${MY_PN}-${PV}.zip" |
| 14 |
|
| 15 |
LICENSE="GPL-3" |
| 16 |
KEYWORDS="~amd64 ~x86" |
| 17 |
IUSE="curl imap +json +zlib +mysql +mysqli freetds ldap mssql" |
| 18 |
|
| 19 |
DEPEND=">=dev-lang/php-5.2.10[ssl,soap,unicode,xml,session,tokenizer,ldap?,mssql?,mysql?,mysqli?,zlib?,curl?,imap?,json?] |
| 20 |
dev-php/PEAR-DB |
| 21 |
dev-php/PEAR-Cache_Lite |
| 22 |
dev-php/PEAR-Mail_Mime |
| 23 |
virtual/httpd-cgi |
| 24 |
freetds? ( >=dev-db/freetds-0.64 |
| 25 |
mssql? ( >=dev-db/freetds-0.64[mssql] ) ) |
| 26 |
app-arch/unzip" |
| 27 |
|
| 28 |
RDEPEND="${DEPEND}" |
| 29 |
|
| 30 |
S="${WORKDIR}/${MY_PN}-Full-${PV}" |
| 31 |
|
| 32 |
src_install () { |
| 33 |
webapp_src_preinst |
| 34 |
|
| 35 |
cd "${S}" |
| 36 |
einfo "Installing main files" |
| 37 |
cp -R . "${D}/${MY_HTDOCSDIR}" |
| 38 |
|
| 39 |
webapp_configfile "${MY_HTDOCSDIR}"/config.php |
| 40 |
webapp_configfile "${MY_HTDOCSDIR}"/.htaccess |
| 41 |
|
| 42 |
for foo in cache custom data modules include ; do |
| 43 |
webapp_serverowned -R "${MY_HTDOCSDIR}"/"${foo}" || die |
| 44 |
|
| 45 |
done |
| 46 |
|
| 47 |
webapp_serverowned "${MY_HTDOCSDIR}"/config.php |
| 48 |
|
| 49 |
elog "Please make adjustment of your php.ini or .htaccess file" |
| 50 |
elog "Change value \"session.path = \" according to your desire" |
| 51 |
elog "Files of sessions are stored in this directory" |
| 52 |
elog "For more info see http://developers.sugarcrm.com/documentation.php" |
| 53 |
|
| 54 |
webapp_postinst_txt en "${FILESDIR}/"postinstall-en.txt |
| 55 |
webapp_src_install |
| 56 |
} |