diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-tv/mythtv/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-tv/mythtv/files')
-rw-r--r-- | media-tv/mythtv/files/bash_profile | 4 | ||||
-rw-r--r-- | media-tv/mythtv/files/libdir-27.patch | 13 | ||||
-rw-r--r-- | media-tv/mythtv/files/libdir.patch | 11 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythbackend.conf | 12 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythbackend.init | 56 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythbackend.service | 66 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythfrontend.conf | 13 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythfrontend.wrapper | 29 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythtv.logrotate.d-r3 | 20 | ||||
-rw-r--r-- | media-tv/mythtv/files/mythtv.logrotate.d-r4 | 14 | ||||
-rw-r--r-- | media-tv/mythtv/files/xinitrc-r1 | 8 |
11 files changed, 246 insertions, 0 deletions
diff --git a/media-tv/mythtv/files/bash_profile b/media-tv/mythtv/files/bash_profile new file mode 100644 index 000000000000..5de354bccae9 --- /dev/null +++ b/media-tv/mythtv/files/bash_profile @@ -0,0 +1,4 @@ +# .bash_profile +case "`tty`" in + *tty8) startx; logout ;; +esac diff --git a/media-tv/mythtv/files/libdir-27.patch b/media-tv/mythtv/files/libdir-27.patch new file mode 100644 index 000000000000..d25e714b3c62 --- /dev/null +++ b/media-tv/mythtv/files/libdir-27.patch @@ -0,0 +1,13 @@ +diff --git a/mythtv/configure b/mythtv/configure +index 4aa8727..f890df3 100755 +--- a/mythtv/configure ++++ b/mythtv/configure +@@ -6475,7 +6475,7 @@ if enabled mythlogserver; then + echo "Configuring zeromq..." + (cd external/zeromq ; \ + ./configure --quiet --without-documentation --prefix=${prefix} \ +- --includedir=${prefix}/include/mythtv/zeromq) ++ --includedir=${prefix}/include/mythtv/zeromq --libdir=${libdir}) + echo "Configuring nzmqt..." + (cd external/nzmqt/src ; \ + ${qmakeconf} -o Makefile) diff --git a/media-tv/mythtv/files/libdir.patch b/media-tv/mythtv/files/libdir.patch new file mode 100644 index 000000000000..90fc36272532 --- /dev/null +++ b/media-tv/mythtv/files/libdir.patch @@ -0,0 +1,11 @@ +--- external/Makefile 2012-10-06 14:30:40.453248737 -0400 ++++ external/Makefile 2012-10-06 14:32:43.283277751 -0400 +@@ -25,7 +25,7 @@ + zeromq/Makefile: zeromq/configure + (cd zeromq ; \ + ./configure --without-documentation --prefix=${PREFIX} \ +- --includedir=${PREFIX}/include/mythtv/zeromq) ++ --includedir=${PREFIX}/include/mythtv/zeromq --libdir=${LIBDIR}) + + zeromq-install zeromq-uninstall zeromq-clean zeromq-distclean: + ${MAKE} -C zeromq ${@:zeromq-%=%} DESTDIR=${INSTALL_ROOT} diff --git a/media-tv/mythtv/files/mythbackend.conf b/media-tv/mythtv/files/mythbackend.conf new file mode 100644 index 000000000000..4e85f4a215c8 --- /dev/null +++ b/media-tv/mythtv/files/mythbackend.conf @@ -0,0 +1,12 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Accepts any valid combination of logging options to mythbackend +# To get a valid list run: /usr/bin/mythbackend -v help +#MYTHBACKEND_VERBOSE="general" + + +# Allows you to pass specific startup options to mythbackend +# e.g. --noupnp +#MYTHBACKEND_OPTS="" diff --git a/media-tv/mythtv/files/mythbackend.init b/media-tv/mythtv/files/mythbackend.init new file mode 100644 index 000000000000..7caf7a706173 --- /dev/null +++ b/media-tv/mythtv/files/mythbackend.init @@ -0,0 +1,56 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="MythTV backend recording daemon" +extra_commands="resched upnprebuild" +description_resched="Forces the recording scheduler to update" +description_upnprebuild="Rebuilds the UPnP media cache" + +depend() { + # mythbackend doesn't need to run on the same machine that + # mysql runs on. so its use for that reason + need net + use mysql LCDd +} + +start() { + [ -z "${MYTHBACKEND_VERBOSE}" ] && \ + MYTHBACKEND_VERBOSE="general" + + #fixes for bug #101308 + unset DISPLAY + unset SESSION_MANAGER + + # Work around any strange permissions that may be on these files. + chown -R mythtv:video /var/log/mythtv/ + chown -R mythtv:video /home/mythtv/ + + ebegin "Starting MythTV Backend" + start-stop-daemon --start --quiet --exec /usr/bin/mythbackend \ + --pidfile /var/run/mythbackend.pid -- \ + --daemon --pidfile /var/run/mythbackend.pid --user mythtv \ + --verbose ${MYTHBACKEND_VERBOSE} \ + --logpath /var/log/mythtv/ \ + ${MYTHBACKEND_OPTS} + eend $? +} + +stop() { + ebegin "Stopping MythTV Backend" + start-stop-daemon --stop --quiet --pidfile=/var/run/mythbackend.pid + eend $? +} + +resched() { + ebegin "Updating the recording scheduler" + /usr/bin/mythbackend --resched + eend $? +} + +upnprebuild() { + ebegin "Rebuilding UPnP media cache" + /usr/bin/mythbackend --upnprebuild + eend $? +} diff --git a/media-tv/mythtv/files/mythbackend.service b/media-tv/mythtv/files/mythbackend.service new file mode 100644 index 000000000000..496c7b295e11 --- /dev/null +++ b/media-tv/mythtv/files/mythbackend.service @@ -0,0 +1,66 @@ +# Do not edit this file, it will be replaced on update +# If you need to make modifications to this unit file first make a copy in # /etc/systemd/system + +# This file is part of the packaging of MythTV # +# MythTV is free software; view http://www.mythtv.org for more information. +# +# It is sometimes necessary to wait for a capture device to finish (hot)plug +# initialization before the backend starts. If this is necessary, +# create a Wants and After entry for all the capture devices that +# one wishes to wait to be created before the backend starts using the systemd +# device name mangling names (/dev/some/thing turns +# into dev-some-thing.device). These normally should be udev persistent +# filename rules to avoid confusion. +# See the MythTV wiki for udev persistent filename # discussions found at: +# http://www.mythtv.org/wiki/Device_Filenames_and_udev +# +# In order to insure that systemd will create a device unit for the +# capture device, one must insure that udev will have the tag "systemd" +# (i.e. add TAG+="systemd" to the udev rule). +# +# The MythTV package ships with a default udev rule file located in: +# /lib/udev/rules.d/99-mythbackend.rules + +[Unit] +Description=MythTV backend service +After=network.target mysqld.service +# Uncomment the following line if you will be using the mythweb plugin on the +# same system as mythbackend. +#Wants=httpd.service + +[Service] +Type=simple + +Environment=MYTHCONFDIR=/etc/mythtv +# Default setting assumes a system wide install. Otherwise it should be set to +# the folder containing the .mythtv subfolder containing the config.xml file +# Such as +#Environment=HOME=/usr/share/mythtv +# or +Environment=HOME=/~/.mythtv + +# systemd changes execution from the calling user (possibly root) to this user +# if you have permissions problems or obscure errors try logging in as mythtv +# See notes below +User=mythtv + +# Uncomment one of the following... +# Use sysloging rather than separate logging: +#ExecStart=/usr/bin/mythbackend --syslog local7 + +# If Type=forking you must specify the --daemon and --pidfile options: +#ExecStart=/usr/bin/mythbackend --daemon --logpath /var/log/mythtv --loglevel crit --pidfile /run/mythtv/mythbackend.pid +#PIDFILE=/run/mythtv/mythbackend.pid + +# Systemd sends stdout to syslog, and mythbackend has console logging enabled without --daemon. +# Send stdout to /dev/null so console logging doesn't go to syslog +#StandardOutput=null +# Default setting for Type=simple. +#ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit +ExecStart=/usr/bin/mythbackend --loglevel notice --nologserver + +# Whether systemd will continue over-watch and restart on any halt +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/media-tv/mythtv/files/mythfrontend.conf b/media-tv/mythtv/files/mythfrontend.conf new file mode 100644 index 000000000000..c0b8ba9f6eea --- /dev/null +++ b/media-tv/mythtv/files/mythfrontend.conf @@ -0,0 +1,13 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Should 'mythfrontend' really execute mythwelcome instead? +# Default: false +MYTHWELCOME=false + +# Options to pass to mythfrontend or mythwelcome based on the above setting +# Note: If you have mythwelcome enabled, it does not pass arguments to +# mythfrontend. You must configure this inside mythwelcome +# Default: --syslog local7 +MYTHFRONTEND_OPTS="--syslog local7" diff --git a/media-tv/mythtv/files/mythfrontend.wrapper b/media-tv/mythtv/files/mythfrontend.wrapper new file mode 100644 index 000000000000..ce3608ec1f9a --- /dev/null +++ b/media-tv/mythtv/files/mythfrontend.wrapper @@ -0,0 +1,29 @@ +#!/bin/sh +# Based on Mythbuntu's script + +# Check if the frontend is already running, +# if it is bring it to the foreground. +# This is to prevent multiple frontends from running +/usr/bin/pgrep mythfrontend.real 2>&1 > /dev/null && \ + /usr/bin/wmctrl -a "MythTV Frontend" 2> /dev/null && \ + exit 0 + +# Check if you're part of the video group +if [ -n "$(groups | grep -v video)" ]; then + echo "'$USER' is not part of the 'video' group." >&2 + echo "For best results add '$USER' to the 'video' group." >&2 +fi + +if [ -e /etc/conf.d/mythfrontend ]; then + . /etc/conf.d/mythfrontend +fi + +if [ "x${MYTHWELCOME}" = "xtrue" ]; then + exec /usr/bin/mythwelcome ${MYTHFRONTEND_OPTS} "$@" + RET=$? +else + exec /usr/bin/mythfrontend.real ${MYTHFRONTEND_OPTS} "$@" + RET=$? +fi + +exit ${RET} diff --git a/media-tv/mythtv/files/mythtv.logrotate.d-r3 b/media-tv/mythtv/files/mythtv.logrotate.d-r3 new file mode 100644 index 000000000000..220776a1d087 --- /dev/null +++ b/media-tv/mythtv/files/mythtv.logrotate.d-r3 @@ -0,0 +1,20 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +/var/log/mythtv/*.log { + weekly + rotate 8 + nocompress + nocreate + notifempty + sharedscripts + missingok + olddir /var/log/mythtv/old + postrotate + killall -HUP mythfrontend + killall -HUP mythbackend + killall -HUP mythlcdserver + find /var/log/mythtv/old -type f -mtime +30 -delete + endscript +} diff --git a/media-tv/mythtv/files/mythtv.logrotate.d-r4 b/media-tv/mythtv/files/mythtv.logrotate.d-r4 new file mode 100644 index 000000000000..28e3ce62bfdb --- /dev/null +++ b/media-tv/mythtv/files/mythtv.logrotate.d-r4 @@ -0,0 +1,14 @@ +/var/log/mythtv/*.log { + weekly + rotate 8 + missingok + ifempty + nocreate + nocompress + sharedscripts + olddir /var/log/mythtv/old + lastaction + killall -HUP mythlogserver + find /var/log/mythtv/old -type f -mtime +30 -delete + endscript +} diff --git a/media-tv/mythtv/files/xinitrc-r1 b/media-tv/mythtv/files/xinitrc-r1 new file mode 100644 index 000000000000..c366fe487a84 --- /dev/null +++ b/media-tv/mythtv/files/xinitrc-r1 @@ -0,0 +1,8 @@ +# .xinitrc +[ -x /usr/bin/nvidia-settings ] && /usr/bin/nvidia-settings -l +/usr/bin/xset s noblank +/usr/bin/xset s off +/usr/bin/xset -dpms +/usr/bin/evilwm & +# Configure arguments via /etc/conf.d/mythfrontend +exec /usr/bin/mythfrontend |