# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="opensourced CRM application" HOMEPAGE="http://www.sugarforge.org/" MY_P="SugarSuite-${PV}" SRC_URI="http://www.sugarforge.org/frs/download.php/333/${MY_P}.zip" # http://www.sugarforge.org/frs/download.php/321/Sugar_Open_Source_User_Guide_v35.pdf" # BUG: modified MPL, aka SPL # see LICENSE.txt for more details LICENSE="MPL-1.1" KEYWORDS="~x86" IUSE="" #IUSE="doc" DEPEND="" RDEPEND="virtual/httpd-php app-arch/unzip dev-db/mysql" # for UTF-8 users, MySQL 4.1 and above are recommended # mysql-4.0 has known UTF-8 character problems # >=dev-db/mysql-4.1" S="${WORKDIR}/SugarSuite-Full-${PV}" src_install() { webapp_src_preinst #-------------------------------------------------- # use doc && dodoc "${WORKDIR}/Sugar_Open_Source_User_Guide_v35.pdf" # rm "${WORKDIR}/Sugar_Open_Source_User_Guide_v35.pdf" #-------------------------------------------------- local docs="INSTALLATION.txt LICENSE.txt PATCH.txt README.txt UPGRADE.TXT" local doc for doc in ${docs}; do dodoc ${doc} done webapp_postinst_txt en INSTALLATION.txt cp -R * "${D}${MY_HTDOCSDIR}" webapp_hook_script ${FILESDIR}/fix_perm.sh webapp_serverowned ${MY_HTDOCSDIR}/config.php webapp_src_install }