diff options
Diffstat (limited to 'community/linuxconsole')
-rw-r--r-- | community/linuxconsole/PKGBUILD | 37 | ||||
-rw-r--r-- | community/linuxconsole/inputattach.conf.d | 10 | ||||
-rw-r--r-- | community/linuxconsole/inputattach.service | 11 | ||||
-rwxr-xr-x | community/linuxconsole/inputattachctl | 14 |
4 files changed, 72 insertions, 0 deletions
diff --git a/community/linuxconsole/PKGBUILD b/community/linuxconsole/PKGBUILD new file mode 100644 index 000000000..b7e9de300 --- /dev/null +++ b/community/linuxconsole/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 100995 2013-11-14 11:37:01Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Andrzej Giniewicz <gginiu@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 +} diff --git a/community/linuxconsole/inputattach.conf.d b/community/linuxconsole/inputattach.conf.d new file mode 100644 index 000000000..ae8d1842a --- /dev/null +++ b/community/linuxconsole/inputattach.conf.d @@ -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" +) diff --git a/community/linuxconsole/inputattach.service b/community/linuxconsole/inputattach.service new file mode 100644 index 000000000..2ec902c09 --- /dev/null +++ b/community/linuxconsole/inputattach.service @@ -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 diff --git a/community/linuxconsole/inputattachctl b/community/linuxconsole/inputattachctl new file mode 100755 index 000000000..05dfa4af5 --- /dev/null +++ b/community/linuxconsole/inputattachctl @@ -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 |