# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Header: $ inherit webapp MY_P="${PN}-$(echo ${PV} | sed -e 's:_rc:-rc:')" S="${WORKDIR}/${PN}" DESCRIPTION="Artekopia Netjuke is a Web-Based Audio Streaming Jukebox powered by PHP, an increasing choice of databases and all the MP3, Ogg Vorbis, Windows Media Audio and other format files that constitute your digital music collection." SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" HOMEPAGE="http://www.netjuke.org/" LICENSE="GPL-2" KEYWORDS="x86" IUSE="apache2 mysql postgres" DEPEND=">=dev-php/mod_php-4.1* mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql )" src_install() { webapp_src_preinst dodoc ${WORKDIR}/${PN}/docs/*.txt cp -r . ${D}${MY_HTDOCSDIR} # Snippet from the Netjuke INSTALL.txt file: # # "Make the inc-prefs.php file and netjuke/var/data/ directory # owned by the web server user, or world-writable (Read/Write # privileges for all. Less secure)." # # The only problem is if inc-prefs.php already exists pre-install # then netjuke thinks this is an upgrade and not a fresh install # so the user will need to create and chown this file at the end # of the install. Appropriate warning has been placed in the # postinstall-en.txt file. webapp_serverowned ${MY_HTDOCSDIR}/var/data webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }