# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 inherit webapp-apache MY_P="bophp" S=${WORKDIR}/${MY_P} DESCRIPTION="A web client for the Boss Ogg music server" HOMEPAGE="http://bossogg.wishy.org/" SRC_URI="mirror://sourceforge/bossogg/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~alpha" IUSE="" DEPEND=">=net-www/apache-1.3.27-r1 >=mod_php-4.2.3-r2" BOPHP_DIR="${HTTPD_ROOT}/${MY_P}" pkg_setup() { webapp-detect || NO_WEBSERVER=1 webapp-pkg_setup "${NO_WEBSERVER}" einfo "Installing into ${ROOT}${HTTPD_ROOT}." } src_compile() { #we need to have this empty function ... default compile hangs echo "Nothing to compile" } src_install() { webapp-detect || NO_WEBSERVER=1 webapp-mkdirs insinto "${BOPHP_DIR}" cp -R *.php lib locale themes version.inc "${D}/${BOPHP_DIR}" dodoc COPYING README TODO chown -R "${HTTPD_USER}:${HTTPD_GROUP}" "${D}/${BOPHP_DIR}" } pkg_postinst() { einfo "Remember to edit the config.php file in:" einfo " ${BOPHP_DIR}/" }