# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/horde-chora/horde-chora-1.2-r1.ebuild,v 1.6 2003/12/08 01:56:15 mholzer Exp $ inherit webapp-apache DESCRIPTION="Chora ${PV} is the Horde CVS viewer." HOMEPAGE="http://www.horde.org" MY_P=${P/horde-/} SRC_URI="ftp://ftp.horde.org/pub/chora/tarballs/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc ~sparc ~alpha" DEPEND="" RDEPEND=">=net-www/horde-2.2.4 >=app-text/rcs-5.7-r1 >=dev-util/cvs-1.11.2" IUSE="" S=${WORKDIR}/${MY_P} webapp-detect || NO_WEBSERVER=1 pkg_setup() { webapp-pkg_setup "${NO_WEBSERVER}" einfo "Installing into ${ROOT}${HTTPD_ROOT}." export REGISTRY=${HTTPD_ROOT}/horde/config/registry.php [ -f ${REGISTRY} ] || REGISTRY=${HTTPD_ROOT}/horde/config/registry.php.dist [ -f ${REGISTRY} ] || die "${REGISTRY} not found" } src_install () { local DocumentRoot=${HTTPD_ROOT} local destdir=${DocumentRoot}/horde/chora dodoc COPYING README docs/* rm -rf COPYING README docs dodir ${destdir} cp -r . ${D}${destdir} cd ${D}/${HTTPD_ROOT}/horde # protecting files chown -R ${HTTPD_USER}:${HTTPD_GROUP} chora find ${D}/${destdir} -type f -exec chmod 0640 {} \; find ${D}/${destdir} -type d -exec chmod 0750 {} \; } pkg_postinst() { einfo "Please read /usr/share/doc/${PF}/INSTALL.gz" }