diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2005-12-13 20:59:06 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2005-12-13 20:59:06 +0000 |
commit | 0db509b5d79924cb60fcc23c7257298e211c085c (patch) | |
tree | 2f5b1821ec518384ee1fbdb7f75498dde0a28607 /media-plugins/vdr-powermate | |
parent | modular X deps (diff) | |
download | historical-0db509b5d79924cb60fcc23c7257298e211c085c.tar.gz historical-0db509b5d79924cb60fcc23c7257298e211c085c.tar.bz2 historical-0db509b5d79924cb60fcc23c7257298e211c085c.zip |
initial import of ebuild from gentoo.de, written by myself
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'media-plugins/vdr-powermate')
-rw-r--r-- | media-plugins/vdr-powermate/ChangeLog | 11 | ||||
-rw-r--r-- | media-plugins/vdr-powermate/Manifest | 7 | ||||
-rw-r--r-- | media-plugins/vdr-powermate/files/confd | 8 | ||||
-rw-r--r-- | media-plugins/vdr-powermate/files/digest-vdr-powermate-0.0.2 | 1 | ||||
-rwxr-xr-x | media-plugins/vdr-powermate/files/rc-addon.sh | 49 | ||||
-rw-r--r-- | media-plugins/vdr-powermate/files/vdr-powermate-0.0.2-1.3.18.diff | 51 | ||||
-rw-r--r-- | media-plugins/vdr-powermate/metadata.xml | 17 | ||||
-rw-r--r-- | media-plugins/vdr-powermate/vdr-powermate-0.0.2.ebuild | 27 |
8 files changed, 171 insertions, 0 deletions
diff --git a/media-plugins/vdr-powermate/ChangeLog b/media-plugins/vdr-powermate/ChangeLog new file mode 100644 index 000000000000..3b394029ac17 --- /dev/null +++ b/media-plugins/vdr-powermate/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for media-plugins/vdr-powermate +# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/ChangeLog,v 1.1 2005/12/13 20:59:06 hd_brummy Exp $ + +*vdr-powermate-0.0.2 (13 Dec 2005) + + 13 Dec 2005; Joerg Bornkessel <hd_brummy@gentoo.org> + +files/vdr-powermate-0.0.2-1.3.18.diff, +files/confd, +files/rc-addon.sh, + +metadata.xml, +vdr-powermate-0.0.2.ebuild: + Initial import of ebuild from gentoo.de, written by myself + diff --git a/media-plugins/vdr-powermate/Manifest b/media-plugins/vdr-powermate/Manifest new file mode 100644 index 000000000000..1f0433aa6c58 --- /dev/null +++ b/media-plugins/vdr-powermate/Manifest @@ -0,0 +1,7 @@ +MD5 3e481f195f2df3f7c50573937a54866f ChangeLog 505 +MD5 aad7ac146115bdd00cf6ad1e75561f56 metadata.xml 530 +MD5 c96588d48c67e2f9f59fb4cc8f81eaba vdr-powermate-0.0.2.ebuild 653 +MD5 20ef59cb49ea2d8efc392949a8ee307b files/confd 342 +MD5 ade2b90ac7f4c6a301ed1cffb868859e files/rc-addon.sh 1145 +MD5 834ed19e13c0b5599b84f870b7300dde files/vdr-powermate-0.0.2-1.3.18.diff 997 +MD5 8fdd6f76d4ef9c8a539cfdc73f78dcce files/digest-vdr-powermate-0.0.2 67 diff --git a/media-plugins/vdr-powermate/files/confd b/media-plugins/vdr-powermate/files/confd new file mode 100644 index 000000000000..79645161caee --- /dev/null +++ b/media-plugins/vdr-powermate/files/confd @@ -0,0 +1,8 @@ +# /etc/conf.d/vdr.powermate: +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/files/confd,v 1.1 2005/12/13 20:59:06 hd_brummy Exp $ + +# Set to powermat device (/dev/input/event?) +# Only needed to change if autodetect fails. +# allowed values: /dev/input/eventX (with X a number) +# default value: auto +#POWERMATE_DEVICE="auto" diff --git a/media-plugins/vdr-powermate/files/digest-vdr-powermate-0.0.2 b/media-plugins/vdr-powermate/files/digest-vdr-powermate-0.0.2 new file mode 100644 index 000000000000..a5c61cf1de2c --- /dev/null +++ b/media-plugins/vdr-powermate/files/digest-vdr-powermate-0.0.2 @@ -0,0 +1 @@ +MD5 8ddc65853c160c4f46acf4662a0a074f vdr-powermate-0.0.2.tgz 13126 diff --git a/media-plugins/vdr-powermate/files/rc-addon.sh b/media-plugins/vdr-powermate/files/rc-addon.sh new file mode 100755 index 000000000000..eb431626ed89 --- /dev/null +++ b/media-plugins/vdr-powermate/files/rc-addon.sh @@ -0,0 +1,49 @@ +# plugin-startup-skript for powermate-plugin +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/files/rc-addon.sh,v 1.1 2005/12/13 20:59:06 hd_brummy Exp $ + +# try to autodetect device for powermate + +detect_powermate() { + POWERMATE_DEVICE="" + + local devfile + local base + local sysfile + local linkdest + + for devfile in /dev/input/event*; do + # check if devile is device + [[ -c "${devfile}" ]] || continue + + # and for corresponding sysfs-entry + base=${devfile/\/dev\/input\//} + sysfile=/sys/class/input/${base}/device/driver + [[ -L "${sysfile}" ]] || continue + + # if driver-link contains powermate + linkdest=$(readlink ${sysfile}) + [[ "${linkdest}" != "${linkdest/powermate/}" ]] || continue + + # the we are done + POWERMATE_DEVICE="${devfile}" + break + done +} + +plugin_pre_vdr_start() { + if [[ "${POWERMATE_DEVICE:-auto}" == "auto" ]]; then + detect_powermate + fi + + if [[ -c "${POWERMATE_DEVICE}" ]]; then + chown vdr:vdr "${POWERMATE_DEVICE}" + add_plugin_param "--device=${POWERMATE_DEVICE}" + else + ewarn "No powermate-device found." + fi +} + +# for compatibility +if [[ ${SCRIPT_API:-1} -lt 2 ]]; then + plugin_pre_vdr_start +fi diff --git a/media-plugins/vdr-powermate/files/vdr-powermate-0.0.2-1.3.18.diff b/media-plugins/vdr-powermate/files/vdr-powermate-0.0.2-1.3.18.diff new file mode 100644 index 000000000000..73f77ad3eb55 --- /dev/null +++ b/media-plugins/vdr-powermate/files/vdr-powermate-0.0.2-1.3.18.diff @@ -0,0 +1,51 @@ +--- powermate-0.0.2/powermate.c ++++ powermate-0.0.2/powermate.c +@@ -32,7 +32,9 @@ + : context(kContextNormal), + menu(false), + pushed(false), ++#if VDRVERSNUM < 10318 + lastPush(0), ++#endif + offset(0), + click(false), + turn(false) +@@ -125,8 +127,12 @@ + } + if (click && !pushed) + { ++#if VDRVERSNUM < 10318 + int current = time_ms(); + if (current - lastPush > PowerMateSetup.doubleClickTime) ++#else ++ if (doubleClickTimeOut.TimedOut()) ++#endif + { + //printf("CLICK\n"); + ProcessEvent(kEventClick); +@@ -207,7 +213,11 @@ + pushed = true; + turn = false; + offset = 0; ++#if VDRVERSNUM < 10318 + lastPush = time_ms(); ++#else ++ doubleClickTimeOut.Set(PowerMateSetup.doubleClickTime); ++#endif + } + else + { +--- powermate-0.0.2/powermate.h ++++ powermate-0.0.2/powermate.h +@@ -25,7 +25,11 @@ + bool menu; + + bool pushed; ++#if VDRVERSNUM < 10318 + int lastPush; ++#else ++ cTimeMs doubleClickTimeOut; ++#endif + int offset; + bool click; + bool turn; diff --git a/media-plugins/vdr-powermate/metadata.xml b/media-plugins/vdr-powermate/metadata.xml new file mode 100644 index 000000000000..ba4733f873a4 --- /dev/null +++ b/media-plugins/vdr-powermate/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>media-tv</herd> + <maintainer> + <email>hd_brummy@gentoo.org</email> + <name>Joerg Bornkessel</name> + </maintainer> + <longdescription lang="en"> + The Plugin knows is used the + PowerMate of Griffin to the VDR to bind. + </longdescription> + <longdescription lang="de"> + Das Plugin kann benutzt werden den PowerMate von Griffin + an den VDR zu binden. + </longdescription> +</pkgmetadata> diff --git a/media-plugins/vdr-powermate/vdr-powermate-0.0.2.ebuild b/media-plugins/vdr-powermate/vdr-powermate-0.0.2.ebuild new file mode 100644 index 000000000000..9275d9f14ad9 --- /dev/null +++ b/media-plugins/vdr-powermate/vdr-powermate-0.0.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/vdr-powermate-0.0.2.ebuild,v 1.1 2005/12/13 20:59:06 hd_brummy Exp $ + +inherit vdr-plugin + +DESCRIPTION="Video Disk Recorder - Powermate PlugIn" +HOMEPAGE="http://www.powarman.de/" +SRC_URI="http://home.arcor.de/andreas.regel/files/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +RDEPEND="media-video/vdr" +DEPEND="${RDEPEND}" + +src_unpack() { + vdr-plugin_src_unpack + + if + has_version ">=media-video/vdr-1.3.18" + then + epatch ${FILESDIR}/${P}-1.3.18.diff + fi +} |