Tvheadend gentoo » History » Revision 9
Revision 8 (Andreas Smas, 2010-01-25 21:47) → Revision 9/16 (William Peters, 2010-02-06 14:50)
The article describes how to build Tvheadend tvheadend from source
Make sure you have avahi and subversion installed, these are required to build Tvheadend
{{{
# emerge -av avahi subversion
}}}
now create the following directories
{{{
mkdir -p /opt/tvheadend/src
}}}
now you need to check out the Tvheadend tvheadend source code using svn
{{{
svn co svn://svn.lonelycoder.com/hts/trunk/tvheadend /opt/tvheadend/src/
}}}
now you need to prepare the Tvheadend tvheadend source code
{{{
cd /opt/tvheadend/src
./configure --prefix=/opt/tvheadend
}}}
if all went well you can compile the Tvheadend tvheadend source code
{{{
make
}}}
If the source is compiled with no errors you can install the compiled source
{{{
make install
}}}
if you want you can also create this init script to start Tvheadend tvheadend at boot time
/etc/init.d/tvheadend
{{{
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
TVH_PIDFILE="/var/run/tvheadend.pid"
TVH_BIN="/opt/tvheadend/bin/tvheadend"
TVH_OPTS="-f -C"
depend() {
need net
}
start() {
ebegin "Starting Tvheadend" tvheadend"
start-stop-daemon --start --pidfile ${TVH_PIDFILE} \
--exec ${TVH_BIN} -- ${TVH_OPTS}
eend $?
}
stop() {
ebegin "Stopping Tvheadend" tvheadend"
start-stop-daemon --stop --quiet --pidfile ${TVH_PIDFILE} --signal 2
eend $?
rm -f ${PIDFILE}
}
}}}
now set /etc/init.d/tvheadend as executable
{{{
chmod +x /etc/init.d/tvheadend
}}}
now you can try to start Tvheadend tvheadend
{{{
/etc/init.d/tvheadend start
}}}
if this works fine you can also add it to runlevel default so Tvheadend tvheadend starts automatically
{{{
rc-update add tvheadend default
}}}
now you can go to [http://hostname:9981/ http://hostname:9981/] and start using/configuring Tvheadend tvheadend
Make sure you have avahi and subversion installed, these are required to build Tvheadend
{{{
# emerge -av avahi subversion
}}}
now create the following directories
{{{
mkdir -p /opt/tvheadend/src
}}}
now you need to check out the Tvheadend tvheadend source code using svn
{{{
svn co svn://svn.lonelycoder.com/hts/trunk/tvheadend /opt/tvheadend/src/
}}}
now you need to prepare the Tvheadend tvheadend source code
{{{
cd /opt/tvheadend/src
./configure --prefix=/opt/tvheadend
}}}
if all went well you can compile the Tvheadend tvheadend source code
{{{
make
}}}
If the source is compiled with no errors you can install the compiled source
{{{
make install
}}}
if you want you can also create this init script to start Tvheadend tvheadend at boot time
/etc/init.d/tvheadend
{{{
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
TVH_PIDFILE="/var/run/tvheadend.pid"
TVH_BIN="/opt/tvheadend/bin/tvheadend"
TVH_OPTS="-f -C"
depend() {
need net
}
start() {
ebegin "Starting Tvheadend" tvheadend"
start-stop-daemon --start --pidfile ${TVH_PIDFILE} \
--exec ${TVH_BIN} -- ${TVH_OPTS}
eend $?
}
stop() {
ebegin "Stopping Tvheadend" tvheadend"
start-stop-daemon --stop --quiet --pidfile ${TVH_PIDFILE} --signal 2
eend $?
rm -f ${PIDFILE}
}
}}}
now set /etc/init.d/tvheadend as executable
{{{
chmod +x /etc/init.d/tvheadend
}}}
now you can try to start Tvheadend tvheadend
{{{
/etc/init.d/tvheadend start
}}}
if this works fine you can also add it to runlevel default so Tvheadend tvheadend starts automatically
{{{
rc-update add tvheadend default
}}}
now you can go to [http://hostname:9981/ http://hostname:9981/] and start using/configuring Tvheadend tvheadend