# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="bif-site is a simple demo web for BIF (Build It Fast!)" HOMEPAGE="http://www.lunix.com.ar/Bif.php" SRC_URI="http://www.lunix.com.ar/Downloads/BIF/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc ~alpha ~amd64 ~sparc ~hppa ~arm" RESTRICT="nomirror" DEPEND="" RDEPEND=">=dev-php/bif3-${PV}" src_install() { ###### Obtaining apache's home directory, stolen from apache's ebuild datadir=`getent passwd apache | cut -d: -f6` if [ -z "${datadir}" ] then datadir="/home/httpd" eerror "Please create the apache user and set his home directory to your" eerror "desired location. Defaulting to \"/home/httpd/htdocs\"." else einfo "Installing ${PN} in "${datadir}/htdocs"..." fi htdocsdir=${D}/${datadir}/htdocs dodir /${datadir}/htdocs/${P}/ dosym /${datadir}/htdocs/${P}/ /${datadir}/htdocs/${PN} dosym /usr/share/bif3/Skins/ /${datadir}/htdocs/${P}/Skins cd ${S} cp -r Contenido/ index.php mapping.txt skins.txt .htacces \ ${htdocsdir}/${P}/ sed -e "s/\/usr\/share\/BIF3/\/usr\/share\/bif3/" \ < bifConfig.inc.example > ${htdocsdir}/${P}/bifConfig.inc dodoc index.php mapping.txt bifConfig.inc.example ChangeLog.Resumen \ ChangeLog skins.txt INSTALL }