diff options
author | Rick Farina <zerochaos@gentoo.org> | 2013-01-24 02:03:20 +0000 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2013-01-24 02:03:20 +0000 |
commit | 541734e2b0c01047a0948b3b13785a1755d42cbb (patch) | |
tree | 8ae3b043a836c4c4bc3103bb927a66a9740205b1 /net-wireless | |
parent | New package. dev-python/sh another subprocess interface library. (diff) | |
download | gentoo-2-541734e2b0c01047a0948b3b13785a1755d42cbb.tar.gz gentoo-2-541734e2b0c01047a0948b3b13785a1755d42cbb.tar.bz2 gentoo-2-541734e2b0c01047a0948b3b13785a1755d42cbb.zip |
hid emulation allows you to use your computer as bluetooth input device for remote devices
(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/hidclient/ChangeLog | 10 | ||||
-rw-r--r-- | net-wireless/hidclient/files/README | 16 | ||||
-rw-r--r-- | net-wireless/hidclient/hidclient-20120728.ebuild | 34 | ||||
-rw-r--r-- | net-wireless/hidclient/metadata.xml | 11 |
4 files changed, 71 insertions, 0 deletions
diff --git a/net-wireless/hidclient/ChangeLog b/net-wireless/hidclient/ChangeLog new file mode 100644 index 000000000000..52d7344e7612 --- /dev/null +++ b/net-wireless/hidclient/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-wireless/hidclient +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hidclient/ChangeLog,v 1.1 2013/01/24 02:03:20 zerochaos Exp $ + +*hidclient-20120728 (24 Jan 2013) + + 24 Jan 2013; Rick Farina <zerochaos@gentoo.org> +files/README, + +hidclient-20120728.ebuild, +metadata.xml: + hid emulation allows you to use your computer as bluetooth input device for + remote devices diff --git a/net-wireless/hidclient/files/README b/net-wireless/hidclient/files/README new file mode 100644 index 000000000000..20497fa7dc44 --- /dev/null +++ b/net-wireless/hidclient/files/README @@ -0,0 +1,16 @@ +Maintainer note: I copied this from the homepage for reference + +Command-line parameter "-l" to list input devices +-e<NUM> to ONLY bind to device Number NUM (see -l List) +-x will "mute" the device(s) for X11 so you can start hidclient while having a X11 session. +-fFIFONAME will read data from a FIFO instead of event devices. + +You don't need to copy anything into /etc/bluetooth. Might be a good idea to edit /etc/bluetooth/main.conf and set "DisabledPlugins=input" there, and "Class=0x000540" - that helps +identifying the device as a "keyboard". Now run +sudo hidclient -l +to list the available input devices. If you have for example two usb mice and want to export only one (while working locally on the other), select the ID number from the first column. Start +hidclient with +sudo hidclient -e4 -x +where 4 is the number of your mouse. Hidclient will wait for bluetooth connections. The mouse should stop working on the local PC, so it will not interfere with your normal computer usage +while it is connected to another device. +With the -x parameter, you can ignore the "openvt" mentioned above. diff --git a/net-wireless/hidclient/hidclient-20120728.ebuild b/net-wireless/hidclient/hidclient-20120728.ebuild new file mode 100644 index 000000000000..7c0ac4f153d8 --- /dev/null +++ b/net-wireless/hidclient/hidclient-20120728.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hidclient/hidclient-20120728.ebuild,v 1.1 2013/01/24 02:03:20 zerochaos Exp $ + +EAPI=4 + +DESCRIPTION="Use your machine as a bluetooh keyboard/mouse" +HOMEPAGE="http://anselm.hoffmeister.be/computer/hidclient/" +SRC_URI="http://anselm.hoffmeister.be/computer/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="net-wireless/bluez" +RDEPEND="${DEPEND} + x11-apps/xinput" + +S="${WORKDIR}" + +src_prepare() { + sed -i 's#gcc#$(CC)#' Makefile + sed -i 's#-O2#$(CFLAGS) $(LDFLAGS)#' Makefile +} + +src_compile() { + emake hidclient +} + +src_install() { + dosbin hidclient + dodoc "${FILESDIR}"/README +} diff --git a/net-wireless/hidclient/metadata.xml b/net-wireless/hidclient/metadata.xml new file mode 100644 index 000000000000..5fcbf8e1851a --- /dev/null +++ b/net-wireless/hidclient/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>zerochaos@gentoo.org</email> +<name>Rick Farina</name> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + |