# Copy:right 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator webapp DESCRIPTION="Web-based media streamer, desgined to stream mp3s (or any streaming capbable media/video)" HOMEPAGE="http://www.jinzora.org/" MY_PV="$(get_version_component_range 1-3)" SRC_URI="mirror://sourceforge/${PN}/j${MY_PV}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="encode gd mysql postgres" DEPEND=">=net-www/apache-1.3 >=dev-php/mod_php-4.2 encode? ( media-sound/lame ) gd? ( media-libs/gd ) mysql? ( dev-db/mysql ) postgres? ( dev-db/postgresql )" MY_PV="$(get_major_version)" S=${WORKDIR}/${PN}${MY_PV} src_unpack() { unpack ${A} cd ${S} # fix location of lame for file in docs/english/lofi.html install/defaults.php; do sed -i -e "s:/usr/local/bin/lame:/usr/bin/lame:g" ${file} done } src_install() { webapp_src_preinst # install htdocs touch ${S}/users.php ${S}/settings.php cp -a . ${D}/${MY_HTDOCSDIR} webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install } pkg_postinst() { einfo "Jinzora recommends the following settings for php (php.ini):" einfo " max_execution_time = 1200" einfo " memory_limit = 32M (or higher)" einfo " post_max_size = 32M (or higher)" einfo " file_uploads = 1 (on)" einfo " upload_max_filesize = 32M (or higher)" webapp_pkg_postinst }