summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-joystick
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-joystick
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz
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-plugins/vdr-joystick')
-rw-r--r--media-plugins/vdr-joystick/Manifest1
-rw-r--r--media-plugins/vdr-joystick/files/confd7
-rw-r--r--media-plugins/vdr-joystick/files/mapping.conf25
-rw-r--r--media-plugins/vdr-joystick/files/rc-addon.sh11
-rw-r--r--media-plugins/vdr-joystick/metadata.xml12
-rw-r--r--media-plugins/vdr-joystick/vdr-joystick-0.0.3.ebuild36
6 files changed, 92 insertions, 0 deletions
diff --git a/media-plugins/vdr-joystick/Manifest b/media-plugins/vdr-joystick/Manifest
new file mode 100644
index 00000000000..29fc9a19e08
--- /dev/null
+++ b/media-plugins/vdr-joystick/Manifest
@@ -0,0 +1 @@
+DIST vdr-joystick-0.0.3.tgz 12246 SHA256 3765008ee99590239263a16d44f9577dba5902c944b67793af13d436ad20e12b SHA512 d51b56bee64e0b871898d10ad55c0fb48fb29a5f26f342d835575fa226f6be0d8670251363f9a49988d5e0adc118afeb0f69a283dfde818044d23501c2a45ca0 WHIRLPOOL 3dd7d47b4d08afdbfb924bcc26ec6c0818120fcf49ae936ac0f0846c75a6868758e4a3d5d8aeda8bd77213d68611254f5d9bb6d94f87e7099cfc4f7039eb1f47
diff --git a/media-plugins/vdr-joystick/files/confd b/media-plugins/vdr-joystick/files/confd
new file mode 100644
index 00000000000..d3b4d2cd934
--- /dev/null
+++ b/media-plugins/vdr-joystick/files/confd
@@ -0,0 +1,7 @@
+# /etc/conf.d/vdr.joystick
+# $Id$
+
+### Joystick device
+# default: /dev/js0
+#VDR_JOYSTICK_DEVICE="/dev/js0"
+
diff --git a/media-plugins/vdr-joystick/files/mapping.conf b/media-plugins/vdr-joystick/files/mapping.conf
new file mode 100644
index 00000000000..6f7f593d095
--- /dev/null
+++ b/media-plugins/vdr-joystick/files/mapping.conf
@@ -0,0 +1,25 @@
+##############################
+# vdr-joystick: mapping.conf
+##############################
+
+# With version 0.0.3 axis mappings became possible.
+# Each entry represents one axis in the following format:
+# <axis number>:<off value>:<threshold>:<value1>:<value2>:<value3>: ...
+#
+# This is an example which works for the hat of my Wingman Extreme:
+# 2:7800:1000:0:-12000:-32700
+# and leads to the following results:
+# value button
+# 6800 - 8800 none
+# -1000 - 1000 0
+# -13000 - -11000 1
+# -33700 - -31700 2
+#
+# If an axis is not mapped in mappings.conf a standard entry will be generated
+# which has the same effect like the axis handling of version 0.0.2:
+# <num>:0:20000:-25000:25000
+#
+
+# Wingman Extreme
+# 2:7800:1000:0:-12000:-32700
+
diff --git a/media-plugins/vdr-joystick/files/rc-addon.sh b/media-plugins/vdr-joystick/files/rc-addon.sh
new file mode 100644
index 00000000000..5546cf44ca7
--- /dev/null
+++ b/media-plugins/vdr-joystick/files/rc-addon.sh
@@ -0,0 +1,11 @@
+# $Id$
+#
+# rc-addon plugin-startup-skript for vdr-joystick
+#
+# zulio <zulio(at)zulinux.net>
+
+plugin_pre_vdr_start() {
+
+ add_plugin_param "-d ${VDR_JOYSTICK_DEVICE:=/dev/js0}"
+}
+
diff --git a/media-plugins/vdr-joystick/metadata.xml b/media-plugins/vdr-joystick/metadata.xml
new file mode 100644
index 00000000000..d1b88e6872a
--- /dev/null
+++ b/media-plugins/vdr-joystick/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>vdr@gentoo.org</email>
+<name>Gentoo VDR Project</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-plugins/vdr-joystick/vdr-joystick-0.0.3.ebuild b/media-plugins/vdr-joystick/vdr-joystick-0.0.3.ebuild
new file mode 100644
index 00000000000..335423e7538
--- /dev/null
+++ b/media-plugins/vdr-joystick/vdr-joystick-0.0.3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR plugin: allows using a joystick as a remote control for VDR"
+HOMEPAGE="http://www.powarman.de/vdr_plugins.htm"
+SRC_URI="http://home.arcor.de/andreas.regel/files/joystick/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.4.6"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ insinto /etc/vdr/plugins/joystick
+ doins "${FILESDIR}"/mapping.conf
+}
+
+pkg_postinst() {
+ vdr-plugin-2_pkg_postinst
+
+ echo
+ elog "To use the plugin your joystick has to be connected to your game port and its kernel module has to be loaded."
+ elog "Check configuration file:"
+ elog "/etc/vdr/plugins/joystick/mapping.conf"
+ echo
+}