[arch-commits] Commit in (7 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Thu Nov 14 11:31:14 UTC 2013


    Date: Thursday, November 14, 2013 @ 12:31:13
  Author: spupykin
Revision: 100991

Added:
  linuxconsole/
  linuxconsole/repos/
  linuxconsole/trunk/
  linuxconsole/trunk/PKGBUILD
  linuxconsole/trunk/inputattach.conf.d
  linuxconsole/trunk/inputattach.service
  linuxconsole/trunk/inputattachctl

---------------------+
 PKGBUILD            |   35 +++++++++++++++++++++++++++++++++++
 inputattach.conf.d  |   10 ++++++++++
 inputattach.service |   11 +++++++++++
 inputattachctl      |   14 ++++++++++++++
 4 files changed, 70 insertions(+)

Added: linuxconsole/trunk/PKGBUILD
===================================================================
--- linuxconsole/trunk/PKGBUILD	                        (rev 0)
+++ linuxconsole/trunk/PKGBUILD	2013-11-14 11:31:13 UTC (rev 100991)
@@ -0,0 +1,35 @@
+# Maintainer:  Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=linuxconsole
+pkgver=1.4.6
+pkgrel=1
+pkgdesc="Set of utilities for joysticks and serial devices"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/linuxconsole/"
+license=('GPL')
+makedepends=('sdl')
+provides=('joystick' 'inputattach')
+replaces=('joystick' 'inputattach')
+optdepends=('sdl: for ffmvforce utility')
+source=(http://prdownloads.sourceforge.net/linuxconsole/linuxconsoletools-$pkgver.tar.bz2
+	'inputattach.conf.d'
+	'inputattach.service'
+	'inputattachctl')
+md5sums=('9115e08e3a2193b62da46d0e02852787'
+         '7ca903e54829764c8241233af5069216'
+         'c19b9ed38b243191cf5378b87a42a4cc'
+         '7dd0690a9d2fe5e1052900650906e273')
+
+build() {
+  cd "${srcdir}"/linuxconsoletools-$pkgver
+  make
+}
+
+package() {
+  cd "${srcdir}"/linuxconsoletools-$pkgver
+  make PREFIX=/usr DESTDIR="${pkgdir}" install
+
+  install -Dm755 $srcdir/inputattachctl $pkgdir/usr/bin/inputattachctl
+  install -Dm644 $srcdir/inputattach.conf.d "$pkgdir/etc/conf.d/inputattach"
+  install -Dm644 $srcdir/inputattach.service $pkgdir/usr/lib/systemd/system/inputattach.service
+}

Added: linuxconsole/trunk/inputattach.conf.d
===================================================================
--- linuxconsole/trunk/inputattach.conf.d	                        (rev 0)
+++ linuxconsole/trunk/inputattach.conf.d	2013-11-14 11:31:13 UTC (rev 100991)
@@ -0,0 +1,10 @@
+#
+# 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"
+)

Added: linuxconsole/trunk/inputattach.service
===================================================================
--- linuxconsole/trunk/inputattach.service	                        (rev 0)
+++ linuxconsole/trunk/inputattach.service	2013-11-14 11:31:13 UTC (rev 100991)
@@ -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

Added: linuxconsole/trunk/inputattachctl
===================================================================
--- linuxconsole/trunk/inputattachctl	                        (rev 0)
+++ linuxconsole/trunk/inputattachctl	2013-11-14 11:31:13 UTC (rev 100991)
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+. /etc/conf.d/inputattach
+
+case "$1" in
+	start)
+		for i in "${IAPARAMS[@]}"; do
+			/usr/bin/inputattach --daemon $i || exit 1
+		done
+		;;
+	stop)
+		killall inputattach || exit 1
+		;;
+esac


Property changes on: linuxconsole/trunk/inputattachctl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property



More information about the arch-commits mailing list