# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Slim Devices streaming music server for SLIMP3 and Squeezebox." HOMEPAGE="http://www.slimdevices.com/" MY_PN="SlimServer" MY_P="${MY_PN}_v${PV}" SRC_URI="http://www.slimdevices.com/downloads/${MY_P}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" RESTRICT="nostrip" IUSE="flac oggvorbis" DEPEND=">=dev-lang/perl-5.6.1" RDEPEND="${DEPEND} flac? ( >=media-libs/flac-1.1.0 >=media-sound/lame-3.96 ) oggvorbis? ( >=media-sound/vorbis-tools-1.0-r2 >=media-sound/lame-3.96 )" S=${WORKDIR}/${MY_P} src_install() { dodir /usr/share/slimserver cp -R ${S}/* ${D}/usr/share/slimserver insinto /etc/conf.d && newins "${FILESDIR}/slimserver.conf.d" slimserver exeinto /etc/init.d && newexe "${FILESDIR}/slimserver.init.d" slimserver } pkg_postinst() { einfo "" einfo "Edit /etc/conf.d/slimserver for startup options" einfo "Start the server by running /etc/init.d/slimserver start" einfo "Connect browser to localhost:9000 for web config" einfo "Configuration will be saved in /etc/slimserver.conf" einfo "" } pkg_prerm() { /etc/init.d/slimserver stop }