1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils multilib python
9 DESCRIPTION="An HMO and GoBack server for Tivo."
10 HOMEPAGE="http://pytivo.sourceforge.net/"
11 SRC_URI="http://omploader.org/vMnV5aQ/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 DEPEND="dev-lang/python"
22 S="${WORKDIR}/wmcbrine"
26 enewuser pytivo -1 -1 -1 pytivo
30 MY_LIBDIR="/usr/$(get_libdir)/${PN}"
33 doins *.py *.pyw || die "Install failed"
34 doins -r Cheetah mutagen plugins templates xmpp || die "Install failed"
36 fperms 0755 ${MY_LIBDIR}/pyTivo.py || die "Cannot set permissions"
38 newinitd "${FILESDIR}"/pyTivo.initd.sh pytivo \
39 || die "Cannot create init.d launcher"
41 dodoc README || die "Cannot install docs"
42 newdoc pyTivo.conf.dist pyTivo.conf || die "Cannot install docs"
44 dosym ${MY_LIBDIR}/pyTivo.py /usr/bin/pytivo \
45 || die "Cannot create symlink to launcher"
49 ewarn "You must setup /etc/pyTivo.conf before pyTivo can be started. A"
50 ewarn "sample configuration file pyTivo.conf is available in"
51 ewarn "/usr/share/doc/${PF}"
54 elog "pyTivo can be run as a normal user or it can be started"
55 elog "automatically by adding pytivo to the default runlevel by"
56 elog " # rc-update add pytivo default"