summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/inputd/ChangeLog8
-rw-r--r--sys-apps/inputd/files/digest-inputd-0.0.4-r13
-rw-r--r--sys-apps/inputd/files/inputd-0.0.4-r1.diff32
-rw-r--r--sys-apps/inputd/inputd-0.0.4-r1.ebuild37
4 files changed, 79 insertions, 1 deletions
diff --git a/sys-apps/inputd/ChangeLog b/sys-apps/inputd/ChangeLog
index e1bf371e3069..dee57198e3bd 100644
--- a/sys-apps/inputd/ChangeLog
+++ b/sys-apps/inputd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/inputd
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/inputd/ChangeLog,v 1.7 2006/09/09 13:05:20 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/inputd/ChangeLog,v 1.8 2006/10/09 06:49:09 killerfox Exp $
+
+*inputd-0.0.4-r1 (09 Oct 2006)
+
+ 09 Oct 2006; René Nussbaumer <killerfox@gentoo.org>
+ +files/inputd-0.0.4-r1.diff, +inputd-0.0.4-r1.ebuild:
+ inputd bump with small patch from upstream
09 Sep 2006; Michael Hanselmann <hansmi@gentoo.org>
-inputd-0.0.3-r1.ebuild:
diff --git a/sys-apps/inputd/files/digest-inputd-0.0.4-r1 b/sys-apps/inputd/files/digest-inputd-0.0.4-r1
new file mode 100644
index 000000000000..4e21a14d3d99
--- /dev/null
+++ b/sys-apps/inputd/files/digest-inputd-0.0.4-r1
@@ -0,0 +1,3 @@
+MD5 c2002b1fd2c6d4f074a3367cf5d33fd7 inputd-0.0.4.tar.bz2 98437
+RMD160 ea043514abe01643b70372196fd5f80da0bad417 inputd-0.0.4.tar.bz2 98437
+SHA256 2d989dbf81c83c0bc3e94689e71fa58c6491238cc0124b251f9eb76a11385a57 inputd-0.0.4.tar.bz2 98437
diff --git a/sys-apps/inputd/files/inputd-0.0.4-r1.diff b/sys-apps/inputd/files/inputd-0.0.4-r1.diff
new file mode 100644
index 000000000000..edcb17f4bb2f
--- /dev/null
+++ b/sys-apps/inputd/files/inputd-0.0.4-r1.diff
@@ -0,0 +1,32 @@
+Index: trunk/src/uinput.c
+===================================================================
+--- trunk/src/uinput.c (revision 62)
++++ trunk/src/uinput.c (working copy)
+@@ -130,6 +130,7 @@
+
+ g_io_channel_set_close_on_unref(inputdev->uinput, TRUE);
+ g_io_channel_set_encoding(inputdev->uinput, NULL, NULL);
++ g_io_channel_set_buffered(inputdev->uinput, FALSE);
+
+ fd = g_io_channel_unix_get_fd(inputdev->uinput);
+
+Index: trunk/src/brain.c
+===================================================================
+--- trunk/src/brain.c (revision 62)
++++ trunk/src/brain.c (working copy)
+@@ -167,10 +167,13 @@
+ wdata.activate = TRUE;
+ devmanager_foreach_dev(work, &wdata);
+
+- /* FIXME: If we don't sleep here for a very short time, X.org gets the
++ /* FIXME: If we don't sleep here for a short time, X.org might get the
+ * events in the wrong order. Who knows a better solution?
++ *
++ * Update 2006-10-04: The problem lies in the X.org code. I don't know
++ * where exactly and how to fix it. Maybe it's some polling issue.
+ */
+- usleep(1);
++ usleep(10 * 1000);
+
+ /* Press simulated key */
+ uinput_write_event(inputdev, EV_KEY, cfgtr->target.def->code, 1);
diff --git a/sys-apps/inputd/inputd-0.0.4-r1.ebuild b/sys-apps/inputd/inputd-0.0.4-r1.ebuild
new file mode 100644
index 000000000000..4b9cd545f811
--- /dev/null
+++ b/sys-apps/inputd/inputd-0.0.4-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/inputd/inputd-0.0.4-r1.ebuild,v 1.1 2006/10/09 06:49:09 killerfox Exp $
+
+inherit eutils
+
+DESCRIPTION="inputd is a user-space daemon to emulate key presses trough other
+key combinations"
+HOMEPAGE="http://hansmi.ch/software/inputd"
+SRC_URI="http://hansmi.ch/download/inputd/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc"
+IUSE=""
+
+DEPEND=">=dev-libs/glib-2.8
+ >=sys-kernel/linux-headers-2.6.16"
+RDEPEND="sys-fs/udev"
+
+src_unpack() {
+ unpack "${P}.tar.bz2"
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PF}.diff"
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die 'installation failed.'
+
+ newinitd ${FILESDIR}/inputd.init inputd
+ dodoc README
+
+ insinto /etc
+ doins doc/inputd.conf
+}
+