# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.8 2002/05/30 01:54:49 sandymac Exp DESCRIPTION="Double Choco Latte is a system for tracking bugs, changes, enhancements, requests for software. The system is suited for multiple products and multiple accounts (clients). It is also known to handle call center activity, although this will evolve into a separate module." HOMEPAGE="http://${PN}.sourceforge.net" IUSE="apache2" KEYWORDS="~x86 ~ppc ~sparc" LICENSE="GPL-2" SLOT="0" DEPEND="virtual/php" RDEPEND="${DEPEND}" use apache2 && HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache2/conf/apache2.conf | cut -d\ -f2`" use apache2 && HTTPD_USER="`grep '^User' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`" use apache2 && HTTPD_GROUP="`grep '^Group' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`" use apache2 || HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`" use apache2 || HTTPD_USER="`grep '^User' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" use apache2 || HTTPD_GROUP="`grep '^Group' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" [ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" [ -z "${HTTPD_USER}" ] && HTTPD_USER="apache" [ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" S=${WORKDIR}/dcl src_compile() { einfo "Nothing to compile here" } src_install() { dodoc ChangeLog install readme einfo "Copying files" dodir ${HTTPD_ROOT}/dcl cp -r * ${D}/${HTTPD_ROOT}/dcl cd ${D}/${HTTPD_ROOT} cp index.php index.php.orig sed -e "s:/var/www/html:${HTTPD_ROOT}:" index.php.orig > index.php cd ${D}/${HTTPD_ROOT}/inc sed -e "s:/var/www/html:${HTTPD_ROOT}:" config.php.default > config.php cd ${D}/${HTTPD_ROOT} chown -R ${HTTPD_USER}:${HTTPD_GROUP} dcl } pkg_postinst() { einfo "Double Choco Latte installed in ${HTTPD_ROOT}/dcl" einfo "Now go and create a db for it." einfo "Remember to set your db-settings in ${HTTPD_ROOT}/dcl/inc/config.php" einfo "See ${HOMEPAGE} for full documentation." }