summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@gentoo.org>2005-05-11 20:16:42 +0000
committerDoug Goldstein <cardoe@gentoo.org>2005-05-11 20:16:42 +0000
commit27b012cd9a3ae92b46bc9b10951d8175a96f182a (patch)
tree485203cbf50304f84872e0e0fb0cd25295f0bdae /media-tv/mythtv/files
parenttouch (diff)
downloadgentoo-2-27b012cd9a3ae92b46bc9b10951d8175a96f182a.tar.gz
gentoo-2-27b012cd9a3ae92b46bc9b10951d8175a96f182a.tar.bz2
gentoo-2-27b012cd9a3ae92b46bc9b10951d8175a96f182a.zip
re-writen ebuild. gets rid of eclass usage. distcc/ccache fixes. no custom CFLAGS
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'media-tv/mythtv/files')
-rw-r--r--media-tv/mythtv/files/0.18-mythbackend.conf33
-rw-r--r--media-tv/mythtv/files/0.18-mythbackend.rc59
-rw-r--r--media-tv/mythtv/files/digest-mythtv-0.18-r11
3 files changed, 93 insertions, 0 deletions
diff --git a/media-tv/mythtv/files/0.18-mythbackend.conf b/media-tv/mythtv/files/0.18-mythbackend.conf
new file mode 100644
index 000000000000..6d0f6815af8d
--- /dev/null
+++ b/media-tv/mythtv/files/0.18-mythbackend.conf
@@ -0,0 +1,33 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/0.18-mythbackend.conf,v 1.1 2005/05/11 20:16:42 cardoe 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
+
+# Specify debug-level in log.
+# Accepts any combination (separated by comma) of:
+# all,none,quiet,record,playback,channel,osd,file,
+# schedule,network,commflag,audio,libav,jobqueue
+#MYTH_VERBOSE="none"
+
+# Set the nice level (see nice(1)). To give mythbackend a higher
+# priority, you may want to set this to -15.
+#MYTH_NICE="0"
diff --git a/media-tv/mythtv/files/0.18-mythbackend.rc b/media-tv/mythtv/files/0.18-mythbackend.rc
new file mode 100644
index 000000000000..97aaf0a181c8
--- /dev/null
+++ b/media-tv/mythtv/files/0.18-mythbackend.rc
@@ -0,0 +1,59 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/0.18-mythbackend.rc,v 1.1 2005/05/11 20:16:42 cardoe 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/mythbackend.pid"
+ [[ -z "${MYTH_WARN}" || "${MYTH_WARN}" == "yes" ]] && checkconfig
+ [[ -z "${MYTH_NICE}" ]] && MYTH_NICE="0"
+ [[ -z "${MYTH_VERBOSE}" ]] && MYTH_VERBOSE="none"
+
+ 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 --nicelevel "${MYTH_NICE}" -- \
+ --daemon --pidfile "${MYTH_PID}" --logfile "${MYTH_LOG}" \
+ --verbose ${MYTH_VERBOSE}
+ eend $?
+}
+
+stop () {
+ [[ -z "${MYTH_PID}" ]] && MYTH_PID="/var/run/mythbackend.pid"
+
+ ebegin "Stopping myth backend"
+ start-stop-daemon --stop --quiet --pidfile="${MYTH_PID}"
+ eend $?
+}
diff --git a/media-tv/mythtv/files/digest-mythtv-0.18-r1 b/media-tv/mythtv/files/digest-mythtv-0.18-r1
new file mode 100644
index 000000000000..af9b82960007
--- /dev/null
+++ b/media-tv/mythtv/files/digest-mythtv-0.18-r1
@@ -0,0 +1 @@
+MD5 8480c534508a2530c1ba35d295870faf mythtv-0.18.tar.bz2 8801515