Project

General

Profile

Actions

Tvheadend gentoo » History » Revision 2

« Previous | Revision 2/16 (diff) | Next »
William Peters, 2010-01-24 14:57


The article describes how to build tvheadend from source

Make sure you have avahi and subversion installed, these are required to build TVHeadend

{{{
  1. emerge -av avahi subversion
    }}}

now create the following directories

{{{
mkdir -p /opt/tvheadend/src
}}}

now you need to check out the tvheadend code using svn

{{{
svn co svn://svn.lonelycoder.com/hts/trunk/tvheadend /opt/tvheadend/src/
}}}

now you need to prepare the tvheadend code

{{{
cd /opt/tvheadend/src
./configure
}}}

if all went well you can compile the tvheadend source

{{{
make
}}}

If the source is compiled with no errors you can install the compiled source

{{{
make install
}}}

if this is finished, you can create the initscript:

{{{
#!/sbin/runscript
  1. Copyright 1999-2010 Gentoo Foundation
  2. Distributed under the terms of the GNU General Public License v2
  3. $Header:

TVH_PIDFILE="/var/run/tvheadend.pid"
TVH_BIN="/opt/tvheadend/bin/tvheadend"
TVH_OPTS="-f -C"

depend() {
need net
}

start() {
ebegin "Starting tvheadend"
start-stop-daemon --start --pidfile ${TVH_PIDFILE} \
--exec ${TVH_BIN} -- ${TVH_OPTS}
eend $?
}

stop() {
ebegin "Stopping 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

{{{
/etc/init.d/tvheadend start
}}}

if this works fine you can also add it to runlevel default so tvheadend starts automatically

{{{
rc-update add tvheadend default
}}}

now you can go to [http://hostname:9981/ http://hostname:9981/] and start using/configuring tvheadend

Updated by William Peters almost 15 years ago · 2 revisions