diff options
-rw-r--r-- | media-plugins/vdr-remote/ChangeLog | 10 | ||||
-rw-r--r-- | media-plugins/vdr-remote/Manifest | 12 | ||||
-rw-r--r-- | media-plugins/vdr-remote/files/confd | 43 | ||||
-rw-r--r-- | media-plugins/vdr-remote/files/digest-vdr-remote-0.3.6 | 3 | ||||
-rw-r--r-- | media-plugins/vdr-remote/files/rc-addon.sh | 99 | ||||
-rw-r--r-- | media-plugins/vdr-remote/metadata.xml | 12 | ||||
-rw-r--r-- | media-plugins/vdr-remote/vdr-remote-0.3.6.ebuild | 18 |
7 files changed, 197 insertions, 0 deletions
diff --git a/media-plugins/vdr-remote/ChangeLog b/media-plugins/vdr-remote/ChangeLog new file mode 100644 index 000000000000..9d088c680741 --- /dev/null +++ b/media-plugins/vdr-remote/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-plugins/vdr-remote +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-remote/ChangeLog,v 1.1 2006/03/04 17:51:16 zzam Exp $ + +*vdr-remote-0.3.6 (04 Mar 2006) + + 04 Mar 2006; Matthias Schwarzott <zzam@gentoo.org> +files/confd, + +files/rc-addon.sh, +metadata.xml, +vdr-remote-0.3.6.ebuild: + imported ebuild from gentoo.de + diff --git a/media-plugins/vdr-remote/Manifest b/media-plugins/vdr-remote/Manifest new file mode 100644 index 000000000000..1fc3bf20eb17 --- /dev/null +++ b/media-plugins/vdr-remote/Manifest @@ -0,0 +1,12 @@ +MD5 e5af7e38dbc2643f5cdeb13ee725c4ed files/confd 1103 +RMD160 36509412b3af6090d088fb9fe332ecedb34e7351 files/confd 1103 +SHA256 8f9949294985b758ab0c6cc624c602d0f890828a163ae6805c58f7c95ad9e1d0 files/confd 1103 +MD5 17e17982dab55ec346ffcc11965b5976 files/digest-vdr-remote-0.3.6 238 +RMD160 e14d039562b88fb799df8a1ab0aa11e19dd4c937 files/digest-vdr-remote-0.3.6 238 +SHA256 2c1513d6e9f60046313481cd5df1b39b88e72b1beddbf2f70a4e0283875167e8 files/digest-vdr-remote-0.3.6 238 +MD5 b987b1662d9d044740aa7cdc23f15e51 files/rc-addon.sh 2308 +RMD160 45fd7e725511a3d9f0301c4ee80e86406f45c17b files/rc-addon.sh 2308 +SHA256 88398f1844eeeb767a88289846abff261835b4fa2b5d8a3c1ab0555631a893c2 files/rc-addon.sh 2308 +MD5 0ffc031c9f10e2af6c56b73b00202a03 vdr-remote-0.3.6.ebuild 508 +RMD160 85eb8d017212a052e3501e2330e00c17a478087a vdr-remote-0.3.6.ebuild 508 +SHA256 abcc2a457a9af124d30a753d67d1b0bdb170e6949e8b124673088f36cfa8c033 vdr-remote-0.3.6.ebuild 508 diff --git a/media-plugins/vdr-remote/files/confd b/media-plugins/vdr-remote/files/confd new file mode 100644 index 000000000000..d34513c6d230 --- /dev/null +++ b/media-plugins/vdr-remote/files/confd @@ -0,0 +1,43 @@ +# /etc/conf.d/vdr.remote: + +# Config-file for vdr plugin remote + +# +# Read keypresses from linux-kernel input-devices +# for example IR-Input on DVB-cards +# allowed values: no, autodetect or list of devices /dev/input/eventX (X=0,1,...) +# default: autodetect +# +#REMOTE_PLUGIN_INPUT_DEVICE="no" +# + +# +# Connect to lirc-daemon on this socket +# allowed values: list of sockets, example: /dev/lircd +# default: do not use any lirc-daemon from inside this plugin +# +#REMOTE_PLUGIN_LIRC="" + +# +# Listen on these tcp-ports for connections which get OSD and +# can send keypresses to vdr +# allowed values: List of portnumbers (>1024) +# default: do not open any tcp-port +# +#REMOTE_PLUGIN_TCP_PORTS="" + +# +# Listen on these tty-device for keypresses, do not show osd there +# allowed values: List of tty-device names (/dev/ttyX) +# default: do not open any tty-devices +# +#REMOTE_PLUGIN_TTY_ONLY_INPUT="" + +# +# Listen on these tty-device for keypresses and show the +# osd there +# allowed values: List of tty-device names (/dev/ttyX) +# default: do not open any tty-devices +# +#REMOTE_PLUGIN_TTY_WITH_OSD="" + diff --git a/media-plugins/vdr-remote/files/digest-vdr-remote-0.3.6 b/media-plugins/vdr-remote/files/digest-vdr-remote-0.3.6 new file mode 100644 index 000000000000..736fe7708175 --- /dev/null +++ b/media-plugins/vdr-remote/files/digest-vdr-remote-0.3.6 @@ -0,0 +1,3 @@ +MD5 3c3b6059a94434a00f9abf100d66565f vdr-remote-0.3.6.tgz 23804 +RMD160 dc2a9bc28c1c845b5cfc2538417235e3afbe24f7 vdr-remote-0.3.6.tgz 23804 +SHA256 ae05203f2092722cba4c45714b280e7e6f6ed6dfd498aecc56ed5d5c846f9cfd vdr-remote-0.3.6.tgz 23804 diff --git a/media-plugins/vdr-remote/files/rc-addon.sh b/media-plugins/vdr-remote/files/rc-addon.sh new file mode 100644 index 000000000000..3457788f4f9e --- /dev/null +++ b/media-plugins/vdr-remote/files/rc-addon.sh @@ -0,0 +1,99 @@ +# +# rc-addon-script for plugin remote +# + +check_device() { + local handlers="${1}" + local name="${2}" + local eventdev="" + [[ "${handlers}" == "" ]] && return + + for handler in ${handlers}; do + case ${handler} in + event*) + eventdev=${handler} + ;; + esac + done + if [[ "${eventdev}" == "" ]]; then + [[ "${evdev_warning_showed}" != "1" ]] \ + && echo "you need to load module evdev for autodetect input-devices to work" + evdev_warning_showed=1 + return + fi + if [[ (${name/dvb/} != ${name}) || (${name/DVB/} == ${name}) ]]; then + return + fi + + einfo_level1 "Autodetect Input Device ${eventdev} (Name: ${name})" + REMOTE_PLUGIN_INPUT_DEVICE="${REMOTE_PLUGIN_INPUT_DEVICE} /dev/input/${eventdev}" + return +} + +autodetect_input_devices() { + [[ -e /proc/bus/input/devices ]] || return + exec 3</proc/bus/input/devices + while read -u 3 line; do + case ${line} in + I:*) check_device "${device}" "${name}" + device="" + ;; + H:*) device=${line#H: Handlers=} + ;; + N:*) name=${line#N: Name=\"} + name=${name%\"} + ;; + esac + done + check_device "${device}" "${name}" + exec 3<&- +} + +plugin_pre_vdr_start() { + if [[ ${REMOTE_PLUGIN_INPUT_DEVICE:-autodetect} == "autodetect" ]]; then + REMOTE_PLUGIN_INPUT_DEVICE="" + autodetect_input_devices + fi + if [[ -n ${REMOTE_PLUGIN_INPUT_DEVICE} && "${REMOTE_PLUGIN_INPUT_DEVICE}" != "no" ]]; then + chown vdr:vdr /proc/av7110_ir + for dev in ${REMOTE_PLUGIN_INPUT_DEVICE}; do + [[ -e ${dev} ]] || continue + chown vdr:vdr ${dev} + add_plugin_param "--input=${dev}" + done + fi + + if [[ -n ${REMOTE_PLUGIN_LIRC} ]]; then + for dev in ${REMOTE_PLUGIN_LIRC}; do + [[ -e ${dev} ]] || continue + add_plugin_param "--lirc=${dev}" + done + fi + + if [[ -n ${REMOTE_PLUGIN_TCP_PORTS} ]]; then + for tcpport in ${REMOTE_PLUGIN_TCP_PORTS}; do + add_plugin_param "--port=tcp:${tcpport}" + done + fi + + if [[ -n ${REMOTE_PLUGIN_TTY_ONLY_INPUT} ]]; then + for tty in ${REMOTE_PLUGIN_TTY_ONLY_INPUT}; do + [[ -e ${tty} ]] || continue + chown vdr:vdr ${tty} + add_plugin_param "--tty=${tty}" + done + fi + + if [[ -n ${REMOTE_PLUGIN_TTY_WITH_OSD} ]]; then + for tty in ${REMOTE_PLUGIN_TTY_WITH_OSD}; do + [[ -e ${tty} ]] || continue + chown vdr:vdr ${tty} + add_plugin_param "--TTY=${tty}" + done + fi +} + +# for compatibility +if [[ ${SCRIPT_API:-1} -lt 2 ]]; then + plugin_pre_vdr_start +fi diff --git a/media-plugins/vdr-remote/metadata.xml b/media-plugins/vdr-remote/metadata.xml new file mode 100644 index 000000000000..3aaff838ed8d --- /dev/null +++ b/media-plugins/vdr-remote/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>media-tv</herd> +<maintainer> +<email>zzam@gentoo.org</email> +<name>Matthias Schwarzott</name> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + diff --git a/media-plugins/vdr-remote/vdr-remote-0.3.6.ebuild b/media-plugins/vdr-remote/vdr-remote-0.3.6.ebuild new file mode 100644 index 000000000000..6eff12295708 --- /dev/null +++ b/media-plugins/vdr-remote/vdr-remote-0.3.6.ebuild @@ -0,0 +1,18 @@ +# Copyright 2003-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-remote/vdr-remote-0.3.6.ebuild,v 1.1 2006/03/04 17:51:16 zzam Exp $ + +IUSE="" + +inherit vdr-plugin eutils + +RESTRICT="nomirror" +DESCRIPTION="VDR - remote control plugin" +HOMEPAGE="http://www.escape-edv.de/endriss/vdr/" +SRC_URI="http://www.escape-edv.de/endriss/vdr/${P}.tgz" +KEYWORDS="~x86 ~amd64" +SLOT="0" +LICENSE="GPL-2" + +DEPEND=">=media-video/vdr-1.3.6" + |