blob: 56e52d44875b0789707286212e92d67bd9b4e13a (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/xrms/xrms-1.99.2.ebuild,v 1.2 2007/05/26 22:44:54 rl03 Exp $
inherit webapp depend.php
MY_DATE="2006-07-25"
DESCRIPTION="XRMS is a fully-integrated suite of web-based tools for Customer Relationship Management (CRM), Sales Force Automation (SFA), and Business Intelligence (BI) tools."
HOMEPAGE="http://xrms.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_DATE}-v${PV}-.tar.gz"
LICENSE="OSL-2.0"
KEYWORDS="~x86"
S="${WORKDIR}/${PN}"
IUSE=""
RDEPEND="
>=virtual/php-4.3.0
dev-php/PEAR-PEAR
"
pkg_setup() {
webapp_pkg_setup
local php_flags="mysql"
require_php_with_use ${php_flags}
}
src_unpack() {
unpack ${A}; cd ${S}
# Remove .cvs* files and CVS directories
find -name .cvs\* -or \( -type d -name CVS -prune \) | xargs rm -rf
}
src_install () {
webapp_src_preinst
dodir "${MY_HOSTROOTDIR}/${PF}"
dodoc CHANGELOG README LICENSE install/INSTALL
cp -R . "${D}/${MY_HTDOCSDIR}"
mv "${D}/${MY_HTDOCSDIR}/include" "${D}/${MY_HOSTROOTDIR}/${PF}"
local files="export storage tmp"
for file in ${files}; do
webapp_serverowned "${MY_HTDOCSDIR}/${file}"
done
webapp_configfile "${MY_HOSTROOTDIR}/${PF}/include/vars.php"
webapp_configfile "${MY_HTDOCSDIR}/include-locations.inc"
webapp_configfile "${MY_HOSTROOTDIR}/${PF}/include/plugin-cfg.php"
webapp_configfile "${MY_HOSTROOTDIR}/${PF}/include/classes/SMTPs/SMTPs.ini.php"
webapp_postinst_txt en "${FILESDIR}/postinstall-en.txt"
webapp_postupgrade_txt en "${FILESDIR}/postupgrade-en.txt"
webapp_hook_script "${FILESDIR}/reconfig"
webapp_src_install
}
|