[arch-commits] Commit in inputattach/repos (28 files)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon May 13 14:27:34 UTC 2013
Date: Monday, May 13, 2013 @ 16:27:34
Author: spupykin
Revision: 90679
archrelease: copy trunk to community-i686, community-x86_64
Added:
inputattach/repos/community-i686/0001-Add-w8001-flag.patch
(from rev 90678, inputattach/trunk/0001-Add-w8001-flag.patch)
inputattach/repos/community-i686/0002-Allow-for-custom-baud-rates.patch
(from rev 90678, inputattach/trunk/0002-Allow-for-custom-baud-rates.patch)
inputattach/repos/community-i686/PKGBUILD
(from rev 90678, inputattach/trunk/PKGBUILD)
inputattach/repos/community-i686/inputattach.install
(from rev 90678, inputattach/trunk/inputattach.install)
inputattach/repos/community-i686/inputattach.service
(from rev 90678, inputattach/trunk/inputattach.service)
inputattach/repos/community-i686/inputattachctl
(from rev 90678, inputattach/trunk/inputattachctl)
inputattach/repos/community-x86_64/0001-Add-w8001-flag.patch
(from rev 90678, inputattach/trunk/0001-Add-w8001-flag.patch)
inputattach/repos/community-x86_64/0002-Allow-for-custom-baud-rates.patch
(from rev 90678, inputattach/trunk/0002-Allow-for-custom-baud-rates.patch)
inputattach/repos/community-x86_64/PKGBUILD
(from rev 90678, inputattach/trunk/PKGBUILD)
inputattach/repos/community-x86_64/inputattach.install
(from rev 90678, inputattach/trunk/inputattach.install)
inputattach/repos/community-x86_64/inputattach.service
(from rev 90678, inputattach/trunk/inputattach.service)
inputattach/repos/community-x86_64/inputattachctl
(from rev 90678, inputattach/trunk/inputattachctl)
Deleted:
inputattach/repos/community-i686/0001-Add-w8001-flag.patch
inputattach/repos/community-i686/0002-Allow-for-custom-baud-rates.patch
inputattach/repos/community-i686/PKGBUILD
inputattach/repos/community-i686/inputattach.conf.d
inputattach/repos/community-i686/inputattach.install
inputattach/repos/community-i686/inputattach.rc.d
inputattach/repos/community-i686/inputattach.service
inputattach/repos/community-i686/inputattachctl
inputattach/repos/community-x86_64/0001-Add-w8001-flag.patch
inputattach/repos/community-x86_64/0002-Allow-for-custom-baud-rates.patch
inputattach/repos/community-x86_64/PKGBUILD
inputattach/repos/community-x86_64/inputattach.conf.d
inputattach/repos/community-x86_64/inputattach.install
inputattach/repos/community-x86_64/inputattach.rc.d
inputattach/repos/community-x86_64/inputattach.service
inputattach/repos/community-x86_64/inputattachctl
---------------------------------------------------------+
/0001-Add-w8001-flag.patch | 54 +++++
/0002-Allow-for-custom-baud-rates.patch | 140 ++++++++++++++
/PKGBUILD | 100 ++++++++++
/inputattach.install | 32 +++
/inputattach.service | 22 ++
/inputattachctl | 28 ++
community-i686/0001-Add-w8001-flag.patch | 27 --
community-i686/0002-Allow-for-custom-baud-rates.patch | 70 -------
community-i686/PKGBUILD | 56 -----
community-i686/inputattach.conf.d | 10 -
community-i686/inputattach.install | 16 -
community-i686/inputattach.rc.d | 40 ----
community-i686/inputattach.service | 11 -
community-i686/inputattachctl | 14 -
community-x86_64/0001-Add-w8001-flag.patch | 27 --
community-x86_64/0002-Allow-for-custom-baud-rates.patch | 70 -------
community-x86_64/PKGBUILD | 56 -----
community-x86_64/inputattach.conf.d | 10 -
community-x86_64/inputattach.install | 16 -
community-x86_64/inputattach.rc.d | 40 ----
community-x86_64/inputattach.service | 11 -
community-x86_64/inputattachctl | 14 -
22 files changed, 376 insertions(+), 488 deletions(-)
Deleted: community-i686/0001-Add-w8001-flag.patch
===================================================================
--- community-i686/0001-Add-w8001-flag.patch 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/0001-Add-w8001-flag.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,27 +0,0 @@
-From 729257077e328e0b2fa1bba5a5509c09a743d5d0 Mon Sep 17 00:00:00 2001
-From: Peter Hutterer <peter.hutterer at who-t.net>
-Date: Tue, 13 Jul 2010 11:49:47 +1000
-Subject: [PATCH 2/3] Add w8001 flag for serial Wacom devices.
-
-Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
----
- inputattach.c | 3 +++
- 1 files changed, 3 insertions(+), 0 deletions(-)
-
-diff --git a/inputattach.c b/inputattach.c
-index a7de302..0382954 100644
---- a/inputattach.c
-+++ b/inputattach.c
-@@ -495,6 +495,9 @@ static struct input_types input_types[] = {
- { "--dump", "-dump", "Just enable device",
- B2400, CS8,
- 0, 0x00, 0x00, 0, dump_init },
-+{ "--w8001", "-w8001", "Wacom W8001",
-+ B38400, CS8,
-+ SERIO_W8001, 0x00, 0x00, 0, NULL },
- { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL }
- };
-
---
-1.7.2.3
-
Copied: inputattach/repos/community-i686/0001-Add-w8001-flag.patch (from rev 90678, inputattach/trunk/0001-Add-w8001-flag.patch)
===================================================================
--- community-i686/0001-Add-w8001-flag.patch (rev 0)
+++ community-i686/0001-Add-w8001-flag.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,27 @@
+From 729257077e328e0b2fa1bba5a5509c09a743d5d0 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Tue, 13 Jul 2010 11:49:47 +1000
+Subject: [PATCH 2/3] Add w8001 flag for serial Wacom devices.
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ inputattach.c | 3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/inputattach.c b/inputattach.c
+index a7de302..0382954 100644
+--- a/inputattach.c
++++ b/inputattach.c
+@@ -495,6 +495,9 @@ static struct input_types input_types[] = {
+ { "--dump", "-dump", "Just enable device",
+ B2400, CS8,
+ 0, 0x00, 0x00, 0, dump_init },
++{ "--w8001", "-w8001", "Wacom W8001",
++ B38400, CS8,
++ SERIO_W8001, 0x00, 0x00, 0, NULL },
+ { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL }
+ };
+
+--
+1.7.2.3
+
Deleted: community-i686/0002-Allow-for-custom-baud-rates.patch
===================================================================
--- community-i686/0002-Allow-for-custom-baud-rates.patch 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/0002-Allow-for-custom-baud-rates.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,70 +0,0 @@
-From 5d9373f24f1b519c030024b2f36277ba9713697c Mon Sep 17 00:00:00 2001
-From: Peter Hutterer <peter.hutterer at who-t.net>
-Date: Wed, 21 Jul 2010 14:41:04 +1000
-Subject: [PATCH 3/3] Allow for custom baud rates.
-
-Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
----
- inputattach.c | 25 ++++++++++++++++++++++++-
- 1 files changed, 24 insertions(+), 1 deletions(-)
-
-diff --git a/inputattach.c b/inputattach.c
-index 0382954..6806fc8 100644
---- a/inputattach.c
-+++ b/inputattach.c
-@@ -506,7 +506,7 @@ static void show_help(void)
- struct input_types *type;
-
- puts("");
-- puts("Usage: inputattach [--daemon] <mode> <device>");
-+ puts("Usage: inputattach [--daemon] [--baud <baud>] <mode> <device>");
- puts("");
- puts("Modes:");
-
-@@ -530,6 +530,7 @@ int main(int argc, char **argv)
- int i;
- char c;
- int retval;
-+ int baud = -1;
-
- for (i = 1; i < argc; i++) {
- if (!strcasecmp(argv[i], "--help")) {
-@@ -540,6 +541,15 @@ int main(int argc, char **argv)
- } else if (need_device) {
- device = argv[i];
- need_device = 0;
-+ } else if (!strcasecmp(argv[i], "--baud")) {
-+ if (argc <= i + 1) {
-+ show_help();
-+ fprintf(stderr,
-+ "inputattach: require baud rate\n");
-+ return EXIT_FAILURE;
-+ }
-+
-+ baud = atoi(argv[++i]);
- } else {
- if (type && type->name) {
- fprintf(stderr,
-@@ -580,6 +590,19 @@ int main(int argc, char **argv)
- return 1;
- }
-
-+ switch(baud) {
-+ case -1: break;
-+ case 2400: type->speed = B2400; break;
-+ case 4800: type->speed = B4800; break;
-+ case 9600: type->speed = B9600; break;
-+ case 19200: type->speed = B19200; break;
-+ case 38400: type->speed = B38400; break;
-+ default:
-+ fprintf(stderr, "inputattach: invalid baud rate '%d'\n",
-+ baud);
-+ return EXIT_FAILURE;
-+ }
-+
- setline(fd, type->flags, type->speed);
-
- if (type->flush)
---
-1.7.2.3
-
Copied: inputattach/repos/community-i686/0002-Allow-for-custom-baud-rates.patch (from rev 90678, inputattach/trunk/0002-Allow-for-custom-baud-rates.patch)
===================================================================
--- community-i686/0002-Allow-for-custom-baud-rates.patch (rev 0)
+++ community-i686/0002-Allow-for-custom-baud-rates.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,70 @@
+From 5d9373f24f1b519c030024b2f36277ba9713697c Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Wed, 21 Jul 2010 14:41:04 +1000
+Subject: [PATCH 3/3] Allow for custom baud rates.
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ inputattach.c | 25 ++++++++++++++++++++++++-
+ 1 files changed, 24 insertions(+), 1 deletions(-)
+
+diff --git a/inputattach.c b/inputattach.c
+index 0382954..6806fc8 100644
+--- a/inputattach.c
++++ b/inputattach.c
+@@ -506,7 +506,7 @@ static void show_help(void)
+ struct input_types *type;
+
+ puts("");
+- puts("Usage: inputattach [--daemon] <mode> <device>");
++ puts("Usage: inputattach [--daemon] [--baud <baud>] <mode> <device>");
+ puts("");
+ puts("Modes:");
+
+@@ -530,6 +530,7 @@ int main(int argc, char **argv)
+ int i;
+ char c;
+ int retval;
++ int baud = -1;
+
+ for (i = 1; i < argc; i++) {
+ if (!strcasecmp(argv[i], "--help")) {
+@@ -540,6 +541,15 @@ int main(int argc, char **argv)
+ } else if (need_device) {
+ device = argv[i];
+ need_device = 0;
++ } else if (!strcasecmp(argv[i], "--baud")) {
++ if (argc <= i + 1) {
++ show_help();
++ fprintf(stderr,
++ "inputattach: require baud rate\n");
++ return EXIT_FAILURE;
++ }
++
++ baud = atoi(argv[++i]);
+ } else {
+ if (type && type->name) {
+ fprintf(stderr,
+@@ -580,6 +590,19 @@ int main(int argc, char **argv)
+ return 1;
+ }
+
++ switch(baud) {
++ case -1: break;
++ case 2400: type->speed = B2400; break;
++ case 4800: type->speed = B4800; break;
++ case 9600: type->speed = B9600; break;
++ case 19200: type->speed = B19200; break;
++ case 38400: type->speed = B38400; break;
++ default:
++ fprintf(stderr, "inputattach: invalid baud rate '%d'\n",
++ baud);
++ return EXIT_FAILURE;
++ }
++
+ setline(fd, type->flags, type->speed);
+
+ if (type->flush)
+--
+1.7.2.3
+
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/PKGBUILD 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Mark Smith <markzzzsmith at yahoo.com.au>
-
-pkgname=inputattach
-pkgver=1.24
-pkgrel=6
-pkgdesc="Attach serial mice, keyboards and other input devices to the kernel input system"
-arch=('i686' 'x86_64')
-url="http://linuxconsole.sourceforge.net/"
-license=('GPL')
-depends=('bash')
-makedepends=('gcc')
-backup=(etc/conf.d/inputattach)
-install=inputattach.install
-#source=('http://kernel.org/pub/linux/kernel/people/dtor/inputattach.c'
-# 'http://kernel.org/pub/linux/kernel/people/dtor/serio-ids.h'
-source=('http://arch.p5n.pp.ru/~sergej/dl/2011/inputattach.c'
- 'http://arch.p5n.pp.ru/~sergej/dl/2011/serio-ids.h'
- 'inputattach.conf.d'
- 'inputattach.rc.d'
- 'inputattach.service'
- 'inputattachctl'
- '0001-Add-w8001-flag.patch'
- '0002-Allow-for-custom-baud-rates.patch')
-md5sums=('eb595a766ca363edb3b14c25404596ce'
- '93d34d96cd3ad19ea1aeca7f68a66b4a'
- '7ca903e54829764c8241233af5069216'
- 'aa2e404fc113abdd2ab14e2a6352c331'
- 'c19b9ed38b243191cf5378b87a42a4cc'
- '84c6463660c10bd34c0390102da087d5'
- 'f1b3ddae308351357f557cbd5c6cda81'
- '8f76908449cae24a95adbf0bc0a17721')
-
-build() {
- cd "$srcdir"
-
- mkdir src
- cp inputattach.c serio-ids.h src/
- cd src
-
- # Add support for serial wacom tablets
- patch -Np1 -i "$srcdir/0001-Add-w8001-flag.patch"
- patch -Np1 -i "$srcdir/0002-Allow-for-custom-baud-rates.patch"
-
- cc $CFLAGS inputattach.c -o inputattach
-}
-
-package() {
- cd "$srcdir/src"
- install -Dm755 inputattach "$pkgdir/usr/sbin/inputattach"
- install -Dm644 $srcdir/inputattach.conf.d "$pkgdir/etc/conf.d/inputattach"
- install -Dm755 $srcdir/inputattach.rc.d "$pkgdir/etc/rc.d/inputattach"
- install -Dm755 $srcdir/inputattachctl $pkgdir/usr/bin/inputattachctl
- install -Dm644 $srcdir/inputattach.service $pkgdir/usr/lib/systemd/system/inputattach.service
-}
Copied: inputattach/repos/community-i686/PKGBUILD (from rev 90678, inputattach/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Mark Smith <markzzzsmith at yahoo.com.au>
+
+pkgname=inputattach
+pkgver=1.24
+pkgrel=7
+pkgdesc="Attach serial mice, keyboards and other input devices to the kernel input system"
+arch=('i686' 'x86_64')
+url="http://linuxconsole.sourceforge.net/"
+license=('GPL')
+depends=('bash')
+makedepends=('gcc')
+backup=(etc/conf.d/inputattach)
+install=inputattach.install
+#source=('http://kernel.org/pub/linux/kernel/people/dtor/inputattach.c'
+# 'http://kernel.org/pub/linux/kernel/people/dtor/serio-ids.h'
+source=('http://arch.p5n.pp.ru/~sergej/dl/2011/inputattach.c'
+ 'http://arch.p5n.pp.ru/~sergej/dl/2011/serio-ids.h'
+ 'inputattach.service'
+ 'inputattachctl'
+ '0001-Add-w8001-flag.patch'
+ '0002-Allow-for-custom-baud-rates.patch')
+md5sums=('eb595a766ca363edb3b14c25404596ce'
+ '93d34d96cd3ad19ea1aeca7f68a66b4a'
+ 'c19b9ed38b243191cf5378b87a42a4cc'
+ '84c6463660c10bd34c0390102da087d5'
+ 'f1b3ddae308351357f557cbd5c6cda81'
+ '8f76908449cae24a95adbf0bc0a17721')
+
+build() {
+ cd "$srcdir"
+
+ mkdir src
+ cp inputattach.c serio-ids.h src/
+ cd src
+
+ # Add support for serial wacom tablets
+ patch -Np1 -i "$srcdir/0001-Add-w8001-flag.patch"
+ patch -Np1 -i "$srcdir/0002-Allow-for-custom-baud-rates.patch"
+
+ cc $CFLAGS inputattach.c -o inputattach
+}
+
+package() {
+ cd "$srcdir/src"
+ install -Dm755 inputattach "$pkgdir/usr/sbin/inputattach"
+ install -Dm755 $srcdir/inputattachctl $pkgdir/usr/bin/inputattachctl
+ install -Dm644 $srcdir/inputattach.service $pkgdir/usr/lib/systemd/system/inputattach.service
+}
Deleted: community-i686/inputattach.conf.d
===================================================================
--- community-i686/inputattach.conf.d 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/inputattach.conf.d 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,10 +0,0 @@
-#
-# Configuration for inputattach
-#
-# IAPARAMS is an array of inputattach arguments, see 'inputattach --help'.
-# An inputattach instance will be started for each element.
-
-IAPARAMS=(
- "--microsoft /dev/ttyS0"
- #"--baud 9600 --w8001 /dev/ttyS1"
-)
Deleted: community-i686/inputattach.install
===================================================================
--- community-i686/inputattach.install 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/inputattach.install 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,16 +0,0 @@
-## arg 1: the new package version
-
-post_upgrade() {
- (( $(vercmp 1.24-3 $2) > 0 )) && cat <<EOF
-ATTENTION:
- /etc/conf.d/inputattach.conf has been replaced by /etc/conf.d/inputattach
- Make sure you adjust the new config file, which has a new format.
-EOF
-}
-
-post_install() {
- cat << EOF
-The correct device mode and /dev device file will need to be set in
-/etc/conf.d/inputattach before starting /etc/rc.d/inputattach
-EOF
-}
Copied: inputattach/repos/community-i686/inputattach.install (from rev 90678, inputattach/trunk/inputattach.install)
===================================================================
--- community-i686/inputattach.install (rev 0)
+++ community-i686/inputattach.install 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,16 @@
+## arg 1: the new package version
+
+post_upgrade() {
+ (( $(vercmp 1.24-3 $2) > 0 )) && cat <<EOF
+ATTENTION:
+ /etc/conf.d/inputattach.conf has been replaced by /etc/conf.d/inputattach
+ Make sure you adjust the new config file, which has a new format.
+EOF
+}
+
+post_install() {
+ cat << EOF
+The correct device mode and /dev device file will need to be set in
+/etc/conf.d/inputattach before starting /etc/rc.d/inputattach
+EOF
+}
Deleted: community-i686/inputattach.rc.d
===================================================================
--- community-i686/inputattach.rc.d 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/inputattach.rc.d 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/inputattach
-
-case "$1" in
- start)
- stat_busy "Starting inputattach"
- for param in "${IAPARAMS[@]}"; do
- if ! /usr/sbin/inputattach --daemon $param; then
- stat_fail
- exit 1
- fi
- done
-
- add_daemon inputattach
- stat_done
- ;;
- stop)
- stat_busy "Stopping inputattach"
- PID=`pidof -o %PPID /usr/sbin/inputattach`
- [ ! -z "$PID" ] && kill $PID &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- rm_daemon inputattach
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
Deleted: community-i686/inputattach.service
===================================================================
--- community-i686/inputattach.service 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/inputattach.service 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,11 +0,0 @@
-[Unit]
-Description=Attach serial input devices to kernel input subsystem
-After=syslog.target
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/inputattachctl start
-ExecStop=/usr/bin/inputattachctl stop
-
-[Install]
-WantedBy=multi-user.target
Copied: inputattach/repos/community-i686/inputattach.service (from rev 90678, inputattach/trunk/inputattach.service)
===================================================================
--- community-i686/inputattach.service (rev 0)
+++ community-i686/inputattach.service 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Attach serial input devices to kernel input subsystem
+After=syslog.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/inputattachctl start
+ExecStop=/usr/bin/inputattachctl stop
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-i686/inputattachctl
===================================================================
--- community-i686/inputattachctl 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-i686/inputattachctl 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-. /etc/conf.d/inputattach
-
-case "$1" in
- start)
- for i in "${IAPARAMS[@]}"; do
- /usr/sbin/inputattach --daemon $i || exit 1
- done
- ;;
- stop)
- killall inputattach || exit 1
- ;;
-esac
Copied: inputattach/repos/community-i686/inputattachctl (from rev 90678, inputattach/trunk/inputattachctl)
===================================================================
--- community-i686/inputattachctl (rev 0)
+++ community-i686/inputattachctl 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+. /etc/conf.d/inputattach
+
+case "$1" in
+ start)
+ for i in "${IAPARAMS[@]}"; do
+ /usr/sbin/inputattach --daemon $i || exit 1
+ done
+ ;;
+ stop)
+ killall inputattach || exit 1
+ ;;
+esac
Deleted: community-x86_64/0001-Add-w8001-flag.patch
===================================================================
--- community-x86_64/0001-Add-w8001-flag.patch 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/0001-Add-w8001-flag.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,27 +0,0 @@
-From 729257077e328e0b2fa1bba5a5509c09a743d5d0 Mon Sep 17 00:00:00 2001
-From: Peter Hutterer <peter.hutterer at who-t.net>
-Date: Tue, 13 Jul 2010 11:49:47 +1000
-Subject: [PATCH 2/3] Add w8001 flag for serial Wacom devices.
-
-Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
----
- inputattach.c | 3 +++
- 1 files changed, 3 insertions(+), 0 deletions(-)
-
-diff --git a/inputattach.c b/inputattach.c
-index a7de302..0382954 100644
---- a/inputattach.c
-+++ b/inputattach.c
-@@ -495,6 +495,9 @@ static struct input_types input_types[] = {
- { "--dump", "-dump", "Just enable device",
- B2400, CS8,
- 0, 0x00, 0x00, 0, dump_init },
-+{ "--w8001", "-w8001", "Wacom W8001",
-+ B38400, CS8,
-+ SERIO_W8001, 0x00, 0x00, 0, NULL },
- { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL }
- };
-
---
-1.7.2.3
-
Copied: inputattach/repos/community-x86_64/0001-Add-w8001-flag.patch (from rev 90678, inputattach/trunk/0001-Add-w8001-flag.patch)
===================================================================
--- community-x86_64/0001-Add-w8001-flag.patch (rev 0)
+++ community-x86_64/0001-Add-w8001-flag.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,27 @@
+From 729257077e328e0b2fa1bba5a5509c09a743d5d0 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Tue, 13 Jul 2010 11:49:47 +1000
+Subject: [PATCH 2/3] Add w8001 flag for serial Wacom devices.
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ inputattach.c | 3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/inputattach.c b/inputattach.c
+index a7de302..0382954 100644
+--- a/inputattach.c
++++ b/inputattach.c
+@@ -495,6 +495,9 @@ static struct input_types input_types[] = {
+ { "--dump", "-dump", "Just enable device",
+ B2400, CS8,
+ 0, 0x00, 0x00, 0, dump_init },
++{ "--w8001", "-w8001", "Wacom W8001",
++ B38400, CS8,
++ SERIO_W8001, 0x00, 0x00, 0, NULL },
+ { NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, NULL }
+ };
+
+--
+1.7.2.3
+
Deleted: community-x86_64/0002-Allow-for-custom-baud-rates.patch
===================================================================
--- community-x86_64/0002-Allow-for-custom-baud-rates.patch 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/0002-Allow-for-custom-baud-rates.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,70 +0,0 @@
-From 5d9373f24f1b519c030024b2f36277ba9713697c Mon Sep 17 00:00:00 2001
-From: Peter Hutterer <peter.hutterer at who-t.net>
-Date: Wed, 21 Jul 2010 14:41:04 +1000
-Subject: [PATCH 3/3] Allow for custom baud rates.
-
-Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
----
- inputattach.c | 25 ++++++++++++++++++++++++-
- 1 files changed, 24 insertions(+), 1 deletions(-)
-
-diff --git a/inputattach.c b/inputattach.c
-index 0382954..6806fc8 100644
---- a/inputattach.c
-+++ b/inputattach.c
-@@ -506,7 +506,7 @@ static void show_help(void)
- struct input_types *type;
-
- puts("");
-- puts("Usage: inputattach [--daemon] <mode> <device>");
-+ puts("Usage: inputattach [--daemon] [--baud <baud>] <mode> <device>");
- puts("");
- puts("Modes:");
-
-@@ -530,6 +530,7 @@ int main(int argc, char **argv)
- int i;
- char c;
- int retval;
-+ int baud = -1;
-
- for (i = 1; i < argc; i++) {
- if (!strcasecmp(argv[i], "--help")) {
-@@ -540,6 +541,15 @@ int main(int argc, char **argv)
- } else if (need_device) {
- device = argv[i];
- need_device = 0;
-+ } else if (!strcasecmp(argv[i], "--baud")) {
-+ if (argc <= i + 1) {
-+ show_help();
-+ fprintf(stderr,
-+ "inputattach: require baud rate\n");
-+ return EXIT_FAILURE;
-+ }
-+
-+ baud = atoi(argv[++i]);
- } else {
- if (type && type->name) {
- fprintf(stderr,
-@@ -580,6 +590,19 @@ int main(int argc, char **argv)
- return 1;
- }
-
-+ switch(baud) {
-+ case -1: break;
-+ case 2400: type->speed = B2400; break;
-+ case 4800: type->speed = B4800; break;
-+ case 9600: type->speed = B9600; break;
-+ case 19200: type->speed = B19200; break;
-+ case 38400: type->speed = B38400; break;
-+ default:
-+ fprintf(stderr, "inputattach: invalid baud rate '%d'\n",
-+ baud);
-+ return EXIT_FAILURE;
-+ }
-+
- setline(fd, type->flags, type->speed);
-
- if (type->flush)
---
-1.7.2.3
-
Copied: inputattach/repos/community-x86_64/0002-Allow-for-custom-baud-rates.patch (from rev 90678, inputattach/trunk/0002-Allow-for-custom-baud-rates.patch)
===================================================================
--- community-x86_64/0002-Allow-for-custom-baud-rates.patch (rev 0)
+++ community-x86_64/0002-Allow-for-custom-baud-rates.patch 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,70 @@
+From 5d9373f24f1b519c030024b2f36277ba9713697c Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Wed, 21 Jul 2010 14:41:04 +1000
+Subject: [PATCH 3/3] Allow for custom baud rates.
+
+Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+---
+ inputattach.c | 25 ++++++++++++++++++++++++-
+ 1 files changed, 24 insertions(+), 1 deletions(-)
+
+diff --git a/inputattach.c b/inputattach.c
+index 0382954..6806fc8 100644
+--- a/inputattach.c
++++ b/inputattach.c
+@@ -506,7 +506,7 @@ static void show_help(void)
+ struct input_types *type;
+
+ puts("");
+- puts("Usage: inputattach [--daemon] <mode> <device>");
++ puts("Usage: inputattach [--daemon] [--baud <baud>] <mode> <device>");
+ puts("");
+ puts("Modes:");
+
+@@ -530,6 +530,7 @@ int main(int argc, char **argv)
+ int i;
+ char c;
+ int retval;
++ int baud = -1;
+
+ for (i = 1; i < argc; i++) {
+ if (!strcasecmp(argv[i], "--help")) {
+@@ -540,6 +541,15 @@ int main(int argc, char **argv)
+ } else if (need_device) {
+ device = argv[i];
+ need_device = 0;
++ } else if (!strcasecmp(argv[i], "--baud")) {
++ if (argc <= i + 1) {
++ show_help();
++ fprintf(stderr,
++ "inputattach: require baud rate\n");
++ return EXIT_FAILURE;
++ }
++
++ baud = atoi(argv[++i]);
+ } else {
+ if (type && type->name) {
+ fprintf(stderr,
+@@ -580,6 +590,19 @@ int main(int argc, char **argv)
+ return 1;
+ }
+
++ switch(baud) {
++ case -1: break;
++ case 2400: type->speed = B2400; break;
++ case 4800: type->speed = B4800; break;
++ case 9600: type->speed = B9600; break;
++ case 19200: type->speed = B19200; break;
++ case 38400: type->speed = B38400; break;
++ default:
++ fprintf(stderr, "inputattach: invalid baud rate '%d'\n",
++ baud);
++ return EXIT_FAILURE;
++ }
++
+ setline(fd, type->flags, type->speed);
+
+ if (type->flush)
+--
+1.7.2.3
+
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/PKGBUILD 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,56 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Mark Smith <markzzzsmith at yahoo.com.au>
-
-pkgname=inputattach
-pkgver=1.24
-pkgrel=6
-pkgdesc="Attach serial mice, keyboards and other input devices to the kernel input system"
-arch=('i686' 'x86_64')
-url="http://linuxconsole.sourceforge.net/"
-license=('GPL')
-depends=('bash')
-makedepends=('gcc')
-backup=(etc/conf.d/inputattach)
-install=inputattach.install
-#source=('http://kernel.org/pub/linux/kernel/people/dtor/inputattach.c'
-# 'http://kernel.org/pub/linux/kernel/people/dtor/serio-ids.h'
-source=('http://arch.p5n.pp.ru/~sergej/dl/2011/inputattach.c'
- 'http://arch.p5n.pp.ru/~sergej/dl/2011/serio-ids.h'
- 'inputattach.conf.d'
- 'inputattach.rc.d'
- 'inputattach.service'
- 'inputattachctl'
- '0001-Add-w8001-flag.patch'
- '0002-Allow-for-custom-baud-rates.patch')
-md5sums=('eb595a766ca363edb3b14c25404596ce'
- '93d34d96cd3ad19ea1aeca7f68a66b4a'
- '7ca903e54829764c8241233af5069216'
- 'aa2e404fc113abdd2ab14e2a6352c331'
- 'c19b9ed38b243191cf5378b87a42a4cc'
- '84c6463660c10bd34c0390102da087d5'
- 'f1b3ddae308351357f557cbd5c6cda81'
- '8f76908449cae24a95adbf0bc0a17721')
-
-build() {
- cd "$srcdir"
-
- mkdir src
- cp inputattach.c serio-ids.h src/
- cd src
-
- # Add support for serial wacom tablets
- patch -Np1 -i "$srcdir/0001-Add-w8001-flag.patch"
- patch -Np1 -i "$srcdir/0002-Allow-for-custom-baud-rates.patch"
-
- cc $CFLAGS inputattach.c -o inputattach
-}
-
-package() {
- cd "$srcdir/src"
- install -Dm755 inputattach "$pkgdir/usr/sbin/inputattach"
- install -Dm644 $srcdir/inputattach.conf.d "$pkgdir/etc/conf.d/inputattach"
- install -Dm755 $srcdir/inputattach.rc.d "$pkgdir/etc/rc.d/inputattach"
- install -Dm755 $srcdir/inputattachctl $pkgdir/usr/bin/inputattachctl
- install -Dm644 $srcdir/inputattach.service $pkgdir/usr/lib/systemd/system/inputattach.service
-}
Copied: inputattach/repos/community-x86_64/PKGBUILD (from rev 90678, inputattach/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Mark Smith <markzzzsmith at yahoo.com.au>
+
+pkgname=inputattach
+pkgver=1.24
+pkgrel=7
+pkgdesc="Attach serial mice, keyboards and other input devices to the kernel input system"
+arch=('i686' 'x86_64')
+url="http://linuxconsole.sourceforge.net/"
+license=('GPL')
+depends=('bash')
+makedepends=('gcc')
+backup=(etc/conf.d/inputattach)
+install=inputattach.install
+#source=('http://kernel.org/pub/linux/kernel/people/dtor/inputattach.c'
+# 'http://kernel.org/pub/linux/kernel/people/dtor/serio-ids.h'
+source=('http://arch.p5n.pp.ru/~sergej/dl/2011/inputattach.c'
+ 'http://arch.p5n.pp.ru/~sergej/dl/2011/serio-ids.h'
+ 'inputattach.service'
+ 'inputattachctl'
+ '0001-Add-w8001-flag.patch'
+ '0002-Allow-for-custom-baud-rates.patch')
+md5sums=('eb595a766ca363edb3b14c25404596ce'
+ '93d34d96cd3ad19ea1aeca7f68a66b4a'
+ 'c19b9ed38b243191cf5378b87a42a4cc'
+ '84c6463660c10bd34c0390102da087d5'
+ 'f1b3ddae308351357f557cbd5c6cda81'
+ '8f76908449cae24a95adbf0bc0a17721')
+
+build() {
+ cd "$srcdir"
+
+ mkdir src
+ cp inputattach.c serio-ids.h src/
+ cd src
+
+ # Add support for serial wacom tablets
+ patch -Np1 -i "$srcdir/0001-Add-w8001-flag.patch"
+ patch -Np1 -i "$srcdir/0002-Allow-for-custom-baud-rates.patch"
+
+ cc $CFLAGS inputattach.c -o inputattach
+}
+
+package() {
+ cd "$srcdir/src"
+ install -Dm755 inputattach "$pkgdir/usr/sbin/inputattach"
+ install -Dm755 $srcdir/inputattachctl $pkgdir/usr/bin/inputattachctl
+ install -Dm644 $srcdir/inputattach.service $pkgdir/usr/lib/systemd/system/inputattach.service
+}
Deleted: community-x86_64/inputattach.conf.d
===================================================================
--- community-x86_64/inputattach.conf.d 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/inputattach.conf.d 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,10 +0,0 @@
-#
-# Configuration for inputattach
-#
-# IAPARAMS is an array of inputattach arguments, see 'inputattach --help'.
-# An inputattach instance will be started for each element.
-
-IAPARAMS=(
- "--microsoft /dev/ttyS0"
- #"--baud 9600 --w8001 /dev/ttyS1"
-)
Deleted: community-x86_64/inputattach.install
===================================================================
--- community-x86_64/inputattach.install 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/inputattach.install 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,16 +0,0 @@
-## arg 1: the new package version
-
-post_upgrade() {
- (( $(vercmp 1.24-3 $2) > 0 )) && cat <<EOF
-ATTENTION:
- /etc/conf.d/inputattach.conf has been replaced by /etc/conf.d/inputattach
- Make sure you adjust the new config file, which has a new format.
-EOF
-}
-
-post_install() {
- cat << EOF
-The correct device mode and /dev device file will need to be set in
-/etc/conf.d/inputattach before starting /etc/rc.d/inputattach
-EOF
-}
Copied: inputattach/repos/community-x86_64/inputattach.install (from rev 90678, inputattach/trunk/inputattach.install)
===================================================================
--- community-x86_64/inputattach.install (rev 0)
+++ community-x86_64/inputattach.install 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,16 @@
+## arg 1: the new package version
+
+post_upgrade() {
+ (( $(vercmp 1.24-3 $2) > 0 )) && cat <<EOF
+ATTENTION:
+ /etc/conf.d/inputattach.conf has been replaced by /etc/conf.d/inputattach
+ Make sure you adjust the new config file, which has a new format.
+EOF
+}
+
+post_install() {
+ cat << EOF
+The correct device mode and /dev device file will need to be set in
+/etc/conf.d/inputattach before starting /etc/rc.d/inputattach
+EOF
+}
Deleted: community-x86_64/inputattach.rc.d
===================================================================
--- community-x86_64/inputattach.rc.d 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/inputattach.rc.d 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/inputattach
-
-case "$1" in
- start)
- stat_busy "Starting inputattach"
- for param in "${IAPARAMS[@]}"; do
- if ! /usr/sbin/inputattach --daemon $param; then
- stat_fail
- exit 1
- fi
- done
-
- add_daemon inputattach
- stat_done
- ;;
- stop)
- stat_busy "Stopping inputattach"
- PID=`pidof -o %PPID /usr/sbin/inputattach`
- [ ! -z "$PID" ] && kill $PID &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- rm_daemon inputattach
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
Deleted: community-x86_64/inputattach.service
===================================================================
--- community-x86_64/inputattach.service 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/inputattach.service 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,11 +0,0 @@
-[Unit]
-Description=Attach serial input devices to kernel input subsystem
-After=syslog.target
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/inputattachctl start
-ExecStop=/usr/bin/inputattachctl stop
-
-[Install]
-WantedBy=multi-user.target
Copied: inputattach/repos/community-x86_64/inputattach.service (from rev 90678, inputattach/trunk/inputattach.service)
===================================================================
--- community-x86_64/inputattach.service (rev 0)
+++ community-x86_64/inputattach.service 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Attach serial input devices to kernel input subsystem
+After=syslog.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/inputattachctl start
+ExecStop=/usr/bin/inputattachctl stop
+
+[Install]
+WantedBy=multi-user.target
Deleted: community-x86_64/inputattachctl
===================================================================
--- community-x86_64/inputattachctl 2013-05-13 14:27:02 UTC (rev 90678)
+++ community-x86_64/inputattachctl 2013-05-13 14:27:34 UTC (rev 90679)
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-. /etc/conf.d/inputattach
-
-case "$1" in
- start)
- for i in "${IAPARAMS[@]}"; do
- /usr/sbin/inputattach --daemon $i || exit 1
- done
- ;;
- stop)
- killall inputattach || exit 1
- ;;
-esac
Copied: inputattach/repos/community-x86_64/inputattachctl (from rev 90678, inputattach/trunk/inputattachctl)
===================================================================
--- community-x86_64/inputattachctl (rev 0)
+++ community-x86_64/inputattachctl 2013-05-13 14:27:34 UTC (rev 90679)
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+. /etc/conf.d/inputattach
+
+case "$1" in
+ start)
+ for i in "${IAPARAMS[@]}"; do
+ /usr/sbin/inputattach --daemon $i || exit 1
+ done
+ ;;
+ stop)
+ killall inputattach || exit 1
+ ;;
+esac
More information about the arch-commits
mailing list