summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-remote
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/vdr-remote')
-rw-r--r--media-plugins/vdr-remote/Manifest9
-rw-r--r--media-plugins/vdr-remote/files/confd43
-rw-r--r--media-plugins/vdr-remote/files/rc-addon.sh97
-rw-r--r--media-plugins/vdr-remote/metadata.xml8
-rw-r--r--media-plugins/vdr-remote/vdr-remote-0.6.0-r1.ebuild28
-rw-r--r--media-plugins/vdr-remote/vdr-remote-0.7.0.ebuild28
6 files changed, 213 insertions, 0 deletions
diff --git a/media-plugins/vdr-remote/Manifest b/media-plugins/vdr-remote/Manifest
new file mode 100644
index 000000000000..54021a0338b8
--- /dev/null
+++ b/media-plugins/vdr-remote/Manifest
@@ -0,0 +1,9 @@
+AUX confd 1103 SHA256 8f9949294985b758ab0c6cc624c602d0f890828a163ae6805c58f7c95ad9e1d0 SHA512 f2f703a8f9e5ec1bfcf6ab2e8b36b5c08849f497a563316c4e98614c69d7c8bbd06e5e636815d93895ef78e85d19f48ee95622db74a1592e7a6a8053523d5bda WHIRLPOOL 8d02909eee99fe45f3b8d6b1f65d6cc50f598462c5f2e8596d67f83a08fe5cc01f7fe80b3e70701060185bc4ac5bfced5d317c9b47a5cc12a79e6dbe1b9f4008
+AUX rc-addon.sh 2228 SHA256 72063c2973c2eb288401851ea76f06963a24c506efe02d9f75b3950141cc24c7 SHA512 2d589137ec81934bd8e3e3e78679faa182c5e8b31528bf43dfbc19bd643fdf0ebde8517551af3ee071dddbbdf266b62d634ee40b1ca5131337fef4093e8bed82 WHIRLPOOL 2636af3f81669492daf0da0f5f8ed7b37a68569e2c61a2f91feded1b2cddd298bf5e2799e4215f83849f8e149647f9ad5298a1f77af4d81cb8375db9db8cf51a
+DIST vdr-remote-0.6.0.tgz 32869 SHA256 c05d17f207bd2723ae6c079bc8961ba0badfcced149afbea63a5c52c807de254 SHA512 1836255d40c9a491d1f0dcab7779a3f75d125b4d28bce00954c2d774c83172e4d69763e34e3f7d9540a951faeead0c12d4a44b0a367a92caae3b22bb3f8c524d WHIRLPOOL f9e3c28e68cb75ea068596e470a5da92d843ff7b89c9b1c800fb8a6fc1fa7ddceaf9e44043755cc81d0d34efc70e19454f0ebb58ab60c6b4e4c51dc49f61736e
+DIST vdr-remote-0.7.0.tgz 34267 SHA256 e90a065db896e030dbb8c8dd99b9b70f3e3ade1017bedcbe6c50e3ce53512af0 SHA512 18c758e9cd519ffc6ccd2a1b53109d7f1ac1c65a32ae43b9eae41ea64ff2ec9721c557ca75a03620b9fee1463608ab0a84d09fad31e233804695570eadec3728 WHIRLPOOL ab433325d625d835edad909f10cb9a10f1c0dceb5562f4f08157723295f8c90ed014c903ab2bf6dcd44b55bd0c0dd427e6629f0c83368dc75e758304947cd558
+EBUILD vdr-remote-0.6.0-r1.ebuild 681 SHA256 cadb198f693c073c402db289754057f0352ea766080623fef3efbea6d3b11c15 SHA512 bd17dfc3064529502f4850eb3b22d3f6e6dd2a4e91e5dc0df73ebe8efd19da885d2c0ae0eb8c4524938fdaf4065e6a65e3698caef063911d3ab4e89c91c2d1f7 WHIRLPOOL 585303f2e6634027ab1cc3f379e4af24b8a3c0ba68d8ba9f8522c86c67160ce5e50a0783da6a2450ffb77acfc17474d58d3121b2f97944b68ae71205c8c89057
+EBUILD vdr-remote-0.7.0.ebuild 681 SHA256 86791e5c2216a732af91b338a18977c56535a96173d2eca4e0ba5d81334df7ac SHA512 fe9f06ca523e3b124b2cc671770693b4852ab685b0bdb624d592ac7e29b6de4a87557ddbe003655e4a0fd1417e03866f1b636b482cdc3b0df454170f2e5ed35c WHIRLPOOL 9610193b95bdec953b8fbb99c064d4f8bfde7757f33e080bd189df3925d77ca9b7f79d3abed5663d9df8d0cf632cbd1628f7376fb0fa3557c2dbbe15c48dbfea
+MISC ChangeLog 3712 SHA256 06a4a80b9cabe33d6b77bc67ad3dd65180d7eb67765ebeca676a5c0e33ce199e SHA512 099770b98b55375ee8f53c37cb263f3b3485e35b64718ca503a57aa78d7c44f28a9c93991b8bfe40608eda758d4001c2e36f5d4bad841daa5ff015364df884c1 WHIRLPOOL c0e586b786179d5dd0a423c51e87078ce63af6cafa36274eaf2a8708e8c0f2568886e5cb688f0a76a1c9a72915f35676932ae33442dba2fefbef7dfa691c5146
+MISC ChangeLog-2015 4317 SHA256 d9ee11195991aae6ace82f40398c1b706aa48d05b8a67d65cf8440dbc2cce072 SHA512 a646b75644bdb20535b5ec7b7e1fd2ed500d4c5a1b531eb1701098b2834e0a1039c541c0ab6db86b3015963555853ef164984a073b0f544da5cfec498cb28cb9 WHIRLPOOL cde50e9da231e26ac6c0ea23c4c5b0f313f901020cb3792a4fb6ddfd3c3f8ad13e0bc762192f142212246db097bbb4ffb67685c8ddabb9ffbabd5688745dafce
+MISC metadata.xml 248 SHA256 922dc268419eaa3de4ffc06fd18d4bf2cc6e6aa06567b7a8ce7cd86725123385 SHA512 d2b0fcac72aa7f30ad4e0e6f5e60ef00c6bd80f54edec007af1c9b8677b3c5241b365c0602bf3d4b01d3bd6bfe27c6a7f7d97bf467d3ffb10254b54f63d3dd5e WHIRLPOOL a4a4d51409178353b2dd0ef051fb0e06ca24b7cbfc8bfbfda4065de11ffb62608aa530f3e5e49674d1ef8771bde50d67f9cb7f89a5600e5afad11178e20fc964
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/rc-addon.sh b/media-plugins/vdr-remote/files/rc-addon.sh
new file mode 100644
index 000000000000..5b5bdff49d18
--- /dev/null
+++ b/media-plugins/vdr-remote/files/rc-addon.sh
@@ -0,0 +1,97 @@
+#
+# rc-addon-script for plugin remote
+#
+
+check_device() {
+ local handlers="${1}"
+ local name="${2}"
+ local eventdev=""
+ [ "${handlers}" = "" ] && return
+
+ local handler
+ for handler in ${handlers}; do
+ case "${handler}" in
+ event*)
+ eventdev=${handler}
+ ;;
+ esac
+ done
+
+ if [ "${eventdev}" = "" ]; then
+ if [ "${evdev_warning_showed}" != "1" ]; then
+ echo "you need to load module evdev for autodetect input-devices to work"
+ evdev_warning_showed=1
+ fi
+ return
+ fi
+
+ case "${name}" in
+ *dvb*|*DVB*)
+ einfo_level1 "Autodetect Input Device ${eventdev} (Name: ${name})"
+ REMOTE_PLUGIN_INPUT_DEVICE="${REMOTE_PLUGIN_INPUT_DEVICE} /dev/input/${eventdev}"
+ ;;
+ esac
+}
+
+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
+ [ -e /proc/av7110_ir ] && 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
+}
diff --git a/media-plugins/vdr-remote/metadata.xml b/media-plugins/vdr-remote/metadata.xml
new file mode 100644
index 000000000000..27575115fadb
--- /dev/null
+++ b/media-plugins/vdr-remote/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-plugins/vdr-remote/vdr-remote-0.6.0-r1.ebuild b/media-plugins/vdr-remote/vdr-remote-0.6.0-r1.ebuild
new file mode 100644
index 000000000000..1c4b7a5a99d8
--- /dev/null
+++ b/media-plugins/vdr-remote/vdr-remote-0.6.0-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: use various devices for controlling vdr (keyboards, lirc, remotes bundled with tv-cards)"
+HOMEPAGE="http://www.escape-edv.de/endriss/vdr/"
+SRC_URI="http://www.escape-edv.de/endriss/vdr/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+IUSE="systemd"
+
+DEPEND=">=media-video/vdr-2.0.0"
+
+pkg_setup() {
+ vdr-plugin-2_pkg_setup
+
+ if use systemd; then
+ if ! getent group input | grep -q vdr; then
+ einfo "add user 'vdr' to group 'input' for full access to remote control device"
+ gpasswd -a vdr input
+ fi
+ fi
+}
diff --git a/media-plugins/vdr-remote/vdr-remote-0.7.0.ebuild b/media-plugins/vdr-remote/vdr-remote-0.7.0.ebuild
new file mode 100644
index 000000000000..c117438b616c
--- /dev/null
+++ b/media-plugins/vdr-remote/vdr-remote-0.7.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: use various devices for controlling vdr (keyboards, lirc, remotes bundled with tv-cards)"
+HOMEPAGE="http://www.escape-edv.de/endriss/vdr/"
+SRC_URI="http://www.escape-edv.de/endriss/vdr/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+IUSE="systemd"
+
+DEPEND=">=media-video/vdr-2.2.0"
+
+pkg_setup() {
+ vdr-plugin-2_pkg_setup
+
+ if use systemd; then
+ if ! getent group input | grep -q vdr; then
+ einfo "add user 'vdr' to group 'input' for full access to remote control device"
+ gpasswd -a vdr input
+ fi
+ fi
+}