# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="Outreach Project Tool (OPT) is a PHP general-purpose virtual commonplace for customers and \ developers to collaborate in developing projects." HOMEPAGE="http://outreach.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/OPT_${PV}.tar.gz" LICENSE="" IUSE="" KEYWORDS="~x86" RDEPEND="virtual/php dev-db/mysql" src_install() { webapp_src_preinst cd ${WORKDIR}/OPT_${PV}/ # Do documentation dodoc CHANGES FAQ.txt INSTALL INSTALL.email rm -f CHANGES FAQ.txt INSTALL INSTALL.email # Copy files to destination cp -R opt/* ${D}/${MY_HTDOCSDIR} # Change permissions for web-based setup for dir in include include/db include/phplib include/setup_lock do webapp_serverowned ${MY_HTDOCSDIR}/${dir} for file in `ls ${D}/${MY_HTDOCSDIR}/${dir}/` do webapp_serverowned ${MY_HTDOCSDIR}/${dir}/${file} done done # Post install webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install } pkg_config() { einfo "" einfo "Point your browser to the location of setup" einfo " ==> e.g. http://localhost/outreach/setup" einfo "" einfo "Remember change the owner of the 'include' directory after the" einfo "installation finish" einfo "" einfo " chown -R root: outreach/setup" einfo "" }