# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp versionator depend.php DESCRIPTION="Web based (PHP Script) Jukebox" HOMEPAGE="http://www.mp3act.net/" MY_PV=$(replace_version_separator 1 '') SRC_URI="mirror://sourceforge/${PN}/${PN}_${MY_PV}.tar.bz2" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" S=${WORKDIR}/${PN}_${MY_PV} DEPEND="dev-db/mysql media-sound/lame virtual/mpg123" need_php_httpd need_php_cli pkg_setup() { require_php_with_use session } src_unpack() { mkdir ${S} cd ${S} unpack ${A} cp ${S}/includes/mp3act_config.dist.php ${S}/includes/mp3act_config.php } src_install() { webapp_src_preinst cp -R * ${D}/${MY_HTDOCSDIR} dodoc docs/changes.txt docs/install.txt docs/license.txt webapp_src_install } pkg_postinst() { einfo After running webapp-config to install ${P} if necessary, einfo edit includes/mp3act_config.php and enter suitable mysql details. einfo Then browse to install.php to complete the installation einfo Note to use ${P} as a jukebox, you will need to add your webserver einfo user (e.g. apache) to the audio group }