summaryrefslogtreecommitdiff
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 /sys-apps/input-utils
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
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 'sys-apps/input-utils')
-rw-r--r--sys-apps/input-utils/Manifest2
-rw-r--r--sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch22
-rw-r--r--sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch116
-rw-r--r--sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild35
-rw-r--r--sys-apps/input-utils/input-utils-1.1.ebuild37
-rw-r--r--sys-apps/input-utils/metadata.xml19
6 files changed, 231 insertions, 0 deletions
diff --git a/sys-apps/input-utils/Manifest b/sys-apps/input-utils/Manifest
new file mode 100644
index 000000000000..31e5b1dc4220
--- /dev/null
+++ b/sys-apps/input-utils/Manifest
@@ -0,0 +1,2 @@
+DIST input-1.1.tar.gz 21652 SHA256 544636fb0d468cae7de502f7b973a54a3195073328b235b906bd21298694b65b SHA512 dfb89bfdb956fbd80134606e3deda8fbd7d5679513e882ac169adb4f547980dcdec56db4c992f7dda4036c0dbbb4bec0468262893d3c5253de9d3a8b909d81cc WHIRLPOOL a571f9516f9554c7e1c039ef7fc1727fe2cd9dea2a2539fc514ffc80c09d6c34d060783581112b5401229ac5a1518985b6ca4a0bcccaef3fc97ec13b05e1e457
+DIST input-20081014-101501.tar.gz 33797 SHA256 185f31f5776bd81be28ae7984d6d2812420858bed8f6ebfbfeaaa7d6ca62b0e5 SHA512 24ad3b5077b0e32b0ed6d28e84c27089091468d1379645f862c66a1987f079765c5aed850542b3bcec25f6254b681991119332a5b024ff04dd3dbd72e3ae3450 WHIRLPOOL e4daac596d81d5a71c829935d6185bc857a4d1d7971d97a6fc9d3b633f9ceeaf8e269b3fe783f948e0e426c5c2a4fd669b861689dd0d2cfeee32b38aaf3012c8
diff --git a/sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch b/sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch
new file mode 100644
index 000000000000..007258a5330f
--- /dev/null
+++ b/sys-apps/input-utils/files/input-utils-0.0.1-protocol-mismatch-fix.patch
@@ -0,0 +1,22 @@
+Patch from https://bugs.gentoo.org/attachment.cgi?id=262203&action=diff
+
+--- input.c.orig 2011-02-12 02:29:40.308989368 -0500
++++ input.c 2011-02-12 02:30:21.209265625 -0500
+@@ -46,17 +46,6 @@
+ if (verbose)
+ fprintf(stderr,"%s\n",filename);
+
+- if (-1 == ioctl(fd,EVIOCGVERSION,&version)) {
+- perror("ioctl EVIOCGVERSION");
+- close(fd);
+- return -1;
+- }
+- if (EV_VERSION != version) {
+- fprintf(stderr, "protocol version mismatch (expected %d, got %d)\n",
+- EV_VERSION, version);
+- close(fd);
+- return -1;
+- }
+ return fd;
+ }
+
diff --git a/sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch b/sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch
new file mode 100644
index 000000000000..796b1bef62d4
--- /dev/null
+++ b/sys-apps/input-utils/files/input-utils-0.0.1_pre20081014.patch
@@ -0,0 +1,116 @@
+This patch is derived from input-utils_0.0.20051128-4.diff.gz
+
+diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/GNUmakefile input-utils-0.0.20081014/GNUmakefile
+--- input-utils-0.0.20081014.orig/GNUmakefile 2008-10-14 10:27:01.000000000 +0000
++++ input-utils-0.0.20081014/GNUmakefile 2011-07-03 07:49:07.000000000 +0000
+@@ -7,7 +7,7 @@
+ LDLIBS += -lm
+
+ # build
+-TARGETS := lsinput input-events input-kbd input-send input-recv lircd.conf
++TARGETS := lsinput input-events input-kbd lircd.conf
+ HEADERS := EV.h REL.h ABS.h MSC.h LED.h SND.h REP.h KEY.h BTN.h BUS.h SW.h
+
+ # default target
+@@ -45,7 +45,7 @@
+
+ install: build
+ $(INSTALL_DIR) $(bindir) $(mandir)/man8
+- $(INSTALL_BINARY) lsinput input-events input-kbd input-send input-recv $(bindir)
++ $(INSTALL_BINARY) lsinput input-events input-kbd $(bindir)
+ $(INSTALL_DATA) lsinput.man $(mandir)/man8/lsinput.8
+ $(INSTALL_DATA) input-kbd.man $(mandir)/man8/input-kbd.8
+ $(INSTALL_DATA) input-events.man $(mandir)/man8/input-events.8
+diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/input-events.man input-utils-0.0.20081014/input-events.man
+--- input-utils-0.0.20081014.orig/input-events.man 2005-07-27 14:17:04.000000000 +0000
++++ input-utils-0.0.20081014/input-events.man 2011-07-03 07:48:16.000000000 +0000
+@@ -1,7 +1,7 @@
+ .TH INPUT-EVENTS 8 "July 2005" "" ""
+ .SH NAME
+
+-input-events \- list input devices
++input-events \- print input events
+
+ .SH SYNOPSIS
+ \fBinput\-events \fR [\fB\-t\fR\ \fIsec\fR] [\fB\-g\fR]\ \fIdevnr\fR
+diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/input.h input-utils-0.0.20081014/input.h
+--- input-utils-0.0.20081014.orig/input.h 2008-10-14 10:27:01.000000000 +0000
++++ input-utils-0.0.20081014/input.h 2011-07-03 07:48:16.000000000 +0000
+@@ -1,7 +1,7 @@
+ #include <inttypes.h>
+
+ #include <sys/ioctl.h>
+-#include "linux-input.h"
++#include <linux/input.h>
+
+ #define ev_name(code) ((code) < EV_MAX && EV_NAME[code] ? EV_NAME[code] : "???")
+ #define ev_type_name(type, code) ((code) < EV_TYPE_MAX[type] && EV_TYPE_NAME[type][code] ? EV_TYPE_NAME[type][code] : "???")
+diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/input-kbd.c input-utils-0.0.20081014/input-kbd.c
+--- input-utils-0.0.20081014.orig/input-kbd.c 2008-10-14 10:27:01.000000000 +0000
++++ input-utils-0.0.20081014/input-kbd.c 2011-07-03 07:48:16.000000000 +0000
+@@ -36,7 +36,6 @@
+ entry.keycode = KEY_RESERVED;
+ rc = ioctl(fd, EVIOCGKEYCODE, &entry);
+ if (rc < 0) {
+- map->size--;
+ break;
+ }
+ if (map->size >= map->alloc) {
+diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/lirc.sh input-utils-0.0.20081014/lirc.sh
+--- input-utils-0.0.20081014.orig/lirc.sh 2005-11-28 14:07:00.000000000 +0000
++++ input-utils-0.0.20081014/lirc.sh 2011-07-03 07:48:16.000000000 +0000
+@@ -1,5 +1,5 @@
+ #!/bin/sh
+-INPUT="linux-input.h"
++INPUT="/usr/include/linux/input.h"
+ cat <<EOF
+ begin remote
+ name linux-input-layer
+diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/lsinput.c input-utils-0.0.20081014/lsinput.c
+--- input-utils-0.0.20081014.orig/lsinput.c 2004-04-21 11:55:44.000000000 +0000
++++ input-utils-0.0.20081014/lsinput.c 2011-07-03 07:48:16.000000000 +0000
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/stat.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+
+@@ -10,14 +11,19 @@
+ static void list_devices(void)
+ {
+ int i,fd;
++ char filename[32];
++ struct stat statbuf;
+
+ for (i = 0; i < 32; i++) {
+- /* try to open */
+- fd = device_open(i,1);
+- if (-1 == fd)
+- return;
+- device_info(fd);
+- close(fd);
++ snprintf(filename,sizeof(filename), "/dev/input/event%d",i);
++ if (stat(filename, &statbuf) == 0) {
++ /* try to open */
++ fd = device_open(i,1);
++ if (-1 == fd)
++ return;
++ device_info(fd);
++ close(fd);
++ }
+ }
+ return;
+ }
+diff -Nuar --exclude '*.rej' --exclude '*.orig' input-utils-0.0.20081014.orig/name.sh input-utils-0.0.20081014/name.sh
+--- input-utils-0.0.20081014.orig/name.sh 2004-04-21 11:55:44.000000000 +0000
++++ input-utils-0.0.20081014/name.sh 2011-07-03 07:48:16.000000000 +0000
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+
+ TYPE="$1"
+-INPUT="linux-input.h"
++INPUT="/usr/include/linux/input.h"
+
+ awk "
+ /EV_VERSION/ { next };
diff --git a/sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild b/sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild
new file mode 100644
index 000000000000..d8a2f5fdf3ca
--- /dev/null
+++ b/sys-apps/input-utils/input-utils-0.0.1_pre20081014.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils
+
+MY_P="input-${PV/0.0.1_pre/}-101501"
+
+DESCRIPTION="Small collection of linux input layer utils"
+HOMEPAGE="http://dl.bytesex.org/cvs-snapshots/"
+SRC_URI="http://dl.bytesex.org/cvs-snapshots/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/input"
+
+src_prepare() {
+ # Ported from Debian
+ epatch "${FILESDIR}"/input-utils-0.0.1_pre20081014.patch
+ # version check stuff
+ epatch "${FILESDIR}"/input-utils-0.0.1-protocol-mismatch-fix.patch
+}
+
+src_install() {
+ make install bindir="${D}"/usr/bin mandir="${D}"/usr/share/man STRIP="" || die "make install failed"
+ dodoc lircd.conf
+ dodoc README
+}
diff --git a/sys-apps/input-utils/input-utils-1.1.ebuild b/sys-apps/input-utils/input-utils-1.1.ebuild
new file mode 100644
index 000000000000..a2db4cbe74b3
--- /dev/null
+++ b/sys-apps/input-utils/input-utils-1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils
+
+MY_PN="input"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Small collection of linux input layer utils"
+HOMEPAGE="https://www.kraxel.org/blog/linux/input/"
+SRC_URI="https://www.kraxel.org/releases/input/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Ported from Debian
+ #epatch "${FILESDIR}"/input-utils-0.0.1_pre20081014.patch
+ # version check stuff
+ #epatch "${FILESDIR}"/input-utils-0.0.1-protocol-mismatch-fix.patch
+ :
+}
+
+src_install() {
+ make install bindir="${D}"/usr/bin mandir="${D}"/usr/share/man STRIP="" || die "make install failed"
+ dodoc lircd.conf
+ dodoc README
+}
diff --git a/sys-apps/input-utils/metadata.xml b/sys-apps/input-utils/metadata.xml
new file mode 100644
index 000000000000..582146721cbe
--- /dev/null
+++ b/sys-apps/input-utils/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>zzam@gentoo.org</email>
+<name>Matthias Schwarzott</name>
+</maintainer>
+<maintainer>
+<email>robbat2@gentoo.org</email>
+<name>Robin H. Johnson</name>
+</maintainer>
+<longdescription lang="en">
+This is a collection of utilities which are useful when working with the input
+layer of the Linux kernel (version 2.6 and later). Included are utilities to
+list the input devices known to the kernel, show the input events that are
+received by a device, and query or modify keyboard maps.
+</longdescription>
+</pkgmetadata>
+