[arch-commits] Commit in linuxconsole/repos (5 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 21:10:11 UTC 2018


    Date: Friday, November 9, 2018 @ 21:10:10
  Author: felixonmars
Revision: 404546

archrelease: copy trunk to community-staging-x86_64

Added:
  linuxconsole/repos/community-staging-x86_64/
  linuxconsole/repos/community-staging-x86_64/PKGBUILD
    (from rev 404542, linuxconsole/trunk/PKGBUILD)
  linuxconsole/repos/community-staging-x86_64/inputattach.conf.d
    (from rev 404543, linuxconsole/trunk/inputattach.conf.d)
  linuxconsole/repos/community-staging-x86_64/inputattach.service
    (from rev 404543, linuxconsole/trunk/inputattach.service)
  linuxconsole/repos/community-staging-x86_64/inputattachctl
    (from rev 404544, linuxconsole/trunk/inputattachctl)

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

Copied: linuxconsole/repos/community-staging-x86_64/PKGBUILD (from rev 404542, linuxconsole/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 21:10:10 UTC (rev 404546)
@@ -0,0 +1,43 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer:  Andrzej Giniewicz <gginiu at gmail.com>
+
+pkgname=linuxconsole
+pkgver=1.6.0
+pkgrel=2
+pkgdesc="Set of utilities for joysticks and serial devices"
+arch=('x86_64')
+url="http://sourceforge.net/projects/linuxconsole/"
+license=('GPL')
+makedepends=('sdl')
+provides=('joystick' 'inputattach')
+replaces=('joystick' 'inputattach')
+optdepends=('sdl: for ffmvforce utility')
+validpgpkeys=('79D9C58C50D6B5AA65D530C1759778A9A36B494F')
+source=(https://prdownloads.sourceforge.net/linuxconsole/linuxconsoletools-$pkgver.tar.bz2{,.sig}
+	'inputattach.conf.d'
+	'inputattach.service'
+	'inputattachctl')
+sha256sums=('ced2efed00b67b45f82eddc69be07385835d558f658016315ac621fe2eaa8146'
+            'SKIP'
+            '3807b2b34bea40c6d6036629ac3eaee31b44549c81fac62e922eb6524f0b203e'
+            '3fe8df1d4330ad95a02206946440576ad3a56230d43107f1d703bff077182f84'
+            '908e3a6cec41bd4fbe7066fb54213a80c96d91b219ca045399a54e65c0995c8c')
+
+prepare() {
+  cd "${srcdir}"/linuxconsoletools-$pkgver
+  sed -i 's|lib/udev|usr/lib/udev|g' utils/Makefile
+}
+
+build() {
+  cd "${srcdir}"/linuxconsoletools-$pkgver
+  make PREFIX=/usr
+}
+
+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
+}

Copied: linuxconsole/repos/community-staging-x86_64/inputattach.conf.d (from rev 404543, linuxconsole/trunk/inputattach.conf.d)
===================================================================
--- community-staging-x86_64/inputattach.conf.d	                        (rev 0)
+++ community-staging-x86_64/inputattach.conf.d	2018-11-09 21:10:10 UTC (rev 404546)
@@ -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"
+)

Copied: linuxconsole/repos/community-staging-x86_64/inputattach.service (from rev 404543, linuxconsole/trunk/inputattach.service)
===================================================================
--- community-staging-x86_64/inputattach.service	                        (rev 0)
+++ community-staging-x86_64/inputattach.service	2018-11-09 21:10:10 UTC (rev 404546)
@@ -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

Copied: linuxconsole/repos/community-staging-x86_64/inputattachctl (from rev 404544, linuxconsole/trunk/inputattachctl)
===================================================================
--- community-staging-x86_64/inputattachctl	                        (rev 0)
+++ community-staging-x86_64/inputattachctl	2018-11-09 21:10:10 UTC (rev 404546)
@@ -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


More information about the arch-commits mailing list