# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils webapp MY_PV=${PV} MY_P=ibWebAdmin_${MY_PV} DESCRIPTION="ibWebAdmin is a web frontend for the InterBase and Firebird database server." HOMEPAGE="http://ibwebadmin.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~amd64 ~ia64 ~sparc ~x86" IUSE="" DEPEND=">=dev-db/firebird-1.5.1 virtual/httpd-php" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} cd ${S} # remove dummy Makefile rm -f ${S}/Makefile } src_install() { webapp_src_preinst local docs="LICENSE NEWS README ${S}/doc/*" # handle documentation files # # NOTE that doc files go into /usr/share/doc as normal; they do NOT # get installed per vhost! dodoc ${docs} for doc in ${docs} INSTALL; do rm -f ${doc} done rm -rf ${S}/doc/ # Copy the app's main files einfo "Installing main files" cp -r . ${D}${MY_HTDOCSDIR} # Identify the configuration files that this app uses webapp_configfile ${MY_HTDOCSDIR}/inc/configuration.inc.php # php files need to be owned by firebird:root to work with PHP in safe mode - not done yet # add the post-installation instructions - not done yet # webapp_postinst_txt en ${WORKDIR}/postinstall-en.txt # all done # # now the eclass strut webapp_src_install }