blob: 46aff9a3615a5c04d8f90486ac5239f1934ad3d1 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Source: http://bugs.gentoo.org/show_bug.cgi?id=103295
# Submitted-By: SteveB
# Reviewed-By: wrobel 2005-12-19
inherit webapp depend.php
MY_PN="SugarOS"
DESCRIPTION="A complete CRM and groupware system for businesses of all sizes."
HOMEPAGE="http://www.sugarcrm.com"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}.zip"
LICENSE="MPL-1.1 SPL-1.1.3"
KEYWORDS="~x86"
S=${WORKDIR}/${MY_PN}-Full-${PV}
IUSE="curl imap json zlib"
DEPEND="app-arch/unzip"
RDEPEND="dev-php/PEAR-DB
dev-php/PEAR-Cache_Lite
dev-php/PEAR-Mail_Mime
virtual/httpd-cgi"
need_php5_httpd
pkg_setup() {
local flags="mysql ssl unicode xml"
for f in curl imap json zlib ; do
use ${f} && flags="${flags} ${f}"
done
if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} ; then
eerror "${PHP_PKG} needs to be reinstalled with all of ${flags} USE flags enabled"
die "Reinstall ${PHP_PKG} with the above-stated USE flags."
fi
webapp_pkg_setup
}
src_install () {
webapp_src_preinst
cd "${S}"
dodoc README.txt
rm -f {INSTALLATION,LICENSE,PATCH,README,UPGRADE}.txt
einfo "Installing main files"
cp -R . "${D}"/${MY_HTDOCSDIR}
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
webapp_configfile ${MY_HTDOCSDIR}/config.php
webapp_configfile ${MY_HTDOCSDIR}/.htaccess
for foo in cache custom data modules ; do
webapp_serverowned -R ${MY_HTDOCSDIR}/${foo}
done
webapp_serverowned ${MY_HTDOCSDIR}/config.php
webapp_src_install
}
|