summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-tv/mythtv/files')
-rw-r--r--media-tv/mythtv/files/digest-mythtv-0.101
-rw-r--r--media-tv/mythtv/files/mythbackend.conf23
-rw-r--r--media-tv/mythtv/files/mythbackend.rc656
-rw-r--r--media-tv/mythtv/files/mythfilldatabase.cron4
4 files changed, 84 insertions, 0 deletions
diff --git a/media-tv/mythtv/files/digest-mythtv-0.10 b/media-tv/mythtv/files/digest-mythtv-0.10
new file mode 100644
index 000000000000..6fbdb3de9d4c
--- /dev/null
+++ b/media-tv/mythtv/files/digest-mythtv-0.10
@@ -0,0 +1 @@
+MD5 3e6dad28e1c25929ceb124ad7d0a3d0b mythtv-0.10.tar.bz2 2466640
diff --git a/media-tv/mythtv/files/mythbackend.conf b/media-tv/mythtv/files/mythbackend.conf
new file mode 100644
index 000000000000..44ee86fbec66
--- /dev/null
+++ b/media-tv/mythtv/files/mythbackend.conf
@@ -0,0 +1,23 @@
+# Copyright 2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythbackend.conf,v 1.1 2003/07/09 00:05:43 johnm Exp $
+
+# Uncomment this to disable the permission warnings.
+MYTH_WARN=yes
+
+# Specify which user to run as
+#
+# NOTE: this user must have permissions to write
+# to the LOG and PID directories specified
+# below. Furthermore, this user must be able
+# to write to the audio and video devices
+# that are configured in MythTV. This can
+# be achieved by adding this user to the
+# audio and video groups.
+MYTH_USER=root
+
+# Specify which file to use for the backend log.
+MYTH_LOG=/var/log/mythtv/mythbackend.log
+
+# Specify in which file to store the backend process id.
+MYTH_PID=/var/run/mythtv/mythbackend.pid
diff --git a/media-tv/mythtv/files/mythbackend.rc6 b/media-tv/mythtv/files/mythbackend.rc6
new file mode 100644
index 000000000000..3eaa74ebfe68
--- /dev/null
+++ b/media-tv/mythtv/files/mythbackend.rc6
@@ -0,0 +1,56 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythbackend.rc6,v 1.1 2003/07/09 00:05:43 johnm Exp $
+
+depend() {
+ need net
+ use mysql
+}
+
+checkconfig() {
+ for i in $(groups "${MYTH_USER/:*/}") ; do
+ [ "${i}" = "audio" ] && audio="yes"
+ [ "${i}" = "video" ] && video="yes"
+ done
+
+ if [ -z "${audio}" -o -z "${video}" ] ; then
+ ewarn ""
+ [ -z "${audio}" ] && \
+ ewarn "${HILITE}${MYTH_USER/:*/}${NORMAL} is not in the audio group"
+ [ -z "${video}" ] && \
+ ewarn "${HILITE}${MYTH_USER/:*/}${NORMAL} is not in the video group"
+ ewarn ""
+ ewarn "insufficient permissions discovered"
+ ewarn "mythbackend may not start correctly"
+ ewarn ""
+ fi
+}
+
+start() {
+ [ -z "${MYTH_USER}" ] && MYTH_USER="nobody:nobody"
+ [ -z "${MYTH_LOG}" ] && MYTH_LOG="/var/log/mythtv/mythbackend.log"
+ [ -z "${MYTH_PID}" ] && MYTH_PID="/var/run/mythtv/mythbackend.pid"
+ [ -z "${MYTH_WARN}" -o "${MYTH_WARN}" = "yes" ] && checkconfig
+
+ HOME="$(dirname "${MYTH_PID}")"
+ QTDIR=/usr/qt/3
+
+ # Work around any strange permissions that may be on these files.
+ chown -R "${MYTH_USER}" "$(dirname "${MYTH_LOG}")"
+ chown -R "${MYTH_USER}" "$(dirname "${MYTH_PID}")"
+
+ ebegin "Starting myth backend"
+ start-stop-daemon --start --quiet --chuid "${MYTH_USER}" \
+ --exec /usr/bin/mythbackend -- \
+ --daemon --pidfile "${MYTH_PID}" --logfile "${MYTH_LOG}"
+ eend $?
+}
+
+stop () {
+ [ -z "${MYTH_PID}" ] && MYTH_PID="/var/run/mythtv/mythbackend.pid"
+
+ ebegin "Stopping myth backend"
+ start-stop-daemon --stop --quiet --pidfile="${MYTH_PID}"
+ eend $?
+}
diff --git a/media-tv/mythtv/files/mythfilldatabase.cron b/media-tv/mythtv/files/mythfilldatabase.cron
new file mode 100644
index 000000000000..f1a675c1d121
--- /dev/null
+++ b/media-tv/mythtv/files/mythfilldatabase.cron
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+QTDIR=/usr/qt/3
+/usr/bin/mythfilldatabase --no-delete --quiet