diff options
-rw-r--r-- | system/marsond/README | 16 | ||||
-rw-r--r-- | system/marsond/doinst.sh | 13 | ||||
-rw-r--r-- | system/marsond/marsond.SlackBuild | 67 | ||||
-rw-r--r-- | system/marsond/marsond.info | 10 | ||||
-rw-r--r-- | system/marsond/slack-desc | 19 |
5 files changed, 125 insertions, 0 deletions
diff --git a/system/marsond/README b/system/marsond/README new file mode 100644 index 0000000000..3c6ba4ed9d --- /dev/null +++ b/system/marsond/README @@ -0,0 +1,16 @@ +marsond (fix Enter key for Marson/USBLink PS/2=>USB adaptor). + +marsond is a daemon for Linux that fixes an issue with a particular +model of PS/2 => USB keyboard adaptor, the MT606-1 (aka "Marson +Keyboard and Mouse Link", aka USBLink. The symptom: in games and +emulators, the Enter key only works sometimes. + +marsond uses a udev rule to start automatically when the adaptor is +plugged in. If the vendor and product IDs of your broken adaptor don't +match the ones in /etc/udev/rules.d/99-marsond.rules, you can edit the +IDs in that file and run "udevadm control --reload". + +If you're upgrading from an older verison of marsond on a machine +where the daemon is still running, the easiest thing to do is unplug +the adaptor and plug it back into the USB port. You could also +"killall marsond" and then manually start it by running "marsond". diff --git a/system/marsond/doinst.sh b/system/marsond/doinst.sh new file mode 100644 index 0000000000..7fe2dd322d --- /dev/null +++ b/system/marsond/doinst.sh @@ -0,0 +1,13 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +config etc/udev/rules.d/99-marsond.rules.new + +[ -x /sbin/udevadm ] && /sbin/udevadm control --reload diff --git a/system/marsond/marsond.SlackBuild b/system/marsond/marsond.SlackBuild new file mode 100644 index 0000000000..8cba7900b4 --- /dev/null +++ b/system/marsond/marsond.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/bash + +# Slackware build script for marsond + +# Written by B. Watson (urchlay@slackware.uk) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=marsond +VERSION=${VERSION:-0.3.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +else + SLKCFLAGS="-O2" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod 644 * + +make COPT="$SLKCFLAGS" +make install DESTDIR=$PKG RULESUFFIX=.new + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/marsond/marsond.info b/system/marsond/marsond.info new file mode 100644 index 0000000000..e1778fdf4b --- /dev/null +++ b/system/marsond/marsond.info @@ -0,0 +1,10 @@ +PRGNAM="marsond" +VERSION="0.3.0" +HOMEPAGE="https://slackware.uk/~urchlay/repos/marsond" +DOWNLOAD="https://slackware.uk/~urchlay/repos/marsond/snapshot/marsond-0.3.0.tar.gz" +MD5SUM="8c9445d95abb1cf43df14d712de01eb8" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" diff --git a/system/marsond/slack-desc b/system/marsond/slack-desc new file mode 100644 index 0000000000..33e7de7ec8 --- /dev/null +++ b/system/marsond/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +marsond: marsond (fix Enter key for Marson/USBLink PS/2=>USB adaptor) +marsond: +marsond: marsond is a daemon for Linux that fixes an issue with a particular +marsond: model of PS/2 => USB keyboard adaptor, the MT606-1 (aka "Marson +marsond: Keyboard and Mouse Link", aka USBLink. The symptom: in games and +marsond: emulators, the Enter key only works sometimes. +marsond: +marsond: marsond uses a udev rule to start automatically when the adaptor is +marsond: plugged in. If the vendor and product IDs of your broken adaptor don't +marsond: match the ones in /etc/udev/rules.d/99-marsond.rules, you can edit the +marsond: IDs in that file and run "udevadm control --reload". |